Labels

Thursday, January 2, 2014

အသံုးတည့္ေသာ ADB Command မ်ား Useful ADB Commands



ဟိုတစ္ေန႔က ADB Command နဲ႔ Android Application ကို Install လုပ္နည္းအေၾကာင္း ဒီမွာ နည္းနည္း ေျပာျပခဲ့ၿပီးျဖစ္ပါတယ္.. တကယ္ေတာ့ ADB Command ဟာ Application Install လုပ္တာတစ္ခုတည္း အသံုးတည့္တာ မဟုတ္ပါဘူး.. အျခား အေရးႀကီးလုပ္ငန္းေတြမွာ အသံုးျပဳတာျဖစ္ပါတယ္.. ႐ႈပ္သြားမွာစိုးလို႔ မေျပာျဖစ္ခဲ့ပါဘူး..

ADB Command နဲ႔ လုပ္ေဆာင္ႏိုင္တဲ့အခ်က္မ်ားကေတာ့-

-device ကုိ သိမသိစစ္ျခင္း
-device က root acess ရမရ
-device ထဲကုိေဆာ့၀ဲသြင္း /ဖ်က္
-device ထဲကုိ ကြန္ပ်ဴတာကေန ဖုိင္လွမ္းသြင္း
device ထဲကဖုိင္ေတြကုိကြန္ပ်ဴတာထဲကုိလွမ္းထုတ္
-Partition အစိတ္အပုိင္းမ်ားကုိၾကည့္ရႈျခင္း
ႏွင့္ အျခားကိစၥရပ္မ်ားစြာအတြက္အသုံးျပဳနုိင္ပါတယ္။

ကဲ ဒါဆိုရင္ အဲဒီ Command Line မ်ားအေၾကာင္းကိုသိခ်င္လာေရာေပါ့.. ေအာက္မွာ ေဖၚျပေပးလိုက္ပါတယ္..

Useful ADB Commands
——————————–
Command 1 (ဖုန္းက ကြန္ပ်ဴတာမွာခ်ိတ္ထားတာကုိသိ/မသိ စစ္ခ်င္ရင္)
—————————-
adb devices
—————————-
Command 2 ( ဖုန္းက root လုပ္ထား/မထားကုိစစ္ခ်င္ရင္)
——————————–
adb shell su
——————————
Command 3 ( ဖုန္းကုိ ကြန္ပ်ဴတာကေန တုိက္ရုိက္ reboot ခ်ခ်င္ရင္)
——————————–
adb reboot
——————————–
Command 4 ( ဖုန္းရဲ႕ recovery mode ထဲကုိ adb command သုံးျပီး၀င္ခ်င္ရင္)
——————————-
adb reboot recovery
——————————
Command 5 (ဖုန္းထဲကုိ ေဆာ့၀ဲ/ဂိမ္းသြင္းခ်င္ရင္)
——————————
adb install facebook.apk
—————————–
Command 6 ( ဖုန္းထဲကရွိေနျပီးသားေဆာ့၀ဲေနရမွာ ယင္းေဆာ့၀ဲကုိထပ္သြင္းခ်င္ရင္)
——————————
adb install -r facebook.apk
-r means reinstall
——————————-
Command 7 (ေဆာ့၀ဲကုိ ဖုန္းထဲမွာမသြင္းဘဲ ဖုန္းရဲ႕ sd card ထဲမွာေရႊ႕ျပီး install လုပ္ခ်င္ရင္)
——————————-
adb install -s facebook.apk
——————————–
Command 8 (ဖုန္းထဲကေဆာ့၀ဲကုိ uninstall လုပ္ခ်င္ရင္)
————————————-
adb uninstall com.facebook.katana
————————————
Command 9 (ကြန္ပ်ဴတာထဲကဖုိင္ကုိ ဖုန္းရဲ႕ Directory/storage ထဲကုိလွမ္းထည့္ခ်င္ရင္)
—————————————
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 (ဖုန္းထဲကဖုိင္ကုိ ကြန္ပ်ဴတာထဲကုိလွမ္းထုတ္မယ္)
———————————————————
adb pull /sdcard/proxy.apk C:\Users\smartboy\Desktop\proxy.apk
Command 11 (Fastboot ကုိ ကြန္ပ်ဴတာကေန၀င္ခ်င္ရင္)
————————————————————
adb reboot bootloader
———————————————————–
Command 12 (ဖုန္းတြင္း 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.apk c:\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
ကဲ… ဒီေလာက္ဆုိရင္ ADB Command မ်ားနဲ႕အသုံးျပဳပုံအေၾကာင္းကုိ သိရွိၾကျပီလုိ႕ထင္ပါတယ္။

အဆင္ေျပပါေစ..

No comments:

Post a Comment