Page 1 of 3

ABD Commands

Posted: Sun Jan 24, 2021 6:04 pm
by novares
Here is a list of ADB commands that you can use through CMD or ADB Shell on local device:

ADB Basics

adb devices (lists connected devices)
adb root (restarts adbd with root permissions)
adb start-server (starts the adb server)
adb kill-server (kills the adb server)
adb reboot (reboots the device)
adb devices -l (list of devices by product/model)
adb shell (starts the backround terminal)
exit (exits the background terminal)
adb help (list all commands)
adb -s <deviceName> <command> (redirect command to specific device)
adb –d <command> (directs command to only attached USB device)
adb –e <command> (directs command to only attached emulator)

Package Installation

adb shell install <apk> (install app)
adb shell install <path> (install app from phone path)
adb shell install -r <path> (install app from phone path)
adb shell uninstall <name> (remove the app)

Paths

/data/data/<package>/databases (app databases)
/data/data/<package>/shared_prefs/ (shared preferences)
/data/app (apk installed by user)
/system/app (pre-installed APK files)
/mmt/asec (encrypted apps) (App2SD)
/mmt/emmc (internal SD Card)
/mmt/adcard (external/Internal SD Card)
/mmt/adcard/external_sd (external SD Card)

adb shell ls (list directory contents)
adb shell ls -s (print size of each file)
adb shell ls -R (list subdirectories recursively)

File Operations

adb push <local> <remote> (copy file/dir to device)
adb pull <remote> <local> (copy file/dir from device)
run-as <package> cat <file> (access the private package files)

Phone Info

adb get-statе (print device state)
adb get-serialno (get the serial number)
adb shell dumpsys iphonesybinfo (get the IMEI)
adb shell netstat (list TCP connectivity)
adb shell pwd (print current working directory)
adb shell dumpsys battery (battery status)
adb shell pm list features (list phone features)
adb shell service list (list all services)
adb shell dumpsys activity <package>/<activity> (activity info)
adb shell ps (print process status)
adb shell wm size (displays the current screen resolution)
dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp' (print current app's opened activity)

Package Info

adb shell list packages (list package names)
adb shell list packages -r (list package name + path to apks)
adb shell list packages -3 (list third party package names)
adb shell list packages -s (list only system packages)
adb shell list packages -u (list package names + uninstalled)
adb shell dumpsys package packages (list info on all apps)
adb shell dump <name> (list info on one package)
adb shell path <package> (path to the apk file)

Configure Settings Commands

adb shell dumpsys battery set level <n> (change the level from 0 to 100)
adb shell dumpsys battery set status<n> (change the level to unknown, charging, discharging, not charging or full)
adb shell dumpsys battery reset (reset the battery)
adb shell dumpsys battery set usb <n> (change the status of USB connection. ON or OFF)
adb shell wm size WxH (sets the resolution to WxH)

Device Related Commands

adb reboot-recovery (reboot device into recovery mode)
adb reboot fastboot (reboot device into recovery mode)
adb shell screencap -p "/path/to/screenshot.png" (capture screenshot)
adb shell screenrecord "/path/to/record.mp4" (record device screen)
adb backup -apk -all -f backup.ab (backup settings and apps)
adb backup -apk -shared -all -f backup.ab (backup settings, apps and shared storage)
adb backup -apk -nosystem -all -f backup.ab (backup only non-system apps)
adb restore backup.ab (restore a previous backup)
adb shell am start|startservice|broadcast <INTENT>[<COMPONENT>]
-a <ACTION> e.g. android.intent.action.VIEW
-c <CATEGORY> e.g. android.intent.category.LAUNCHER (start activity intent)

