Apply the patch to android_system_core
repository (located at <android source root>/system/core
for CM10), then compile as usual.
In root shell, use setprop [persist.]sys.adbse.<service name> <0/1>
to toggle adb services. It will be immediately effective to new adb connections. Existing connections won't be affected.
By default all services are enabled, to disable all services except opted-out ones, use setprop [persist.]sys.adbse._default 0
.
# Temporarily disable shell access (restore after phone reboot)
setprop sys.adbse.shell 0
# Disable all dangerous services, allow logcat and rebooting only (persist across reboot)
setprop persist.sys.adbse._default 0
setprop persist.sys.adbse.logcat 1
setprop persist.sys.adbse.reboot 1
Note: They are different from adb client commands.
- tcp
- local
- localreserved
- localabstract
- localfilesystem
- dev
- framebuffer
- recover
- jdwp
- log
- logcat
- shell
- sync
- remount
- reboot
- root
- backup
- restore
- tcpip
- usb
Download at: http://www.mediafire.com/?p8tzt8r56mpi35p
Theorically, the adbd binary is runnable on all CM10 ARM devices. Before installing, please ensure adb.exe exists in %PATH%. install.cmd / install.sh are tested to work for CM10 on Sony Xperia S, but not guarenteed to work on every device. Please try manual installation in case of install.cmd fails:
- If
adbd
is not located in/sbin/
in your device, please correct the path in99updateadbd
- Copy
adbd
to/system/xbin/
, rename it tonew_adbd
- Copy
99updateadbd
to/system/etc/init.d
- Run
chown root.shell /system/etc/init.d/99updateadbd; chmod 755 /system/etc/init.d/99updateadbd
in root shell - Reboot your phone