[ACKNOWLEDGED BUG] Android 5.1 Camera can't connect... ever - Nexus 5 Q&A, Help & Troubleshooting

It appears this is long-running problem plaguing N5's for some time. I saw sporadical "Can't connect to camera" on 5.0.1 but after update to 5.1 (I flashed the stock image) I literally cannot get the camera working for more than 1 unlock session.
I did have root but I thought it might be a problem so I unrooted and reflashed stock, but no help. The only other thing I can imagine to do is factory reset, but I have a few security apps that will need some time to be setup again (mostly banking and 2 factor stuff), plus I am not sure if I can restore data w/o Titanium using Google's new 'Restore', so I'm keeping the factory reset as last option.
Any ideas what I can do here? Is it happening to anyone else on 5.1? Can I somehow verify it's not a HW issue? (although, it was working on 5.0.1 so it's unlikely HW issue).
The only apps which *may* be accessing camera are Trusted face unlock, Whatsapp and Hangouts. Nothing special I'd say
Click to expand...
Click to collapse
Acknowledged bug by google https://code.google.com/p/android/issues/detail?id=160609

cthulu said:
It appears this is long-running problem plaguing N5's for some time. I saw sporadical "Can't connect to camera" on 5.0.1 but after update to 5.1 (I flashed the stock image) I literally cannot get the camera working for more than 1 unlock session.
I did have root but I thought it might be a problem so I unrooted and reflashed stock, but no help. The only other thing I can imagine to do is factory reset, but I have a few security apps that will need some time to be setup again (mostly banking and 2 factor stuff), plus I am not sure if I can restore data w/o Titanium using Google's new 'Restore', so I'm keeping the factory reset as last option.
Any ideas what I can do here? Is it happening to anyone else on 5.1? Can I somehow verify it's not a HW issue? (although, it was working on 5.0.1 so it's unlikely HW issue).
The only apps which *may* be accessing camera are Trusted face unlock, Whatsapp and Hangouts. Nothing special I'd say
Click to expand...
Click to collapse
If you reflashed factory image, you allready did a factory reset. Can you be more accurate with your description? Is this start immediately after first boot or later?

