႐ွယ္ၿပီးသိမ္းထားပါဗ်
Basic ADB command အေၾကာင္းမ်ား
ေနာက္ပိုင္းဖုန္းေတြကို supprot ေတာ့တဲ့ command မ်ားလည္း ပါသည္။
-adb command အသံုးျပဳရန္ phoneကို usb debbuging on ထားရန္လိုသည္
-adb.exe,adbWinApi.dll,adbWinUsbApi.dll 3ဖိုင္ကို C:\window ေအာက္သို႔ ကူးပါ
-window+r နိွပ္၍ run boxေခၚcmdလို႔ရိုက္ၿပီး command prompt က်လာမည္
-adb devices - adb ခ်ိတ္ဆက္မႈစစ္ရန္
-adb reboot - deviceကိုrestart or reboot လုပ္ရန္
-adb reboot recovery - deviceအား recovery modeသို႔ဝင္ေရာက္ရန္
-adb kill-server - device ခ်ိတ္ဆက္မႈအား detect လုပ္ေနေသာ daemonအား ပိတ္ရန္
-adb reboot oem-1 (or)
adb reboot bootloader - deviceအား bootloader mode သို႔ fastboot modeသို႔ဝင္ရန္
-adb reboot download - samsung deviceမ်ားတြင္ download modeဝင္ရန္
-adb reboot edl - qualcomm9008 modeဝင္ရန္
-adb wait-for-devices - deviceနွင့္pcခ်ိတ္ဆက္မႈေစာင့္ဆိုင္းေစရန္
-adb push - pcမွdeviceအတြင္းသို႔ fileပို႔ရန္
-adb pull - device မွ pcသို႔fileကူးရန္
-adb shell - device၏terminalကဲ့သို႔ shell command မ်ားအသံုးျပဳရန္
-adb remount- adb.exeမွdevice၏systemအား တိုက္ရိုက္read/pwriteျပဳလုပ္ရန္
-adb install x.apk - apk installလုပ္ရန္
-adb shell stop - bootloopျဖစ္ေနေသာdeviceအားloopရပ္ေစ၍ commandမ်ားအသံုးျပဳရန္
-adb sideload example.zip - pcေပၚမွ update.zipအား flashျပဳလုပ္ရန္ (adb version 1.0.32 ကိုသံုးပါ)
adb commandသံုး၍build numberစစ္နည္း
-adb shell
$ cat/system/build.prop ဟုရိုက္ပါ။ro.build.display.id= တြင္ ဖုန္း၏ firmware build numberကိုေတြ႕နိုင္သည္။
adb command သံုး၍ CPUအမ်ိဳးအစားစစ္နည္း
adb shell
$ cat/proc/cpuinfo ဟုရိုက္ပါ။Hardwareတြင္
MT65XX ေတြ႕ရင္ MTK
MSM ေတြ႕ရင္ Qualcomm
SP,SCေတြ႕ရင္ Spreadtrum
Hi,K3V2ေတြ႕ရင္ HiSilicon
Andriod shell command မ်ား
cd = change directory
ls -l =list with details
rm =remove
rm -r=remove directory
mv =move/rename
cat =open text document(or)copy
dd =copy
su =superuser request
reboot =reboot
chmod =change mode(permission)
wipe data =wipe data factory reset
Pattern/Password Lock Removeလုပ္နည္း
adb shell
$ su
# rm/data/system/*.key ဟုရိုက္ပါ။pattern/password ကို စိတ္ႀကိဳက္ဆြဲ၍ lockဖြင့္နိုင္မည္။
ADB command ျဖင့္fontသြင္းနည္း
adb push Roboto-Regular.ttf/data/local/tmp
adb shell
su
# mount -o remount rw /system (or) mount -o remount,rw /system
# cat /data/local/tmp/Roboto-Regular.ttf> /system/fonts/Roboto-Regular.ttf
# chmod 644 /system/fonts/Roboto-Regular.ttf
ဤနည္းသည္ Roboto-Regular.ttf ကိုreplaceလုပ္ျခင္းျဖစ္သည္
Padauk font ပါေသာdeviceမ်ားတြင္ SmartZawgyiကို အစားထိုးနည္း
adb push SmartZawgyi.ttf /data/local/tmp
adb shell
$ su
# mount -o remount rw /system
# cat /data/local/tmp/SmartZawgyi.ttf > /system/fonts/Padauk.ttf
# cat /data/local/tmp/SmartZawgyi.ttf > /system/fonts/Padauk-book.ttf
# cat /data/local/tmp/SmartZawgyi.ttf > /system/fonts/Padauk-bookbold.ttf
# chmod 644 /system/fonts/*.ttf
အသံုးခ် ADB Commands မ်ား
**********************************
adb devices
adb kill-server
adb push
adb push -p "D\wai la\." /storage/sdcard0/Music/
adb pull
adb pull -p /sysetm/app/. "C:\Users\MgThu\Desktop\app\."
adb install
adb install -r
adb install -s (On Sdcard)
adb uninstall
adb shell pm list packages
adb uninstall com.facebook.katana
adb reboot
adb reboot bootloader
adb reboot recovery
adb reboot download
adb backup
adb backup -apk -obb -shared -all -system
adb restore <backup_file>
adb logcat (Show error log)
adb logcat > “c:\Users\MgThu\Desktop\logcat.txt”
adb help
adb get-state (ခ်ိတ္ဆက္ထားေသာအေျခေနၾကည့္ရန္)
adb get-serialno
ADB Shell
********
adb shell pm (Permission Manager)
adb shell pm list packages
adb shell pm list packages -f (app နာမည္နဲ႔ package နာမည္ေတြကိုယွဥ္တြဲၾကည္႔ရွဳဖို႔အတြက္)
adb shell pm list packages -d (disable ျပဳလုပ္ထားတဲ့ package ေတြကိုၾကည့္ရန္)
adb shell pm list packages -e (Enable ျပဳလုပ္ထားတဲ့ package ေတြကိုၾကည့္ရန္)
adb shell pm list packages -s ( System packages ေတြပဲၾကည့္ရန္)
adb shell pm list packages -3 (third party packages ေတြပဲၾကည့္ရန္)
adb shell pm install <packagename>
adb shell pm uninstall <packagename>
adb shell pm install -r <packagename>
adb shell pm install -t <packagename> (စမ္းသပ္အသံုးျပဳဖို ့)
adb shell pm uninstall -k <packagename> (Data ခ်န္ျပီးဖ်က္ဖို ့)
adb shell pm clear <package_name> (Data clear လုပ္ဖို ့)
adb shell pm disable <package_name> (အသံုးမလိုတဲ့ app ေတြ disable လုပ္ဖို့)
adb shell am start -n <package> </activityname> (Install လုပ္ထားတဲ့ apk ဖိုင္ေတြကို Command ကေန လွမ္းဖြင့္ရန္)
adb shell am start -n com.android.settings/.Settings (ဥပမာ Setting ကိုလွမ္းဖြင့္တာ)
adb shell ps (Run ေနတဲ့ Process ေတြကိုၾကည့္တာ)
adb shell date (ဖုန္းထဲက အခ်ိန္နာရီကို ၾကည္႔ရန္)
adb shell netcfg (IP address ေတြကိုၾကည့္ရန္)
adb shell df (Storage အေျခအေန နဲ ့လမ္းေၾကာင္းၾကည့္ရန္)
adb shell uptime (အသံုျပဳထားေသာအခ်ိန္နဲ ့sleep ထားေသာအခ်ိန္ၾကည့္ရန္)
adb shell getprop (system ထဲက build.prop ကိုၾကည့္ရန္)
adb shell getprop ro.build.version.release (Android ဗားရွင္းၾကည့္ရန္)
adb shell dumpsys (System ကို Dump လုပ္ရန္)
adb shell dumpsys iphonesubinfo (ဥပမာ Prefered Network နဲ႔ IMEI နံပါတ္တို႔ကိုၾကည့္ရန္)
adb shell dumpsys SurfaceFlinger (ဖုန္းရဲ႕ Screen Layer နဲ႔ဆိုင္တဲ့ System Dump အခ်က္အလက္ေတြ ကိုၾကည့္ရန္)
adb shell dumpsys batteryinfo
adb shell dumpsys cpuinfo
adb shell dumpstate>”C:\Users\MgThu\Desktop\dumpstate.txt" (ဖုန္းရဲ့ Information State ေတြ အားလံုးကို txt ဖိုင္နဲ ့ၾကည့္ရန္)
adb shell input keyevent 24 (ဖုန္းအသံျမွင့္ရန္ Vol + ႏွင့္အတူတူပင္)
adb shell input keyevent 25 (ဖုန္းအသံျမွင့္ရန္ Vol - ႏွင့္အတူတူပင္)
adb shell input keyevent 82 (ဖုန္း lock screen ကိုဖြင့္ရန္ pattern တို႔၊ Pin တို႔၊ Password တို႔ ခံထားခဲ့မယ္ဆိုရင္မရပါ)
adb shell su -c “svc wifi enable” (wifi ဖြင့္ရန္ Root ရွိရန္လို)
adb shell su -c “svc wifi disable” (wifi ပိတ္ရန္ Root ရွိရန္လို)
adb shell su -c “svc data enable” (Mobile data ဖြင့္ရန္ Root ရွိရန္လို)
adb shell su -c “svc data disable” (Mobile data ပိတ္ရန္ Root ရွိရန္လို)
adb shell screencap /storage/sdcard0/capture.png (ဖုန္းမ်က္ႏွာျပင္ ကို Screenshot ဖမ္းျပီး SD ကဒ္ထဲမွာသိမ္းတာပါ)
adb shell screenrecord /storage/sdcard0/capture.mp4 (ဖုန္းမ်က္ႏွာျပင္ ကို Screenrecord ဖမ္းျပီး SD ကဒ္ထဲမွာသိမ္းတာပါ)
adb shell reboot
adb shell reboot bootloader
adb shell reboot recovery
adb shell reboot download
adb shell shutdow
No comments:
Post a Comment