Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Etrnaly
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 25
Join Date: Jul 2010
Default [Tool] Inject Apps to ROM for Installation

If you're like me, you probably have installed a new ROM at least once a week. I usually use Titanium Backup to restore all my Apps, but it takes quite a long time since I use a lot of Apps. Also, if you don't have the Pro version of Titanium Backup, you will need to click through the Install button for every App you want to install.

This program is a simple way to fix that. What it does is it injects you Apps as part of the ROM when you install a new ROM. This way, as soon as you install your ROM, your Apps will already be installed as part of the ROM.

I have only tried this with the latest Team Whiskey Onyx ROM, but it should work with most, if not all ROMs.

Also, not all Apps can be installed this way, especially if you try to include the data. YMMV.


INSTRUCTIONS

Prepare your computer

1. Install Java JRE and SDK.
2. Install 7-Zip. It can be found here: http://www.7-zip.org/
3. Download Testsign.jar. It can be found here: http://www.robmcghee.com/android/cre...e-zip-package/. Download the file "Testsign.zip" and extract it. Testsign.jar should be in there. You will need this later.
4. Set up your windows Path Environment.
a. Go to your Control Panel and open "System."
b. For Windows 7, you will need to click on "Advanced System Settings."
c. Go to the "Advanced" tab.
d. Click on the "Environment Variables" button.
e. Under "System Variables" find "Path." Select it and click on the "Edit" button.
f. A window should pop up a field for "Variable value." In there, you will want to add your 7-Zip and Java SDK bin path. At the end of "Variable value," add (without the quotes)

";C:\Program Files (x86)\Java\jre6\bin;C:\Program Files\7-Zip"

It might be slightly different for you if you're not using a 64-bit Windows. Basically, this step is to allow you to run the Java and 7-Zip command-line tools from anywhere in your system.
5. Reboot your computer.
6. Test to make sure you can run the Java tools and 7-Zip tools. Do this by running "cmd." A command-line prompt should appear. In there, type "java" and hit enter. The usage info for running java should appear. Now type "7z" and hit enter. The usage info for 7-Zip should appear. Your computer is now set up to run my batch file.



Prepare your Apps

WARNING: Not all Apps work using this method, and not all data can be restored using this method. If it doesn't work, you can restore it using Titanium Backup and it should work fine. Once you find that a certain App doesn't work, you should probably remove it from your App/Data folder (read below) so it doesn't install next time using this method.

1. Get all your APKs and data. The easiest way I know how to do this is by using Titanium Backup to make a backup of all my Apps.
2. Use Titanium Backup and back up your Apps.
3. Inside your SD Card, you should have a TitaniumBackup folder. All your Apps and data are in here. Every App you have backed up in Titanium should have 3 files. A .properties file, a apk.gz file, and a tar.gz file. The apk.gz file will contain your APK. The tar.gz file will contain your data. You can extract these files using something like WinRAR.
4. Extract your APKs and put them in a folder called "data\app". Extract your App's data and put them in a folder called "data\data". Your "data\data" should look something like this "data\data\com.appname".
5. Once this is complete, you can use this APK/data set for any future ROMs.



Create your ROM with your Apps

1. Put AppToROM.bat, testsign.jar, your data folder, and your ROM's zip into the same folder.
2. Drag your ROM's zip onto AppToROM.bat.
3. The batch file will now start creating your new ROM for you. It will do the following steps:
a. Extract your ROM.
b. Copy your data to the extracted ROM folder.
c. Zip everything back up.
d. Sign the new Zip.
4. When everything is done, you should have a "NewROM.zip" file. Use this new Zip file to install your ROM like you normally would.



Disclaimer:

I take no responsibility for any harm that this may do to your device. All of the tools here, except the bat file, I did not write. I just created a bat file that puts all the tools together to make it easier to install your Apps after installing a new ROM.
Attached Files
File Type: zip AppToROM.zip - [Click for QR Code] (2.0 KB, 80 views)
The Following User Says Thank You to Etrnaly For This Useful Post: [ Click to Expand ]
 
blackerwater
Old
#2  
blackerwater's Avatar
Senior Member
Thanks Meter 50
Posts: 832
Join Date: Apr 2007
Location: Seattle

 
DONATE TO ME
or you could just open your update.zip and place your apks in system/app re-zip and flash. Done this multiple times and it works. just need to keep a copy of your apks on your computer. ill try this method tonight. thanks
-Vibrant-root-exthack-morphed-my own custom rom

