Xiaodong Zhang

How to enable adb in release image from Freescale -blog archive

Discussion created by Xiaodong Zhang Employee on Oct 14, 2011
Latest reply on Sep 13, 2013 by MIKE PETERSEN

In prebuild image from Freescale Android release package, adb is disabled by default and adbd don't has the authority of root. So you don't use the command "adb remount" in PC. If you want to use own built image for debuging, you can build eng version or set ro.secure to 0 , ro.allow.mock.location to 1, ro.debuggable to 1 and persist.service.adb.enable to 1 in build\core\main.mk entirely and ignore TARGET_BUILD_VARIANT.


If you use prebuild image, you must modify default.prop in uramdisk.img.

# dd if=uramdisk.img of=ramdisk.img.gz skip=64 bs=1
# gunzip ramdisk.img.gz
# mkdir ramdisk; cd ramdisk
# cpio -i < ../ramdisk.img
# vim default.prop   (modify
ro.secure=0 ro.allow.mock.location=1 ro.debuggable=1 persist.service.adb.enable=1)
# find . | cpio --create --format='newc' | gzip > ../ramdisk.img
# mkimage -A arm -O linux -T ramdisk -C none -a 0x70308000 -n "Android Root Filesystem" -d ./ramdisk.img ./uramdisk.img
Then burn new uramdisk.img to board.