zagorteney said:
If you reflashed factory image, you allready did a factory reset. Can you be more accurate with your description? Is this start immediately after first boot or later?
Click to expand...
Click to collapse
I did reflash stock without wiping (to actually get the 5.1 upgrade - I didn't want to wait for OTA). If you wipe you start with clean phone, which I didn't want
So my problem manifests like this:
boot phone
camera seems to be working (opening camera app doesn't crash but actually allows taking pics)
after few screen locks/minutes, camera doesnt work anymore - opening camera either immediately crashes or shows "Can't connect to camera"
reboot fixes it for another few minutes

cthulu said:
I did reflash stock without wiping (to actually get the 5.1 upgrade - I didn't want to wait for OTA). If you wipe you start with clean phone, which I didn't want
So my problem manifests like this:
boot phone
camera seems to be working (opening camera app doesn't crash but actually allows taking pics)
after few screen locks/minutes, camera doesnt work anymore - opening camera either immediately crashes or shows "Can't connect to camera"
reboot fixes it for another few minutes
Click to expand...
Click to collapse
That's why i was asking this. Data partition can also cause problems. Flash completely and it will fix it.

zagorteney said:
That's why i was asking this. Data partition can also cause problems. Flash completely and it will fix it.
Click to expand...
Click to collapse
I also have this issue. I flashed 5.1 with the flash-all script, which did wipe my data. Any suggestions?

PHPanos said:
I also have this issue. I flashed 5.1 with the flash-all script, which did wipe my data. Any suggestions?
Click to expand...
Click to collapse
And this was happening immediately after booting your phone? Then must be hardware. ?

It works fine everytime I reboot, for xx minutes. It's difficult to say for how long but not too long. I see that "Trusted face" unlock stops working and that's a signal the whole camera subsystem is gone. Everything else works just no camera access from any app is possible.

zagorteney said:
And this was happening immediately after booting your phone? Then must be hardware. ��
Click to expand...
Click to collapse
No. It works at first. Then after a few times of locking/unlocking the phone and opening the camera app and switching to front camera it shuts down. The problem goes away after a reboot but it comes back again after a while.
cthulu: We have both the same problem.

Same here for me since upgrading to 5.0 every now and then i must reboot my phone in order to fix it.This is really annoying maybe we should wait for a new camera app by google ?

Same issue
Hi guys,
This has been the problem for me since 5.0 . I thought maybe its just me. But after a while, the camera stops working. I assume this is a s/w issue since the phone was fine in Kitkat. Even in 5.1 the issue persists.

I am also getting frequent "can't connect to camera" since 5.1. Nexus 5.

Do you know if there's an issue for this in Google's issue tracker? I'm sure they won't check xda forums for bug reports.
I've clicked a few times to send the error to Google when starting the camera but I honestly don't think they're checking those...
I hoped full wipe will fix this but as it happens to the folks who did full wipe I'm rather not going to do it yet...

Already reported here https://code.google.com/p/android/i... Owner Summary Stars&groupby=&sort=&id=160609

zagorteney said:
If you reflashed factory image, you allready did a factory reset. Can you be more accurate with your description? Is this start immediately after first boot or later?
Click to expand...
Click to collapse
Flashing system image does not mean factory reset. You can flash just the system and boot images without wiping data.

THRUSTer said:
Flashing system image does not mean factory reset. You can flash just the system and boot images without wiping data.
Click to expand...
Click to collapse
You are on a right direction. Just start to read a little more careful.

Happens the same for me.
Some days ago i see that the face Trusted face have Stop. So, now i desible the Trusted face, clear data of camera app e until now (about 2 hours) the camera works fine, without any shut up.
Try you too, i think that the problems are in the Smart lock.

Many people have this issue since they moved to 5.1
'Hardware defect' and 'no full wipe' were told to be the culprit straight away, but looking at the bug report that seems unjustified, especially given the number of reports with exactly this issue.
The issue arises when using face unlock. It somehow breaks the camera and the face unlock itself after a short while until you reboot it. I'm not sure if this happens with everyone or only with specific configurations, but for sure disabling face unlock has solved this for me.
zagorteney said:
Flash completely and it will fix it.
Click to expand...
Click to collapse
zagorteney said:
Then must be hardware. ?
Click to expand...
Click to collapse
So please be a bit more thorough in your advice....

Can't connect to camera error Nexus 5 Android 5.1
Hi gays, I am new here. I keep getting the ' can't connect to camera' error on my Nexus 5 Android 5.1, and I tried everything that is suggested here and it did not help. I turned off Face unlock, uninstall Viber and install again, cleared cache of the camera and force stop and everything else. Only help restart the device. I succeeded to catch the logcat with the error. Here is the logcat:
04-02 21:19:26.744 724-2687/? I/ActivityManager﹕ START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.GoogleCamera/com.android.camera.CameraLauncher bnds=[849,1532][1050,1784] (has extras)} from uid 10019 on display 0
04-02 21:19:26.747 724-2687/? V/WindowManager﹕ addAppToken: AppWindowToken{2498ae08 token=Token{83da7ab ActivityRecord{3a47c5fa u0 com.google.android.GoogleCamera/com.android.camera.CameraLauncher t32}}} to stack=1 task=32 at 0
04-02 21:19:26.751 724-819/? V/WindowManager﹕ Based on layer: Adding window Window{15bd6123 u0 Starting com.google.android.GoogleCamera} at 3 of 9
04-02 21:19:26.824 724-1360/? I/ActivityManager﹕ Start proc 22932:com.google.android.GoogleCamera/u0a42 for activity com.google.android.GoogleCamera/com.android.camera.CameraLauncher
04-02 21:19:26.837 1361-3270/? W/GsaThreadFactory﹕ Not creating another thread for Background Blocking because there are already 30
04-02 21:19:26.876 22932-22932/? W/ResourcesManager﹕ Asset path '/system/framework/com.google.android.camera2.jar' does not exist or contains no resources.
04-02 21:19:26.935 22932-22932/? W/CAM_Log﹕ Tag SessionStatsCollector is 2 chars longer than limit.
04-02 21:19:26.989 22932-22932/? I/CameraManagerGlobal﹕ getCameraService: Reconnecting to camera service
04-02 21:19:27.254 22932-22979/? I/CAM2PORT_AndCamAgntImp﹕ Opening camera 0 with camera1 API
04-02 21:19:27.266 193-1682/? W/AudioFlinger﹕ acquireAudioSessionId() unknown client 22932 for session 116
04-02 21:19:27.268 193-1682/? I/AwesomePlayer﹕ setDataSource_l(<no-scheme URI suppressed>)
04-02 21:19:27.289 193-1682/? W/AudioFlinger﹕ acquireAudioSessionId() unknown client 22932 for session 117
04-02 21:19:27.290 193-1682/? I/AwesomePlayer﹕ setDataSource_l(<no-scheme URI suppressed>)
04-02 21:19:27.301 193-1682/? I/Camera2ClientBase﹕ Camera 0: Opened. Client: com.google.android.GoogleCamera (PID 22932, UID 10042)
04-02 21:19:27.302 22932-22992/? W/CAM_PhotoData﹕ Zero dimension in ContentResolver for /storage/emulated/0/DCIM/Camera/IMG_20150402_180439.jpg:0x0
04-02 21:19:27.303 193-1682/? D/mm-camera-intf﹕ mm_camera_open: dev name = /dev/video1, cam_idx = 1
04-02 21:19:27.304 206-206/? I/mm-camera-sensor﹕ module_sensor_start_session:583 session 1
04-02 21:19:27.305 206-206/? E/mm-camera-sensor﹕ csiphy_open:126 VIDIOC_MSM_CSIPHY_IO_CFG failed
04-02 21:19:27.305 206-206/? E/mm-camera-sensor﹕ module_sensor_init_session:335 failed rc -1
04-02 21:19:27.306 206-206/? E/mm-camera-sensor﹕ sensor_close:2499 VIDIOC_MSM_SENSOR_CFG failed
04-02 21:19:27.306 206-206/? E/mm-camera-sensor﹕ module_sensor_init_session:500 failed
04-02 21:19:27.306 206-206/? E/mm-camera-sensor﹕ module_sensor_start_session:612 failed
04-02 21:19:27.306 206-206/? E/mm-camera-sensor﹕ module_sensor_start_session:617 failed
04-02 21:19:27.306 206-206/? E/mm-camera-sensor﹕ sensor_get_capabilities:1632 failed
04-02 21:19:27.306 206-206/? E/mm-camera-sensor﹕ module_sensor_query_mod:2421 failed rc -4
04-02 21:19:27.307 206-206/? E/mm-camera﹕ cpp_hardware_process_command:254: failed, subdev not opened
04-02 21:19:27.307 206-206/? E/mm-camera﹕ cpp_module_query_mod:268: failed
04-02 21:19:27.307 206-206/? E/mm-camera﹕ pproc_module_query_mod:1697] error in cpp query mod
04-02 21:19:27.307 206-206/? I/mm-camera-sensor﹕ module_module_set_session_data:2666 max delay 2 report dSelay 1
04-02 21:19:27.307 206-206/? E/mm-camera﹕ isp_set_session_data: Session could not be found!
04-02 21:19:27.307 206-206/? E/mm-camera﹕ cpp_module_get_params_for_session_id:178, failed, session_id=0x1
04-02 21:19:27.307 206-206/? E/mm-camera﹕ cpp_module_set_session_data:329, failed
04-02 21:19:27.307 206-206/? E/mm-camera﹕ pproc_module_set_session_data:1928] error in cpp set_session_data
04-02 21:19:27.307 206-206/? D/mm-camera﹕ module_faceproc_set_session_data:1836] Per frame control 2 1
04-02 21:19:27.307 206-206/? I/mm-camera-sensor﹕ module_sensor_stop_session:636 session 1
04-02 21:19:27.307 206-206/? E/mm-camera-sensor﹕ module_sensor_deinit_session:526 ref count 0
04-02 21:19:27.307 206-206/? E/mm-camera-sensor﹕ module_sensor_stop_session:664 failed
04-02 21:19:27.307 206-206/? E/mm-camera-sensor﹕ module_sensor_stop_session:669 failed
04-02 21:19:27.307 206-206/? I/mm-camera﹕ cpp_module_stop_session:462, info: stopping session 1 ...
04-02 21:19:27.307 206-206/? I/mm-camera﹕ cpp_module_stop_session:504, info: session 1 stopped.
04-02 21:19:27.307 206-206/? I/mm-camera﹕ c2d_module_stop_session:322, info: stopping session 1 ...
04-02 21:19:27.307 206-206/? I/mm-camera﹕ c2d_module_stop_session:361, info: session 1 stopped.
04-02 21:19:27.308 206-206/? E/mm-camera﹕ main: New session [1] creation failed with error
04-02 21:19:27.308 193-1682/? D/mm-camera-intf﹕ mm_camera_open: opened, break out while loop
04-02 21:19:27.308 193-1682/? E/mm-camera-intf﹕ mm_camera_open: cannot open control fd of '/dev/video1' (Bad address)
04-02 21:19:27.308 193-1682/? E/mm-camera-intf﹕ camera_open: mm_camera_open err = -1
04-02 21:19:27.308 193-1682/? E/QCamera3HWI﹕ camera_open failed.
04-02 21:19:27.308 193-1682/? E/Camera3-Device﹕ Camera 0: initialize: Could not open camera: No such device (-19)
04-02 21:19:27.308 193-1682/? E/Camera2ClientBase﹕ initialize: Camera 0: unable to initialize device: No such device (-19)
04-02 21:19:27.308 193-1682/? E/CameraService﹕ connectFinishUnsafe: Could not initialize client from HAL module.
04-02 21:19:27.308 193-1682/? I/Camera2Client﹕ Camera 0: Closed
04-02 21:19:27.309 193-1682/? I/Camera2ClientBase﹕ Closed Camera 0. Client was: com.google.android.GoogleCamera (PID 22932, UID 10042)
04-02 21:19:27.313 193-1682/? W/AudioFlinger﹕ session id 116 not found for pid 22932
04-02 21:19:27.317 193-1682/? W/AudioFlinger﹕ session id 117 not found for pid 22932
04-02 21:19:27.318 22932-22979/? W/CameraBase﹕ An error occurred while connecting to camera: 0
04-02 21:19:27.318 22932-22979/? E/CAM2PORT_AndCamAgntImp﹕ RuntimeException during CameraAction[OPEN_CAMERA] at CameraState[1]
java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.<init>(Camera.java:497)
at android.hardware.Camera.open(Camera.java:342)
at com.android.ex.camera2.portability.AndroidCameraAgentImpl$CameraHandler.handleMessage(AndroidCameraAgentImpl.java:370)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
04-02 21:19:27.371 22932-23015/? D/OpenGLRenderer﹕ Use EGL_SWAP_BEHAVIOR_PRESERVED: true
04-02 21:19:27.377 22932-22932/? D/Atlas﹕ Validating map...
04-02 21:19:27.381 724-1360/? V/WindowManager﹕ Adding window Window{312f9c81 u0 com.google.android.GoogleCamera/com.android.camera.CameraLauncher} at 3 of 10 (before Window{15bd6123 u0 Starting com.google.android.GoogleCamera})
04-02 21:19:27.387 22932-22932/? W/CAM_CameraActivity﹕ Camera open failure: HIST_ID0_-1_1_HEND
04-02 21:19:27.387 22932-22932/? E/CAM_Util﹕ Show fatal error dialog
04-02 21:19:27.402 724-2689/? V/WindowManager﹕ Adding window Window{302ae167 u0 com.google.android.GoogleCamera/com.android.camera.CameraLauncher} at 4 of 11 (before Window{15bd6123 u0 Starting com.google.android.GoogleCamera})
04-02 21:19:27.406 22932-22932/? D/WearableClient﹕ WearableClientImpl.onPostInitHandler: done
04-02 21:19:27.431 22932-23015/? I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 01/14/15, ab0075f, Id3510ff6dc
04-02 21:19:27.432 22932-23015/? I/OpenGLRenderer﹕ Initialized EGL, version 1.4
04-02 21:19:27.444 22932-23015/? D/OpenGLRenderer﹕ Enabling debug mode 0
04-02 21:19:27.487 22932-22932/? I/CAM_UsageStats﹕ PlayLogger.onLoggerConnected
04-02 21:19:27.512 724-2689/? D/WifiService﹕ acquireWifiLockLocked: WifiLock{NlpWifiLock type=2 [email protected]}
04-02 21:19:27.516 22932-22932/? I/CAM_PhotoModule﹕ onPreviewUIReady
04-02 21:19:27.516 22932-22932/? I/CAM_PhotoModule﹕ attempted to start preview before camera device
04-02 21:19:27.518 724-851/? E/WifiStateMachine﹕ WifiStateMachine CMD_START_SCAN source 10007 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=10:fe:ed:4e:a3:ae RSSI=-47
04-02 21:19:27.574 724-819/? I/ActivityManager﹕ Displayed com.google.android.GoogleCamera/com.android.camera.CameraLauncher: +790ms
Please HELP, it's really annoying
Best regards.

