-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmakeit.bat
executable file
·57 lines (55 loc) · 2.81 KB
/
makeit.bat
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
@echo off
rd /s /q extract
rd /s /q mygapps
md extract
md mygapps
cd tools
echo Now configuring your GAPPS....
type update_p1.txt > updater-script
echo I can delete the old GAPPS from your ROM.
echo For Details look at "tools/deloldgapps.txt"
echo If you have anything more to delete place it there!
set /p delOLD=Delete old GAPPS from existing ROM [y/n]?:
if "%delOLD%"=="y" (
type deloldgapps.txt >> updater-script
)
echo show_progress(10, 10); >> updater-script
type instgapps.txt >> updater-script
echo Now extracting .....
7za x -o..\extract ..\*.zip META-INF\CERT.RSA > output.txt
7za x -o..\extract ..\*.zip META-INF\CERT.SF >> output.txt
7za x -o..\extract ..\*.zip META-INF\MANIFEST.MF >> output.txt
7za x -o..\extract ..\*.zip META-INF\com\google\android\update-binary >> output.txt
rem 7za.exe x -o..\extract ..\*.zip system\addon.d\*gapps.sh >> output.txt
7za x -o..\extract ..\*.zip system\app\GoogleContactsSyncAdapter.apk >> output.txt
7za x -o..\extract ..\*.zip system\etc\permissions\com.google.android.maps.xml >> output.txt
7za x -o..\extract ..\*.zip system\etc\permissions\com.google.android.media.effects.xml >> output.txt
7za x -o..\extract ..\*.zip system\etc\permissions\com.google.widevine.software.drm.xml >> output.txt
7za x -o..\extract ..\*.zip system\etc\permissions\features.xml >> output.txt
7za x -o..\extract ..\*.zip system\framework\com.google.android.maps.jar >> output.txt
7za x -o..\extract ..\*.zip system\framework\com.google.android.media.effects.jar >> output.txt
7za x -o..\extract ..\*.zip system\framework\com.google.widevine.software.drm.jar >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\CalendarProvider.apk >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\GoogleBackupTransport.apk >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\GoogleFeedback.apk >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\GoogleLoginService.apk >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\GooglePartnerSetup.apk >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\GoogleServicesFramework.apk >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\Phonesky.apk >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\PrebuiltGmsCore.apk >> output.txt
7za x -o..\extract ..\*.zip system\priv-app\SetupWizard.apk >> output.txt
dos2unix updater-script
move updater-script ..\extract\META-INF\com\google\android >> output.txt
echo If you would like to add some APKs?
echo Copy them to the right place in the "extract" dir.
echo Or change something else?
echo Now its the time!
pause
echo Zipping
7za a -tzip ../mygapps_unsigned.zip ../extract/* -mx
echo Signing
java -Xmx512m -jar signapk.jar -w testkey.x509.pem testkey.pk8 ../mygapps_unsigned.zip ../mygapps/mygapps.zip
cd ..
del mygapps_unsigned.zip
rd /s /q extract
pause