lxc-android-config

Differences between revisions 5 and 6
Revision 5 as of 2014-09-18 13:37:44
Size: 789
Editor: lool
Comment:
Revision 6 as of 2014-09-18 13:40:23
Size: 793
Editor: lool
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
adb shell mount -o loop /data/system.img /mnt TARGET=/mnt
adb shell mount -o loop /data/system.img $TARGET
Line 19: Line 20:
adb shell mount /system
adb shell mount --bind /system /mnt
TARGET=/system
adb shell mount $TARGET
Line 23: Line 24:
adb push lxc-android-config_*_all.deb /mnt/tmp adb push lxc-android-config_*_all.deb $TARGET/tmp
Line 26: Line 27:
adb shell chroot /mnt /usr/bin/env PATH=/bin:/sbin:/usr/bin:/usr/sbin dpkg -i /tmp/lxc-android-config_*_all.deb adb shell chroot $TARGET /usr/bin/env PATH=/bin:/sbin:/usr/bin:/usr/sbin dpkg -i /tmp/lxc-android-config_*_all.deb
Line 29: Line 30:
adb shell umount /mnt adb shell umount $TARGET

Testing new versions of lxc-android-config

Download the lxc-android-config package

Install the package

   1 #clean flash of the latest image on mako
   2 ubuntu-device-flash --channel=devel-proposed --bootstrap
   3 
   4 # reboot into recovery
   5 adb reboot recovery
   6 
   7 # Remount the system image someplace it can be modified:
   8 # mako version
   9 TARGET=/mnt
  10 adb shell mount -o loop /data/system.img $TARGET
  11 # krillin version
  12 TARGET=/system
  13 adb shell mount $TARGET
  14 
  15 # Put lxc-android-config in it:
  16 adb push lxc-android-config_*_all.deb $TARGET/tmp
  17 
  18 # Install the package:
  19 adb shell chroot $TARGET /usr/bin/env PATH=/bin:/sbin:/usr/bin:/usr/sbin dpkg -i /tmp/lxc-android-config_*_all.deb
  20 
  21 # Unmount and reboot:
  22 adb shell umount $TARGET
  23 adb reboot

Touch/Testing/lxc-android-config (last edited 2016-10-13 13:22:18 by sil2100)