ADB
Android Debug Bridge (ADB)
Adb ရဲ႕ အရွည္က android debug bridge ပါ။ ျမန္မာလုိ ဘာသာျပန္ၾကည့္ရင္ေတာ့ Android system အသံုးျပဳ
ထားတဲ့ မုိဘုိင္းဖုန္းေတြနဲ႕ ကြန္ပ်ဴတာ ကုိ ခ်ိတ္ဆက္ေပးတဲ့ ၾကားခံ တစ္ခုပဲျဖစ္ပါတယ္။
Adb ကုိ စတင္အသံုးျပဳဖုိ႕ ကြန္ပ်ဴတာမွာ ADB Driver သြင္းထားဖုိ႕လုိအပ္ပါမယ္။ adb driver ကုိ ေအာက္က
Link ကုိႏွိပ္ျပီး Download ယူပါ။
ADB Driver Download – https://androidmtk.com/download-best-android-adb-driver/
Driver ကုိ setup လုပ္ျပီးရင္ Win + R ကုိႏွိပ္ျပီး Run Box ေလးေခၚလုိက္ပါ။ ျပီးရင္ adb /? လုိ႕ရုိက္လုိက္ပါ။
Adb driver မရွိေသးရင္ ‘adb’ was not recognized as an …… စသည္ျဖင့္ ေပၚလာပါလိမ့္မယ္။
Adb driver သိသြားရင္ေတာ့ ေအာက္ကလုိေပၚလာပါမယ္။
အထက္ပါ ပံုအတုိင္း ေပၚလာရင္ေတာ့ driver setup ျပဳလုပ္မႈအဆင္ေျပပါျပီ။
ADB ကိုအသံုးျပဳျပီးလုပ္ေဆာင္ႏူိင္မယ့္အေျခခံအခ်က္ေတြကေတာ့
• ဖုန္းနဲ႕ကြန္ပ်ဴတာခ်ိတ္ထား.မထားသိရျခင္း
• ဖုန္းကုိ ကြန္ပ်ဴတာမွ reboot ျပဳလုပ္ျခင္း
• ဖုန္း၏ Recovery, download, bootloader စသည္မ်ားအား ကြန္ပ်ဴတာမွ ဝင္ေရာက္ႏူိင္ျခင္း
• ဖုန္းသို႕ ေဆာ့ဝဲမ်ားထည့္သြင္းျခင္း။ ဖုန္းမွ ေဆာ့ဝဲမ်ား ထုတ္ယူျခင္း
• ဖုန္း အတြင္းသို႕ ဖုိင္မ်ားထည့္သြင္း ။ ထုတ္ယူ ျခင္း
• Shell command ကိုသံုးျပီး system ကုိ လိုသလုိ ျပဳျပင္ႏူိင္ျခင္း
စသည္ျဖင့္ ျပဳလုပ္ႏူိင္ပါတယ္။
[1] ပထမဆံုးအခ်က္ျဖစ္တဲ့ ဖုန္းနဲ႕ ကြန္ပ်ဴတာ ခ်ိတ္ထားမထားသိခ်င္ရင္ စစ္ဖုိ႕ command ပါ။
Win + R နဲ႕ Runbox ေခၚပါ။ ျပီးတာနဲ႕ Runbox မွာ cmd လုိ႕ရုိက္. Command Prompt
ေပၚလာတာနဲ႕ adb devices လို႕ရုိက္လုိက္ပါ။ Device သိတယ္.ခ်ိတ္မိတယ္ ဆုိရင္
List of device attached မွာ device list ေပၚလာပါမယ္။ ေအာက္က ပံုကိုၾကည့္ပါ။
မခ်ိတ္မိရင္ေတာ့ device list ေပၚမွာမဟုတ္ပါဘူး။
[2] ဖုန္းကုိ လွမ္းျပီး command ေပးဖုိ႕အတြက္ ေအာက္က command ေလးေတြနဲ႕စမ္းပါ။
ဖုန္းကုိ ျပန္လည္စတင္ဖုိ႕ Command prompt မွာ adb reboot လုိ႕ရုိက္ပါ။
ဖုန္းကို Recovery mode ဝင္ဖုိ႕ adb reboot recovery လုိ႕ရုိက္ပါ။
ဖုန္းကုိ Fastboot mode ဝင္ဖုိ႕ adb reboot-bootloader လို႕ရုိက္ပါ။
ဖုန္းကို Download mode ဝင္ဖုိ႕ adb reboot download လုိ႕ရုိက္ပါ။ (Samsung မ်ားအတြက္)
အခုေနာက္ပုိင္းေခတ္စားေနတဲ့ edl mode ဝင္ဖုိ႕အတြက္ adb reboot edl လုိ႕ရုိက္ပါ။ (Qualcomm)
[3]
ေနာက္ဆံုးကေတာ့ shell command ေတြပဲျဖစ္ပါတယ္။
Shell command ေတြကုိသံုးျပီး device ကုိ ျပဳျပင္ ။ စီမံလုိ႕ရပါတယ္။
Device ရဲ႕ အေျခအေန အားလံုးျခံဳငံုျပီးၾကည့္ရန္ adb shell getprop ပါ။
Getprop မွာပါတဲ့ detail ေတြထဲကမွ ကုိယ္သိခ်င္တာပဲ ခြဲသိခ်င္ရင္.
ဥပမာ - ေမာ္ဒယ္နံပါတ္ၾကည့္ဖုိ႕အတြက္
Adb shell getprop ro.product.model ျဖစ္ပါတယ္။
အေပၚက command ရုိက္တာနဲ႕ model number ကုိပဲ ျပေပးမွာျဖစ္ပါတယ္။
ေအာက္မွာ command list ေတြကုိေပးထားပါတယ္။ tool ေတြေရးတဲ့အခါ device ရဲ႕ info ကုိၾကည့္ဖုိ႕
အသံုးဝင္ command ေတြပါ။
General Information
*******************
1) Device Brand Name - adb shell getprop ro.product.brand
2) Device Model Name - adb.shell getprop ro.product.model
3) Time Zone - adb shell getprop persist.sys.timezone
4) Android Version - adb shelll getprop ro.build.version.release
5) Build No - adb shell getprop ro.build.display.id
6) Platform Version - adb shell getprop ro.board.platform
7) SDK Version (API Level) - adb shell getprop ro.build.version.sdk
8) Product Name - adb shell getprop ro.product.name
9) Release Date - adb shell getprop ro.build.date
10) Board Model - adb shell getprop ro.product.board
11) Language - adb shell getprop ro.product.locale.language
12) Region - adb shell getprop ro.product.locale.region
13) DeviceID - adb shell getprop net.hostname
14) Kernel Version - adb shell cat /proc/version
15) Fingerprint - adb shell getprop ro.build.fingerprint
16) Usage Time - adb shell uptime
17) USB Configuration - adb shell getprop persist.sys.usb.config
Network & Radio Information
***************************
1) Network Type - adb shell dumpsys iphonesubinfo | findstr "Phone Type"
(For Windows)
Phone Type - adb shell dumpsys iphonesubinfo | grep 'Phone Type' (For Linux or Shell)
2) IMEI No - adb shell dumpsys iphonesubinfo | findstr "Device ID"
(1 ႏွင့္ 2 ဟာ တခ်ိဳ႕ Lollipop ဖုန္းမ်ား၊ Kitkat ဖုန္းမ်ားတြင္ အဆင္မေျပပါ )
3) Sim Card 1 Operator - adb shell getprop gsm.operator.alpha
4) Sim Card 1 AreaCode - adb shell getprop gsm.operator.numeric
5) Sim Card 1 NetworkType - adb shell getprop gsm.network.type
6) Sim Card 1 Country - adb shell getprop gsm.operator.iso-country
7) Sim Card 1 Operator/AreaCode/NetworkType and All Info
adb shell dumpsys telephony.registry
8) Sim Card 2 Operator - adb shell getprop gsm.operator.alpha2
9) Sim Card 2 AreaCode - adb shell getprop gsm.operator.numeric2
10) Sim Card 2 Networktype - adb shell getprop gsm.network.type2
11) Sim Card 2 Country - adb shell getprop.iso.country2
8) Sim Card 2 Operator/ AreaCode/Network type and all info
adb shell dumpsys telephony.registry2
(3) မွ (8) အထိသည္ Device အတြင္း Sim Card ထည္႔ထားမွ အလုပ္လုပ္ပါသည္။
9) Baseband Version - adb shell getprop gsm.version.baseband
10) Wifi/ Wifi Directed / Loopback IP Address / MAC Address ( All Info) - adb shell netcfg
11) Mobile Data/ Wifi / Hotspot etc Information - adb shell dumpsys connectivity
12) Bluetooth Info - adb shell dumpsys bluetooth_manager
( တစ္ခ်ိဳ႕ဖုန္းမ်ားတြင္ အလုပ္မလုပ္ပါ)
Display Info
***************
1) All Display Info - adb shell dumpsys display
2) Resolution - adb shell dumpsys display | findstr "DisplayDeviceInfo"
3) Density - adb shell getprop ro.sf.lcd_density
4) Orientation - adb shell dumpsys SurfaceFlinger | findstr "orientation"
(if orientation = 0 then Portrait and 1 then Landscape)
5) Refresh Rate - adb shell dumpsys SurfaceFlinger | findstr "refresh-rate"
6) Pixel per Inch
X Axis - adb shell dumpsys SurfaceFlinger | findstr "x-dpi"
Y Axis - adb shell dumpsys SurfaceFlinger | findstr "y-dpi"
7) ScreenSize - square root of ((x resolution * x resoultion) + (y resolution * y resolution) / x axis pixel per inch)
Battery Info
*************
1) AC Power - adb shell dumpsys battery | findstr "AC"
2) USB Power - adb shell dumpsys battery | findstr "USB"
3) Wifi Power - adb shell dumpsys battery | findstr "Wireless"
4) Status - adb shell dumpsys battery | findstr "status"
1- Unknown Battery Status,
2 - Charging,
3 - Discharging,
4 - Not charging,
5 - Full charging
5) Health - adb shell dumpsys battery | findstr "health"
1 - Unknown Health State,
2 - Good,
3 - Overheat,
4 - Dead,
5 - Over voltage,
6 - Unknown failure,
7 - Cold Battery
6) Level - adb shell dumpsys battery | findstr "level"
7) Voltage - adb shell dumpsys battery | findstr "voltage"
8) Temperature - adb shell dumpsys battery | findstr "temp"
value=temperature/10 in celcius
9) Technology - adb shell dumpsys battery | findstr "tech"
10) Electric Current - adb shell dumpsys battery | findstr "current"
(ဖုန္းတိုင္းတြင္ အဆင္မေျပပါ)
Root and Busybox Info
********************
1) Root Check - adb shell su -v
(if /system/bin/sh: su: not found then device is not root)
2) Busybox Check - adb shell busybox
(if /system/bin/sh: busybox: not found then device has no busybox)
--------------------------------------------------------------------------------------------------------------------
Processor Soc (CPU, GPU) Info
*****************
1) All Processor Info - adb shell cat /proc/cpuinfo
2) CPU Max Clock speed - adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
value is hertz (Hz)
3) GPU Vendor - adb shell dumpsys SurfaceFlinger | findstr "GLES"
4) GPU Clock Speed - adb shell cat /sys/class/kgsl/kgsl-3d0/max_gpuclk
(Andreno GPU ကုိသာ ၾကည္႔ႏိုင္ပါသည္။ Mali ကို မရပါ။
-----------------------------------------------------------------------------------------------------------------------------------------
Sensor Info
**************
1) All Sensor Info - adb shell dumpsys sensorservice
Mount Point Info
****************
1) All Mount Point - adb shell mount
RAM (Memory) Info
********************
1) All Memory Info - adb shell cat /proc/meminfo
--
ROM (Storage) Info
*******************
1) All Storage Info - adb shell df
Pdf ရယူရန္ - http://bluenik.com/nX7
Adb ရဲ႕ အရွည္က android debug bridge ပါ။ ျမန္မာလုိ ဘာသာျပန္ၾကည့္ရင္ေတာ့ Android system အသံုးျပဳ
ထားတဲ့ မုိဘုိင္းဖုန္းေတြနဲ႕ ကြန္ပ်ဴတာ ကုိ ခ်ိတ္ဆက္ေပးတဲ့ ၾကားခံ တစ္ခုပဲျဖစ္ပါတယ္။
Adb ကုိ စတင္အသံုးျပဳဖုိ႕ ကြန္ပ်ဴတာမွာ ADB Driver သြင္းထားဖုိ႕လုိအပ္ပါမယ္။ adb driver ကုိ ေအာက္က
Link ကုိႏွိပ္ျပီး Download ယူပါ။
ADB Driver Download – https://androidmtk.com/download-best-android-adb-driver/
Driver ကုိ setup လုပ္ျပီးရင္ Win + R ကုိႏွိပ္ျပီး Run Box ေလးေခၚလုိက္ပါ။ ျပီးရင္ adb /? လုိ႕ရုိက္လုိက္ပါ။
Adb driver မရွိေသးရင္ ‘adb’ was not recognized as an …… စသည္ျဖင့္ ေပၚလာပါလိမ့္မယ္။
Adb driver သိသြားရင္ေတာ့ ေအာက္ကလုိေပၚလာပါမယ္။
အထက္ပါ ပံုအတုိင္း ေပၚလာရင္ေတာ့ driver setup ျပဳလုပ္မႈအဆင္ေျပပါျပီ။
ADB ကိုအသံုးျပဳျပီးလုပ္ေဆာင္ႏူိင္မယ့္အေျခခံအခ်က္ေတြကေတာ့
• ဖုန္းနဲ႕ကြန္ပ်ဴတာခ်ိတ္ထား.မထားသိရျခင္း
• ဖုန္းကုိ ကြန္ပ်ဴတာမွ reboot ျပဳလုပ္ျခင္း
• ဖုန္း၏ Recovery, download, bootloader စသည္မ်ားအား ကြန္ပ်ဴတာမွ ဝင္ေရာက္ႏူိင္ျခင္း
• ဖုန္းသို႕ ေဆာ့ဝဲမ်ားထည့္သြင္းျခင္း။ ဖုန္းမွ ေဆာ့ဝဲမ်ား ထုတ္ယူျခင္း
• ဖုန္း အတြင္းသို႕ ဖုိင္မ်ားထည့္သြင္း ။ ထုတ္ယူ ျခင္း
• Shell command ကိုသံုးျပီး system ကုိ လိုသလုိ ျပဳျပင္ႏူိင္ျခင္း
စသည္ျဖင့္ ျပဳလုပ္ႏူိင္ပါတယ္။
[1] ပထမဆံုးအခ်က္ျဖစ္တဲ့ ဖုန္းနဲ႕ ကြန္ပ်ဴတာ ခ်ိတ္ထားမထားသိခ်င္ရင္ စစ္ဖုိ႕ command ပါ။
Win + R နဲ႕ Runbox ေခၚပါ။ ျပီးတာနဲ႕ Runbox မွာ cmd လုိ႕ရုိက္. Command Prompt
ေပၚလာတာနဲ႕ adb devices လို႕ရုိက္လုိက္ပါ။ Device သိတယ္.ခ်ိတ္မိတယ္ ဆုိရင္
List of device attached မွာ device list ေပၚလာပါမယ္။ ေအာက္က ပံုကိုၾကည့္ပါ။
မခ်ိတ္မိရင္ေတာ့ device list ေပၚမွာမဟုတ္ပါဘူး။
[2] ဖုန္းကုိ လွမ္းျပီး command ေပးဖုိ႕အတြက္ ေအာက္က command ေလးေတြနဲ႕စမ္းပါ။
ဖုန္းကုိ ျပန္လည္စတင္ဖုိ႕ Command prompt မွာ adb reboot လုိ႕ရုိက္ပါ။
ဖုန္းကို Recovery mode ဝင္ဖုိ႕ adb reboot recovery လုိ႕ရုိက္ပါ။
ဖုန္းကုိ Fastboot mode ဝင္ဖုိ႕ adb reboot-bootloader လို႕ရုိက္ပါ။
ဖုန္းကို Download mode ဝင္ဖုိ႕ adb reboot download လုိ႕ရုိက္ပါ။ (Samsung မ်ားအတြက္)
အခုေနာက္ပုိင္းေခတ္စားေနတဲ့ edl mode ဝင္ဖုိ႕အတြက္ adb reboot edl လုိ႕ရုိက္ပါ။ (Qualcomm)
[3]
ေနာက္ဆံုးကေတာ့ shell command ေတြပဲျဖစ္ပါတယ္။
Shell command ေတြကုိသံုးျပီး device ကုိ ျပဳျပင္ ။ စီမံလုိ႕ရပါတယ္။
Device ရဲ႕ အေျခအေန အားလံုးျခံဳငံုျပီးၾကည့္ရန္ adb shell getprop ပါ။
Getprop မွာပါတဲ့ detail ေတြထဲကမွ ကုိယ္သိခ်င္တာပဲ ခြဲသိခ်င္ရင္.
ဥပမာ - ေမာ္ဒယ္နံပါတ္ၾကည့္ဖုိ႕အတြက္
Adb shell getprop ro.product.model ျဖစ္ပါတယ္။
အေပၚက command ရုိက္တာနဲ႕ model number ကုိပဲ ျပေပးမွာျဖစ္ပါတယ္။
ေအာက္မွာ command list ေတြကုိေပးထားပါတယ္။ tool ေတြေရးတဲ့အခါ device ရဲ႕ info ကုိၾကည့္ဖုိ႕
အသံုးဝင္ command ေတြပါ။
General Information
*******************
1) Device Brand Name - adb shell getprop ro.product.brand
2) Device Model Name - adb.shell getprop ro.product.model
3) Time Zone - adb shell getprop persist.sys.timezone
4) Android Version - adb shelll getprop ro.build.version.release
5) Build No - adb shell getprop ro.build.display.id
6) Platform Version - adb shell getprop ro.board.platform
7) SDK Version (API Level) - adb shell getprop ro.build.version.sdk
8) Product Name - adb shell getprop ro.product.name
9) Release Date - adb shell getprop ro.build.date
10) Board Model - adb shell getprop ro.product.board
11) Language - adb shell getprop ro.product.locale.language
12) Region - adb shell getprop ro.product.locale.region
13) DeviceID - adb shell getprop net.hostname
14) Kernel Version - adb shell cat /proc/version
15) Fingerprint - adb shell getprop ro.build.fingerprint
16) Usage Time - adb shell uptime
17) USB Configuration - adb shell getprop persist.sys.usb.config
Network & Radio Information
***************************
1) Network Type - adb shell dumpsys iphonesubinfo | findstr "Phone Type"
(For Windows)
Phone Type - adb shell dumpsys iphonesubinfo | grep 'Phone Type' (For Linux or Shell)
2) IMEI No - adb shell dumpsys iphonesubinfo | findstr "Device ID"
(1 ႏွင့္ 2 ဟာ တခ်ိဳ႕ Lollipop ဖုန္းမ်ား၊ Kitkat ဖုန္းမ်ားတြင္ အဆင္မေျပပါ )
3) Sim Card 1 Operator - adb shell getprop gsm.operator.alpha
4) Sim Card 1 AreaCode - adb shell getprop gsm.operator.numeric
5) Sim Card 1 NetworkType - adb shell getprop gsm.network.type
6) Sim Card 1 Country - adb shell getprop gsm.operator.iso-country
7) Sim Card 1 Operator/AreaCode/NetworkType and All Info
adb shell dumpsys telephony.registry
8) Sim Card 2 Operator - adb shell getprop gsm.operator.alpha2
9) Sim Card 2 AreaCode - adb shell getprop gsm.operator.numeric2
10) Sim Card 2 Networktype - adb shell getprop gsm.network.type2
11) Sim Card 2 Country - adb shell getprop.iso.country2
8) Sim Card 2 Operator/ AreaCode/Network type and all info
adb shell dumpsys telephony.registry2
(3) မွ (8) အထိသည္ Device အတြင္း Sim Card ထည္႔ထားမွ အလုပ္လုပ္ပါသည္။
9) Baseband Version - adb shell getprop gsm.version.baseband
10) Wifi/ Wifi Directed / Loopback IP Address / MAC Address ( All Info) - adb shell netcfg
11) Mobile Data/ Wifi / Hotspot etc Information - adb shell dumpsys connectivity
12) Bluetooth Info - adb shell dumpsys bluetooth_manager
( တစ္ခ်ိဳ႕ဖုန္းမ်ားတြင္ အလုပ္မလုပ္ပါ)
Display Info
***************
1) All Display Info - adb shell dumpsys display
2) Resolution - adb shell dumpsys display | findstr "DisplayDeviceInfo"
3) Density - adb shell getprop ro.sf.lcd_density
4) Orientation - adb shell dumpsys SurfaceFlinger | findstr "orientation"
(if orientation = 0 then Portrait and 1 then Landscape)
5) Refresh Rate - adb shell dumpsys SurfaceFlinger | findstr "refresh-rate"
6) Pixel per Inch
X Axis - adb shell dumpsys SurfaceFlinger | findstr "x-dpi"
Y Axis - adb shell dumpsys SurfaceFlinger | findstr "y-dpi"
7) ScreenSize - square root of ((x resolution * x resoultion) + (y resolution * y resolution) / x axis pixel per inch)
Battery Info
*************
1) AC Power - adb shell dumpsys battery | findstr "AC"
2) USB Power - adb shell dumpsys battery | findstr "USB"
3) Wifi Power - adb shell dumpsys battery | findstr "Wireless"
4) Status - adb shell dumpsys battery | findstr "status"
1- Unknown Battery Status,
2 - Charging,
3 - Discharging,
4 - Not charging,
5 - Full charging
5) Health - adb shell dumpsys battery | findstr "health"
1 - Unknown Health State,
2 - Good,
3 - Overheat,
4 - Dead,
5 - Over voltage,
6 - Unknown failure,
7 - Cold Battery
6) Level - adb shell dumpsys battery | findstr "level"
7) Voltage - adb shell dumpsys battery | findstr "voltage"
8) Temperature - adb shell dumpsys battery | findstr "temp"
value=temperature/10 in celcius
9) Technology - adb shell dumpsys battery | findstr "tech"
10) Electric Current - adb shell dumpsys battery | findstr "current"
(ဖုန္းတိုင္းတြင္ အဆင္မေျပပါ)
Root and Busybox Info
********************
1) Root Check - adb shell su -v
(if /system/bin/sh: su: not found then device is not root)
2) Busybox Check - adb shell busybox
(if /system/bin/sh: busybox: not found then device has no busybox)
--------------------------------------------------------------------------------------------------------------------
Processor Soc (CPU, GPU) Info
*****************
1) All Processor Info - adb shell cat /proc/cpuinfo
2) CPU Max Clock speed - adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
value is hertz (Hz)
3) GPU Vendor - adb shell dumpsys SurfaceFlinger | findstr "GLES"
4) GPU Clock Speed - adb shell cat /sys/class/kgsl/kgsl-3d0/max_gpuclk
(Andreno GPU ကုိသာ ၾကည္႔ႏိုင္ပါသည္။ Mali ကို မရပါ။
-----------------------------------------------------------------------------------------------------------------------------------------
Sensor Info
**************
1) All Sensor Info - adb shell dumpsys sensorservice
Mount Point Info
****************
1) All Mount Point - adb shell mount
RAM (Memory) Info
********************
1) All Memory Info - adb shell cat /proc/meminfo
--
ROM (Storage) Info
*******************
1) All Storage Info - adb shell df
Pdf ရယူရန္ - http://bluenik.com/nX7
No comments: