Thanks for your answer. Because I must test the modem is work or not.
Call is an example, maybe I'll implement lots of functionality. I
extend ADB because our employees want to test in the factory. To use
"adb shell" may save lots of time.

On 5月19日, 下午11時31分, Mike Lockwood <lockw...@android.com> wrote:
> You would need to do more than change the code in commandline.c.  That
> file is only included in the PC side ofadb.  You would need to write
> more code to implement the functionality on the device side.
>
> I don't see any benefit at all in modifyingadbfor this.  Just write
> a tool on the device called "call", and then run it using "adbshell
> call 123"
>
> Mike
>
> 2009/5/19 Edware <littlenew1...@gmail.com>:
>
>
>
>
>
> > 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 "adbcall 123",
> > Android can make a call to 123. What can I do if I want to implement
> > it? Can Iadda 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 <lockw...@android.com> 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 <littlenew1...@gmail.com> 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 <littlenew1...@gmail.com> 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
>
> --
> Mike Lockwood
> Google android team
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---

Reply via email to