meranto said:
The issue arises when using face unlock. It somehow breaks the camera and the face unlock itself after a short while until you reboot it. I'm not sure if this happens with everyone or only with specific configurations, but for sure disabling face unlock has solved this for me.
So please be a bit more thorough in your advice....
Click to expand...
Click to collapse
Nope..
https://code.google.com/p/android/i... Owner Summary Stars&groupby=&sort=&id=160609
has a lot of people who didn't use face unlock and still experienced the issue.

Replay
Hi meranto,
thanks for the replay. I did not use face unlock and the issue still show up

Related

Can't connect to camera problem

Camera works few days when i do a clean install of original rom. Or sometimes witrh custom rom. But after few days or hours camera starts closing. With original rom/ruu it doesn't say anything but custom rom says "can't connect to camera" and camera closes. Factory reset with original rom works sometimes but not allways. I have tried wiping cahce etc, fix permissions, other camera apps, clean install, w/ and w/o sd-card. Allways the same. Camera stops working.
Here is logcat:
http://pastebin.com/KrAT91wm
I made new logcat. Trying to make it shorter. http://pastebin.com/HkFwwMu0 This is with Viper ROM.
Is this the problem? How to solve it?
PHP:
W/mm-camera( 160): whichCamera no 2nd camera
I/mm-camera( 160): set sensor selection :0
D/mm-camera( 160): mm_camera_init, open FD: -1
E/mm-camera( 160): mm_camera_init: controlFd is invalid No such file or directory FD: -1
E/QualcommCameraHardwareZSL( 160): startCamera: mm_camera_init failed:
E/QualcommCameraHardwareZSL( 160): createInstance: startCamera failed!
E/CameraService( 160): Could not open camera 0: -1
I/CameraService( 160): Destroying camera 0

