FORUMS

ZenFone 2 Lolliflash and ZenPower Giveaway!

We recently did an in-depth review of the Asus Zenfone 2 but one of the things people may … more

OnePlus 2 Forums: Discuss Everything About The OP2!

Now that the OnePlus 2 has been officially unveiled and that we have had close-up … more

Intel & Micron Announce “Revolutionary” Storage Tech

Intel & Micron have announced 3D Xpoint technology—”the … more

Google Now Interfaces With Third-Party Messaging Apps

Google has announced that Ok Google voice commands can now be used to send … more

[Windows] Make update.zip of Google apps from NAND dump! Works w/ 1.6 and new Market!

409 posts
Thanks Meter: 4
 
By UnkzDomain, Senior Member on 27th September 2009, 05:04 PM
Post Reply Subscribe to Thread Email Thread
GApps2zip

This script makes an update.zip file that only contains the Google Apps from the HTC release of the 1.5 firmware upgrade for the ADP 1. This update.zip should be flashable on any build and it should work without a problem, but since I'm just a n00b sophomore in highschool, I am naturally poor and can't guarantee anything.

Because there are already a few alternatives to this for Linux and the majority of Android users use Windows, I decided to make this a Windows-only batch script.

You MUST have the Java Runtime Environment installed in order to run this script! The signing utility requires Java and you won't be able to flash an unsigned update. If it doesn't work even if you have Java, you may have to reinstall Java as it is not in your PATH variable for whatever reason.

UPDATE
: Updated and, as far as I know, should now work fine with the 1.6 developer images from HTC as well as personal NANDroid backups of most all 1.6 Android ROMs.


INSTRUCTIONS
1) Either do a or b. It is advised to use a personal NANDroid backup (b) as it does not violate any licenses, but it has not been tested
a) Google for the file "signed-dream_devphone_userdebug-img-14721.zip" It should be on the HTC support page for the ADP 1, but it wont be the first result in Google. It is not advised to use this method as you need to agree to a license prohibiting modification of the file in order to download it. Rename the file to "backup.zip"
b) Restore to a regular build that has all of the Google Apps (like the regular OTA cupcake update) and then run a NANDroid backup. Then make a zip file that only has the system.img file from the NANDroid dump and name the zip "backup.zip"
2) If you haven't already, unzip the entire contents of the gapps2zip.zip file into a directory. For sake of simplification, I am assuming it is unzipped to C:\gapps2zip


3) Place the "backup.zip" file in the same directory as the GApps2zip.bat file (C:\gapps2zip) and DON'T rename it or unzip it.


4) Open up a command prompt window (Hit Windows + R, type in CMD, then click OK)


5) cd to the directory in which the GApps2zip.bat file, utils directory and the backup.zip file. For example:

Code:
 cd C:\gapps2zip
6)Type in "GApps2zip.bat" (without the quotes) and hit enter. Watch and wait.


7) If all goes well, you should have an update_gapps.zip folder in C:\gapps2zip. Put it on your SD card, make a NANDroid backup, and flash after flashing an AOSP (Android Open Source Project) build that doesn't include the Google Apps.


Credits
  • Cyanogen for his hard work and dedication
  • Maxisma for a similar script on which this is based
  • Google for their ingenious ideas (although their legal department can be a pain)
  • Everyone who is willing to test this script out
  • Everyone else xD

Redistribution
Feel free to redistribute the archive wherever you like, but please give me credit along with Maxisma and do not modify the archive in any way.
Attached Files
File Type: zip gapps2zip.zip - [Click for QR Code] (388.5 KB, 446 views)
Last edited by UnkzDomain; 4th January 2010 at 06:41 PM. Reason: Updated to work with 1.6 System Dumps
 
 
27th September 2009, 05:18 PM |#2  
Senior Member
Thanks Meter: 12
 
More
Great job unk!
27th September 2009, 05:36 PM |#3  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by amgupt01

GApps2zip - Created by Ankush Gupta (twitter.com/unkzdomain and unkzdomain.com)

This script makes an update.zip file that only contains the Google Apps from the HTC release of the 1.5 firmware upgrade for the ADP 1. This update.zip should be flashable on any build and it should work without a problem, but since I'm just a n00b sophomore in highschool, I am naturally poor and can't guarantee anything.

Because there are already a few alternatives to this for Linux and the majority of Android users use Windows, I decided to make this a Windows-only batch script.

