Skip to content

Commit 02fc096

Browse files
authored
Update Fire-Tools.ps1
- Added device identifier in title bar - Fixed forms not showing up
1 parent 2ae39ec commit 02fc096

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

Fire-Tools/Fire-Tools.ps1

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
#!/bin/powershell
22

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+
}
523

624
# UI
25+
Add-Type -AssemblyName System.Windows.Forms
726
$Form = New-Object System.Windows.Forms.Form
8-
$Form.Text = "Fire-Tools"
27+
$Form.Text = "Fire-Tools - $device"
928
$Form.StartPosition = "CenterScreen"
1029
$Form.ClientSize = New-Object System.Drawing.Point(445,250)
1130
$Form.BackColor = "Silver"

0 commit comments

Comments
 (0)