adb shell am start -a android.intent.action.VIEW -d URL (open URL)
adb shell am start -t image/* -a android.intent.action.VIEW (opens gallery)
Logs

adb logcat [options] [filter] [filter] (view device log)
adb bugreport (print bug reports)

Permissions

adb shell permissions groups (list permission groups definitions)
adb shell list permissions -g -r (list permissions details)

Re: ABD Commands

Posted: Tue Mar 09, 2021 11:37 am
by YLA
What's the command to uninstall/disable the alliance shield x app app if you make it the owner app?

Also is there a way just to implement owner app settings using the alliance shield app vs. using a laptop/desk computer??

One more thing. WHO in the hell is still on Android 6???
That really needed an update with the alliance shield x app.

Re: ABD Commands

Posted: Sun Mar 14, 2021 4:58 pm
by RRiVEN
YLA wrote: Tue Mar 09, 2021 11:37 am What's the command to uninstall/disable the alliance shield x app app if you make it the owner app?

Also is there a way just to implement owner app settings using the alliance shield app vs. using a laptop/desk computer??

One more thing. WHO in the hell is still on Android 6???
That really needed an update with the alliance shield x app.
If you hit the toggle it will warn you that you are about to disable device owner.

If you have Wireless Debug (Generally Android 11 has it) then you can use an app to get device owner, you still need to remove all of the Accounts on the device.

Seeing how the Note 7, the entire reason the Shield was created runs Android 6, I would assume they still need the Shield to support them. :)

Re: ABD Commands

Posted: Mon Nov 15, 2021 10:19 am
by JobayaRTelecoM
ulable to activate

Re: ABD Commands

Posted: Mon Nov 15, 2021 11:07 am
by RRiVEN
JobayaRTelecoM wrote: Mon Nov 15, 2021 10:19 am ulable to activate
What error do you receive?

Samsung acount

Posted: Sun Jan 09, 2022 12:32 am
by mohammadrihan
Change email not working

Re: ABD Commands

Posted: Sat Jan 15, 2022 9:12 am
by Nonor19
novares wrote: Sun Jan 24, 2021 6:04 pm Here is a list of ABD commands that you can use through CMD or ABD Shell on local device:

ADB Basics

adb devices (lists connected devices)
adb root (restarts adbd with root permissions)
adb start-server (starts the adb server)
adb kill-server (kills the adb server)
adb reboot (reboots the device)
adb devices -l (list of devices by product/model)
adb shell (starts the backround terminal)
exit (exits the background terminal)
adb help (list all commands)
adb -s <deviceName> <command> (redirect command to specific device)
adb –d <command> (directs command to only attached USB device)
adb –e <command> (directs command to only attached emulator)

Package Installation

adb shell install <apk> (install app)
adb shell install <path> (install app from phone path)
adb shell install -r <path> (install app from phone path)
adb shell uninstall <name> (remove the app)

Paths

/data/data/<package>/databases (app databases)
/data/data/<package>/shared_prefs/ (shared preferences)
/data/app (apk installed by user)
/system/app (pre-installed APK files)
/mmt/asec (encrypted apps) (App2SD)
/mmt/emmc (internal SD Card)
/mmt/adcard (external/Internal SD Card)
/mmt/adcard/external_sd (external SD Card)

adb shell ls (list directory contents)
adb shell ls -s (print size of each file)
adb shell ls -R (list subdirectories recursively)

File Operations

adb push <local> <remote> (copy file/dir to device)
adb pull <remote> <local> (copy file/dir from device)
run-as <package> cat <file> (access the private package files)

Phone Info

adb get-statе (print device state)
adb get-serialno (get the serial number)
adb shell dumpsys iphonesybinfo (get the IMEI)
adb shell netstat (list TCP connectivity)
adb shell pwd (print current working directory)
adb shell dumpsys battery (battery status)
adb shell pm list features (list phone features)
adb shell service list (list all services)
adb shell dumpsys activity <package>/<activity> (activity info)
adb shell ps (print process status)
adb shell wm size (displays the current screen resolution)
dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp' (print current app's opened activity)

Package Info

adb shell list packages (list package names)
adb shell list packages -r (list package name + path to apks)
adb shell list packages -3 (list third party package names)
adb shell list packages -s (list only system packages)
adb shell list packages -u (list package names + uninstalled)
adb shell dumpsys package packages (list info on all apps)
adb shell dump <name> (list info on one package)
adb shell path <package> (path to the apk file)

Configure Settings Commands

adb shell dumpsys battery set level <n> (change the level from 0 to 100)
adb shell dumpsys battery set status<n> (change the level to unknown, charging, discharging, not charging or full)
adb shell dumpsys battery reset (reset the battery)
adb shell dumpsys battery set usb <n> (change the status of USB connection. ON or OFF)
adb shell wm size WxH (sets the resolution to WxH)

Device Related Commands

adb reboot-recovery (reboot device into recovery mode)
adb reboot fastboot (reboot device into recovery mode)
adb shell screencap -p "/path/to/screenshot.png" (capture screenshot)
adb shell screenrecord "/path/to/record.mp4" (record device screen)
adb backup -apk -all -f backup.ab (backup settings and apps)
adb backup -apk -shared -all -f backup.ab (backup settings, apps and shared storage)
adb backup -apk -nosystem -all -f backup.ab (backup only non-system apps)
adb restore backup.ab (restore a previous backup)
adb shell am start|startservice|broadcast <INTENT>[<COMPONENT>]
-a <ACTION> e.g. android.intent.action.VIEW
-c <CATEGORY> e.g. android.intent.category.LAUNCHER (start activity intent)

adb shell am start -a android.intent.action.VIEW -d URL (open URL)
adb shell am start -t image/* -a android.intent.action.VIEW (opens gallery)
Logs

adb logcat [options] [filter] [filter] (view device log)
adb bugreport (print bug reports)

Permissions

adb shell permissions groups (list permission groups definitions)
adb shell list permissions -g -r (list permissions details)

Re: ABD Commands

Posted: Mon Jan 17, 2022 9:17 am
by Smithju1986
Thanks!:That is some good info on alot of commands for adb some will even help me!

Re: ABD Commands

Posted: Thu Feb 17, 2022 3:17 pm
by hectorsabio
App manager

Re: ABD Commands

Posted: Sun Feb 20, 2022 6:41 pm
by Raul27
adb reboot-recovery (reboot device into recovery mode)
adb reboot fastboot (reboot device into recovery mode)
adb shell screencap -p "/path/to/screenshot.png" (capture screenshot)
adb shell screenrecord "/path/to/record.mp4" (record device screen)
adb backup -apk -all -f backup.ab (backup settings and apps)
adb backup -apk -shared -all -f backup.ab (backup settings, apps and shared storage)
adb backup -apk -nosystem -all -f backup.ab (backup only non-system apps)
adb restore backup.ab (restore a previous backup)
adb shell am start|startservice|broadcast <INTENT>[<COMPONENT>]
-a <ACTION> e.g. android.intent.action.VIEW
-c <CATEGORY> e.g. android.intent.category.LAUNCHER (start activity intent)

adb shell am start -a android.intent.action.VIEW -d URL (open URL)
adb shell am start -t image/* -a android.intent.action.VIEW (opens gallery)
Logs

adb logcat [options] [filter] [filter] (view device log)
adb bugreport (print bug reports)

Permissions

adb shell permissions groups (list permission groups definitions)
adb shell list permissions -g -r (list permissions details)

Re: ABD Commands

Posted: Wed Apr 06, 2022 8:52 am
by birendar92
pls sir help me
my onepluse 6t is notgoing to adb port pls help me to how conncet this .my mobile is on usbdebugging mode .
regard

Re: ABD Commands

Posted: Wed Apr 13, 2022 4:56 pm
by RRiVEN
birendar92 wrote: Wed Apr 06, 2022 8:52 am pls sir help me
my onepluse 6t is notgoing to adb port pls help me to how conncet this .my mobile is on usbdebugging mode .
regard
shield/device-owner-qr-setup/

Try that guide, go down to the ADB section

Re: ABD Commands

Posted: Fri May 06, 2022 5:00 am
by carlosfmdc123
https://mega.nz/file/<snip>

Password for the archive Crack

Re: ABD Commands

Posted: Fri May 06, 2022 10:41 am
by RRiVEN
carlosfmdc123 wrote: Fri May 06, 2022 5:00 am https://mega.nz/file/<snip>

Password for the archive Crack
What does this do?

Re: ABD Commands

Posted: Mon May 23, 2022 1:08 am
by mrbeluga
do these commands work for Ladb? ....im assuming we replace adb with pm at the start of each command??