FORUMS
Remove All Ads from XDA

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

64 posts
Thanks Meter: 56
 
Post Reply Email Thread
16th October 2015, 12:07 AM |#21  
arlaor's Avatar
Senior Member
Flag Isnos
Thanks Meter: 20
 
Donate to Me
More
Quote:
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.

Installing:

Download my scripts http://github.com/wilmsn/myGAPPS/archive/master.zip and extract them at a place on your choice on your computer, called later.
Goto \tools
Extract dos2unix here
Extract 7za442.zip here
Extract here this files from the sign archive: signapk.jar http://github.com/appium/sign/raw/ma...st/signapk.jar, testkey.pk8 http://github.com/appium/sign/raw/master/testkey.pk8, testkey.x509.pem http://raw.githubusercontent.com/app...stkey.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)

Code:
#!/bin/bash
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
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\*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
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
echo "Press any key to continue"
read any
echo "Zipping"
7za a -tzip "../updateold.zip" "../extract/*" -mx
echo "Signing"
java -Xmx512m -jar signapk.jar -w testkey.x509.pem testkey.pk8 ../updateold.zip ../mygapps/mygapps.zip
cd ..
rm updateold.zip
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?
 
 
4th December 2016, 05:33 PM |#22  
Xaif's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 24
 
Donate to Me
More
This is still working?
4th December 2016, 07:37 PM |#23  
wilmsn's Avatar
OP Member
Flag Muenster
Thanks Meter: 56
 
More
Quote:
Originally Posted by Xaif

This is still working?

Should work, but today we have opengapps with some prebuild packages.
4th December 2016, 07:39 PM |#24  
Xaif's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 24
 
Donate to Me
More
Quote:
Originally Posted by wilmsn

Should work, but today we have opengapps with some prebuild packages.

Means I want to create My Own Gapps. You know something our own
4th December 2016, 07:51 PM |#25  
wilmsn's Avatar
OP Member
Flag Muenster
Thanks Meter: 56
 
More
Quote:
Originally Posted by Xaif

Means I want to create My Own Gapps. You know something our own

So try it and post your result here. It schould work - but only for Kitkat!
The Following User Says Thank You to wilmsn For This Useful Post: [ View ] Gift wilmsn Ad-Free
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes