Android/PreInstalledAPK: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:


cd mkzd
cd mkzd
cp SUGAR_IMG_PATH/32013o4.zd
mkdir imgs
mkdir imgs
cp kernel imgs/
cp ANDROID_IMG_PATH/kernel imgs/
cp ramdisk.img imgs/
cp ANDROID_IMG_PATH/ramdisk.img imgs/
cp system.img imgs/
cp ANDROID_IMG_PATH/system.img imgs/
cp userdata.tar.bz2 imgs/
cp ANDROID_IMG_PATH/userdata.tar.bz2 imgs/
sudo ./mkzd.sh
sudo ./mkzd.sh

Revision as of 23:49, 8 June 2014

Pre-installed APKs are packaged as a zip file in our build. If you would like to add/delete pre-installed APKs, it can be easily done by recreating zip file.

1. Download userdata.tar.bz2 file from our build directory

2. Prepare new userdata.tar.bz2 file

  mkdir userdata
  cd userdata/
  cp ~/Downloads/userdata.tar.bz2 ./
  tar -xvjpf userdata.tar.bz2
  cp XXX0.apk /data/apk/
  cp XXX1.apk /data/apk/
  .....
  rm -f userdata.tar.bz2 
  tar -jcvf userdata.tar.bz2 data

3. Download image build script

  git clone git://dev.laptop.org/users/quozl/mkzd
  cd mkzd
  make

4. Recreate zd image using your userdata.tar.bz2.

  cd mkzd 
  cp SUGAR_IMG_PATH/32013o4.zd
  mkdir imgs
  cp ANDROID_IMG_PATH/kernel imgs/
  cp ANDROID_IMG_PATH/ramdisk.img imgs/
  cp ANDROID_IMG_PATH/system.img imgs/
  cp ANDROID_IMG_PATH/userdata.tar.bz2 imgs/
  sudo ./mkzd.sh