-
Notifications
You must be signed in to change notification settings - Fork 14
/
buildSignature.sh
executable file
·46 lines (40 loc) · 1.46 KB
/
buildSignature.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Created by Sujay Davalgi
#
# Displays all the required parameters to test the Build Signature
#
# Usage: ./buildSignature.sh [<Device Serial>]
# Command line Arguments (Optional):
# $1 - Input the device serial
# IF the serial number is not provided, it will display the list of attached devices to pick from
. ./library/mainFunctions.sh
. ./library/textFormatting.sh
. ./library/deviceOperations.sh
if [ $# -lt 1 ]; then
getDeviceChoice
else
buildDeviceSnArray
deviceSerial="$1"
fi
displaySelectedDevice $deviceSerial
if [ $( isAdbDevice $deviceSerial ) == "true" ]; then
echo -e -n " Build ID: "
adb -s $deviceSerial wait-for-device shell getprop ro.build.id
echo -e -n " Device Baseband: "
adb -s $deviceSerial wait-for-device shell getprop ro.baseband
echo -e -n " Bootloader version: "
adb -s $deviceSerial wait-for-device shell getprop ro.boot.bootloader
echo -e -n " Build description: "
adb -s $deviceSerial wait-for-device shell getprop ro.build.description
echo -e -n " Build Android version: "
adb -s $deviceSerial wait-for-device shell getprop ro.build.version.release
echo -e -n " Build fingerprint: "
adb -s $deviceSerial wait-for-device shell getprop ro.build.fingerprint
echo -e -n " Build SDK Version: "
adb -s $deviceSerial wait-for-device shell getprop ro.build.version.sdk
echo -e -n " Build signature: "
adb -s $deviceSerial wait-for-device shell cat /proc/version
echo ""
else
echo " Device is not in 'adb' mode"
fi