Skip to content

Instantly share code, notes, and snippets.

@shawngustaw
Last active October 15, 2017 16:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawngustaw/0d6161249538bb618624 to your computer and use it in GitHub Desktop.
Save shawngustaw/0d6161249538bb618624 to your computer and use it in GitHub Desktop.
How to Sideload Google Apps on CopperheadOS
Disclaimer: I am not associated with Copperhead and this is not supported by them WHATSOEVER, nor is this guaranteed to work.
This has worked for me though.
1. Download gapps from http://opengapps.org/
The Nexus 5 has uses ARM (not 64-bit) and cOS is currently running Android Marshmallow (6.0).
2. Download the latest version of TWRP (as of now v3.0)
https://dl.twrp.me/hammerhead/twrp-3.0.0-0-hammerhead.img.html
3. Enable usb debugging on N5
Settings -> About phone -> click on build number until Developer Options appears
Settings -> Developer Options -> Enable USB Debugging
4. In a terminal run `adb reboot bootloader`
Note: this may fail until you give permission on the device.
5. flash twrp
In a terminal run `fastboot flash recovery twrp-3.0.x.x-xxx.img`
navigate to recovery mode in bootloader
hold volume down and power to boot into TWRP
Note: if you have issues with this see the bottom here: https://twrp.me/devices/lgnexus5.html
6. In TWRP go to advanced and select ADB sideload
7. Swipe to start sideload and run `adb sideload open_gapps.zip`
8. Reboot the system
9. Google Apps currently doesn't have permission so run `adb shell` and grant permissions:
`pm grant com.google.android.setupwizard android.permission.READ_PHONE_STATE`
10. Go to settings -> Apps and select Show System and grant Google Play Services all permissions
If everything worked, you should be good to go.
If any apps crash you'll likely need to grant them permissions in this way.
Some apps can be fixed by redownloading them from the app store.
@MonsieurPlum
Copy link

Thank you !
Good idea but seems it doesn't work at this day for me with the last version of Copperhead Bullhead factory 01.05.2017.
No problem with the installation of GAPPS (nano for android 7.1 ARM64), by TWRP, but I tried many times to reboot after installing and I can see :
"Your device is corrupted, it can't be trusted and may work properly".
My nexus 5X still blocked on the google screen and the system didn't start."

@xmycroftx
Copy link

Yeah there's a warning re: this out there. If you try loading TWRP into memory only that might work, though if the goal is to oem-lock following configuration that may break this.

@BearChavez
Copy link

Does this still work for you on the latest builds? I have a Nexus 5X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment