-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_logs.sh
More file actions
40 lines (31 loc) · 1.03 KB
/
check_logs.sh
File metadata and controls
40 lines (31 loc) · 1.03 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
#!/bin/bash
echo "=== 检查应用日志 ==="
echo ""
echo "1. 检查custom_spider.jar是否被加载:"
echo "---"
adb logcat -d | grep -i "custom_spider" | tail -20
echo ""
echo "2. 检查JarLoader相关日志:"
echo "---"
adb logcat -d | grep "JarLoader" | tail -20
echo ""
echo "3. 检查Spider初始化日志:"
echo "---"
adb logcat -d | grep -E "Spider|Init\.init" | tail -30
echo ""
echo "4. 检查是否有错误:"
echo "---"
adb logcat -d | grep -E "Error|Exception|Failed" | grep -i "fongmi\|spider\|jar" | tail -30
echo ""
echo "5. 检查DexNative相关问题:"
echo "---"
adb logcat -d | grep -i "DexNative" | tail -20
echo ""
echo "6. 检查APK中的jar文件:"
echo "---"
echo "检查已安装APK的assets目录..."
adb shell run-as com.fongmi.android.tv ls -la /data/data/com.fongmi.android.tv/cache/jar/ 2>/dev/null || echo "无权限访问,使用pull检查..."
echo ""
echo "=== 实时监控日志(按Ctrl+C停止)==="
adb logcat -c
adb logcat | grep -E "custom_spider|Spider|JarLoader|Init|fongmi" --color=always