[Discussion] "Unfortunately, System UI has stopped."

I've gotten the error message "Unfortunately, System UI has stopped" twice now. The first time, I got around it by re-installing my ROM (something I'd rather not try again, because of how many contacts and data I keep on my phone and how long restoring everything takes). The second time, opening a specific app (Gallery in my case) stopped the errors. I have an SGH-T989 running TWRP 2.6.3.0 and BlackLiquid 2.9.2.
I've found people suggest all of the following as potential fixes:
Force closing specific apps (one that came up frequently was "FaceLock").
Wiping the system UI cache.
Fixing permissions with CWM.
And to add my own personal experience (as mentioned above):
Opening a specific app.
When I encountered the following, I also attempted the following, all of which failed:
Wiping the phone cache in TWRP 2.6.3.0.
Wiping the dalvik-cache in TWRP 2.6.3.0.
Backing up the internal SD, wiping it, restoring the ROM sans cache.
Fixing permissions using TWRP 2.6.3.0.
So, tl;dr - What, if any, consistent, generic reason is there for system UI to crash? (i.e. consistently throw the error message "Unfortunately, System UI has stopped.")
Original post 2013/10/09 08:43PM
Hi, I've been persistently getting the error message "Unfortunately, System UI has stopped" whenever my phone is on. I got annoyed enough with it that I just wiped my phone and re-installed the ROM I had, but that was a rather tedious process that I'd rather not run through again if I encountered it.
I have a Samsung Galaxy S2 T-Mobile (model SGH-T989) with TWRP 2.6.3.0 and BlackLiquid 2.9.2.
I first started having problems with my phone (not the System UI problem) earlier in the day when trying to enter data in fields using Google Chrome - the keyboard would not appear when I selected a text field. In an attempt to fix this, I installed Google Keyboard, which led to no success. From that point on, features would occasionally crash, until at some point later on in the day, as a result of no particular incident that I can recall, I started receiving this error message ("Unfortunately, System UI has stopped"). The notification reappeared within seconds of closing it, and whenever I rebooted my phone, the delay between notifications only increased slightly, and after a minute or so, the notification would refresh almost instantly.
Uninstalling Google Keyboard did not help. I could not clear the System UI cache. Rebooting did nothing except, as mentioned, temporarily increase the time between notification. After dropping my phone once though (not intentionally) and rebooting, it was fine for a few seconds, but then crashed (in all other instances it crashed on startup) - this lasted maybe two reboots.
I ultimately elected to use TWRP to backup my files, perform a system wipe, and then reinstall BlackLiquid. This seems to have fixed my issues, but I'd like to have an idea of any fixes that people are aware of.
Google and searching xda and similar forums told me that:
This error is not isolated to BlackLiquid/LiquidSmooth, but prevalent across all ROMs, including stock ROMs.
Certain apps, e.g. "Face Lock" have a tendency to cause this issue; force closing them will work.
Wiping the System UI cache may work.
Does anyone have any other fixes or reasons this happens? Or possibly for future reference, a set of diagnostics I could run? (I'm new to Android development - I just rooted my phone this past weekend.)
Original follow-up post 2013/10/22 11:43PM
When I first made this thread, I had just reflashed my phone and installed a new ROM to get around the issue as a quick and dirty fix.
Unfortunately, the problem has resurfaced, and in this instance, no app was updated or changed to cause this issue - it just happened spontaneously happened again.
I still have TWRP 2.6.3.0 installed, and none of the following have worked:
- Wiping the cache.
- Wiping the dalvik-cache.
- Fixing permissions.
Research tells me that the "Fix Permissions" option has been since removed from CWM as it is now obsolete.
I would like to note that when I reboot my phone, I will get the "Unfortunately..." error message at the lock screen (the system UI will appear in the background and then crash), but when I use the power/lock button to lock my phone/turn off the screen and turn the screen back on (turning the screen back on can take 5-10s), it does stop the message from occurring at the lock screen (i.e. until I can enter my PIN).
Does anyone have any other solutions?
Mostly wrong permissions fix permissions n wipe cache via Clock Work Mod
Sent from my Xperia Live with Walkman using xda app-developers app
Recurring Problem
When I first made this thread, I had just reflashed my phone and installed a new ROM to get around the issue as a quick and dirty fix.
Unfortunately, the problem has resurfaced, and in this instance, no app was updated or changed to cause this issue - it just happened spontaneously happened again.
I still have TWRP 2.6.3.0 installed, and none of the following have worked:
- Wiping the cache.
- Wiping the dalvik-cache.
- Fixing permissions.
Research tells me that the "Fix Permissions" option has been since removed from CWM as it is now obsolete.
I would like to note that when I reboot my phone, I will get the "Unfortunately..." error message at the lock screen (the system UI will appear in the background and then crash), but when I use the power/lock button to lock my phone/turn off the screen and turn the screen back on (turning the screen back on can take 5-10s), it does stop the message from occurring at the lock screen (i.e. until I can enter my PIN).
Does anyone have any other solutions?
Thnx
Brainjitzu
Before installing the rom again also try formating system in mount option in recovery hopefully your problem will be resolved .
Sent from my X10S using xda app-developers app
After opening Gallery (the stock app), the problem seems to have gone away - I haven't had the problem for about 18h now.
Does anyone have any idea why this is the case?
Accidental duplicate post, sorry.
Notifications has stopped
me too .
anybody solved ??
I'm bumping this thread because it's an annoying problem. I have a Lenovo P780 and tried different roms, but still I always get this error after some time. I discovered something weird. When I connect my phone to my PC via usb, the error disappears and everything, even the taskbar thing on the top. When I disconnect it, sadly the error returns.
A possible solution.
I have this issue too, but in my case the issue was caused by a wrong formatted card:
I created by mistake a logical partition, instead primary partition on my card.
Is important also to check in this case your SD card, try to power off, remove it the SD card from the device (phone/table) and power on the device without the SD card.
If that is fixe it, then that is the cause in your case too.
In my case is about an Sony Xperia V (LT25i) and below is a a piece of my log cat:
Code:
05-21 18:25:13.552: W/MountService(829): getVolumeState(/storage/sdcard1): Unknown volume
05-21 18:25:13.552: E/AndroidRuntime(1393): FATAL EXCEPTION: main
05-21 18:25:13.552: E/AndroidRuntime(1393): java.lang.RuntimeException: Unable to create service com.sonyericsson.usbux.service.UsbService: java.lang.IllegalArgumentException
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2651)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.app.ActivityThread.access$1600(ActivityThread.java:150)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.os.Looper.loop(Looper.java:213)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.app.ActivityThread.main(ActivityThread.java:5225)
05-21 18:25:13.552: E/AndroidRuntime(1393): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 18:25:13.552: E/AndroidRuntime(1393): at java.lang.reflect.Method.invoke(Method.java:525)
05-21 18:25:13.552: E/AndroidRuntime(1393): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:741)
05-21 18:25:13.552: E/AndroidRuntime(1393): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
05-21 18:25:13.552: E/AndroidRuntime(1393): at dalvik.system.NativeStart.main(Native Method)
05-21 18:25:13.552: E/AndroidRuntime(1393): Caused by: java.lang.IllegalArgumentException
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.os.Parcel.readException(Parcel.java:1448)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.os.Parcel.readException(Parcel.java:1395)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.os.storage.IMountService$Stub$Proxy.getVolumeState(IMountService.java:241)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.os.storage.StorageManager.getVolumeState(StorageManager.java:564)
05-21 18:25:13.552: E/AndroidRuntime(1393): at com.sonyericsson.usbux.service.SdCard.getState(SdCard.java:94)
05-21 18:25:13.552: E/AndroidRuntime(1393): at com.sonyericsson.usbux.service.UsbNotifications.<init>(UsbNotifications.java:60)
05-21 18:25:13.552: E/AndroidRuntime(1393): at com.sonyericsson.usbux.service.UsbService.onCreate(UsbService.java:214)
05-21 18:25:13.552: E/AndroidRuntime(1393): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2641)
05-21 18:25:13.552: E/AndroidRuntime(1393): ... 10 more
05-21 18:25:13.582: I/ActivityManager(829): Start proc com.sonymobile.gpssatellitesnotification for broadcast com.sonymobile.gpssatellitesnotification/.GpsSatellitesListener: pid=1523 uid=10058 gids={50058, 1028}
05-21 18:25:13.612: I/ActivityManager(829): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.sonyericsson.initialbootsetup/.HomeActivity} from pid 0
05-21 18:25:13.622: W/ContextImpl(829): Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1481 android.bluetooth.BluetoothA2dp.<init>:164 android.bluetooth.BluetoothAdapter.getProfileProxy:1169 android.media.AudioService$AudioServiceBroadcastReceiver.onReceive:4280 android.app.LoadedApk$ReceiverDispatcher$Args.run:770
05-21 18:25:13.622: V/WiredAccessoryManager(829): init()
05-21 18:25:13.812: I/ActivityManager(829): Start proc com.sonyericsson.android.bootinfo:remote for service com.sonyericsson.android.bootinfo/.MiscTaService: pid=1553 uid=1000 gids={41000, 1015, 1028, 3002, 3001, 3003, 3007, 1021, 3004, 3005, 1000, 3009, 1023}
05-21 18:25:13.812: I/ActivityManager(829): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10008000 cmp=com.sonyericsson.setupwizard/.SetupWizardEntry (has extras)} from pid 1365
05-21 18:25:13.853: I/ActivityManager(829): Start proc android.process.acore for content provider com.android.providers.contacts/.SemcCallLogProvider: pid=1563 uid=10010 gids={50010, 1028}
05-21 18:25:13.863: I/ActivityManager(829): Start proc com.google.android.gms for broadcast com.google.android.gms/com.google.android.location.internal.NlpNetworkProviderSettingsUpdateReceiver: pid=1569 uid=10050 gids={50050, 3003, 2001, 1007, 3006, 1028, 1015, 3002, 3001}
05-21 18:25:13.913: I/ActivityManager(829): START u0 {cmp=com.sonyericsson.setupwizard/.screens.ImportantInformationScreen} from pid 1286
05-21 18:25:13.943: E/ActivityThread(1208): Failed to find provider info for com.sonymobile.settings.illumination
05-21 18:25:13.973: E/ActivityThread(1208): Failed to find provider info for com.sonymobile.settings.illumination
05-21 18:25:13.973: E/ActivityThread(1208): Failed to find provider info for com.sonymobile.settings.illumination
05-21 18:25:14.263: W/MountService(829): getVolumeState(/storage/usbdisk): Unknown volume
05-21 18:25:14.263: E/AndroidRuntime(1117): FATAL EXCEPTION: main
05-21 18:25:14.263: E/AndroidRuntime(1117): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.IllegalArgumentException
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2651)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.app.ActivityThread.access$1600(ActivityThread.java:150)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.os.Looper.loop(Looper.java:213)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.app.ActivityThread.main(ActivityThread.java:5225)
05-21 18:25:14.263: E/AndroidRuntime(1117): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 18:25:14.263: E/AndroidRuntime(1117): at java.lang.reflect.Method.invoke(Method.java:525)
05-21 18:25:14.263: E/AndroidRuntime(1117): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:741)
05-21 18:25:14.263: E/AndroidRuntime(1117): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
05-21 18:25:14.263: E/AndroidRuntime(1117): at dalvik.system.NativeStart.main(Native Method)
05-21 18:25:14.263: E/AndroidRuntime(1117): Caused by: java.lang.IllegalArgumentException
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.os.Parcel.readException(Parcel.java:1448)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.os.Parcel.readException(Parcel.java:1395)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.os.storage.IMountService$Stub$Proxy.getVolumeState(IMountService.java:241)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.os.storage.StorageManager.getVolumeState(StorageManager.java:564)
05-21 18:25:14.263: E/AndroidRuntime(1117): at com.android.systemui.usb.StorageNotification.checkUsbStorageState(StorageNotification.java:107)
05-21 18:25:14.263: E/AndroidRuntime(1117): at com.android.systemui.usb.StorageNotification.<init>(StorageNotification.java:96)
05-21 18:25:14.263: E/AndroidRuntime(1117): at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.<init>(PhoneStatusBarPolicy.java:182)
05-21 18:25:14.263: E/AndroidRuntime(1117): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:497)
05-21 18:25:14.263: E/AndroidRuntime(1117): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:100)
05-21 18:25:14.263: E/AndroidRuntime(1117): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2641)
05-21 18:25:14.263: E/AndroidRuntime(1117): ... 10 more
@nandude I suspect the SD card in your case too, because when you connect the phone to PC normally the SD card is mounted on the PC and is not scanned by the phone, but once you disconnect your phone from PC the SD card is scanned again. Try to change how is attached the SD card to PC (MTP or MSC).
Try my workaround. http://forum.xda-developers.com/showthread.php?t=2759479
Never underestimate a kid whose poor in cash but rich in time.
Actually I found out what caused me this error. When the battery drains lower than 20%, the battery icon or the numbers should change color or something. Well, in my case there was some problem with it, so it just gave the System UI error. That was why when I plugged it in, the error disappeared. At least now I know when will that error show up.
nandude said:
Actually I found out what caused me this error. When the battery drains lower than 20%, the battery icon or the numbers should change color or something. Well, in my case there was some problem with it, so it just gave the System UI error. That was why when I plugged it in, the error disappeared. At least now I know when will that error show up.
Click to expand...
Click to collapse
Thanks for this information. I've been searching for hints regarding this issue that causes System UI has stopped. I will observe this in my custom ROM.
nandude said:
Actually I found out what caused me this error. When the battery drains lower than 20%, the battery icon or the numbers should change color or something. Well, in my case there was some problem with it, so it just gave the System UI error. That was why when I plugged it in, the error disappeared. At least now I know when will that error show up.
Click to expand...
Click to collapse
Definitely not my issue then lol. Ahhh can't get rid of this damm systemui pop up error.
nandude said:
Actually I found out what caused me this error. When the battery drains lower than 20%, the battery icon or the numbers should change color or something. Well, in my case there was some problem with it, so it just gave the System UI error. That was why when I plugged it in, the error disappeared. At least now I know when will that error show up.
Click to expand...
Click to collapse
The same case with my lenovo a3000. The message pop up when it reaches 15% of battery. That happened when i installed rooted apps but i cant figure out what is that app that cause my device in failure. The last option i got is to reflash the rom. :crying:
Ragkhuza said:
Try my workaround. http://forum.xda-developers.com/showthread.php?t=2759479
Never underestimate a kid whose poor in cash but rich in time.
Click to expand...
Click to collapse
I had this issue too and tried wiping the cache and the Dalvik cache but no joy. The only thing that resolved it was reflash with the stock rom that was already running on my Galaxy Note 4 SM-M910F
mine N9005 running omega rom (4.4.2) - not sure what caused it - i installed few apps, connect with gear, etc etc then got this issue., only when i long press the two soft buttons! (ie to get recent apps)
i tried every methods from google to fix: None works. cant believe it is so easy to mess with android...
can i just dirty flash the same rom? lazy to do clean install
tones160 said:
Definitely not my issue then lol. Ahhh can't get rid of this damm systemui pop up error.
Click to expand...
Click to collapse
I had this issue after i rooted my note 2 and installed DN4, it came with some stock third party apps that were integrated into the system as it was a custom rom. I think the app that i got rid off that caused the system ui pop up making it impossible to use the phone. It was some custom battery app which would have an icon displayed instead of the regular samsung battery. I tried the cache wipe, davlik nothing worked kept getting the error on boot up. Finally i just factory re-set, re-flashed DN4 and everything works fine now. I would assume the error is due to deleting a certain app that's integrated into the os.
look for a stable build which will compatible to your device
Dear Sir,
i ported ios 8 (mt6582) & install it in karbonn Titanium S4 Plus(mt6582) via twrp that is also a ported twrp by me , & file flash successfully but when it power on it there are many massages shown again & again that "unfortunately process com.android.systemui has stopped." & it pop up again & again so plz tell me how i can fix this reply fast plzz. my email for contact : [email protected]
And another problem when i off screen by power button then it never wakes up by again taping power button then i have to restart it . plz help,,,, i port this rom very difficultly plzz help me.

