Closed xmikos closed 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?
@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.
@xmikos I can confirm that when sideloaded properly OpenGApps-mini works. We can't and don't support GApps on CopperheadOS.
There's probably something useful in the logs from adb logcat
. Maybe it's a problem that occurs on other ROMs too.
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...
@xmikos, these may help:
https://github.com/opengapps/opengapps/search?utf8=%E2%9C%93&q=setup+wizard
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.
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.
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