4javier

Untitled

Dec 20th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. root@ubuntu-phablet:/# cat var/lib/lxc/android/pre-start.d/10-no-adbd
  2. #!/bin/sh
  3.  
  4. # Make sure adbd is not started automatically
  5. #sed -i 's/setprop persist.sys.usb.config adb$/setprop persist.sys.usb.config ""/
  6. #' $LXC_ROOTFS_PATH/init.rc
  7.  
  8. # Disable adbd
  9. rm $LXC_ROOTFS_PATH/sbin/adbd
  10.  
  11.  
  12. root@ubuntu-phablet:/# cat var/lib/lxc/android/pre-start.d/20-no-default-prop-adb
  13. #! /bin/sh
  14.  
  15. # Avoid changing the the property when running on the emulator
  16. if ! grep -q "qemu=1" /proc/cmdline; then
  17. sed -i '/^persist.sys.usb.config=.*/d' $LXC_ROOTFS_PATH/default.prop || true
  18. fi
Advertisement
Add Comment
Please, Sign In to add comment