PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Android > Android Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2010, 03:40 AM
Karl's Avatar
N00b
Offline
Pocket PC: HTC One M8
Carrier: Verizon
Location: Bakersfield,CA
 
Join Date: Nov 2009
Posts: 2,750
Reputation: 3545
Karl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIPKarl is still contributing even after becoming a VIP
Mentioned: 8 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to Karl Send a message via Yahoo to Karl Send a message via Skype™ to Karl
adb shell commands

Anyone know where i can locate a full list of adb shell commands?
i have this link but im sure thats not all of them because it doesnt even show the mtd command

http://android-dls.com/wiki/index.php?title=ADB
__________________

"That which can be asserted without evidence, can be dismissed without evidence."

Reply With Quote
  #2 (permalink)  
Old 08-27-2010, 03:35 PM
Wideawake's Avatar
Founder & Owner
Offline
Pocket PC: iPhone XS Max
Carrier: Sprint
Location: Clermont, Florida
 
Join Date: May 2006
Posts: 5,577
Reputation: 4644
Wideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributionsWideawake should be added to the payroll for their contributions
Mentioned: 8 Post(s)
Tagged: 0 Thread(s)
Send a message via Skype™ to Wideawake
Re: adb shell commands

Here ya go. I also attached a text file with all the commands in it. Enjoy.
~mike


Code:
Android Debug Bridge version 1.0.25

 -d                            - directs command to the only connected USB devic
e
                                 returns an error if more than one USB device is
 present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is r
unning.
 -s             - directs command to the USB device or emulator w
ith
                                 the given serial number. Overrides ANDROID_SERI
AL
                                 envivornment variable.
 -p      - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.

                                 If -p is not specified, the ANDROID_PRODUCT_OUT

                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect :         - connect to a device via TCP/IP disconnect :      - disconnect from a TCP/IP device
device commands:
  adb push      - copy file/dir to device
  adb pull      - copy file/dir from device
  adb sync [  ]     - copy host->device only if changed
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell           - run remote shell command
  adb emu             - run emulator console command
  adb logcat [  ] - View device log
  adb forward   - forward socket connections
                                 forward specs are one of:
                                   tcp:
                                   localabstract:
                                   localreserved:
                                   localfilesystem:
                                   dev:
                                   jdwp: (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport

  adb install [-l] [-r]  - push this package file to the device and instal
l it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data
)
  adb uninstall [-k]  - remove this app package from the device
                                 ('-k' means keep the data and cache directories
)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: 
  adb status-window            - continuously print device status for a specifie
d device
  adb remount                  - remounts the /system partition on the device re
ad-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB  adb
tcpip              - restarts the adbd daemon listening on TCP on the spec
ified port
networking:
  adb ppp  [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
  refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [  ]
   can be interpreted in several ways:

  - If  is not specified, both /system and /data partitions will be u
pdated.

  - If it is "system" or "data", only the corresponding partition
    is updated.

C:\Documents and Settings\TFPOS2\My Documents\Visual Studio 2008\Projects\PPCG Q
uick Terminal\PPCG Quick Terminal\bin\Debug\Tools>adb > test.txt
Android Debug Bridge version 1.0.25

 -d                            - directs command to the only connected USB devic
e
                                 returns an error if more than one USB device is
 present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is r
unning.
 -s             - directs command to the USB device or emulator w
ith
                                 the given serial number. Overrides ANDROID_SERI
AL
                                 envivornment variable.
 -p      - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.

                                 If -p is not specified, the ANDROID_PRODUCT_OUT

                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect :         - connect to a device via TCP/IP disconnect :      - disconnect from a TCP/IP device
device commands:
  adb push      - copy file/dir to device
  adb pull      - copy file/dir from device
  adb sync [  ]     - copy host->device only if changed
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell           - run remote shell command
  adb emu             - run emulator console command
  adb logcat [  ] - View device log
  adb forward   - forward socket connections
                                 forward specs are one of:
                                   tcp:
                                   localabstract:
                                   localreserved:
                                   localfilesystem:
                                   dev:
                                   jdwp: (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport

  adb install [-l] [-r]  - push this package file to the device and instal
l it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data
)
  adb uninstall [-k]  - remove this app package from the device
                                 ('-k' means keep the data and cache directories
)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: 
  adb status-window            - continuously print device status for a specifie
d device
  adb remount                  - remounts the /system partition on the device re
ad-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB  adb
tcpip              - restarts the adbd daemon listening on TCP on the spec
ified port
networking:
  adb ppp  [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
  refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [  ]
   can be interpreted in several ways:

  - If  is not specified, both /system and /data partitions will be u
pdated.

  - If it is "system" or "data", only the corresponding partition
    is updated.
Attached Files
File Type: txt adb.txt (9.2 KB, 70 views) Click for barcode!
__________________
Please read this before posting.



Reply With Quote
This post has been thanked 4 times.
  #3 (permalink)  
Old 12-01-2010, 10:55 PM
lkillen's Avatar
VIP Member
Offline
Pocket PC: Galaxy S3
Carrier: Sprint
Location: Sugar Hill, Ga
 
Join Date: Aug 2007
Posts: 1,282
Reputation: 810
lkillen knows their stufflkillen knows their stufflkillen knows their stufflkillen knows their stufflkillen knows their stufflkillen knows their stufflkillen knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: adb shell commands

I purchased the Android shell and tried to set it up exactly as instructed and then log in local host:assigned port but never have gotten ot to work. I posted a note to their forum but no reply.

any ideas?
Reply With Quote
  #4 (permalink)  
Old 01-21-2011, 09:30 AM
micheldell's Avatar
Lurker
Offline
Pocket PC: dell
Carrier: airtel
 
Join Date: Jan 2011
Posts: 5
Reputation: 5
micheldell is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: adb shell commands

You should choose the most appropriate for your string of other names. 'Lord'is reserved for your program, such as the 'master', 'namespace','string'word class's main function is retained, you can not use any other means, in addition to the original one to them. Rename your string main1 and it should work.
__________________
Reply With Quote
This post has been thanked 1 times.
Reply

  PPCGeeks > Android > Android Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:10 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com