I've always found the /system/bin/svc to be a good way to kill wifi through adb ,
Available commands: help Show information about the subcommands power Control the power manager data Control mobile data connectivity wifi Control the Wi-Fi manager usb Control Usb state svc along with a number of other "native" commands are simply shell scripts that launch the app_process binary and run dalvik bytecode . This being the case I would imagine it is not too difficult to add something similar to control bluetooth Although bluetooth power management can normally be achieved through the Kernels rfkill switches and sysfs Obviously you need to have the permission to affect state changes, but It doesn't have to be root, On Wednesday, 23 January 2013 20:58:54 UTC, Peter Teoh wrote: > > U have not found such utilities is because they don't exists. It is > because these command lines are native applications, and therefore does not > run inside the Dalvik VM. > > For reasons of security, through ActivityManager running inside Dalvik, > access to hardware like camera/3G/bluetooth are controlled. Read this > (focus on the Dianee explanation) to understand Dalvik's role in security > better: > > > https://groups.google.com/group/android-security-discuss/browse_thread/thread/df146beec9e71345 > > and for example for BT - write an app and run it inside the Dalvik VM: > > http://developer.android.com/guide/topics/connectivity/bluetooth.html > > > On Tue, Jan 22, 2013 at 4:39 PM, fatih hamurcu > <hamurc...@gmail.com<javascript:> > > wrote: > >> Since I have not found an Android command reference list (with meaning >> and usage of the command), I have some questions: >> >> * Can I disable/enable 3G? >> * Can I disable/enable bluetooth? >> * Can I switch from one WiFi access point to anotother WiFi access point? >> >> If yes, how? >> >> -- >> unsubscribe: android-kerne...@googlegroups.com <javascript:> >> website: http://groups.google.com/group/android-kernel > > > > > -- > Regards, > Peter Teoh > -- -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel --- You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-kernel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.