Skip to content

Instantly share code, notes, and snippets.

@rckclmbr
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rckclmbr/98eba72c755da650db5e to your computer and use it in GitHub Desktop.
Save rckclmbr/98eba72c755da650db5e to your computer and use it in GitHub Desktop.
# Download and extract the image
# This image can be any one of:
# https://developers.google.com/android/nexus/images
curl "https://dl.google.com/dl/android/aosp/occam-kot49h-factory-02e344de.tgz" | tar -xz
cd occam-kot49h
unzip image-occam-kot49h.zip
# Download simg2img.py, for creating a mountable image from system.img
curl -O "https://usefulshellscript.googlecode.com/svn/trunk/simg2img.py"
python simg2img.py system.img
mkdir sys
sudo mount -t ext4 -o loop tmp.img sys/
# Push the mounted images to the android device
adb push sys/app/BrowserProviderProxy.apk /system/app/
adb push sys/app/BrowserProviderProxy.odex /system/app/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment