Wednesday, May 25, 2016

ADB အေၾကာင္းသိေကာင္းစရာ

Useful ADB Command
Command 1(pcနဲ့mobileသိမသိ)

adb devices

Command 2 ( ဖုန္း root လုပ္ထား/မထားစစ္ခ်င္ရင္)

adb shell su

Command 3 (ဖုန္းကုိrebootအျမန္က်ခ်င္ရင္)

adb reboot

Command 4 (ဖုန္းကုိrebootက်ျပီးrecovery mode ေရာက္ခ်င္ရင္)

adb reboot recovery

Command 5 (apk installလုပ္ခ်င္ရင္)

adb install facebook.apk

Command 6 (apkကုိပုံတူထပ္သြင္းခ်င္ရင္)

adb install -r facebook.apk
-r means reinstall

Command 7(apkကုိsd cardထဲ့installလုပ္ခ်င္ရင္)

adb install -s facebook.apk
-s means install to sd card

Command 8(apk ကုိuninstallလုပ္ခ်င္ရင္)

adb uninstall com.facebook.katana


Command 9 (PC က file ကုိphoneထဲdirecty /storage ထဲထည့္ခ်င္ရင္)မည္သည့္fileမ်ဳိးမဆုိသြင္းနုိင္သည္။အဓိက ကမိမိထားခ်င္တဲ့ဦးတည္ခ်က္ကုိေရးပါ။

adb[space]push[space][file name.file extension][space]/[Mobile Directory]/[File name.file extension]
adb push update.zip /sdcard/update.zip adb push proxy.apk /sdcard/proxy.apk adb push mypic.jpg /sdcard/mypic.jpg

Command 10 (ဖုန္းထဲ့fileကုိPc ထဲထည့္ခ်င္ရင္)မည့္သည္fileမ်ဳိးမဆုိဆြဲထုတ္နုိင္သည္။အဓိက ကမိမိဆြဲထုတ္လုိက္တဲ့fileကpc ရဲ့မည္သည့္ေနရာထားမည္ဆုိတာကုိcommandရုိက္ပါ။

adb pull /sdcard/proxy.apk C:\Users\smartboy\Desktop\proxy.apk

Command 11 (fast boot mode ဝင္ခ်င္ရင္)

adb reboot bootloader

                          Command12

(phoneတြင္ system partitionရဲ့ partition block ေဖာ္ခ်င္ရင္)


ADB push (sends files to your phone) -- adb push c:\example.apk /sdcard/example.apk

ADB pull (Receives files from your phone) -- adb pull /system/app/example.apkc:\example.apk

ADB install (installs application) -- adb install c:\example.apk

adb shell (Begins shell connection with phone)

adb reboot (reboots phone)

adb reboot recovery (reboots phone into recovery)

adb reboot bootloader (reboots the phone into bootloader/the white screen)

adb remount (remounts the system)

cd (changes directories) -- cd /system/app

ls (lists all files in the directory) -- cd /system/app

rm (removes files) -- rm /system/app/example.apk

cp (copies files) similar to cat -- cp /system/app/example.apk /sdcard/example.apk

cat (copies files) -- cat /system/app/example.apk > /sdcard/example.apk


exit (exits shell) -- exit  ———————————————

            adb shell cat /proc/partitions adb[space]shell[space]cat[space]/proc/partitions

သင္ဆရာ/ျမင္ဆရာ/ျကားဆရာမ်ားကုိcreditေပးပါသည္။
အဆင္ေျပပါေစ။
ႏုိင္လင္းနည္းပညာ sharing and saving

No comments:

Post a Comment