SlateDroid.com: ADB commands ( beginners) - SlateDroid.com

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ADB commands ( beginners)

#1 User is offline   Mp4 

  • Admin Ninja
  • Group: Administrators
  • Topics: 497
  • Posts: 2,558
  • Joined: 12-May 10

Posted 03 August 2010 - 02:20 PM

I am by far means no expert in this. Some of the more common commands in adb are push, pull, shell, install, remount, and logcat.

Push sends a file from your desktop computer to your Android device: adb push test.txt /sdcard/test.txt

Pull pulls a file from your Android device to your desktop computer: adb pull /sdcard/test.txt test.txt

Shell lets you run an interactive shell (command prompt) on the Android device: adb shell

Install lets you install an android APK file to your Android device: adb install myapp.apk

Remount remounts the /system partition as writable (or readonly if it is already writeable): adb remount

Logcat lets you view the devices debug logs in real time (must press control+c to exit): adb logcat

ADB Wiki

This post has been edited by mrsburnout: 08 May 2011 - 09:44 PM
Reason for edit: Format fixes

1

#2 User is offline   yankeespitfire 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 3
  • Posts: 59
  • Joined: 13-May 10

Posted 03 August 2010 - 03:24 PM

I've found connect can be used for a wireless lan connection on my M001 since adb won't see it on the usb connection like it does with my PDN.syntax: adb connect :5555 (with being the local ip of the M001)example: adb connect 192.168.0.87:5555
0

#3 User is offline   Mp4 

  • Admin Ninja
  • Group: Administrators
  • Topics: 497
  • Posts: 2,558
  • Joined: 12-May 10

Posted 03 August 2010 - 03:35 PM

Nice tip, for allkeep that info coming
0

#4 User is offline   Mike 

  • Co-Founder
  • Group: Global Moderators
  • Topics: 1,380
  • Posts: 2,103
  • Joined: 12-May 10
  • LocationUK

Posted 03 August 2010 - 04:05 PM

Would be good if this could get added to the Wiki too.
0

#5 User is offline   xaueious 

  • Advanced Member
  • PipPipPip
  • Group: Hero Member
  • Topics: 132
  • Posts: 954
  • Joined: 20-May 10
  • LocationOntario

Posted 04 August 2010 - 07:04 AM

I put up a guide on Apad forums a while ago.I wont call myself an expert, but it's written better than what's here.
0

#6 User is offline   Mp4 

  • Admin Ninja
  • Group: Administrators
  • Topics: 497
  • Posts: 2,558
  • Joined: 12-May 10

Posted 04 August 2010 - 08:27 AM

Wow, better then the ADB Wiki with 81 thousand hits . because that where I got this from and provided the Wiki ADB link.
0

#7 User is offline   lawman 

  • Advanced Member
  • Group: Global Moderators
  • Topics: 47
  • Posts: 2,219
  • Joined: 05-June 10

Posted 04 August 2010 - 08:56 AM

Lol.adb devices ---a good starter command. Starts up the ADB daemon and lets you know that there is a device attached.
0

#8 User is offline   walscobry 

  • Member
  • PipPip
  • Group: Jr. Member
  • Topics: 2
  • Posts: 14
  • Joined: 22-July 10

Posted 04 August 2010 - 10:12 AM

So I can adb into any adroind device that has its wireless on with that command? Say like in a coffee house full of droids? and pull their market ID, call log, contacts, browser history, etc. If true that is some scary sh#$%# right there! Gonna try some experiments...
0

#9 User is offline   yankeespitfire 

  • Advanced Member
  • PipPipPip
  • Group: Jr. Member
  • Topics: 3
  • Posts: 59
  • Joined: 13-May 10

Posted 04 August 2010 - 12:40 PM

Not to encourage it... but if you knew the ip device of the target device, possibly you could determine it by trial & error based on whatever ip addy the dhcp server assigned yours... and if the device has adb enabled... and if usb debugging is "on" on the target, you might be able to do a pull on the accounts.db... and if you got lucky and connected to a rooted device, you'd probably trigger a "allow access?" on the user's screen when you tried to su... (not that you'd do THAT ;) )Not sure the wireless connect works on all devices, it does work on the M001, doesn't seem to on the PDN though, I can only access PDN through the usb connection.
0

#10 User is offline   mogrith 

  • SlateGeek / Wiki Mod
  • Group: Global Administrator
  • Topics: 103
  • Posts: 2,434
  • Joined: 08-June 10
  • LocationBrea, CA

Posted 04 August 2010 - 12:51 PM

Quote

Would be good if this could get added to the Wiki too.
Under Useful articles ADB 101Or a How To Use ADBMaybe both, 101 covers install on PC basic commands in generalwhile How to's are specific guide to accomplish task. e.g. Root you device,get android ID for market, Install an apk, etc.
0

#11 User is offline   Edmond Chu 

  • Newbie
  • Pip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 3
  • Joined: 07-May 12

Posted 07 May 2012 - 04:29 AM

Could any others post a menu for ADB?
0

#12 User is offline   promegr30 

  • Newbie
  • Pip
  • Group: Jr. Member
  • Topics: 0
  • Posts: 2
  • Joined: 02-November 12

Posted 02 November 2012 - 08:45 AM

Hi.does anyone knows is we can install throught adb everything..?..im asking cause i have a softbrick here...thnx.
0

#13 User is offline   xham 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Topics: 0
  • Posts: 42
  • Joined: 01-November 12

Posted 02 November 2012 - 11:09 AM

Install android SDK.

Sent from Galaxy Note II using Tapa talk 2
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users