-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush.bat
More file actions
96 lines (90 loc) · 1.85 KB
/
push.bat
File metadata and controls
96 lines (90 loc) · 1.85 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
@echo off
title ADB Pusher
color 5f
:PUSH
cls
ECHO 1 - Push apk to /system/app as system app.
ECHO 2 - Push framework-res.apk to /system/framework
ECHO 3 - Push SemcGenericUxpRes.apk to /system/framework
ECHO 4 - Return to main menu.
ECHO.
SET /P M=Type your choice then press ENTER:
IF %M%==1 GOTO PUSHSYS
IF %M%==2 GOTO PUSHFRA
IF %M%==3 GOTO PUSHSGU
IF %M%==4 GOTO MENU
:PUSHSYS
cls
ECHO Please keep your apk in /PUSH/SYS/ directory, then press ENTER to continue.
ECHO.
PAUSE
adb remount
FOR /r PUSH/SYS/ %%f in (*.apk) DO adb push "%%f" /system/app/
if errorlevel 1 (
echo There's something wrong.
PAUSE
goto err
)
adb shell chmod 644 /system/app/*.*
ECHO Done! Press any key to reboot.
ECHO.
PAUSE
ECHO Rebooting...
ECHO.
adb reboot
adb kill-server
GOTO PUSH
:PUSHFRA
cls
ECHO Please keep the framework-res.apk in /PUSH/FRA/ directory, then press ENTER to continue.
ECHO.
PAUSE
adb remount
adb push PUSH/FRA/framework-res.apk /system/framework/
if errorlevel 1 (
echo There's something wrong.
PAUSE
goto err
)
adb shell chmod 644 /system/framework/framework-res.apk
ECHO Done! Press any key to reboot.
ECHO.
PAUSE
ECHO Rebooting...
ECHO.
adb reboot
adb kill-server
GOTO PUSH
:PUSHSGU
cls
ECHO Please keep the SemcGenericUxpRes.apk in /PUSH/SGU/ directory, then press ENTER to continue.
ECHO.
PAUSE
adb remount
adb push PUSH/SGU/SemcGenericUxpRes.apk /system/framework/
if errorlevel 1 (
echo There's something wrong.
PAUSE
goto err
)
adb shell chmod 644 /system/framework/SemcGenericUxpRes.apk.apk
ECHO Done! Press any key to reboot.
ECHO.
PAUSE
ECHO Rebooting...
ECHO.
adb reboot
adb kill-server
GOTO PUSH
:err
cls
echo.
echo ___________________________________________________________________________
echo.
echo Failed. Press Any key to exit.
echo ___________________________________________________________________________
echo.
pause
exit
:MENU
call GRT.bat