2024年8月28日发(作者:称怡然)
adb reboot bootloader
adb reboot fastboot
Reboots a device into Bootloader. Once in Bootloader, you can make further selections here.
Reboots a connected device into Fastboot mode.
Installing / Uninstalling / Updating Apps with ADB.
ADB install let’s you install APK files directly to your phone. To use this command type adb
install application path, as shown in the commands part and hit enter key and it will start
installing the app on your phone. e.g adb install
C:/Users/UsamaM/Desktop/. If process succeeds it will show you
“Success” in the command window.
If you have already installed an app, and you just want to update it then this command will let
you do so. e.g adb install -r C:/Users/UsamaM/Desktop/
Uninstalls and application from your device. The easiest way to find a package name is,
install Package Name Viewer from the play store and find the name of the package under the
App Name. If process succeeds it will show you “Success” in the command window.
adb install
adb install -r
adb unistall package_namee.g
adb uninstall
adb uninstall -K package_namee.g
adb uninstall -K
Push and Pull files
adb rootadb push > push
c:3
systemmedia
adb push
filepathonPC/ion
adb rootadb pull> pull
C:usersUsamaMdesktop
adb pull [Path of file on phone] [Path
on PC where to place the file]
Backing up system and installed apps.
Uninstall an app but keeps it’s data and cache directories. If process succeeds it will show
you “Success” in the command window.
the adb push commands let’s you transfer any files to your phone from your PC. You simply
need to provide the path of file on your PC and path where to place this file on your phone.
Similar to the adb push command. Using adb pull, you can simply pull any files from your
phone.
Before doing this, in your adb folder create a folder Backup and under the backup folder create two folders named SystemApps and
InstalledApps.
These folders are necessary as you’ll be pushing the backed up apps to these folders.
adb pull /system/app
backup/systemapps
adb pull /system/app
backup/installedapps
Background Terminal
adb shell
exit
adb shell
shell su
Fastboot commands
To flash files using fastboot, place the desired files in Fastboot folder or Platform-tools folder that you obtained after installation of
Android SDK tools.
Fastboot Flash Flashes a .zip file to your phone, when your phone is connected in Fastboot mode.
starts the background terminal.
exits the background terminal.
switches to the root of your phone. Please make sure that you’re rooted in case you wish to
use adb shell su.
backs up all the system apps of your phone to the Systemapps folder that you created in the
ADB folder.
backs up all the installed apps of your phone to the installedapps folder that you created in
the ADB folder.
Fastboot Flash recovery
Fastboot flash boot
Fastboot getvar cid
Fastboot oem writeCID xxxxx
fastboot erase system
fastboot erase datafastboot erase
cache
fastboot flash system
fastboot flash data tboot
flash cache
fastboot oem get_unlock_data
fastboot oem unlock UNIQUE_KEY
fastboot oem get_identifier_token
fastboot oem flash
Unlock_tboot oem lock
Logcat
adb logcat
Flashes a recovery to your phone when it’s connected in Fastboot mode.
Flashes a boot or kernel image when your phone is connected in Fastboot mode.
shows you the CID of your phone.
writes the super CID.
In case you want to restore a nandroid backup, you’ll have to delete the current
system/data/cache of your phone first. Before doing this, it is always recommended to have
backed up your system using a custom recovery>backup option and copy the backed up .img
files to Fastboot or Platform-tools folder in Android SDK folder. Then performing these
commands will erase everything.
These commands will restore the backup that you made using a custom recovery on your
phone and placed in the Fastboot folder under Android SDK tools.
These commands help you to get the identifier token of your phone that can be used for
unlocking the bootloader. The second command helps your to flash the bootloader unlock
code, and the 3rd commands helps you to lock your phone’s bootloader once again if locking
it is actually allowed.
Shows you the real time logs of your phone, these logs represent the ongoing process on
your is recommended that you run this command while your device boots up to
check what’s going on.
Creates a .txt file containing the logs in the Platform-tools folder or Fastboot folder in Android
SDK tools directory.
adb logcat >
2024年8月28日发(作者:称怡然)
adb reboot bootloader
adb reboot fastboot
Reboots a device into Bootloader. Once in Bootloader, you can make further selections here.
Reboots a connected device into Fastboot mode.
Installing / Uninstalling / Updating Apps with ADB.
ADB install let’s you install APK files directly to your phone. To use this command type adb
install application path, as shown in the commands part and hit enter key and it will start
installing the app on your phone. e.g adb install
C:/Users/UsamaM/Desktop/. If process succeeds it will show you
“Success” in the command window.
If you have already installed an app, and you just want to update it then this command will let
you do so. e.g adb install -r C:/Users/UsamaM/Desktop/
Uninstalls and application from your device. The easiest way to find a package name is,
install Package Name Viewer from the play store and find the name of the package under the
App Name. If process succeeds it will show you “Success” in the command window.
adb install
adb install -r
adb unistall package_namee.g
adb uninstall
adb uninstall -K package_namee.g
adb uninstall -K
Push and Pull files
adb rootadb push > push
c:3
systemmedia
adb push
filepathonPC/ion
adb rootadb pull> pull
C:usersUsamaMdesktop
adb pull [Path of file on phone] [Path
on PC where to place the file]
Backing up system and installed apps.
Uninstall an app but keeps it’s data and cache directories. If process succeeds it will show
you “Success” in the command window.
the adb push commands let’s you transfer any files to your phone from your PC. You simply
need to provide the path of file on your PC and path where to place this file on your phone.
Similar to the adb push command. Using adb pull, you can simply pull any files from your
phone.
Before doing this, in your adb folder create a folder Backup and under the backup folder create two folders named SystemApps and
InstalledApps.
These folders are necessary as you’ll be pushing the backed up apps to these folders.
adb pull /system/app
backup/systemapps
adb pull /system/app
backup/installedapps
Background Terminal
adb shell
exit
adb shell
shell su
Fastboot commands
To flash files using fastboot, place the desired files in Fastboot folder or Platform-tools folder that you obtained after installation of
Android SDK tools.
Fastboot Flash Flashes a .zip file to your phone, when your phone is connected in Fastboot mode.
starts the background terminal.
exits the background terminal.
switches to the root of your phone. Please make sure that you’re rooted in case you wish to
use adb shell su.
backs up all the system apps of your phone to the Systemapps folder that you created in the
ADB folder.
backs up all the installed apps of your phone to the installedapps folder that you created in
the ADB folder.
Fastboot Flash recovery
Fastboot flash boot
Fastboot getvar cid
Fastboot oem writeCID xxxxx
fastboot erase system
fastboot erase datafastboot erase
cache
fastboot flash system
fastboot flash data tboot
flash cache
fastboot oem get_unlock_data
fastboot oem unlock UNIQUE_KEY
fastboot oem get_identifier_token
fastboot oem flash
Unlock_tboot oem lock
Logcat
adb logcat
Flashes a recovery to your phone when it’s connected in Fastboot mode.
Flashes a boot or kernel image when your phone is connected in Fastboot mode.
shows you the CID of your phone.
writes the super CID.
In case you want to restore a nandroid backup, you’ll have to delete the current
system/data/cache of your phone first. Before doing this, it is always recommended to have
backed up your system using a custom recovery>backup option and copy the backed up .img
files to Fastboot or Platform-tools folder in Android SDK folder. Then performing these
commands will erase everything.
These commands will restore the backup that you made using a custom recovery on your
phone and placed in the Fastboot folder under Android SDK tools.
These commands help you to get the identifier token of your phone that can be used for
unlocking the bootloader. The second command helps your to flash the bootloader unlock
code, and the 3rd commands helps you to lock your phone’s bootloader once again if locking
it is actually allowed.
Shows you the real time logs of your phone, these logs represent the ongoing process on
your is recommended that you run this command while your device boots up to
check what’s going on.
Creates a .txt file containing the logs in the Platform-tools folder or Fastboot folder in Android
SDK tools directory.
adb logcat >