aosp kitkat4.4 nexus 7(deb) not boot

hi all:
i download aosp kitkat4.4 source codes from google website. i compiled the code. i got the ROM.but when i flash the ROM to my device nexus 7(deb). it cannot boot.
from the log. i found that following error log. the sentence "couldn't find an OpenGL ES implementation" maybe cause the fatal question.
any advices is welcomed !
thank
brian
02-10 08:37:07.375: E/QCOMKeyMaster(17633): failed to load qseecom library
02-10 08:37:07.375: E/keystore(17633): could not open keymaster device in keystore (Operation not permitted)
02-10 08:37:07.375: E/keystore(17633): keystore keymaster could not be initialized; exiting
02-10 08:37:07.405: A/libEGL(17630): couldn't find an OpenGL ES implementation
02-10 08:37:07.405: A/libc(17630): Fatal signal 6 (SIGABRT) at 0x000044de (code=-6), thread 17630 (surfaceflinger)
02-10 08:37:07.575: E/msm8960_platform(17632): platform_init: DLOPEN failed for libacdbloader.so
02-10 08:37:07.575: E/msm8960_platform(17632): platform_init: DLOPEN failed for libcsd-client.so
02-10 08:37:07.575: E/MonoPipe(17632): Failed to fetch local time frequency when constructing a MonoPipe (res = -32). getNextWriteTimestamp calls will be non-functional

[Q] Google play services crash IDK?

Hi
I updated my Google Play services to latest and I have been getting this notification when I go to Internet wifi or mobile data.
authorization problem if the problem persists please log in and log out and try it again.
I do not want to make factory reset until CM12 comes out.
here is logcat
Code:
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
E/wpa_supplicant( 2513): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/WifiStateMachine( 794): Unexpected BatchedScanResults :null
E/wpa_supplicant( 2513): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/ConnectivityService( 794): Unexpected mtu value: [email protected]
E/PlayEventLogger( 3088): Invalid device id 9cb3889439509678
E/PhoneMonitor( 3153): onOtaspChanged old =0, new =3
E/AudioManagerAndroid( 3182): BLUETOOTH permission is missing!
E/AudioManagerAndroid( 3385): BLUETOOTH permission is missing!
F/ActivityManager( 794): Service ServiceRecord{42866038 u0 com.google.android.music/.net.NetworkMonitor} in process ProcessRecord{42e61648 3088:com.google.android.music:main/u0a65} not same as in map: null
F/ActivityManager( 794): Service ServiceRecord{427a3950 u0 com.google.android.music/.preferences.MusicPreferenceService$MusicPreferenceServiceBinder} in process ProcessRecord{42e61648 3088:com.google.android.music:main/u0a65} not same as in map: null
E/AuthorizationBluetoothService( 1571): Proximity feature is not enabled.
E/GCoreFlp( 1608): Bound FusedProviderService with LocationManager
E/AudioManagerAndroid( 3758): BLUETOOTH permission is missing!
E/dalvikvm( 3798): Could not find class 'android.app.Notification$Action$Builder', referenced from method f.a
E/dalvikvm( 3798): Could not find class 'android.app.RemoteInput[]', referenced from method f.a
E/SQLiteLog( 3798): (1) no such table: mmsconfig
E/Babel ( 3798): canonicalizeMccMnc: invalid mccmnc nullnull
P.S: I have removed google play services and updated it back still this problem is there. Then when I change my language to English notification stays in my language
EDIT: It is pure stock no Root or anything!
Same error
I have the same error "PlayEventLogger( 3088): Invalid device id" on my Moto G 1st gen

