-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpull.bat
More file actions
129 lines (121 loc) · 2.49 KB
/
pull.bat
File metadata and controls
129 lines (121 loc) · 2.49 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@echo off
title ADB Puller
color 5f
:PULL
cls
ECHO 1 - Pull SystemUI from /system/app
ECHO 2 - Pull framework-res.apk from /system/framework
ECHO 3 - Pull SemcGenericUxpRes.apk from /system/framework
ECHO 4 - Pull all system apks.
ECHO 5 - Pull all installed apks.
ECHO 6 - Return to main menu.
ECHO.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO PULLSUI
IF %M%==2 GOTO PULLFRA
IF %M%==3 GOTO PULLSGU
IF %M%==4 GOTO PULLSYS
IF %M%==5 GOTO PULLDAP
IF %M%==6 GOTO MENU
:PULLSUI
cls
ECHO Press ENTER if you want to pull SystemUI from your device. You can find it in /PULL/SUI/ directory.
ECHO.
PAUSE
ECHO Pulling
ECHO.
adb pull /system/app/SystemUI.apk PULL/SUI
if errorlevel 1 (
echo There's something wrong.
PAUSE
goto err
)
ECHO Done. Press any key to return to previous menu.
ECHO.
PAUSE
adb kill-server
GOTO PULL
:PULLFRA
cls
ECHO Press ENTER if you want to pull framework-res.apk from your device. You can find it in /PULL/FRA/ directory.
ECHO.
PAUSE
ECHO Pulling
ECHO.
adb pull /system/framework/framework-res.apk PULL/FRA
if errorlevel 1 (
echo There's something wrong.
PAUSE
goto err
)
ECHO Done. Press any key to return to previous menu.
ECHO.
PAUSE
adb kill-server
GOTO PULL
:PULLSGU
cls
ECHO Press ENTER if you want to pull SemcGenericUxpRes.apk from your device. You can find it in /PULL/SGU/ directory.
ECHO.
PAUSE
ECHO Pulling
ECHO.
adb pull /system/framework/SemcGenericUxpRes.apk PULL/SGU
if errorlevel 1 (
echo There's something wrong.
PAUSE
goto err
)
ECHO Done. Press any key to return to previous menu.
ECHO.
PAUSE
adb kill-server
GOTO PULL
:PULLSYS
cls
ECHO Press ENTER if you want to pull all system apps from your device. You can find it in /PULL/SYS/ directory.
ECHO.
PAUSE
ECHO Pulling
ECHO.
adb pull /system/app/ PULL/SYS
if errorlevel 1 (
echo There's something wrong.
PAUSE
goto err
)
ECHO Done. Press any key to return to previous menu.
ECHO.
PAUSE
adb kill-server
GOTO PULL
:PULLDAP
cls
ECHO Press ENTER if you want to pull all installed apps from your device. You can find it in /PULL/DAP/ directory.
ECHO.
PAUSE
ECHO Pulling
ECHO.
adb pull /data/app/ PULL/DAP
if errorlevel 1 (
echo There's something wrong.
PAUSE
goto err
)
ECHO Done. Press any key to return to previous menu.
ECHO.
PAUSE
adb kill-server
GOTO PULL
:err
cls
echo.
echo ___________________________________________________________________________
echo.
echo Failed. Press Any key to exit.
echo ___________________________________________________________________________
echo.
pause
exit
:MENU
call GRT.bat