[General Questions and Answers] Averagefoot:
So I have an LG K8 (2017) with this apparently well documented issue in Marshmallow where Android keeps trying to optimize one or more apps at boot, and takes forever to do so, often rebooting and then trying again, sometimes for hours on end. I'm not a firstworlder who can just get a new phone and be done with it, so I'd genuinely appreciate any guidance on how to fix this.

I enabled USB debugging and logged the phone while it boots, and the affected package seems to be 'googlequicksearchbox'. I'm not sure what this is, but it sounds like a part of Android, not something I can uninstall easily. Here are the relevant logs:

06-26 16:46:06.546 1840 1840 E installd: DexInv: --- END '/data/app/com.google.android.googlequicksearchbox-2/base.apk' --- status=0x000b, process failed

06-26 16:46:06.547 2443 2443 D PackageManager.DexOptimizer: dexopt package: /data/app/com.google.android.googlequicksearchbox-2/base.apk pkg=com.google.android.googlequicksearchbox - cost time = 273851 ms.

06-26 16:46:06.594 2443 2443 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/com.google.android.googlequicksearchbox-2/base.apk pkg=com.google.android.googlequicksearchbox isa=arm64 vmSafeMode=false debuggable=false oatDir = /data/app/com.google.android.googlequicksearchbox-2/oat

06-26 16:46:06.590 2587 2587 W dex2oat : type=1400 audit(0.0:89): avc: denied { module_request } for kmod="personality-8" scontext=u:r:dex2oat:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0

06-26 16:46:06.666 2587 2587 I dex2oat : Starting dex2oat.

06-26 16:46:06.765 288 1797 I BufferQueueProducer: [Android se está iniciando...](this:0x7fa1dd2780,id:14,api:1,p:2443,c:288) queueBuffer: fps=61.12 dur=1014.48 max=19.62 min=13.25

06-26 16:46:07.083 288 288 I SurfaceFlinger: [Built-in Screen (type:0)] fps:61.139503,dur:1014.07,max:18.02,min:14.76

06-26 16:46:07.285 1651 1662 I PerfService: PerfServiceNative_getPackName

06-26 16:46:07.780 288 1089 I BufferQueueProducer: [Android se está iniciando...](this:0x7fa1dd2780,id:14,api:1,p:2443,c:288) queueBuffer: fps=61.10 dur=1014.78 max=17.28 min=15.82

06-26 16:46:08.097 288 288 I SurfaceFlinger: [Built-in Screen (type:0)] fps:61.121483,dur:1014.37,max:16.57,min:16.12

06-26 16:46:08.286 1651 1662 I PerfService: PerfServiceNative_getPackName

06-26 16:46:08.794 288 396 I BufferQueueProducer: [Android se está iniciando...](this:0x7fa1dd2780,id:14,api:1,p:2443,c:288) queueBuffer: fps=61.11 dur=1014.63 max=16.87 min=15.91

06-26 16:46:09.112 288 288 I SurfaceFlinger: [Built-in Screen (type:0)] fps:61.114136,dur:1014.50,max:16.53,min:16.20

06-26 16:46:09.286 1651 1662 I PerfService: PerfServiceNative_getPackName

06-26 16:46:09.808 288 1089 I BufferQueueProducer: [Android se está iniciando...](this:0x7fa1dd2780,id:14,api:1,p:2443,c:288) queueBuffer: fps=61.14 dur=1014.02 max=16.75 min=15.89

06-26 16:46:10.126 288 288 I SurfaceFlinger: [Built-in Screen (type:0)] fps:61.119678,dur:1014.40,max:16.93,min:15.81

06-26 16:46:10.287 1651 1662 I PerfService: PerfServiceNative_getPackName

06-26 16:46:10.421 1867 1867 I sn : Retry 32

06-26 16:46:10.422 1867 1867 I sn : Fail to access err=2

06-26 16:46:10.422 1867 1867 I sn : Fail to access err=2

06-26 16:46:10.422 1867 1867 I sn : Fail to access err=2

06-26 16:46:10.422 1867 1867 I sn : Check all possible paths

06-26 16:46:10.553 1854 1854 I thermal_repeater: oh, queryMdThermalInfo (0)No such file or directory

06-26 16:46:10.558 1854 1854 I thermal_repeater: [recvMdThermalInfo] ret=5, strLen=127, ERROR

06-26 16:46:10.823 288 1089 I BufferQueueProducer: [Android se está iniciando...](this:0x7fa1dd2780,id:14,api:1,p:2443,c:288) queueBuffer: fps=61.08 dur=1014.99 max=17.03 min=16.01

06-26 16:46:11.141 288 288 I SurfaceFlinger: [Built-in Screen (type:0)] fps:61.103127,dur:1014.68,max:16.61,min:16.21

06-26 16:46:11.287 1651 1662 I PerfService: PerfServiceNative_getPackName

06-26 16:46:11.838 288 1797 I BufferQueueProducer: [Android se está iniciando...](this:0x7fa1dd2780,id:14,api:1,p:2443,c:288) queueBuffer: fps=61.13 dur=1014.28 max=16.99 min=15.90

06-26 16:46:11.911 288 524 W hwcomposer: [JOB] (0) Timed out waiting for vsync...

At this point hwcomposer begins to repeat this error message until the phone eventually reboots:

06-26 16:46:35.821 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1483/val=1)

06-26 16:46:35.853 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1485/val=1)

06-26 16:46:35.886 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1487/val=1)

06-26 16:46:35.918 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1489/val=1)

06-26 16:46:35.950 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1491/val=1)

06-26 16:46:35.982 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1493/val=1)

06-26 16:46:36.014 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1495/val=1)

06-26 16:46:36.047 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1497/val=1)

06-26 16:46:36.079 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1499/val=1)

06-26 16:46:36.111 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1501/val=1)

06-26 16:46:36.143 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1503/val=1)

06-26 16:46:36.176 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1505/val=1)

06-26 16:46:36.208 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1507/val=1)

06-26 16:46:36.240 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1509/val=1)

06-26 16:46:36.272 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1511/val=1)

06-26 16:46:36.304 288 524 W hwcomposer: [WKR] Timed out waiting for UICompThread_0 (cnt=1513/val=1)

After it tries again it may either boot successfully or fail again with the same error messages. Any ideas?

Enviado desde mi LG-X240 mediante Tapatalk