-Nexus S Deodexed Memory Hack OG kernel custom.

-Lg Gslate Rooted

-Wifeys G2

and the retarded little cousin of the G2 mytouch slide running CM

Use drop box. Sign up now! Thanks

Sign up using this link and get a bonus:
https://www.dropbox.com/referrals/NTQyNzg2MTc5
 
Etrnaly
Old
#3  
Junior Member - OP
Thanks Meter 1
Posts: 25
Join Date: Jul 2010
If you put it into "system/app" it will install it as a System app, and I believe you can't uninstall it regularly (kind of like how you can't install the bloatware). You will need to use Titanium Backup to uninstall it.

Also, I remember reading that some people were not able to install the ROMs after zipping it up because it's not signed.

This script is very simple. It basically just unzips the ROM, copies over your apps, zips back the ROM, and then signs it. Once you have your Windows set up, you can just drag and drop the ROM to the .bat file and it'll do all that for you.

Is this useless? Maybe. But, the same could be said for something like RyanZA's OCLF. You can sit there, type in all the commands to convert to EXT2, wait for it to convert, and reboot, or you can just run OCLF (which is basically just running a script for the conversion, to put it simply).
 
epakrat75
Old
#4  
Senior Member
Thanks Meter 105
Posts: 1,030
Join Date: Aug 2010
Location: Chicago
Quote:
Originally Posted by blackerwater View Post
or you could just open your update.zip and place your apks in system/app re-zip and flash.
Why not just put them into data/app instead?
 
Chrsp
Old
#5  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Oct 2010
Default or you could just...

Or you could just download a pro version of titanium backup so that it can restore all your apps without you needing to click. There are plenty to be found online. The latest version, the better, as it would be more stable with froyo
 
ipeench
Old
#6  
ipeench's Avatar
Senior Member
Thanks Meter 29
Posts: 443
Join Date: Jun 2010
Location: Chicago
So doing things this way... since it will be signed, i can also take other things out form other roms that i like and toss them in this rom??

Phone: Galaxy S 2 (T-989 hercules)
Current Rom: CM10
=============
Phone: Nook Color
Current Rom: CM10betas
=============
R.I.P
G1, Vibrant, GX2, Razr Maxx
=============

Don't be scared to ask questions, sometimes its the only way to learn.
BUT ALWAYS SEARCH FIRST!
 
lou0611
Old
#7  
lou0611's Avatar
Senior Member
Thanks Meter 20
Posts: 422
Join Date: Sep 2008
Location: Yardley

 
DONATE TO ME
I have titanium paid version. Just run it and it does everything

Sent from my SGH-T959 using XDA App
Samsung galaxy Note i717 ICS 4.0.3 Beta
 
Anderdroid
Old
#8  
Anderdroid's Avatar
Senior Member
Thanks Meter 103
Posts: 1,198
Join Date: Dec 2009
Location: Palo Alto

 
DONATE TO ME
Dude it's called WinRAR. Open up the zip. Drop your apps into the data/app folder.

Then flash it. Simple.

Want certain apps to stay even after hard resetting? put them in system/app

This tool is completely unnecessary.
AppLovin Android Developer
Developer of quake3droid



Follow me on Twitter !
http://twitter.com/LeakedDave
 
dddtc2005
Old
#9  
dddtc2005's Avatar
Member
Thanks Meter 5
Posts: 84
Join Date: Sep 2010
Location: Tianjin

 
DONATE TO ME
That's really a good idea. I like the method very much, it give me more free time to do some other things when flashing...Thanks !
 
kangxi
Old
#10  
kangxi's Avatar
Senior Member
Thanks Meter 150
Posts: 1,090
Join Date: Jun 2010
Location: Orlando

 
DONATE TO ME
Quote:
Originally Posted by Anderdroid View Post
Dude it's called WinRAR. Open up the zip. Drop your apps into the data/app folder.

Then flash it. Simple.

Want certain apps to stay even after hard resetting? put them in system/app

This tool is completely unnecessary.
Ditto. This seems way more complicated then the method I've been using. You say it's simple that there are like 20 steps.
Find out how to get free mobile service!: Click Here!
Co-Founder of Howard Family Studios, LLC

Producers of MeetSuite

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more