forked from srgneisner/hy300-linux-porting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate_task001.sh
More file actions
executable file
·63 lines (55 loc) · 1.36 KB
/
validate_task001.sh
File metadata and controls
executable file
·63 lines (55 loc) · 1.36 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
set -e
echo "Validating Task 001 Completion..."
echo "=================================="
echo ""
# Check ADB connection
echo -n "ADB connection: "
if adb devices | grep -q "device$"; then
echo "✅"
else
echo "❌"
fi
# Check root access
echo -n "Root access: "
if adb shell su -c "id" | grep -q "uid=0"; then
echo "✅"
else
echo "❌"
fi
# Check backup directory
echo -n "Backup directory structure: "
if [ -d backup ] && [ -d backup/device_info ]; then
echo "✅"
else
echo "❌"
fi
# Check documentation
echo -n "Documentation (root-access-verification.md): "
if [ -f hardware-access/root-access-verification.md ]; then
echo "✅"
else
echo "❌"
fi
# Check device info files
echo -n "Device info collection: "
if [ -f backup/device_info/model.txt ] && [ -f backup/device_info/kernel.txt ] && [ -f backup/device_info/cpuinfo.txt ]; then
echo "✅"
else
echo "❌"
fi
# Check storage info
echo -n "Storage info collected: "
if [ -f backup/device_storage_info.txt ]; then
echo "✅"
else
echo "❌"
fi
echo ""
echo "=================================="
echo "Validation complete!"
echo ""
echo "Summary:"
grep -E "processor|model name" /home/luca/Desktop/hy300-linux-porting/backup/device_info/cpuinfo.txt | head -2
echo "Device ID: $(adb devices | grep device | awk '{print $1}')"
echo "Root: $(adb shell su -c 'id' | grep -o 'uid=[0-9]*')"