I am sorry that I type a wrong word. I want to develop a debug tools in "PC" to debug the Android phone. Maybe when I type "adb call 123", Android can make a call to 123. What can I do if I want to implement it? Can I add a case "call" in adb_commandline() this function and implement its action? And would it have many side effect? Thanks for your help.
On 5月19日, 下午9時47分, Mike Lockwood <[email protected]> wrote: > In most cases you should be able toaddanewcommandas a commandline > tool on the device side and use "adbshell <command>" to execute it. > Addingnewadbcommands should only be done if you really need toadd > functionality toadbitself. > > What are you trying to do? > > Mike > > On Tue, May 19, 2009 at 9:01 AM, Edware <[email protected]> wrote: > > > I found a function "int adb_commandline(int argc, char **argv)" in > > android\system\core\adb\Commandline.c. Could Iaddanewcommandin > > it? Or will it have side effect? > > > On 5月19日, 下午8時39分, Edware <[email protected]> wrote: > >> Because I want to develop Android debug tools in Android, I want to > >> viaadbinterface. How can Iaddanewadbcommand? Thanks for your > >> help. > > -- > Mike Lockwood > Google android team --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---
