File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
1
# !/bin/powershell
2
2
3
- # Check ADB connection
4
- adb shell echo Device Connected
3
+ # Device Identifier
4
+ $device = (adb shell getprop ro.product.model)
5
+ if ( " KFMUWI" -eq $device ) {
6
+ $device = " Fire 7 (9th Gen)"
7
+ }
8
+ elseif ( " KFKAWI" -eq $device ) {
9
+ $device = " Fire HD 8 (8th Gen)"
10
+ }
11
+ elseif ( " KFONWI" -eq $device ) {
12
+ $device = " Fire HD 8 (10th Gen)"
13
+ }
14
+ elseif ( " KFMAWI" -eq $device ) {
15
+ $device = " Fire HD 10 (9th Gen)"
16
+ }
17
+ elseif ( " KFTRWI" -eq $device ) {
18
+ $device = " Fire HD 10 (11th Gen)"
19
+ }
20
+ else {
21
+ $device = " Unsupported Device"
22
+ }
5
23
6
24
# UI
25
+ Add-Type - AssemblyName System.Windows.Forms
7
26
$Form = New-Object System.Windows.Forms.Form
8
- $Form.Text = " Fire-Tools"
27
+ $Form.Text = " Fire-Tools - $device "
9
28
$Form.StartPosition = " CenterScreen"
10
29
$Form.ClientSize = New-Object System.Drawing.Point(445 , 250 )
11
30
$Form.BackColor = " Silver"
You can’t perform that action at this time.
0 commit comments