[Q] Adding packages into flashable zips? - AT&T Samsung Galaxy S II Skyrocket SGH-I727

This may seem like a dumb question, but I don't know and I can't find the answer, so I'm going to ask:
If I put an apk into a flashable zip (I know how to add one to an existing zip, that's not the issue) but that app already exists in the ROM, will the new app overwrite the existing one?
For example, add an Apollo apk into a gapps flashable zip (or one that just flashes an inverted market, or something like that) and flash it over a CM10 install. In that instance, will it overwrite the existing app?
How can I set apk permissions from within a zip, or is that important to do?
Another question is: How do I create my own flashable zips? Is there a guide somewhere?

Google turned up quite a few guides to create flash able zips. Even one featured on xda from Sept 1.
Just google "create flashable zips Android"
Cheers!
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2

cameljon said:
Google turned up quite a few guides to create flash able zips. Even one featured on xda from Sept 1.
Just google "create flashable zips Android"
Cheers!
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
Thanks. I'll admit not searching for that particular part of my question before submitting it. I just typed it on the fly when I was typing up the rest of the post.

http://forum.xda-developers.com/showthread.php?t=1610121
Looks the closest to what you need. I may create a script to wipe / update my personal data every time I flash a ROM.
Thanks for the bread crumb!
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2

For flash able zips use App2Zip from the Play store. Works perfectly and very easy.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app

I think I figured out the bulk of my question. Yes, adding an Apollo apk to a flashable zip will overwrite the app already in /system/app, which is what I wanted.
Thanks to all who suggested ways to create my own zips.

Related

NOVA from new OTA

anyone wanna test this? worked for me, its the nova game from the new ota sprint rom. first time i have made anything for android. i actually just kinda reverse engineered another flashable zip. Mods, if this is against the rules i will remove.
http://www.4shared.com/file/FfBys_0T/evo_ota_NOVA_signed.html
Signapktic in the market to sign files.
Sent from my PC36100 using XDA App
Deputyo said:
Signapktic in the market to sign files.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Oh wow, that was way easier way than the openssl method I was attempting before. Trying to re-up now but only from my phone so may not be up till tomorrow.
I will try this out and thanks
all you gotta do is load the apk on the sd card and install with a file explorer. No need for a zip

gallery apk

would someone mind posting their gallery apk for me please. i did a boo boo. thanks
Stock ICS/GB, Custom ROM, etc? Also, you can find it inside the flashable .zip of the ROM you have flashed. Look in /system/app. You may also need an .odex file along with it if you broke that too.
I'm running oICSv43. I looked in the rom using root explorer and couldn't find it. that was the first thing I tried. I"m not a total noob but dont know what i did to lose it. I wanted to ask for it here before reflashing.
http://db.tt/vDfrpsE0
Sent from my Nexus S using xda premium
thank you!
Harbb said:
Stock ICS/GB, Custom ROM, etc? Also, you can find it inside the flashable .zip of the ROM you have flashed. Look in /system/app. You may also need an .odex file along with it if you broke that too.
Click to expand...
Click to collapse
Can this Harbb be applied if I want the GB camera or let's say phone app from GB to ICS ? and what if I rename the .apk file to another name so I would not loose the origianl ICS app ? name the .odex file with the same new name but .odex ?
I don't know enough about Smali or Android's app system to say. However I'm a firm believe in "there's one way to find out"
Just do a backup beforehand and try it out.
Harbb said:
Stock ICS/GB, Custom ROM, etc? Also, you can find it inside the flashable .zip of the ROM you have flashed. Look in /system/app. You may also need an .odex file along with it if you broke that too.
Click to expand...
Click to collapse
It's probably in gapps, actually.
Sent from my Nexus S 4G using xda premium

customizing ROM zip

Hi guys!
First time poster, long time lurker.
I've been "customizing" (if you can call it that) ROMs to a slight degree through removing and adding APKs to the system/app directory (specifically with CM7).
I am curious though, is it possible to thoroughly customize with the apps you want, the settings pre-configured for select apps, homescreen all set up, etc without using nandroid?
I'd like to be able to set everything up and make a flashable zip that I can flash to several phones.
Would this mean building a ROM from scratch?
Thanks!
thejameslang said:
Hi guys!
First time poster, long time lurker.
I've been "customizing" (if you can call it that) ROMs to a slight degree through removing and adding APKs to the system/app directory (specifically with CM7).
I am curious though, is it possible to thoroughly customize with the apps you want, the settings pre-configured for select apps, homescreen all set up, etc without using nandroid?
I'd like to be able to set everything up and make a flashable zip that I can flash to several phones.
Would this mean building a ROM from scratch?
Thanks!
Click to expand...
Click to collapse
I think it is possible but it would be a freaking huge file.
Sent from team Pirate! Using Tapatalk 2
Nick281051 said:
I think it is possible but it would be a freaking huge file.
Sent from team Pirate! Using Tapatalk 2
Click to expand...
Click to collapse
I don't know much about android development... but from what I can gather it looks like APKs generate databases to store their settings... and I can't just move a database into a ROM. But who knows! :silly:
Nick281051 said:
I think it is possible but it would be a freaking huge file.
Sent from team Pirate! Using Tapatalk 2
Click to expand...
Click to collapse
Dsixda kitchen is the simplest possible way to turn a Rom into a working folder in which you can add stuff and then create a flashable zip. If you have knowledge of linux its a breeze. If not it's a slight learning curve.

Flashable Gapps

Howdy,
I was wondering how hard it would be to make my own flashable gapps and other apps for myself to flash after a clean wipe. So I was basically wondering if there's a zip creator for dummies topic out there somewhere.
Thanks for your help,
Young
Sent from my Inspire 4G using xda app-developers app
young440 said:
Howdy,
I was wondering how hard it would be to make my own flashable gapps and other apps for myself to flash after a clean wipe. So I was basically wondering if there's a zip creator for dummies topic out there somewhere.
Thanks for your help,
Young
Sent from my Inspire 4G using xda app-developers app
Click to expand...
Click to collapse
Start by not posting in the development section.
Sent from Team Pirate! Using Tapatalk 2
Yes you can. Quite a few apps let's you do that. Search my friend.
Sent from my Inspire 4G
I have searched but its all just forums that offer their own gapps. I haven't found any tutorials to making your own flashable zip.
Thanks for any help
Sent from my Inspire 4G using xda app-developers app
young440 said:
I have searched but its all just forums that offer their own gapps. I haven't found any tutorials to making your own flashable zip.
Thanks for any help
Sent from my Inspire 4G using xda app-developers app
Click to expand...
Click to collapse
Search for the ace think tank thread over the dhd general section. Start reading from page 30 onwards. I can't remember if I posted the link for such an app or not in one of the pages. If you reach page 42 then I didn't. First check the link section in the third post and there is a random link section link in the second post.
Your other option is to do the search at xda tv. That's where I accidentally found it.
Sent from a dream.
young440 said:
Howdy,
I was wondering how hard it would be to make my own flashable gapps and other apps for myself to flash after a clean wipe. So I was basically wondering if there's a zip creator for dummies topic out there somewhere.
Thanks for your help,
Young
Sent from my Inspire 4G using xda app-developers app
Click to expand...
Click to collapse
You need to make a zip with the system/app and meta-inf. In the meta-inf is an updater-script and update-binary. The updater-script is where you write commands. This tells recovery what to do like to mount /system and push the /system/app and containing apks.
For example:
"run_program("/sbin/busybox", "mount", "/system");"
"package_extract_dir("system", "/system");"
"unmount("/system");"
Or you can mount with this command if you don't have /sbin/busybox in directory.
"mount("ext3", "EMMC", "/dev/block/mmcblk0p25", "/system");"
(minus quotations on each end)
Anything contained in the system folder like other folders and their contents will be copied where necessary.
There are definitely more variations of these commands as well for different Rom configurations.
You can get more complex with setting permissions and symlinks but this is a good starting point.
Best way is to just pull apart a few different zips and see what commands do what. You will start to see how it works. It's pretty easy really. There are plenty if guides around as well. Just search and study til you are comfortable writing your own.
Sent from my Desire HD using xda premium
App2zip is one of the apps I used to use to zip up apps...there are quite a few other apps, do similar things as well...

[MOD] - [CWM/TWRP] - Modified Google Wallet v2.0 APK - Flashable Zip and Instructions

UPDATE: THIS THREAD IS NO LONGER BEING UPDATED.
I upgraded to KitKat several months ago (as should you, if possible). Since KitKat allows any device that's NFC-enabled to work with wallet, I have been focusing my time elsewhere.
The original reason for this zip (to save pushing wallet to /system/app and setting permissions/reboot steps) is also no longer necessary, so just go directly to the source and use loserskater's thread and APK:
http://forum.xda-developers.com/showthread.php?t=2457569
So I'm attaching a flashable zip to this post (and creating a new thread), as I feel like we sorta hijacked the thread it originally came from.
I believe this APK will work on any NFC-enabled device with an AOSP-based ROM that's not natively supported by Wallet, but please report failures.
This will also work on non-AOSP ROMs like TouchWiz, but those ones will require the NFC library fix you can find in another thread (links are shown in below instructions for Galaxy SIII and S4).
I've tested this on a Galaxy SIII (intl and AT&T) as well as the Verizon Samsung Galaxy S4 (jfltevzw) so far with success.
No build.prop modification required!
Here are the original instructions posted by open1your1eyes0, and my flashable zip that includes the modified APK created by loserskater is attached.
In place of step 6 (manual push of APK and perms adjustment), just flash the attached zip in CWM/TWRP.
open1your1eyes0 said:
Try the following:
Force Stop on Wallet app
Clear Cache and Clear Data on Wallet app (in Application manager)
Delete all traces of it from both locations /system/app and /data/app/ (might be called Wallet.apk too)
Reboot
Flash a fresh version of your AOSP-based ROM (no wipe required)
Push the apk from this link to location /system/app/ and set the permissions to rw-r--r-- (DO NOT OPEN IT YET!!)
Reboot
Open the Wallet app and set everything up
Check what Tap and Pay says in "About" section of the app
Confirm what happens on transaction
***Note*** If the ROM your are flashing is TouchWiz-based for step 5 you need to flash one of the below for your device BEFORE step 6 and then continue.
For Galaxy S3: http://forum.xda-developers.com/attachment.php?attachmentid=1943165&d=1367940081
For Galaxy S4: http://forum.xda-developers.com/attachment.php?attachmentid=2006809&d=1370008832
Click to expand...
Click to collapse
This worked perfectly for me when following these instructions exactly.
After you've followed the steps above, you can simplify this process when upgrading your nightly ROM (like CM or any other AOSP-based one) by flashing the attached zip, which will push the APK and set the permissions properly.
It should be noted that once you get this modded APK working using the above instructions, you do NOT need to clear the app data or manually remove the APK again with the same version of Wallet when flashing new ROMs. CM and other nightly users can just flash the latest nightly, flash my zip, reboot and enjoy.
DO NOT UPDATE FROM THE PLAY STORE!
IF REINSTALLING GAPPS OVERWRITES THIS WITH THE STOCK VERSION, YOU MUST FOLLOW THE ABOVE INSTRUCTIONS AGAIN, INCLUDING FLASHING MY ZIP AGAIN!
All credit goes to loserskater for creating the modded APK and open1your1eyes0 for the instructions, since the zip took about 5 minutes of my time.
Will this work on Cyanogen mod if I've never installed wallet?
Could you make the updater-script detect if you're on a TW ROM and flash the lib fix accordingly?
Sent from my SGH-I747 using XDA Premium 4 mobile app
russell1997 said:
Will this work on Cyanogen mod if I've never installed wallet?
Click to expand...
Click to collapse
Yes it will.
Sent from my SCH-I545 using Tapatalk 2
Correct me if I'm wrong, but people need to flash the lib fix for certain carriers on touchwiz based roms, if they haven't previously used wallet, correct?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
My device is "ready for tap and pay purchases" Now to try and find a place to use it around here.
Sent from my SGH-I747 using XDA Premium 4 mobile app
ConeyKiller said:
Correct me if I'm wrong, but people need to flash the lib fix for certain carriers on touchwiz based roms, if they haven't previously used wallet, correct?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
This should only be necessary on stock ROMs or those that are not AOSP-based.
Updated OP to better clarify this.
Sent from my SCH-I545 using Tapatalk 2
vt0r said:
It should be noted that once you get the above modded APK working, you do NOT need to clear the data or manually remove the APK again with this version.
Click to expand...
Click to collapse
So for example, since the PA gapps package includes Wallet, will it just work from now on after setting up using the modded .apk? Or do we still need to flash this one?
Sent from my SGH-I747 using XDA Premium 4 mobile app
drinfernoo said:
So for example, since the PA gapps package includes Wallet, will it just work from now on after setting up using the modded .apk? Or do we still need to flash this one?
Sent from my SGH-I747 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I'm going to assume your gapps package includes the stock version of wallet.
If so, you will need to flash this zip again.
You'll need to do this each time you flash a new ROM though, as most wipe /system.
If you have trouble after flashing gapps, you may need to step through the above instructions again, including the app data deletion.
Sent from my SCH-I545 using Tapatalk 2
vt0r said:
I'm going to assume your gapps package includes the stock version of wallet.
If so, you will need to flash this zip again.
You'll need to do this each time you flash a new ROM though, as most wipe /system.
If you have trouble after flashing gapps, you may need to step through the above instructions again, including the app data deletion.
Sent from my SCH-I545 using Tapatalk 2
Click to expand...
Click to collapse
Does this one just push the .apk to /system/app and set permissions?
Sent from my SGH-I747 using XDA Premium 4 mobile app
drinfernoo said:
Does this one just push the .apk to /system/app and set permissions?
Sent from my SGH-I747 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yeah that's all it does.
I usually flash my ROMs manually, as opposed to using CM's built-in updater, so I just flash this zip right after flashing the latest nightly to save an extra step and an extra reboot.
vt0r said:
Yeah that's all it does.
I usually flash my ROMs manually, as opposed to using CM's built-in updater, so I just flash this zip right after flashing the latest nightly to save an extra step and an extra reboot.
Click to expand...
Click to collapse
Yup, this will become another .zip to flash
EDIT: While doing a clean flash of PA 3.99 RC2 and the most recent PA gapps, I tried flashing this at the same time, and Tap and Pay is not active. I'm gonna try uninstalling Wallet and reflashing, and will report back.
Sent from my SGH-I747 using XDA Premium 4 mobile app
drinfernoo said:
EDIT: While doing a clean flash of PA 3.99 RC2 and the most recent PA gapps, I tried flashing this at the same time, and Tap and Pay is not active. I'm gonna try uninstalling Wallet and reflashing, and will report back.
Click to expand...
Click to collapse
I'm not sure what PA is, but as I mentioned before, if you overwrite Wallet, your best bet is to follow the instructions in the OP completely, which includes deleting app data.
You're essentially starting over at that point.
Let me know if you still have trouble after you've repeated the entire procedure.
Sent from my Samsung Galaxy S4 using Tapatalk 2
vt0r said:
I'm not sure what PA is, but as I mentioned before, if you overwrite Wallet, your best bet is to follow the instructions in the OP completely, which includes deleting app data.
You're essentially starting over at that point.
Let me know if you still have trouble after you've repeated the entire procedure.
Sent from my Samsung Galaxy S4 using Tapatalk 2
Click to expand...
Click to collapse
PA = Paranoid Android. I guess I just kind of thought that was universally known
Either way, I was able to get Tap and Pay set up again by following the OP. Something about the way the PA gapps package installs the .apk's must make it so that this one doesn't overwrite correctly.
Sent from my SGH-I747 using XDA Premium 4 mobile app
drinfernoo said:
PA = Paranoid Android. I guess I just kind of thought that was universally known
Either way, I was able to get Tap and Pay set up again by following the OP. Something about the way the PA gapps package installs the .apk's must make it so that this one doesn't overwrite correctly.
Sent from my SGH-I747 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Wow. I feel like an idiot. Should have known that one.
Glad you got it working.
Sent from my SCH-I545 using XDA Premium 4 mobile app
Will this work for deodexed TW S4? MH8 for example.
Has somebody tried it?
bg_man said:
Will this work for deodexed TW S4? MH8 for example.
Has somebody tried it?
Click to expand...
Click to collapse
It should work without issue on a TouchWiz ROM as long as you install the proper NFC library fix first.
The OP has links for the NFC fix on the S3 and S4.
Sent from my SCH-I545 using XDA Premium 4 mobile app
vt0r said:
It should work without issue on a TouchWiz ROM as long as you install the proper NFC library fix first.
The OP has links for the NFC fix on the S3 and S4.
Sent from my SCH-I545 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
What stops this zip from being flashable in TWRP
bdorr1105 said:
What stops this zip from being flashable in TWRP
Click to expand...
Click to collapse
Most likely nothing, as from what I understand, the zips are mostly compatible.
Please feel free to test it out in TWRP and let me know if it gives you any trouble.
I've never used TWRP, but I'll see if there's a build for my phone and test it out if so.
EDIT - Seems to work just fine. I just installed TWRP using GooManager, and I am impressed. I guess it will take a little while to get used to, but I think I'll use it for a while.
Sent from my SCH-I545 using XDA Premium 4 mobile app
bdorr1105 said:
What stops this zip from being flashable in TWRP
Click to expand...
Click to collapse
Nothing. I use TWRP and had no issues.
Sent from my SGH-I747 using XDA Premium 4 mobile app

Categories

Resources