You MUST have the Java Runtime Environment installed in order to run this script! The signing utility requires Java and you won't be able to flash an unsigned update.

This script does NOT work on a build that includes the new market as there are some incompatibilities with the files for it and the ones provided by HTC (namely the MarketUpdater.apk for the new market). This is pretty much doesn't matter however, because all AOSP builds will not include ANY Android market anyways.


INSTRUCTIONS
1) Google for the file "signed-dream_devphone_userdebug-img-150275.zip" (It should be on the HTC support page for the ADP 1, but it wont be the first result in Google)


2) If you haven't already, unzip the entire contents of this zip file into a directory. For sake of simplification, I am assuming it is unzipped to C:\gapps2zip


3) Place the "signed-dream_devphone_userdebug-img-150275.zip" file in the same directory as the GApps2zip.bat file (C:\gapps2zip) and DON'T rename it.


4) Open up a command prompt window (Hit Windows + R, type in CMD, then click OK)


5) cd to the directory in which the GApps2zip.bat file, utils directory and the signed-dream_devphone_userdebug-img-150275.zip file. For example:

Code:
 cd C:\gapps2zip
6)Type in "GApps2zip.bat" (without the quotes) and hit enter. Watch and wait.


7) If all goes well, you should have an update_gapps.zip folder in C:\gapps2zip. Put it on your SD card, make a NANDroid backup, and flash after flashing an AOSP (Android Open Source Project) build that doesn't include the Google Apps.


Credits
  • Cyanogen for his hard work and dedication
  • Maxisma for a similar script on which this is based
  • Google for their ingenious ideas (although their legal department can be a pain)
  • Everyone who is willing to test this script out
  • Everyone else xD

Redistribution
Feel free to redistribute the archive wherever you like, but please give me credit along with Maxisma and do not modify the archive in any way.


when it asks u to replace system.img, do you click yes or no?
27th September 2009, 05:47 PM |#4  
Senior Member
Thanks Meter: 203
 
More
Looks interesting ill test it out later
27th September 2009, 05:55 PM |#5  
UnkzDomain's Avatar
OP Senior Member
Flag Louisville
Thanks Meter: 4
 
More
Quote:
Originally Posted by Guyver75

when it asks u to replace system.img, do you click yes or no?

You click Yes. You shouldnt have extracted the zip though, but it won't make a difference anyways.
27th September 2009, 06:06 PM |#6  
Senior Member
Thanks Meter: 203
 
More
Looks interesting ill test it out later
27th September 2009, 06:45 PM |#7  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by amgupt01

You click Yes. You shouldnt have extracted the zip though, but it won't make a difference anyways.

oh ok, oops. i clicked no. guess ill have to redo it
27th September 2009, 06:48 PM |#8  
Senior Member
Flag Dallas
Thanks Meter: 88
 
More
ok trying to understand this. From what i get is you download, Lets say cm 4.2 without google (made up rom dont go looking for it)

then you flash that to are phone.
next when flash update_gapps.zip
Then we will have a cm rom with google apks?

And in returns the update_gapps is kinda like a theme only adding the needed files?
27th September 2009, 06:51 PM |#9  
UnkzDomain's Avatar
OP Senior Member
Flag Louisville
Thanks Meter: 4
 
More
Quote:
Originally Posted by xile6

ok trying to understand this. From what i get is you download, Lets say cm 4.2 without google (made up rom dont go looking for it)

then you flash that to are phone.
next when flash update_gapps.zip
Then we will have a cm rom with google apks?

And in returns the update_gapps is kinda like a theme only adding the needed files?

Exactly. The only thing is that since this uses an official, legal source, it doesn't include the new market and stuff...
27th September 2009, 06:53 PM |#10  
Senior Member
Flag Dallas
Thanks Meter: 88
 
More
Ok cool but once 1.6 adp1 is out we will have to update the script and do this again?
27th September 2009, 06:54 PM |#11  
Senior Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by amgupt01

This script makes an update.zip file that only contains the Google Apps from the HTC release of the 1.5 firmware upgrade for the ADP 1.

I applaud your efforts to help the community. Many thanks.

For those who think this is proof modding and this community will live on, think again. What he's doing aids and abets violation of Goog's rights. This thread will be locked and the links taken down. Welcome to the new world of Android.

Read More
Post Reply Subscribe to Thread

Tags
android, aosp, google apps, htc, unkzdomain
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes