[Pixel2] Help me diagnose android.process.media using 100%CPU - Android Q&A, Help & Troubleshooting

Hi,
I was trying to find out why my Pixel2 [stock, unrooted android Pie] battery gets used soo quickly. Reboot didn't resolve anything.
The battery info page in the settings itself doesn't really show any info. However, if I run 'top' in an adb shell, it seems that android.process.media is consuming all of 1 CPU (in kernel space, this is why it might not show up in the battery usage report) :
Tasks: 707 total, 1 running, 704 sleeping, 0 stopped, 0 zombie
Mem: 3744240k total, 3666632k used, 77608k free, 73852k buffers
Swap: 524284k total, 151760k used, 372524k free, 1559284k cached
800%cpu 11%user 1%nice 102%sys 684%idle 1%iow 0%irq 0%sirq 0%host
PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS
20289 u0_a34 20 0 3.5G 75M 37M S 99.3 2.0 101:16.55 android.process.media
27121 shell 20 0 11M 2.9M 1.6M R 6.3 0.0 0:00.34 top
2203 u0_a12 16 -4 4.3G 266M 175M S 6.3 7.2 10:38.35 com.google.android.gms
19180 u0_i11 20 0 1.0G 56M 43M S 4.3 1.5 5:38.55 com.android.chrome:sandboxed_process0
609 system 12 -8 2.0G 17M 12M S 4.3 0.4 7:42.78 surfaceflinger
25632 root 20 0 0 0 0 S 1.0 0.0 0:03.31 [kworker/u16:5]
Here's the logcat, grepping for relevant info (process name, user name & PID) :
$ grep 'android.process.media\|u0.\?a34\|20289\|Mtp' logcat.txt
11-05 17:55:47.336 1157 1169 I ActivityManager: Killing 14978:android.process.media/u0a34 (adj 906): empty #17
11-05 19:42:17.127 1157 1202 I ActivityManager: Start proc 20289:android.process.media/u0a34 for broadcast com.android.providers.media/.MtpReceiver
11-05 19:43:42.676 1157 1202 I ActivityManager: Start proc 21970:com.android.mtp/u0a34 for content provider com.android.mtp/.MtpDocumentsProvider
11-05 19:52:49.336 1157 1472 I ActivityManager: Killing 21970:com.android.mtp/u0a34 (adj 906): empty #17
11-05 21:10:35.679 20289 20310 E MtpServer: request read returned -1, errno: 108
11-05 21:10:56.904 20289 20289 D MtpService: starting MTP server in MTP mode with storage /storage/emulated/0 unlocked as user 0
11-05 21:10:56.910 20289 20289 V MtpService: Adding MTP storage:/storage/emulated/0
11-05 21:11:18.360 20289 26156 E MtpServer: request read returned -1, errno: 108
11-05 21:11:18.960 20289 20289 D MtpService: starting MTP server in PTP mode with storage /storage/emulated/0 unlocked as user 0
11-05 21:11:18.965 20289 20289 V MtpService: Adding MTP storage:/storage/emulated/0
11-05 21:11:29.673 20289 26170 E MtpServer: request read returned -1, errno: 108
11-05 21:11:30.223 20289 20289 D MtpService: starting MTP server in MTP mode with storage /storage/emulated/0 unlocked as user 0
11-05 21:11:30.227 20289 20289 V MtpService: Adding MTP storage:/storage/emulated/0
11-05 21:12:12.101 20289 26176 E MtpServer: request read returned -1, errno: 108
11-05 21:12:51.644 20289 20289 D MtpService: starting MTP server in MTP mode with storage /storage/emulated/0 as user 0
11-05 21:12:58.994 20289 26357 E MtpServer: request read returned -1, errno: 108
11-05 21:12:59.584 20289 20289 D MtpService: starting MTP server in MTP mode with storage /storage/emulated/0 unlocked as user 0
11-05 21:12:59.588 20289 20289 V MtpService: Adding MTP storage:/storage/emulated/0
11-05 21:15:44.399 20289 26367 E MtpServer: request read returned -1, errno: 108
11-05 21:15:44.413 20289 20297 W System : A resource failed to call close.
11-05 21:15:44.413 20289 20297 W System : A resource failed to call close.
11-05 21:15:44.414 20289 20297 I chatty : uid=10034(com.android.providers.media) FinalizerDaemon identical 2 lines
11-05 21:15:44.414 20289 20297 W System : A resource failed to call close.
11-05 21:15:44.989 20289 20289 D MtpService: starting MTP server in MTP mode with storage /storage/emulated/0 unlocked as user 0
11-05 21:15:45.001 20289 20289 V MtpService: Adding MTP storage:/storage/emulated/0

Related

[Q] Sense Gingerbread

Do anyone think it is possible to run Sense + Gingerbread on our aria ?
or
can we just flash Wildfire S Rom in our aria ? cause the hardware is very similar !
zhuoyang said:
Do anyone think it is possible to run Sense + Gingerbread on our aria ?
or
can we just flash Wildfire S Rom in our aria ? cause the hardware is very similar !
Click to expand...
Click to collapse
The leaked Wildfire S ROM that is suppose to have Gingerbread + Sense appears to need more space allocated to the /system partition than the Aria currently has. My attempts to build a custom ROM using the Wildfire S ROM pieces have all failed when flashing the /system partition.
they have one booted on the legend
try using that one?
yeah, legend have booted wildfire s rom so our aria sure can!
just need to try legend rom works on our aria!
its not just that might need kernel changes too to get it to boot.
in the thread he said its the same kernel that the leak came with
drowningchild said:
in the thread he said its the same kernel that the leak came with
Click to expand...
Click to collapse
Hi drowningchild, can we have that link? I have flashed a version of the ROM, basically I deleted a lot of "bloat-ware", but I didn't boot...maybe kernel changes will be necessary...eitherway I would like to try that version...thanks.
http://forum.xda-developers.com/showthread.php?t=987251&page=2
drowningchild said:
http://forum.xda-developers.com/showthread.php?t=987251&page=2
Click to expand...
Click to collapse
Trying this install now . . . .
Did normal install (wipe/...)
Clockwork install -
Reboot -
Just frozen on the HTC screen (white) - had to pull battery and recovery back.
script is supposed to be edify did you use cwm3?
plus sdcard wont work unless you replace the vold.fstab in /system/etc
drowningchild said:
script is supposed to be edify did you use cwm3?
plus sdcard wont work unless you replace the vold.fstab in /system/etc
Click to expand...
Click to collapse
Hmm, isn't the CM7 upgrade script edify-ed already ? according to the syntax I've seen, it looks to me that is the case....I may be completely wrong though...
I was able to flash the zip file using CWR 2.5.0.1. without problems, I just couldn't get pass the "HTC" white screen.
Then I changed vold.fstab file and the boot.img file with the ones the CM7 ROM comes with and it got up to the "quietly brilliant" boot animation, but then it starts looping...according to this it may seem like we would not need CWR3 to have it flashed, but we may need to look at the kernel or whatever it causing the loop...
I avow as of today I do not have the knowledge to do this, so I leave it up to you more experienced guys...let me know if you want my zip file...
Btw, I just plugged in my data cable and I get a root shell display, logcat displays a lot of information very similar to the one I got when trying to install Gene Pole's Liberated ROM without having wiped data...and yes, just in case you ask yourselves I have wiped data, cache, sd-ext, dalvik, etc, all that can be wiped before I flashed...
For example I get this running a couple of commands while the boot animation is looping
# mount
mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
tmpfs /app-cache tmpfs rw,relatime,size=8192k 0 0
/dev/block/mtdblock3 /system yaffs2 ro,relatime 0 0
/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
# df
df
/dev: 149184K total, 32K used, 149152K available (block size 4096)
/mnt/asec: 149184K total, 0K used, 149184K available (block size 4096)
/mnt/obb: 149184K total, 0K used, 149184K available (block size 4096)
/app-cache: 8192K total, 0K used, 8192K available (block size 4096)
/system: 245760K total, 196104K used, 49656K available (block size 4096)
/data: 189568K total, 71132K used, 118436K available (block size 4096)
/cache: 40960K total, 1212K used, 39748K available (block size 4096)
*****************************
$$$ An extract of logcat messages $$$
*****************************
# logcat *:E
logcat *:E
--------- beginning of /dev/log/system
E/AndroidRuntime( 2242): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 2242): java.lang.NoClassDefFoundError: com.htc.res.HtcResources
E/AndroidRuntime( 2242): at com.android.internal.policy.impl.KeyguardUpdateMonitor.<init>(KeyguardUpdateMonitor.java:226)
E/AndroidRuntime( 2242): at com.android.internal.policy.impl.KeyguardViewMediator.<init>(KeyguardViewMediator.java:316)
E/AndroidRuntime( 2242): at com.android.internal.policy.impl.PhoneWindowManager.init(PhoneWindowManager.java:707)
E/AndroidRuntime( 2242): at com.android.server.WindowManagerService$PolicyThread.run(WindowManagerService.java:637)
E/AndroidRuntime( 2298): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 2298): java.lang.NoClassDefFoundError: com.htc.res.HtcResources
E/AndroidRuntime( 2298): at com.android.internal.policy.impl.KeyguardUpdateMonitor.<init>(KeyguardUpdateMonitor.java:226)
E/AndroidRuntime( 2298): at com.android.internal.policy.impl.KeyguardViewMediator.<init>(KeyguardViewMediator.java:316)
E/AndroidRuntime( 2298): at com.android.internal.policy.impl.PhoneWindowManager.init(PhoneWindowManager.java:707)
E/AndroidRuntime( 2298): at com.android.server.WindowManagerService$PolicyThread.run(WindowManagerService.java:637)
--------- beginning of /dev/log/main
E/AndroidRuntime( 2354): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 2354): java.lang.NoClassDefFoundError: com.htc.res.HtcResources
E/AndroidRuntime( 2354): at com.android.internal.policy.impl.KeyguardUpdateMonitor.<init>(KeyguardUpdateMonitor.java:226)
E/AndroidRuntime( 2354): at com.android.internal.policy.impl.KeyguardViewMediator.<init>(KeyguardViewMediator.java:316)
E/AndroidRuntime( 2354): at com.android.internal.policy.impl.PhoneWindowManager.init(PhoneWindowManager.java:707)
E/AndroidRuntime( 2354): at com.android.server.WindowManagerService$PolicyThread.run(WindowManagerService.java:637)
E/installd( 82): eof
E/installd( 82): failed to read size
E/HTC Acoustic( 2387): Fail to open /system/etc/AudioPara_ATT.csv -1.
E/AudioPolicyManagerBase( 2387): Could not open support_back_mic()
E/ATRecorder( 2389): com.htc.autotest.dlib.RecordEngine in loader [email protected]
E/Zygote ( 2389): setreuid() failed. errno: 17
E/BatteryService( 2410): wirelessOnlinePath not found
E/libEGL ( 2410): eglSetSwapRectangleANDROID:1816 error 3008 (EGL_BAD_DISPLAY)
E/SensorService( 2410): couldn't open device for module sensors (Invalid argument)
E/HtcBootAnimation( 2424): Could not find width.
E/HtcBootAnimation( 2424): Could not find height.
E/HtcBootAnimation( 2424): Could not find framerate.
E/HtcBootAnimation( 2424): Could not find part1.
E/HtcBootAnimation( 2424): Could not find part2.
E/HtcBootAnimation( 2424): Could not find part3.
E/HtcBootAnimation( 2424): Could not find audio.
E/HtcBootAnimation( 2424): sqlite3_open error
E/SurfaceFlinger( 2410): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
E/Database( 2410): dbopen(): path = /data/system/accounts.db, free size = 115
E/Database( 2410): dbopen(): path = /data/data/com.android.providers.settings/databases/settings.db, free size = 115
E/lights ( 2410): [LedErr] open_lights no mattched name bluetooth
E/LightsService( 2410): [LedErr] get_device bluetooth is reutrn NULL
E/lights ( 2410): [LedErr] open_lights no mattched name wifi
E/LightsService( 2410): [LedErr] get_device wifi is reutrn NULL
E/AndroidRuntime( 2410): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 2410): java.lang.NoClassDefFoundError: com.htc.res.HtcResources
E/AndroidRuntime( 2410): at com.android.internal.policy.impl.KeyguardUpdateMonitor.<init>(KeyguardUpdateMonitor.java:226)
E/AndroidRuntime( 2410): at com.android.internal.policy.impl.KeyguardViewMediator.<init>(KeyguardViewMediator.java:316)
E/AndroidRuntime( 2410): at com.android.internal.policy.impl.PhoneWindowManager.init(PhoneWindowManager.java:707)
E/AndroidRuntime( 2410): at com.android.server.WindowManagerService$PolicyThread.run(WindowManagerService.java:637)
E/installd( 82): eof
E/installd( 82): failed to read size
E/HTC Acoustic( 2443): Fail to open /system/etc/AudioPara_ATT.csv -1.
E/AudioPolicyManagerBase( 2443): Could not open support_back_mic()
E/ATRecorder( 2445): com.htc.autotest.dlib.RecordEngine in loader [email protected]
E/Zygote ( 2445): setreuid() failed. errno: 17
E/BatteryService( 2466): wirelessOnlinePath not found
E/libEGL ( 2466): eglSetSwapRectangleANDROID:1816 error 3008 (EGL_BAD_DISPLAY)
E/SensorService( 2466): couldn't open device for module sensors (Invalid argument)
E/HtcBootAnimation( 2480): Could not find width.
E/HtcBootAnimation( 2480): Could not find height.
E/HtcBootAnimation( 2480): Could not find framerate.
E/HtcBootAnimation( 2480): Could not find part1.
E/HtcBootAnimation( 2480): Could not find part2.
E/HtcBootAnimation( 2480): Could not find part3.
E/HtcBootAnimation( 2480): Could not find audio.
E/SurfaceFlinger( 2466): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
E/HtcBootAnimation( 2480): sqlite3_open error
E/Database( 2466): dbopen(): path = /data/system/accounts.db, free size = 115
E/Database( 2466): dbopen(): path = /data/data/com.android.providers.settings/databases/settings.db, free size = 115
E/lights ( 2466): [LedErr] open_lights no mattched name bluetooth
E/LightsService( 2466): [LedErr] get_device bluetooth is reutrn NULL
E/lights ( 2466): [LedErr] open_lights no mattched name wifi
E/LightsService( 2466): [LedErr] get_device wifi is reutrn NULL
E/AlarmManager( 2466): Delay 1st clock 60 seconds 1300420920000:1300420977260
E/AndroidRuntime( 2466): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 2466): java.lang.NoClassDefFoundError: com.htc.res.HtcResources
E/AndroidRuntime( 2466): at com.android.internal.policy.impl.KeyguardUpdateMonitor.<init>(KeyguardUpdateMonitor.java:226)
E/AndroidRuntime( 2466): at com.android.internal.policy.impl.KeyguardViewMediator.<init>(KeyguardViewMediator.java:316)
E/AndroidRuntime( 2466): at com.android.internal.policy.impl.PhoneWindowManager.init(PhoneWindowManager.java:707)
E/AndroidRuntime( 2466): at com.android.server.WindowManagerService$PolicyThread.run(WindowManagerService.java:637)
E/installd( 82): eof
E/installd( 82): failed to read size
E/HTC Acoustic( 2499): Fail to open /system/etc/AudioPara_ATT.csv -1.
E/AudioPolicyManagerBase( 2499): Could not open support_back_mic()
E/ATRecorder( 2501): com.htc.autotest.dlib.RecordEngine in loader [email protected]
E/Zygote ( 2501): setreuid() failed. errno: 17
E/BatteryService( 2523): wirelessOnlinePath not found
E/libEGL ( 2523): eglSetSwapRectangleANDROID:1816 error 3008 (EGL_BAD_DISPLAY)
E/SensorService( 2523): couldn't open device for module sensors (Invalid argument)
E/SurfaceFlinger( 2523): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
E/HtcBootAnimation( 2537): Could not find width.
E/HtcBootAnimation( 2537): Could not find height.
E/HtcBootAnimation( 2537): Could not find framerate.
E/HtcBootAnimation( 2537): Could not find part1.
E/HtcBootAnimation( 2537): Could not find part2.
E/HtcBootAnimation( 2537): Could not find part3.
E/HtcBootAnimation( 2537): Could not find audio.
E/HtcBootAnimation( 2537): sqlite3_open error
E/Database( 2523): dbopen(): path = /data/system/accounts.db, free size = 115
E/Database( 2523): dbopen(): path = /data/data/com.android.providers.settings/databases/settings.db, free size = 115
E/lights ( 2523): [LedErr] open_lights no mattched name bluetooth
E/LightsService( 2523): [LedErr] get_device bluetooth is reutrn NULL
E/lights ( 2523): [LedErr] open_lights no mattched name wifi
E/LightsService( 2523): [LedErr] get_device wifi is reutrn NULL
E/AndroidRuntime( 2523): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 2523): java.lang.NoClassDefFoundError: com.htc.res.HtcResources
E/AndroidRuntime( 2523): at com.android.internal.policy.impl.KeyguardUpdateMonitor.<init>(KeyguardUpdateMonitor.java:226)
E/AndroidRuntime( 2523): at com.android.internal.policy.impl.KeyguardViewMediator.<init>(KeyguardViewMediator.java:316)
E/AndroidRuntime( 2523): at com.android.internal.policy.impl.PhoneWindowManager.init(PhoneWindowManager.java:707)
E/AndroidRuntime( 2523): at com.android.server.WindowManagerService$PolicyThread.run(WindowManagerService.java:637)
E/installd( 82): eof
E/installd( 82): failed to read size
E/HTC Acoustic( 2556): Fail to open /system/etc/AudioPara_ATT.csv -1.
E/AudioPolicyManagerBase( 2556): Could not open support_back_mic()
E/ATRecorder( 2558): com.htc.autotest.dlib.RecordEngine in loader [email protected]
E/Zygote ( 2558): setreuid() failed. errno: 17
E/BatteryService( 2579): wirelessOnlinePath not found
E/libEGL ( 2579): eglSetSwapRectangleANDROID:1816 error 3008 (EGL_BAD_DISPLAY)
E/SensorService( 2579): couldn't open device for module sensors (Invalid argument)
E/SurfaceFlinger( 2579): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
E/HtcBootAnimation( 2593): Could not find width.
E/HtcBootAnimation( 2593): Could not find height.
E/HtcBootAnimation( 2593): Could not find framerate.
E/HtcBootAnimation( 2593): Could not find part1.
E/HtcBootAnimation( 2593): Could not find part2.
E/HtcBootAnimation( 2593): Could not find part3.
E/HtcBootAnimation( 2593): Could not find audio.
E/HtcBootAnimation( 2593): sqlite3_open error
Click to expand...
Click to collapse
Like I've said before its not configured for the liberty. It is for the legend. Here is the kernel config.
jznomoney said:
Like I've said before its not configured for the liberty. It is for the legend. Here is the kernel config.
Click to expand...
Click to collapse
Yup, you have; that is why I used the CM7 boot.img instead of the one that came in that zip file...it is now up to some more experienced fellow to jump in...
how would you get the touch sensitive buttons on our liberty to work?
So? What's new? Did it work?
Doesn't CyanogenMod v7.0.3 run Gingerbread?
christoplin said:
Doesn't CyanogenMod v7.0.3 run Gingerbread?
Click to expand...
Click to collapse
Yes, but not with sense. I think the topic here was gingerbread with sense.
Sent from my cm7 Aria.
They have it going on the Mytouch3G/Magic also:
http://forum.xda-developers.com/showthread.php?t=1025330
any ideal to port to our aria??

[Q] need help with analysing alogcat File, please

Hi folks,
I have a problem with my s2. After going into sleep the screen turns off and everything seems to be fine. After five minutes not doing anything the screen goes on for about three seconds and then turns off again. This happens about five times and then the screen stats black again. After another five minutes... Same thing going on again
My device runs on stock room xila2, Android 2.3.6, is rooted and runs on a kernel from @hellcat. So far everything worked like a charm, I had not experienced any problems to this point neither did I change anything to my setting nor did I install anything new.
I attach a log file. I used a filter once which says "screen_on" and indeed I can see that every time the screen turns on there is an error like "e/glasslockscreenmusicwidget" but I can't help myself knowing what this wants to tell me.
So I would appreciate any kind of help here.
Thanks!
Edit: have to upload the log later. Doesn't work from cell phone obviously...
here's an error log.
you can see clearly where the screen turns on, but i don't know why
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
02-19 13:23:32.995 E/BatteryService( 3008): TMU status = 0
02-19 13:23:36.190 E/SurfaceFlinger( 3008): GL error 0x0506
02-19 13:23:36.571 E/lights ( 3008): write_int : /sys/class/backlight/pwm-backlight/brightness 0
02-19 13:23:36.601 E/power ( 3008): *** set_screen_state 0
02-19 13:23:36.606 E/lights ( 3008): write_int : /sys/devices/virtual/misc/melfas_touchkey/brightness 2
02-19 13:24:13.445 E/BatteryService( 3008): TMU status = 0
02-19 13:24:53.525 E/BatteryService( 3008): TMU status = 0
02-19 13:25:34.161 E/BatteryService( 3008): TMU status = 0
02-19 13:26:14.545 E/BatteryService( 3008): TMU status = 0
02-19 13:26:54.891 E/BatteryService( 3008): TMU status = 0
02-19 13:27:34.996 E/BatteryService( 3008): TMU status = 0
02-19 13:28:15.116 E/BatteryService( 3008): TMU status = 0
02-19 13:28:55.206 E/BatteryService( 3008): TMU status = 0
02-19 13:29:35.315 E/BatteryService( 3008): TMU status = 0
02-19 13:30:12.100 E/power ( 3008): *** set_screen_state 1
02-19 13:30:12.175 E/lights ( 3008): write_int : /sys/class/backlight/pwm-backlight/brightness 30
02-19 13:30:13.565 E/lights ( 3008): write_int : /sys/devices/virtual/misc/melfas_touchkey/brightness 2
02-19 13:30:15.446 E/BatteryService( 3008): TMU status = 0
02-19 13:30:16.191 E/PowerManagerService( 3008): CurLock p:2 mPS:3
02-19 13:30:17.190 E/SurfaceFlinger( 3008): GL error 0x0506
02-19 13:30:17.576 E/lights ( 3008): write_int : /sys/class/backlight/pwm-backlight/brightness 0
02-19 13:30:17.611 E/power ( 3008): *** set_screen_state 0
02-19 13:30:17.626 E/lights ( 3008): write_int : /sys/devices/virtual/misc/melfas_touchkey/brightness 2
02-19 13:30:17.686 E/GlassLockScreenMusicWidget( 3008): onReceive() : intent=Intent { act=android.intent.action.SCREEN_ON flg=0x40000000 }
02-19 13:30:17.716 E/GlassLockScreenMusicWidget( 3008): onReceive() : intent=Intent { act=android.intent.action.SCREEN_OFF flg=0x40000000 }
02-19 13:30:18.151 E/power ( 3008): *** set_screen_state 1
02-19 13:30:18.171 E/lights ( 3008): write_int : /sys/class/backlight/pwm-backlight/brightness 30
02-19 13:30:18.346 E/GlassLockScreenMusicWidget( 3008): onReceive() : intent=Intent { act=android.intent.action.SCREEN_ON flg=0x40000000 }
02-19 13:30:22.241 E/PowerManagerService( 3008): CurLock p:2 mPS:3
02-19 13:30:27.626 E/KeyguardViewMediator( 3008): Phone is boot completed. so can broadcast
02-19 13:30:27.636 E/MTPRx ( 3456): In MtpReceiverandroid.intent.action.USER_PRESENT
02-19 13:30:27.646 E/MTPRx ( 3456): file kieswifi.dat is not found
02-19 13:30:27.646 E/MTPRx ( 3456): Battery charging. plugType = 0
02-19 13:30:27.646 E/MTPRx ( 3456): AC charging. Dont lauch MTP APP
anyone? i really want to find out what the log is trying to tell me

ERRORS IN ROMPORTING logcat attached

XDA's.
i had ported a rom to my lg optimus l7 and i find these errors which were not possible to solve
i have atteched the logcat
the main error was that audio was not working
i got that the problem was with media process and audiopolicy
here is the log cat of the error,these error occures when playing a ringtone in setttingd menu
android version is 4.3
and base rom is CM 10.2
ported rom is Cyanfox
please try to help me solving this problem
LOGCAT
Code:
11-05 23:03:59.129: W/AudioPolicyManager(2284): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0
11-05 23:03:59.129: W/AudioPolicyManager(2284): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0
11-05 23:03:59.129: W/AudioPolicyManager(2284): getOutput() could not find output for stream 1, samplingRate 44100,format 1, channels 1, flags 4
11-05 23:03:59.129: E/AudioTrack(506): Could not get audio output for stream type 1
11-05 23:03:59.139: E/SoundPool(506): Error creating AudioTrack
11-05 23:03:59.139: I/AudioService(506): Remote Control registerMediaButtonIntent() for PendingIntent{41e7d3d8: PendingIntentRecord{41c15920 com.google.android.music broadcastIntent}}
11-05 23:03:59.149: I/LocalDevicePlayback(2821): play: currentPos=5
11-05 23:03:59.149: I/AudioService(506): AudioFocus requestAudioFocus() from [email protected][email protected]93528
11-05 23:03:59.159: I/AudioService(506): AudioFocus abandonAudioFocus(): removing entry for [email protected][email protected]
11-05 23:03:59.159: E/MediaPlayer(2632): pause called in state 8
11-05 23:03:59.159: E/MediaPlayer(2632): error (-38, 0)
11-05 23:03:59.369: D/dalvikvm(506): GC_FOR_ALLOC freed 823K, 21% free 11309K/14228K, paused 89ms, total 91ms
11-05 23:03:59.509: D/BufferProgressListener(3215): updateCurrentSong: [361, DEFAULT]
11-05 23:03:59.529: I/LocalDevicePlayback(2821): open: id=[361, DEFAULT], playPos=5, fromUser=true, track=Track 2
11-05 23:03:59.559: D/LocalAsyncMediaPlayer(2821): Event logging MUSIC_START_PLAYBACK_REQUESTED: 361/: local playback
11-05 23:03:59.559: D/DownloadQueue(2821): cancelAndPurge: owner=MUSIC_PLAYBACK, policy=2
11-05 23:03:59.569: D/DownloadQueue(2821): getNextTask(): wait
11-05 23:03:59.609: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:03:59.609: D/AwesomePlayer(2284): Before reset_l
11-05 23:03:59.609: D/AwesomePlayer(2284): printFileName fd(41) -> /storage/sdcard1/songs/melle melle.mp3
11-05 23:03:59.619: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:03:59.619: E/AwesomePlayer(2284): LPAPlayer::Clip duration setting of less than 30sec not supported, defaulting to 60sec
11-05 23:03:59.619: E/QC_MP3DEC(2284): component_init: device open fail Loaded -->Invalid
11-05 23:03:59.619: E/QC_MP3DEC(2284): mp3 device already closed
11-05 23:03:59.619: E/QC_MP3DEC(2284): Killing timer thread...
11-05 23:03:59.619: E/QC_MP3DEC(2284): Timer thread exited
11-05 23:03:59.619: E/QC_MP3DEC(2284): Component-deinit m_drv_fd = -1
11-05 23:03:59.619: E/QC_MP3DEC(2284): OMX MP3 component destroyed
11-05 23:03:59.639: E/AwesomePlayer(2284): LPAPlayer::Clip duration setting of less than 30sec not supported, defaulting to 60sec
11-05 23:03:59.649: W/AudioPolicyManager(2284): getOutput() could not find output for stream 3, samplingRate 0,format 0, channels 3, flags 0
11-05 23:03:59.649: E/AwesomePlayer(2284): AudioPlayer start error
11-05 23:03:59.649: E/MetadataRetrieverClient(2284): failed to extract an album art
11-05 23:03:59.649: E/MediaPlayer(2821): error (-19, 0)
11-05 23:03:59.649: E/MediaPlayer(2821): Error (-19,0)
11-05 23:03:59.679: W/LocalDevicePlayback(2821): Failed to open MusicId ([361, DEFAULT]) for playback
11-05 23:03:59.679: D/StreamingClient(2821): currenStreamingPlayEnded: current=null next=null
11-05 23:03:59.699: D/BufferProgressListener(3215): updateCurrentSong: [361, DEFAULT]
11-05 23:03:59.769: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c800 successful
11-05 23:03:59.769: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c748 successful
11-05 23:03:59.769: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c678 successful
11-05 23:03:59.769: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c4c0 successful
11-05 23:03:59.779: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0ce00 successful
11-05 23:03:59.779: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0ccd8 successful
11-05 23:03:59.779: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0cb98 successful
11-05 23:03:59.779: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c988 successful
11-05 23:03:59.809: D/MultiPlayer(2821): Error: -19,0
11-05 23:03:59.969: D/dalvikvm(506): GC_FOR_ALLOC freed 446K, 19% free 11543K/14228K, paused 84ms, total 85ms
11-05 23:04:00.009: D/BufferProgressListener(3215): updateCurrentSong: [361, DEFAULT]
11-05 23:04:00.119: E/MediaPlayer(2632): Error (-38,0)
11-05 23:04:00.119: E/QC_MP3DEC(2284): Execute flush for both I/p O/p port
11-05 23:04:00.119: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c072e0 successful
11-05 23:04:00.119: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c05108 successful
11-05 23:04:00.119: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41bf73d8 successful
11-05 23:04:00.119: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c153b8 successful
11-05 23:04:00.139: E/QC_MP3DEC(2284): Killing timer thread...
11-05 23:04:00.139: E/QC_MP3DEC(2284): Timer thread exited
11-05 23:04:00.139: E/QC_MP3DEC(2284): Component-deinit m_drv_fd = -1
11-05 23:04:00.139: E/QC_MP3DEC(2284): COMPONENT DEINIT...
11-05 23:04:00.139: E/QC_MP3DEC(2284): OMX MP3 component destroyed
11-05 23:04:00.429: D/dalvikvm(2821): GC_FOR_ALLOC freed 509K, 13% free 3760K/4316K, paused 24ms, total 26ms
11-05 23:04:00.459: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:04:00.469: E/MetadataRetrieverClient(2284): failed to extract an album art
11-05 23:04:00.509: I/Diag_Lib(134): rpc_handle_rpc_call: for Xid: 3a1, Prog: 31000000, Vers: d17ed9ea, Proc: 00000014
11-05 23:04:00.509: I/Diag_Lib(134): rpc_handle_rpc_call: Find Status: 0 Xid: 3a1
11-05 23:04:00.509: I/ONCRPC(134): oncrpc_proxy_handle_cmd_rpc_call: Dispatching xid: 3a1
11-05 23:04:00.509: I/ONCRPC(134): oncrpc_xdr_reply_msg_start: Prog: 00000000, Ver: 00000000, Proc: 00000000 Xid: 000003a1
11-05 23:04:00.509: I/ONCRPC(134): oncrpc_msg_reply: Prog: 00000000, Ver: 00000000, Proc: 00000000 Xid: 000003a1
11-05 23:04:00.509: I/ONCRPC(134): oncrpc_proxy_handle_cmd_rpc_call: Dispatch returned for xid: 3a1
11-05 23:04:00.579: D/BufferProgressListener(3215): updateCurrentSong: null
11-05 23:04:00.699: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:04:00.699: E/MetadataRetrieverClient(2284): failed to extract an album art
11-05 23:04:00.749: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:04:00.749: E/MetadataRetrieverClient(2284): failed to extract an album art
11-05 23:04:00.779: I/BaseTrackListView(3215): Need to scroll to: 5 which is larger than the current list size: 0
11-05 23:04:01.269: D/AwesomePlayer(2284): Before reset_l
11-05 23:04:01.269: D/AwesomePlayer(2284): printFileName fd(17) -> /storage/sdcard1/songs/best of enrique/07 Enrique Iglesias - Miss You.mp3
11-05 23:04:01.319: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:04:01.339: E/AwesomePlayer(2284): LPAPlayer::Clip duration setting of less than 30sec not supported, defaulting to 60sec
11-05 23:04:01.339: E/QC_MP3DEC(2284): component_init[0x41c10710]component init: role = OMX.qcom.audio.decoder.mp3
if you need full logcat i can upload
Please Do help me in solving this

lineageOS: cannot use internal SD after factory reset: "Failed to find root"

lineageOS: cannot use internal SD after factory reset: "Failed to find root"
Hello all,
sorry for posting here, i'm not allowed to post at the peregrine forum section.
I have a Moto G 4G (LTE) peregrine which worked fine with the latest LineageOS 14.1. + twrp-3.1.1-0.
Then i made a factory reset because i wanted to gift it to my mother.
After that, no app could access the INTERNAL SD card for storing eg. pictures or downloads.
When you open the "Files" app, it crashes immediately.
Then logcat shows the output below.
I tried the following to no avail:
- reset with formating data, cache, etc (factory reset)
- reset with formating EVERYTHING, including /system, then reflashing lineage-14.1-20170811-nightly-peregrine-signed.zip and open_gapps-arm-7.1-nano-20170813.zip
- reset with formating EVERYTHING, including /system, then reflashing some other 7.1 ROM found here in the forum (cannot remember which)
- reset with formating EVERYTHING, including /system, then reflashing the original ROM XT1039_Retail_Germany_51_Untouched.zip
the original ROM was rather bad because the keyboard kept crashing and it was totally unusable. still no access to the internal SD card.
- messing with the directory structure:
/sdcard is a softlink to /storage/self/primary
/storage/self/primary is a softlink to /mnt/user/0/primary
/mnt/user/0/primary doesn't exist, it only goes as far as /mnt/user/0
so i tried different scripts from this thread https://forum.xda-developers.com/showthread.php?t=2211109 to create /mnt/user/0/primary at boot, which all didn't work.
it seems LOS 14.1 cannot run init scripts or user init scripts or whatever.
it didn't work.
also, the external SD card slot isn't reliable anymore, so that's out of the question as well.
I'm rather stuck!
can anybody help me?
any help is appreciated!
Thank you very much!
Code:
08-20 22:24:05.859 892 1873 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.documentsui/.LauncherActivity (has extras)} from uid 10028 on display 0
08-20 22:24:05.876 337 495 D audio_hw_primary: start_output_stream: enter: stream(0xb624e980)usecase(1: low-latency-playback) devices(0x2)
08-20 22:24:05.876 337 495 D audio_hw_primary: start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2)
08-20 22:24:05.876 337 495 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
08-20 22:24:05.876 337 495 W msm8974_platform: Codec backend bitwidth 16, samplerate 48000
08-20 22:24:05.876 337 495 D hardware_info: hw_info_append_hw_type : device_name = speaker-lite
08-20 22:24:05.876 337 495 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(14)
08-20 22:24:05.876 337 495 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0
08-20 22:24:05.876 337 495 D ACDB-LOADER: ACDB -> send_adm_topology
08-20 22:24:05.876 337 495 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
08-20 22:24:05.876 337 495 D ACDB-LOADER: ACDB -> send_audtable
08-20 22:24:05.877 337 495 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
08-20 22:24:05.877 337 495 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
08-20 22:24:05.877 337 495 D ACDB-LOADER: ACDB -> send_audvoltable
08-20 22:24:05.877 337 495 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE
08-20 22:24:05.877 337 495 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
08-20 22:24:05.877 337 495 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
08-20 22:24:05.890 337 495 D audio_hw_primary: select_devices: done
08-20 22:24:05.948 892 929 W BroadcastQueue: Permission Denial: broadcasting Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } from com.cyanogenmod.trebuchet (pid=1909, uid=10028) requires com.google.android.launcher.permiss
ion.RECEIVE_LAUNCH_BROADCASTS due to receiver com.google.android.gms/.icing.proxy.ApplicationLauncherReceiver
08-20 22:24:05.963 892 1226 I ActivityManager: Start proc 4441:com.android.documentsui/u0a11 for activity com.android.documentsui/.LauncherActivity
08-20 22:24:05.965 892 929 W BroadcastQueue: Permission Denial: receiving Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$GmsExternalReceiver requires com.androi
d.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to sender com.cyanogenmod.trebuchet (uid 10028)
08-20 22:24:06.064 4441 4441 I art : Starting a blocking GC AddRemoveAppImageSpace
08-20 22:24:06.066 4441 4441 W System : ClassLoader referenced unknown path: /system/priv-app/DocumentsUI/lib/arm
08-20 22:24:06.214 892 911 I ActivityManager: Start proc 4472:com.android.externalstorage/u0a12 for content provider com.android.externalstorage/.ExternalStorageProvider
08-20 22:24:06.222 892 1074 I ActivityManager: START u0 {dat=//com.android.documentsui.launchControl flg=0x10280000 cmp=com.android.documentsui/.FilesActivity} from uid 10011 on display 0
08-20 22:24:06.279 4472 4472 I art : Starting a blocking GC AddRemoveAppImageSpace
08-20 22:24:06.280 4472 4472 W System : ClassLoader referenced unknown path: /system/priv-app/ExternalStorageProvider/lib/arm
08-20 22:24:06.331 4472 4472 D ExternalStorage: After updating volumes, found 0 active roots
08-20 22:24:06.358 892 911 I ActivityManager: Start proc 4490:com.android.mtp/u0a10 for content provider com.android.mtp/.MtpDocumentsProvider
08-20 22:24:06.432 4490 4490 I art : Starting a blocking GC AddRemoveAppImageSpace
08-20 22:24:06.514 892 1074 D VoldConnector: SND -> {9 appfuse mount 10010 4490 MtpDocumentsProvider}
08-20 22:24:06.528 892 979 D VoldConnector: RCV <- {200 9 AppFuse command succeeded}
08-20 22:24:06.633 4441 4441 W RestoreRootTask: Failed to find root: content://com.android.externalstorage.documents/root/home
08-20 22:24:06.679 4441 4511 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/09/15, 6cbbf7d, I3193f6e94a
08-20 22:24:06.685 4441 4511 I OpenGLRenderer: Initialized EGL, version 1.4
08-20 22:24:06.685 4441 4511 D OpenGLRenderer: Swap behavior 1
08-20 22:24:06.690 892 1074 I WindowManager: Failed to capture screenshot of Token{e3bfe3f ActivityRecord{a0dca5e u0 com.android.documentsui/.FilesActivity t14 f}} appWin=Window{7ef870e u0 com.android.documentsui/com.android.documentsui.FilesActivi
ty} drawState=1
08-20 22:24:06.766 892 1873 W InputMethodManagerService: Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
The solution was to format /data with ext4 instead of f2fs:
connect with adb while in TRWP, get the device name for /data, umount it, format with ext4, mount it again
Code:
df -h
umount /data
make_ext4fs /dev/block/mmcblk0p36
mount /data/
Then reboot

Error 0x20: Unable set property ctl.interface_start to vendor.qti.hardware.cacert

On different Android-10 custom ROMs with stock vendor I get this error message every second in logcat.
Code:
11-05 11:38:38.927 478 3080 W libc : Unable to set property "ctl.interface_start" to "[email protected]::IService/default": error code: 0x20
11-05 11:38:38.927 478 3080 E hwservicemanager: Failed to set property for starting [email protected]::IService/default
11-05 11:38:39.925 1095 1137 W ServiceManagement: Waited one second for [email protected]::IService/default
11-05 11:38:39.926 1095 1137 I ServiceManagement: getService: Trying again for [email protected]::IService/default...
This happens as soon as the location button (in quick settings) is turned on and doesn't stop when location is turned off.
PID 1095 is xtra-daemon.

Categories

Resources