GrapheneOS-Archive / legacy_bugtracker

See the new issue tracker for GrapheneOS at https://github.com/GrapheneOS/os_issue_tracker.
112 stars 11 forks source link

OpenGApps doesn't work (freeze at boot) #205

Closed xmikos closed 8 years ago

xmikos commented 8 years ago

I have tried sideloading OpenGApps (Nano version, via TWRP, without PackageInstallerGoogle - disabled via .gapps-config file).

First boot has worked (there were permissions problems as expected, but I have fixed those by allowing all). But on second boot, it started "Optimizing apps" again and then it froze at "Starting apps" after it. I have waited at least 30 minutes, but it still didn't do anything. Same on next boot (after power cycling).

I have also tried to wipe cache & dalvik cache (again without success).

I know GApps aren't officially supported, but could you please provide some help?

EDIT: This was on Nexus 5

thestinger commented 8 years ago

If you install an update, you need to sideload gapps again because you have a clean unaltered system partition again. Any chance that is the problem?

xmikos commented 8 years ago

@thestinger This was clean install. I have flashed Copperhead OS, then TWRP recovery, then OpenGApps. First boot OK, second (and every other) boot freeze.

In next run, I have also tried to first boot into Copperhead OS (this worked OK), then install OpenGApps. Result has been exactly the same.

thelifeofjay commented 8 years ago

@xmikos I can confirm that when sideloaded properly OpenGApps-mini works. We can't and don't support GApps on CopperheadOS.

thestinger commented 8 years ago

There's probably something useful in the logs from adb logcat. Maybe it's a problem that occurs on other ROMs too.

xmikos commented 8 years ago

I have tried whole process again. First thing I have noticed has been that launcher (home screen) did not work on first (working) boot after installing OpenGApps. It has been same before, but I thought that it is caused by disallowed permissions to Google Play Services and ignored it (because I would have allow them right away anyway).

Problem is that GApps are trying to run "setup wizard" which is replacing launcher, but it always crashes (because of disallowed permissions). I have gone through permissions more thoroughly this time and indeed found that setup wizard is missing some permissions (Contacts and Phone). After allowing them, it works.

One question though, isn't setup wizard part of AOSP and therefor Copperhead OS? Couldn't this be prevented in Copperhead OS default settings? Maybe I just don't fully understand Android 6 permissions model...

polyzen commented 8 years ago

@xmikos, these may help:

104

https://github.com/opengapps/opengapps/search?utf8=%E2%9C%93&q=setup+wizard

improvethings commented 8 years ago

04-26 09:09:35.562 809 1563 I ActivityManager: Start proc 12284:com.google.android.setupwizard/u0a58 for activity com.google.android.setupwizard/.SetupWizardActivity 04-26 09:09:35.569 12208 12278 D NativeLibraryUtils: Install completed successfully. count=14 extracted=0 04-26 09:09:35.688 12208 12294 I art : Thread[11,tid=12294,Native,Thread_=0x8ad10800,peer=0x12c74a00,"pool-1-thread-1"] recursive attempt to load library "/system/lib/libmedia_jni.so" 04-26 09:09:35.688 12208 12294 D MtpDeviceJNI: register_android_mtpMtpDevice 04-26 09:09:35.689 12208 12294 I art : Thread[11,tid=12294,Native,Thread=0x8ad10800,peer=0x12c74a00,"pool-1-thread-1"] recursive attempt to load library "/system/lib/libmedia_jni.so" 04-26 09:09:35.689 12208 12294 I art : Thread[11,tid=12294,Native,Thread*=0x8ad10800,peer=0x12c74a00,"pool-1-thread-1"] recursive attempt to load library "/system/lib/libmedia_jni.so" 04-26 09:09:35.692 277 277 E Drm : Failed to find drm plugin 04-26 09:09:35.693 12208 12294 W DG.WV : Widevine DRM not supported on this device 04-26 09:09:35.693 12208 12294 W DG.WV : android.media.UnsupportedSchemeException: Failed to instantiate drm object. 04-26 09:09:35.693 12208 12294 W DG.WV : at android.media.MediaDrm.native_setup(Native Method) 04-26 09:09:35.693 12208 12294 W DG.WV : at android.media.MediaDrm.(MediaDrm.java:215) 04-26 09:09:35.693 12208 12294 W DG.WV : at com.google.android.gms.droidguard.q.run(:com.google.android.gms:99) 04-26 09:09:35.693 12208 12294 W DG.WV : at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 04-26 09:09:35.693 12208 12294 W DG.WV : at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 04-26 09:09:35.693 12208 12294 W DG.WV : at java.lang.Thread.run(Thread.java:818) 04-26 09:09:35.746 12208 12235 I GoogleURLConnFactory: Using platform SSLCertificateSocketFactory 04-26 09:09:36.077 12284 12284 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10058 <<<<<< 04-26 09:09:36.081 12284 12284 D AndroidRuntime: CheckJNI is OFF 04-26 09:09:36.121 12284 12284 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat 04-26 09:09:36.156 12284 12284 I Radio-JNI: register_android_hardware_Radio DONE 04-26 09:09:36.178 12284 12284 D AndroidRuntime: Calling main entry com.android.internal.os.ExecInit 04-26 09:09:36.180 12284 12284 I SamplingProfilerIntegration: Profiling disabled. 04-26 09:09:36.277 12305 12305 E dex2oat : Failed to create oat file: /data/dalvik-cache/arm/system@priv-app@SetupWizard@SetupWizard.apk@classes.dex: Permission denied 04-26 09:09:36.277 12305 12305 I dex2oat : dex2oat took 1.083ms (threads: 4) 04-26 09:09:36.280 12284 12284 W art : Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm --instruction-set-features=smp,div,atomic_ldrd_strd --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=krait --instruction-set-features=default --dex-file=/system/priv-app/SetupWizard/SetupWizard.apk --oat-file=/data/dalvik-cache/arm/system@priv-app@SetupWizard@SetupWizard.apk@classes.dex) because non-0 exit status 04-26 09:09:36.367 12308 12308 I dex2oat : /system/bin/dex2oat --dex-file=/data/user/0/com.google.android.gms/app_fb/f.apk --oat-file=/data/user/0/com.google.android.gms/app_fb/f.dex 04-26 09:09:36.436 12308 12308 I dex2oat : dex2oat took 70.733ms (threads: 4) arena alloc=220KB java alloc=63KB native alloc=0B free=0B 04-26 09:09:36.442 12208 12235 W System : ClassLoader referenced unknown path: 04-26 09:09:36.451 12208 12235 D libEGL : loaded /vendor/lib/egl/libEGL_adreno.so 04-26 09:09:36.453 12208 12235 D libEGL : loaded /vendor/lib/egl/libGLESv1_CM_adreno.so 04-26 09:09:36.453 12284 12284 W System : ClassLoader referenced unknown path: /system/priv-app/SetupWizard/lib/arm 04-26 09:09:36.468 12208 12235 D libEGL : loaded /vendor/lib/egl/libGLESv2_adreno.so 04-26 09:09:36.476 12208 12235 I Adreno-EGL: : QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb 04-26 09:09:36.489 12284 12284 D AndroidRuntime: Shutting down VM 04-26 09:09:36.491 12284 12284 E AndroidRuntime: FATAL EXCEPTION: main 04-26 09:09:36.491 12284 12284 E AndroidRuntime: Process: com.google.android.setupwizard, PID: 12284 04-26 09:09:36.491 12284 12284 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.google.android.setupwizard.SetupWizardApplication: java.lang.SecurityException: addOnSubscriptionsChangedListener: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE. 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4710) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.app.ActivityThread.-wrap1(ActivityThread.java) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.android.internal.os.ExecInit.main(ExecInit.java:53) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: Caused by: java.lang.SecurityException: addOnSubscriptionsChangedListener: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE. 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1620) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1573) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.addOnSubscriptionsChangedListener(ITelephonyRegistry.java:500) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.telephony.SubscriptionManager.addOnSubscriptionsChangedListener(SubscriptionManager.java:424) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.google.android.setupwizard.carrier.PhoneMonitor.(PhoneMonitor.java:509) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.google.android.setupwizard.carrier.PhoneMonitor.initInstance(PhoneMonitor.java:70) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.google.android.setupwizard.SetupWizardApplication.onCreate(SetupWizardApplication.java:27) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: ... 10 more 04-26 09:09:36.491 12284 12284 E AndroidRuntime: Error reporting crash 04-26 09:09:36.491 12284 12284 E AndroidRuntime: java.lang.RuntimeException: Bad file descriptor 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.os.BinderProxy.transactNative(Native Method) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.os.BinderProxy.transact(Binder.java:503) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4425) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:90) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693) 04-26 09:09:36.491 12284 12284 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690) 04-26 09:09:36.491 12284 12284 I Process : Sending signal. PID: 12284 SIG: 9 04-26 09:09:36.550 809 1570 I ActivityManager: Process com.google.android.setupwizard (pid 12284) has died 04-26 09:09:36.550 809 1570 W ActivityManager: Force removing ActivityRecord{9679829 u0 com.google.android.setupwizard/.SetupWizardActivity t150}: app died, no saved state 04-26 09:09:36.566 809 1573 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@cb8043f attribute=null, token = android.os.BinderProxy@45081ef 04-26 09:09:36.606 12208 12235 I Adreno-EGL: : QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb 04-26 09:09:37.214 12090 12102 E DataBuffer: Internal data leak within a DataBuffer object detected! Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (internal object: com.google.android.gms.common.data.DataHolder@b5c6e68) 04-26 09:09:38.185 277 801 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback 04-26 09:09:38.185 277 801 D audio_hw_primary: disable_snd_device: snd_device(2: speaker) 04-26 09:09:38.576 12318 12318 D QSEECOMD: : qseecom listener services process entry PPID = 1 04-26 09:09:38.576 12318 12318 E QSEECOMD: : Listener: index = 0, hierarchy = 0 04-26 09:09:38.576 12318 12318 E QSEECOMD: : Init dlopen(librpmb.so, RLTD_NOW) is failed.... 04-26 09:09:38.577 12318 12318 E QSEECOMD: : ERROR: RPMB_INIT failed, shall not start listener services 04-26 09:09:38.660 12090 12090 I ConfigService: onDestroy 04-26 09:09:41.779 809 1564 I ActivityManager: Killing 5521:com.cyanogenmod.updater/u0a19 (adj 15): empty #17 04-26 09:09:47.673 12321 12321 D QSEECOMD: : qseecom listener services process entry PPID = 1 04-26 09:09:47.673 12321 12321 E QSEECOMD: : Listener: index = 0, hierarchy = 0 04-26 09:09:47.673 12321 12321 E QSEECOMD: : Init dlopen(librpmb.so, RLTD_NOW) is failed.... 04-26 09:09:47.673 12321 12321 E QSEECOMD: : ERROR: RPMB_INIT failed, shall not start listener services 04-26 09:09:57.747 12327 12327 D QSEECOMD: : qseecom listener services process entry PPID = 1 04-26 09:09:57.747 12327 12327 E QSEECOMD: : Listener: index = 0, hierarchy = 0 04-26 09:09:57.747 12327 12327 E QSEECOMD: : Init dlopen(librpmb.so, RLTD_NOW) is failed.... 04-26 09:09:57.747 12327 12327 E QSEECOMD: : ERROR: RPMB_INIT failed, shall not start listener services 04-26 09:10:04.994 809 829 I PowerManagerService: Going to sleep due to screen timeout (uid 1000)... 04-26 09:10:04.995 809 829 I PowerManagerService: Sleeping (uid 1000)... 04-26 09:10:05.534 809 829 V KeyguardServiceDelegate: onScreenTurnedOff() 04-26 09:10:05.598 809 827 I DisplayManagerService: Display device changed state: "Built-in Screen", OFF 04-26 09:10:05.598 188 188 D SurfaceFlinger: Set power mode=0, type=0 flinger=0x99f66000 04-26 09:10:05.598 188 188 D qdhwcomposer: hwc_blank: Blanking display: 0 04-26 09:10:05.871 188 188 D qdhwcomposer: hwc_blank: Done blanking display: 0 04-26 09:10:05.871 809 1061 D SurfaceControl: Excessive delay in setPowerMode(): 273ms 04-26 09:10:05.871 2988 2990 E ANDR-PERF-LOCK: Failed to apply optimization for resource: 4 level: 0 04-26 09:10:05.873 277 808 D audio_hw_primary: adev_set_parameters: enter: screen_state=off 04-26 09:10:05.874 809 1028 E WifiStateMachine: Fail to set up pno, want false now false 04-26 09:10:05.889 809 1084 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.google.android.setupwizard/.SetupWizardActivity} from uid 10017 on display 0 04-26 09:10:05.908 809 1084 I ActivityManager: Start proc 12331:com.google.android.setupwizard/u0a58 for activity com.google.android.setupwizard/.SetupWizardActivity 04-26 09:10:06.453 12331 12331 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10058 <<<<<< 04-26 09:10:06.457 12331 12331 D AndroidRuntime: CheckJNI is OFF 04-26 09:10:06.498 12331 12331 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat 04-26 09:10:06.535 12331 12331 I Radio-JNI: register_android_hardware_Radio DONE 04-26 09:10:06.555 12331 12331 D AndroidRuntime: Calling main entry com.android.internal.os.ExecInit 04-26 09:10:06.558 12331 12331 I SamplingProfilerIntegration: Profiling disabled. 04-26 09:10:06.656 12348 12348 E dex2oat : Failed to create oat file: /data/dalvik-cache/arm/system@priv-app@SetupWizard@SetupWizard.apk@classes.dex: Permission denied 04-26 09:10:06.656 12348 12348 I dex2oat : dex2oat took 1.089ms (threads: 4) 04-26 09:10:06.660 12331 12331 W art : Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm --instruction-set-features=smp,div,atomic_ldrd_strd --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=krait --instruction-set-features=default --dex-file=/system/priv-app/SetupWizard/SetupWizard.apk --oat-file=/data/dalvik-cache/arm/system@priv-app@SetupWizard@SetupWizard.apk@classes.dex) because non-0 exit status 04-26 09:10:06.807 12331 12331 W System : ClassLoader referenced unknown path: /system/priv-app/SetupWizard/lib/arm 04-26 09:10:06.839 12331 12331 D AndroidRuntime: Shutting down VM 04-26 09:10:06.841 12331 12331 E AndroidRuntime: FATAL EXCEPTION: main 04-26 09:10:06.841 12331 12331 E AndroidRuntime: Process: com.google.android.setupwizard, PID: 12331 04-26 09:10:06.841 12331 12331 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.google.android.setupwizard.SetupWizardApplication: java.lang.SecurityException: addOnSubscriptionsChangedListener: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE. 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4710) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.app.ActivityThread.-wrap1(ActivityThread.java) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at com.android.internal.os.ExecInit.main(ExecInit.java:53) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: Caused by: java.lang.SecurityException: addOnSubscriptionsChangedListener: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE. 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1620) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1573) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.addOnSubscriptionsChangedListener(ITelephonyRegistry.java:500) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.telephony.SubscriptionManager.addOnSubscriptionsChangedListener(SubscriptionManager.java:424) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at com.google.android.setupwizard.carrier.PhoneMonitor.(PhoneMonitor.java:509) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at com.google.android.setupwizard.carrier.PhoneMonitor.initInstance(PhoneMonitor.java:70) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at com.google.android.setupwizard.SetupWizardApplication.onCreate(SetupWizardApplication.java:27) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707) 04-26 09:10:06.841 12331 12331 E AndroidRuntime: ... 10 more 04-26 09:10:06.842 12331 12331 E AndroidRuntime: Error reporting crash 04-26 09:10:06.842 12331 12331 E AndroidRuntime: java.lang.RuntimeException: Bad file descriptor 04-26 09:10:06.842 12331 12331 E AndroidRuntime: at android.os.BinderProxy.transactNative(Native Method) 04-26 09:10:06.842 12331 12331 E AndroidRuntime: at android.os.BinderProxy.transact(Binder.java:503) 04-26 09:10:06.842 12331 12331 E AndroidRuntime: at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4425) 04-26 09:10:06.842 12331 12331 E AndroidRuntime: at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:90) 04-26 09:10:06.842 12331 12331 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693) 04-26 09:10:06.842 12331 12331 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690) 04-26 09:10:06.842 12331 12331 I Process : Sending signal. PID: 12331 SIG: 9 04-26 09:10:06.863 809 819 I ActivityManager: Process com.google.android.setupwizard (pid 12331) has died 04-26 09:10:06.880 809 819 I ActivityManager: Start proc 12351:com.google.android.setupwizard/u0a58 for activity com.google.android.setupwizard/.SetupWizardActivity 04-26 09:10:07.423 12351 12351 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10058 <<<<<< 04-26 09:10:07.427 12351 12351 D AndroidRuntime: CheckJNI is OFF 04-26 09:10:07.468 12351 12351 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat 04-26 09:10:07.503 12351 12351 I Radio-JNI: register_android_hardware_Radio DONE 04-26 09:10:07.523 12351 12351 D AndroidRuntime: Calling main entry com.android.internal.os.ExecInit 04-26 09:10:07.526 12351 12351 I SamplingProfilerIntegration: Profiling disabled. 04-26 09:10:07.604 12368 12368 E dex2oat : Failed to create oat file: /data/dalvik-cache/arm/system@priv-app@SetupWizard@SetupWizard.apk@classes.dex: Permission denied 04-26 09:10:07.604 12368 12368 I dex2oat : dex2oat took 880.729us (threads: 4) 04-26 09:10:07.606 12351 12351 W art : Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm --instruction-set-features=smp,div,atomic_ldrd_strd --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=krait --instruction-set-features=default --dex-file=/system/priv-app/SetupWizard/SetupWizard.apk --oat-file=/data/dalvik-cache/arm/system@priv-app@SetupWizard@SetupWizard.apk@classes.dex) because non-0 exit status 04-26 09:10:07.748 12351 12351 W System : ClassLoader referenced unknown path: /system/priv-app/SetupWizard/lib/arm 04-26 09:10:07.775 12371 12371 D QSEECOMD: : qseecom listener services process entry PPID = 1 04-26 09:10:07.775 12371 12371 E QSEECOMD: : Listener: index = 0, hierarchy = 0 04-26 09:10:07.775 12371 12371 E QSEECOMD: : Init dlopen(librpmb.so, RLTD_NOW) is failed.... 04-26 09:10:07.775 12371 12371 E QSEECOMD: : ERROR: RPMB_INIT failed, shall not start listener services 04-26 09:10:07.782 12351 12351 D AndroidRuntime: Shutting down VM 04-26 09:10:07.783 12351 12351 E AndroidRuntime: FATAL EXCEPTION: main 04-26 09:10:07.783 12351 12351 E AndroidRuntime: Process: com.google.android.setupwizard, PID: 12351 04-26 09:10:07.783 12351 12351 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.google.android.setupwizard.SetupWizardApplication: java.lang.SecurityException: addOnSubscriptionsChangedListener: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE. 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4710) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.app.ActivityThread.-wrap1(ActivityThread.java) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at com.android.internal.os.ExecInit.main(ExecInit.java:53) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: Caused by: java.lang.SecurityException: addOnSubscriptionsChangedListener: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE. 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1620) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1573) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.addOnSubscriptionsChangedListener(ITelephonyRegistry.java:500) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.telephony.SubscriptionManager.addOnSubscriptionsChangedListener(SubscriptionManager.java:424) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at com.google.android.setupwizard.carrier.PhoneMonitor.(PhoneMonitor.java:509) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at com.google.android.setupwizard.carrier.PhoneMonitor.initInstance(PhoneMonitor.java:70) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at com.google.android.setupwizard.SetupWizardApplication.onCreate(SetupWizardApplication.java:27) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707) 04-26 09:10:07.783 12351 12351 E AndroidRuntime: ... 10 more 04-26 09:10:07.784 12351 12351 E AndroidRuntime: Error reporting crash 04-26 09:10:07.784 12351 12351 E AndroidRuntime: java.lang.RuntimeException: Bad file descriptor 04-26 09:10:07.784 12351 12351 E AndroidRuntime: at android.os.BinderProxy.transactNative(Native Method) 04-26 09:10:07.784 12351 12351 E AndroidRuntime: at android.os.BinderProxy.transact(Binder.java:503) 04-26 09:10:07.784 12351 12351 E AndroidRuntime: at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4425) 04-26 09:10:07.784 12351 12351 E AndroidRuntime: at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:90) 04-26 09:10:07.784 12351 12351 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693) 04-26 09:10:07.784 12351 12351 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690) 04-26 09:10:07.785 12351 12351 I Process : Sending signal. PID: 12351 SIG: 9 04-26 09:10:08.053 809 822 W ActivityManager: Activity pause timeout for ActivityRecord{75451f8 u0 com.google.android.setupwizard/.SetupWizardActivity t151} 04-26 09:10:08.054 809 1084 I ActivityManager: Process com.google.android.setupwizard (pid 12351) has died 04-26 09:10:08.069 809 1084 I ActivityManager: Start proc 12373:com.google.android.setupwizard/u0a58 for activity com.google.android.setupwizard/.SetupWizardActivity 04-26 09:10:08.567 12373 12373 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10058 <<<<<< 04-26 09:10:08.571 12373 12373 D AndroidRuntime: CheckJNI is OFF 04-26 09:10:08.611 12373 12373 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat 04-26 09:10:08.647 12373 12373 I Radio-JNI: register_android_hardware_Radio DONE 04-26 09:10:08.667 12373 12373 D AndroidRuntime: Calling main entry com.android.internal.os.ExecInit 04-26 09:10:08.669 12373 12373 I SamplingProfilerIntegration: Profiling disabled. 04-26 09:10:08.744 12390 12390 E dex2oat : Failed to create oat file: /data/dalvik-cache/arm/system@priv-app@SetupWizard@SetupWizard.apk@classes.dex: Permission denied 04-26 09:10:08.744 12390 12390 I dex2oat : dex2oat took 841.563us (threads: 4) 04-26 09:10:08.746 12373 12373 W art : Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm --instruction-set-features=smp,div,atomic_ldrd_strd --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=krait --instruction-set-features=default --dex-file=/system/priv-app/SetupWizard/SetupWizard.apk --oat-file=/data/dalvik-cache/arm/system@priv-app@SetupWizard@SetupWizard.apk@classes.dex) because non-0 exit status 04-26 09:10:08.889 12373 12373 W System : ClassLoader referenced unknown path: /system/priv-app/SetupWizard/lib/arm 04-26 09:10:08.923 12373 12373 D AndroidRuntime: Shutting down VM 04-26 09:10:08.924 12373 12373 E AndroidRuntime: FATAL EXCEPTION: main 04-26 09:10:08.924 12373 12373 E AndroidRuntime: Process: com.google.android.setupwizard, PID: 12373 04-26 09:10:08.924 12373 12373 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.google.android.setupwizard.SetupWizardApplication: java.lang.SecurityException: addOnSubscriptionsChangedListener: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE. 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4710) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.app.ActivityThread.-wrap1(ActivityThread.java) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at com.android.internal.os.ExecInit.main(ExecInit.java:53) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: Caused by: java.lang.SecurityException: addOnSubscriptionsChangedListener: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE. 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1620) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1573) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.addOnSubscriptionsChangedListener(ITelephonyRegistry.java:500) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.telephony.SubscriptionManager.addOnSubscriptionsChangedListener(SubscriptionManager.java:424) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at com.google.android.setupwizard.carrier.PhoneMonitor.(PhoneMonitor.java:509) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at com.google.android.setupwizard.carrier.PhoneMonitor.initInstance(PhoneMonitor.java:70) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at com.google.android.setupwizard.SetupWizardApplication.onCreate(SetupWizardApplication.java:27) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707) 04-26 09:10:08.924 12373 12373 E AndroidRuntime: ... 10 more 04-26 09:10:08.925 12373 12373 E AndroidRuntime: Error reporting crash 04-26 09:10:08.925 12373 12373 E AndroidRuntime: java.lang.RuntimeException: Bad file descriptor 04-26 09:10:08.925 12373 12373 E AndroidRuntime: at android.os.BinderProxy.transactNative(Native Method) 04-26 09:10:08.925 12373 12373 E AndroidRuntime: at android.os.BinderProxy.transact(Binder.java:503) 04-26 09:10:08.925 12373 12373 E AndroidRuntime: at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4425) 04-26 09:10:08.925 12373 12373 E AndroidRuntime: at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:90) 04-26 09:10:08.925 12373 12373 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693) 04-26 09:10:08.925 12373 12373 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690) 04-26 09:10:08.925 12373 12373 I Process : Sending signal. PID: 12373 SIG: 9 04-26 09:10:08.990 809 819 I ActivityManager: Process com.google.android.setupwizard (pid 12373) has died

thestinger commented 8 years ago

Guidance on setting up gapps is outside the scope of this tracker. It's not officially supported. None of these issues are actually CopperheadOS-related. Using gapps on 6.0 is just painful due to runtime handling of dangerous permissions and the lack of a standalone solution to the problem in opengapps.