Remove All Ads from XDA

[Script][GAPPS][KitKat] make your own custom package

53 posts
Thanks Meter: 53
Post Reply Email Thread
15th October 2015, 11:07 PM |#21  
arlaor's Avatar
Senior Member
Flag Isnos
Thanks Meter: 19
Donate to Me
Originally Posted by broodplank1337

Nice , I suggest you could maybe just add the needed binaries in the folder.

so the installing part will be reduced from 5 steps to just 1.


Download my scripts and extract them at a place on your choice on your computer, called later.
Goto \tools
Extract dos2unix here
Extract here
Extract here this files from the sign archive: signapk.jar, testkey.pk8, testkey.x509.pem

(Make sure you have installed java runtime on your computer)

Second, thing I wanted to say, since actually all rom builders that will need gapps are on linux you could maybe make an additional shell script, since there wont be a lot of windows users that build open source roms

here is some example of how it would be in bash/shell script (linux)

mkdir tools
cd tools
echo "Now configuring your GAPPS...."
echo "ui_print(" ");" > updater-script
echo "ui_print("Make your own GAPPS");" >> updater-script
echo "ui_print(" ");" >> updater-script
echo "ui_print("   by N.Wilms");" >> updater-script
echo "ui_print("Mounting system...");" >> updater-script
echo "run_program("/sbin/busybox", "mount", "/system");" >> updater-script
echo "show_progress(10, 10);" >> 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!"
echo "Delete old GAPPS from existing ROM [y/n]?:"
read delOLD 
if [[ $delOLD == "y" ]]
 cat `deloldgapps.txt` >> updater-script
echo "show_progress(10, 10);" >> updater-script
 cat `instgapps.txt` >> updater-script
echo "Now extracting ....."
7za -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
7za x -o..\extract ..\*.zip system\addon.d\* >> output.txt
7za x -o..\extract ..\*.zip system\app\GoogleContactsSyncAdapter.apk >> output.txt
7za x -o..\extract ..\*.zip system\etc\permissions\ >> output.txt
7za x -o..\extract ..\*.zip system\etc\permissions\ >> output.txt
7za x -o..\extract ..\*.zip system\etc\permissions\ >> output.txt
7za x -o..\extract ..\*.zip system\etc\permissions\features.xml >> output.txt
7za x -o..\extract ..\*.zip system\framework\ >> output.txt
7za x -o..\extract ..\*.zip system\framework\ >> output.txt
7za x -o..\extract ..\*.zip system\framework\ >> 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
mv 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!"
echo "Press any key to continue"
read any
echo "Zipping"
7za a -tzip "../" "../extract/*" -mx
echo "Signing"
java -Xmx512m -jar signapk.jar -w testkey.x509.pem testkey.pk8 ../ ../mygapps/
cd ..
echo "Press any key to continue"
read any

Not tested but this should somewhat do the trick on linux

They are sure that they are all steps? not get it to work with the steps taken. Sure you have not missed any step? as decompress gapps preferred in some folder?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes