Adding GApps to OTA without rooting #260
-
I'd like to reproduce that I have a Spacewar device and started with crDroid so GApps have to be installed separately. How should I add GApps to But how should I add GApps to Simply mounting it and copying into the files would be enough? Is it possible to sign that modified
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Unless your device has a buggy bootloader, this is unfortunately impossible. With hardware attestation, To answer your questions specifically though: Mounting # Unpack AVB metadata
avbroot avb unpack -i system.img
# Mount and edit raw.img (which is system.img with the AVB metadata stripped out)
sudo mount system.img /some/mount/point
# Repack and sign the modified image
avbroot avb pack -o system.modified.img -k /path/to/avb.key
# Patch OTA zip and replace system.img
avbroot ota patch \
-i ota.zip \
--replace system system.modified.img \
<other patch args...> Note that some |
Beta Was this translation helpful? Give feedback.
Unless your device has a buggy bootloader, this is unfortunately impossible. With hardware attestation,
the bootloader reports four (unspoofable) fields containing details about the device state. It not only reports whether the bootloader is locked, but also the hash of the public key that was used for signing. If this doesn't match the stock OS, Google Play Integrity will not grant
MEETS_STRONG_INTEGRITY
.To answer your questions specifically though:
Mounting
system.img
and copying files is indeed the easiest way to do it. This is the full workflow that I would suggest, which will automatically take care of everything AVB-related (including signing and recomputi…