Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu-phablet:/# cat var/lib/lxc/android/pre-start.d/10-no-adbd
- #!/bin/sh
- # Make sure adbd is not started automatically
- #sed -i 's/setprop persist.sys.usb.config adb$/setprop persist.sys.usb.config ""/
- #' $LXC_ROOTFS_PATH/init.rc
- # Disable adbd
- rm $LXC_ROOTFS_PATH/sbin/adbd
- root@ubuntu-phablet:/# cat var/lib/lxc/android/pre-start.d/20-no-default-prop-adb
- #! /bin/sh
- # Avoid changing the the property when running on the emulator
- if ! grep -q "qemu=1" /proc/cmdline; then
- sed -i '/^persist.sys.usb.config=.*/d' $LXC_ROOTFS_PATH/default.prop || true
- fi
Advertisement
Add Comment
Please, Sign In to add comment