Android IPC binder throwing "failed to retrieve pid" in Samsung Galaxy S6 Nougat 7.0

Android IPC binder throwing "failed to retrieve pid" in Samsung Galaxy S6 Nougat 7.0
Hi,
1). I just updated my Samsung Galaxy S6 device to Nougat 7.0.
2). Then after i rooted the phone, put the device into SELINUX permissive mode by doing the following command.
setenforce 0
3).Downloaded and compiled "SM-G920I_SWA_NN_Opensource" from opensource.samsung.com site.
4).Flash the kernel image using mkbootimg
5).Then i installed my android test application which calls IPC binder native service methods (testservice) from JNI (IPC client). For the first time after installation, application is able to get the testservice binder object if i called as below in JNI file,
binder = sm->getService(android::String16("testservice"));
6).But from the second time onwards i am getting the following error,
09-14 19:42:51.217 3177 3177 E ServiceManager: SELinux: getpidcon(pid=0) failed to retrieve pid context.
09-14 19:42:51.218 9675 10155 I ServiceManager: Waiting for service testservice...
09-14 19:42:51.422 3721 6035 D TelephonyManager: getAllCellInfo : Caller (PID / UID / TID): 3721 / 1000 / 6035
09-14 19:42:52.220 3177 3177 E ServiceManager: SELinux: getpidcon(pid=0) failed to retrieve pid context.
09-14 19:42:52.221 9675 10155 I ServiceManager: Waiting for service testservice..
Getting the above logs continuously even though the testservice is running in the background.
Please help to sort out the issue.
Hello sr4shantan,
Were you able to resolve the issue? I am facing similar issue on Samsung GS7 Edge phone after upgrading to Nougat 7.0. Any pointers to help resolve the issue would be appreciated.
Thanks
sr4shantan said:
Hi,
1). I just updated my Samsung Galaxy S6 device to Nougat 7.0.
2). Then after i rooted the phone, put the device into SELINUX permissive mode by doing the following command.
setenforce 0
3).Downloaded and compiled "SM-G920I_SWA_NN_Opensource" from opensource.samsung.com site.
4).Flash the kernel image using mkbootimg
5).Then i installed my android test application which calls IPC binder native service methods (testservice) from JNI (IPC client). For the first time after installation, application is able to get the testservice binder object if i called as below in JNI file,
binder = sm->getService(android::String16("testservice"));
6).But from the second time onwards i am getting the following error,
09-14 19:42:51.217 3177 3177 E ServiceManager: SELinux: getpidcon(pid=0) failed to retrieve pid context.
09-14 19:42:51.218 9675 10155 I ServiceManager: Waiting for service testservice...
09-14 19:42:51.422 3721 6035 D TelephonyManager: getAllCellInfo : Caller (PID / UID / TID): 3721 / 1000 / 6035
09-14 19:42:52.220 3177 3177 E ServiceManager: SELinux: getpidcon(pid=0) failed to retrieve pid context.
09-14 19:42:52.221 9675 10155 I ServiceManager: Waiting for service testservice..
Getting the above logs continuously even though the testservice is running in the background.
Please help to sort out the issue.
Click to expand...
Click to collapse

Categories

Resources