How to add apk files into a rom - Desire Q&A, Help & Troubleshooting

hey i want to add some files like htc clock.apk and calculator.apk to N.S.A rom, so how do i go about it. Any help
Thank you.

unzip the ROM, add them to the app folder and rezip it and then flash the ROM (making sure the recovery utility you're using allows non-signed ROMs)

i am using clockworkmod recovery, does it allow flashing unsigned rom??
Thanks

unquestioning

shoemeistah said:
unquestioning
Click to expand...
Click to collapse
Sorry, what does that means.

Yes, you have to remove the signing checking option in it (under advanced or something, have a play about)

hey use Android kitchen to Modify the Rom as want
>you can add and remove apps
>you can create your own custom rom if want..!!
>And you can sign the modified ROM
READ THE INSTRUCTION YOU'LL GET TO KNOW
try it out works great here is the link:
http://forum.xda-developers.com/showthread.php?t=633246

harish.awe said:
hey use Android kitchen to Modify the Rom as want
>you can add and remove apps
>you can create your own custom rom if want..!!
>And you can sign the modified ROM
READ THE INSTRUCTION YOU'LL GET TO KNOW
try it out works great here is the link:
http://forum.xda-developers.com/showthread.php?t=633246
Click to expand...
Click to collapse
It's a LOT easier to just do it yourself...

?
does this work for the captivate

Don't know, go ask in the captivate forum and not the Desire one

Hi all, i'm a new user and i have some trouble adding .apk's into cooked roms.
In particular, i'm trying to add some .apk into /system/app of InsertCoin Gingerbread 1.0.5
I have unzipped the rom, add those apk's, zipped again but when i flash it from recovery it says "Can't Find Update Script".

Iryon said:
Hi all, i'm a new user and i have some trouble adding .apk's into cooked roms.
In particular, i'm trying to add some .apk into /system/app of InsertCoin Gingerbread 1.0.5
I have unzipped the rom, add those apk's, zipped again but when i flash it from recovery it says "Can't Find Update Script".
Click to expand...
Click to collapse
Don't(!) unzip the rom. Just open the archive using 7zip or winzip (or something like that; right-click zip and choose 'open archive'). Then just move apk to correct folder. If you're taking apk's from another rom, open that using 7zip as well. Then, drag the program from one rom to the other. When you're finished and want to flash the rom, make sure you've disabled 'signature verification' in recovery (it is an option in recovery).

Thank you, i was able to flash my first "modded" version with different boot/down animation, Teeter game (i love it) and Titanium Backup
The only thing i was not able to do was Root Explorer, i tried to put it in system/app and in data/app but when i flash rom it doesn't appear in the drawer.
Any suggestion?

Iryon said:
Thank you, i was able to flash my first "modded" version with different boot/down animation, Teeter game (i love it) and Titanium Backup
The only thing i was not able to do was Root Explorer, i tried to put it in system/app and in data/app but when i flash rom it doesn't appear in the drawer.
Any suggestion?
Click to expand...
Click to collapse
I have been learning how to do this in the last few days and have had similar issues as you. I can get some to install fine and appear in the drawer but not all.
I have only been adding the apk's to system/app and not data/app. Should the apk's be added to one of these, both of them or another folder completely?
Can anyone help the two of us out?

I used apk swapper but all the apps are not working

Related

Customize a rom

Hi,
i like alot of the roms, however they come pre-installed with apps like rom manager, or flash i use these apps, but they fail to update. How can i remove these apps from a rom before flashing? Ive tried using titanium backup to uninstall but the phone reboots (no /system rw?)
thanks
(im using ubuntu and windows 7 64bit)
remove them in adb
or download a rom, remove them, sign it and flash
Jedipottsy said:
Hi,
i like alot of the roms, however they come pre-installed with apps like rom manager, or flash i use these apps, but they fail to update. How can i remove these apps from a rom before flashing? Ive tried using titanium backup to uninstall but the phone reboots (no /system rw?)
thanks
(im using ubuntu and windows 7 64bit)
Click to expand...
Click to collapse
download the andriod kitchen.
use the kitchen to extract the files and remove those apks that you don't want.
then repack the zip using the kitchen and flash it.
just do a search on xda and you will find the android kitchen.
i will agree with the kitchen too i am using it today and i am amazed of what you can do....
in addition you can just open the rom in winrar, go to /system/app and just delete the apps you don't want the rom will update itself!!!
then on your phone you should toggle the signed verification and install it
lambrospower said:
in addition you can just open the rom in winrar, go to /system/app and just delete the apps you don't want the rom will update itself!!!
Click to expand...
Click to collapse
is there any other file i need to delete or just the .apk? and would you mind telling me what addition features does the kitchen offer?
thanks in advance=)
if the rom is odexed you should delete the .odex file too....it should be below the .apk
the kitchen has anything you want to do with a rom.....zipalign, a2sd, busybox and you can edit any file from the rom.....!!!!
Thanks! would def try out the kitchen when new roms are out=)
i really recommend it to you to start NOW you can customize the rom as you like at every possible way.....even ringtones, languages, alarm sound by default, images, colours, apps, bootanimation and everything
you will need much reading though especially when customizing framework

Metamorph and the Incredible Help thread

Figured we might need a help thread for metamorph and since I need help here goes the first question
So I took part of my theme and made it Metamorph compatible with the guide here:
http://forum.xda-developers.com/showthread.php?t=591329
Now MM opens the zip fine, starts to install it, asks permission to edit framework-res.apk then after about 1 minute it asks for a reboot and then before I can answer it just reboots. At this point it gets stuck in a boot loop and I have to nandroid.
Never really messed with MM so it could be something I am doing wrong or I did read this:
Depending on the device you have you may need a different SPL to be able to apply themes.
Click to expand...
Click to collapse
Anyways I attached my test theme (no where complete, just wanted to test it). Is the issue with me, the phones spl or metamorph not ready for the incredible yet?
ps: If your going to test my theme uploaded here, be smart, do a backup, this is just a test and not a full theme and I just told you it is causing boot loops
test file download
I wonder if the SPL will be the roadblock until Froyo is officially released. Of course I know nothing of these things...
*Sent via Tapatalk on my Incredible
running latest leak 8/1/10 new radio 2.15 busybox all set up. tried to installed metamorph and ninjamorph, gives /system error about space and then my root is broken ?!? any ideas folks, so lost on this one. thank god for nandroid restore
icedmayhem said:
running latest leak 8/1/10 new radio 2.15 busybox all set up. tried to installed metamorph and ninjamorph, gives /system error about space and then my root is broken ?!? any ideas folks, so lost on this one. thank god for nandroid restore
Click to expand...
Click to collapse
Did you run the unrevoked forever to unlock the nand
I'm having mixed results with metamorph. I was able to do everything I wanted on CM6. I actually ported this over for us and it works great on metamorph not problems, check it out: http://androidforums.com/roms-incredible/149055-theme-vatsense-cm6port.html
now I tried porting one of my themes over to skyraider2.2 and I can get framework-res and com.htc.resources to work fine, but when i tried to add in my themed apps, I get a f/c and have to pull battery. http://androidforums.com/roms-incredible/148221-theme-do-bluev1.html
Ran the unrevoked tool so give me s off as well...
I had somebody in the nexus forum metamorph the weather channel widget but I cant get it to install, anyone game to take a look? I would love this to be transparent.
I have ran unrevoked forever and installe the latest metamorph.
Thanks
Im running (latest) stock 2.2 leak, and i cant get metamorph or NinjaMorph to make ANYthing stick. (YES I HAVE S-OFF) Both run as if they are making the changes, No diff than they did with the Moto Droid. MM reboots after ANY package, not just framework, with out asking to reboot. Ninja will usually break the app (app is no longer installed)
ANY IDEAS?
EDIT: just for kicks i installed a Deodexed Stock ROM, and still the same results... It says its doing it, but i the end it makes NO changes to the APK files.
see if you can manually (adb) replace the files and see if it sticks..... if not then the issue is not metemporph.... it's a rooting/nand issue.
R1lover said:
see if you can manually (adb) replace the files and see if it sticks..... if not then the issue is not metemporph.... it's a rooting/nand issue.
Click to expand...
Click to collapse
Manually replacing the entire APK... work just like it did when we needed recovery. Just now you type ADB remount, then push it.
If you mean manually replacing the edited files within the apk, thats not directly possible via adb. you have to PULL, EDIT,PUSH.
The problem here is metaMorph is supposed to open the apk replace just the edited files then close it up right on the phone, and its just not doing that!
what i did that fixed all my issues was install busybox from market. its odd but it all works perfect now even though i though it had been prebuilt into the rom. strange but ill take it
icedmayhem said:
what i did that fixed all my issues was install busybox from market. its odd but it all works perfect now even though i though it had been prebuilt into the rom. strange but ill take it
Click to expand...
Click to collapse
Yea, I just did what you said, before Metamorph would say not enough free space in /system/
I was using the 8/1/10 Froyo leak and I guess that one didn't have busybox, weird I was able to use Titanium Backup and I though that required busybox as well...
everytime you switch a rom, you should download busybox and let it update, it changes per rom.
Welp , Im still at a loss... I updated busybox, using the market app... and it still gives me the same results...
It takes 2-3 min to "apply theme" then reboots... and NO changes !
My theme contains ONLY the folders and files that need to be replaced, and my xml is copied from an existing theme, then edited. So i dont know wtf is goin on with this ****.
try making it into a file that can be flashed from recovery, then ull know for sure u made it correct....
Not sure this will help but I just installed Metamorph today and was getting the "system memory" error. To fix the problem I just used Root Explorer to mount /system as rw. Could the problems be related to write permissions?
I'm new to this...
I'm running SkyRaider's 2.5.2. Sense ROM. Just downloaded MM & BusyBox via market. When I start MM I select "Start Checks" or whatever. It then either forces my phone into reboot or gives me the "not enough memory in /system" error.
I did not install unrevoked forever. Is that my problem?
ksidirt said:
I'm new to this...
I'm running SkyRaider's 2.5.2. Sense ROM. Just downloaded MM & BusyBox via market. When I start MM I select "Start Checks" or whatever. It then either forces my phone into reboot or gives me the "not enough memory in /system" error.
I did not install unrevoked forever. Is that my problem?
Click to expand...
Click to collapse
Uh yea, it needs to write to system, you need S-off to use it.
I'm reviving this thread so as to not clutter up the Metamorph Themes Master List thread
This quote is from the other thread, I just thought it would be more appropriate to answer here instead.
mikesincredible said:
Wow. What you just told me is like trying to learn chinese...lol I see there's more involved...any good articles to point out so I can learn. I just know rom manager and adb push code... ::
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I'm sure there are some guides floating around XDA, but I mostly learned MM just by messing with it and learning from trial and error.
Basically, metamorph just opens up an .apk file, replaces any of the files it finds in the folders specified by a theme's .xml file, then closes/re-signs the apk.
This is much better than flashing themes from the recovery menu or rom manager because doing so replaces the entire framework-res.apk, overwriting any themes you had previously installed. Since metamorph only replaces the files you want, any theme you already had will be preserved.
Here's an example to get a quick overview of how it works. Say you've already applied my black rotary lockscreen mod (found here) and you want to use some of the elements from SoCalMiles' Incredible rEVOlution theme.
First you should download his file, and inside the .zip find "\Incredible_Revolution_Original_Theme.zip\system\framework\framework-res.apk" and extract it somewhere.
Then rename "framework-res.apk" to "framework-res.apk.zip" or something similar. Now you can browse/unzip the files just like you would any other folder.
In your new .zip navigate to \framework-res.apk.zip\res\drawable-hdpi-v4, most of a rom's theme will be in that folder.
Now, if you've applied my theme through metamorph (or any theme, for that matter) you should have the directory "\sdcard\AndroidThemes\BlackRotary-hdpi-v4\framework-res\res\drawable-hdpi-v4\" on your sdcard.
Choose any of the files you want to apply to your phone from the extracted Incredible rEVOlution drawable-hdpi-v4 folder and copy them from to the \sdcard\AndroidThemes\BlackRotary-hdpi-v4\framework-res\res\drawable-hdpi-v4\ folder. Now when you run the metamorph it should copy the files you added as well as the ones that were previously there.
If you want to copy files that are not in the drawable-hdpi-v4 folder, simply make a new folder for the containing folder. Basically just make sure the \sdcard\AndroidThemes\whatevs\framework-res\ directories match the directories in the framework-res.apk file you're pulling from.
That's the easiest way to combine two themes, if you're looking to make you're own metamorph theme to post on xda you'll need to learn to edit the .xml file which directs metamorph to which files to modify, but that isn't too hard either, and there's no need to do this if you're just making metamorphs for your own personal use.
mixedlemon said:
I'm reviving this thread so as to not clutter up the Metamorph Themes Master List thread
This quote is from the other thread, I just thought it would be more appropriate to answer here instead.
I'm sure there are some guides floating around XDA, but I mostly learned MM just by messing with it and learning from trial and error.
Basically, metamorph just opens up an .apk file, replaces any of the files it finds in the folders specified by a theme's .xml file, then closes/re-signs the apk.
This is much better than flashing themes from the recovery menu or rom manager because doing so replaces the entire framework-res.apk, overwriting any themes you had previously installed. Since metamorph only replaces the files you want, any theme you already had will be preserved.
Here's an example to get a quick overview of how it works. Say you've already applied my black rotary lockscreen mod (found here) and you want to use some of the elements from SoCalMiles' Incredible rEVOlution theme.
First you should download his file, and inside the .zip find "\Incredible_Revolution_Original_Theme.zip\system\framework\framework-res.apk" and extract it somewhere.
Then rename "framework-res.apk" to "framework-res.apk.zip" or something similar. Now you can browse/unzip the files just like you would any other folder.
In your new .zip navigate to \framework-res.apk.zip\res\drawable-hdpi-v4, most of a rom's theme will be in that folder.
Now, if you've applied my theme through metamorph (or any theme, for that matter) you should have the directory "\sdcard\AndroidThemes\BlackRotary-hdpi-v4\framework-res\res\drawable-hdpi-v4\" on your sdcard.
Choose any of the files you want to apply to your phone from the extracted Incredible rEVOlution drawable-hdpi-v4 folder and copy them from to the \sdcard\AndroidThemes\BlackRotary-hdpi-v4\framework-res\res\drawable-hdpi-v4\ folder. Now when you run the metamorph it should copy the files you added as well as the ones that were previously there.
If you want to copy files that are not in the drawable-hdpi-v4 folder, simply make a new folder for the containing folder. Basically just make sure the \sdcard\AndroidThemes\whatevs\framework-res\ directories match the directories in the framework-res.apk file you're pulling from.
That's the easiest way to combine two themes, if you're looking to make you're own metamorph theme to post on xda you'll need to learn to edit the .xml file which directs metamorph to which files to modify, but that isn't too hard either, and there's no need to do this if you're just making metamorphs for your own personal use.
Click to expand...
Click to collapse
What other folders contain the status icons? I'm looking to restore the circle battery and alarm from the incredible revolution theme, I found the battery.pngs..but no alarm..so if I copy and paste them to the blackrotary folder in androidthemes and metamorph, I should have the battery back

Integrate apps to custom rom some help!.

Hi im using OD's rom, but i wanna make some personal stuff to it.
I have found out to integrate apks to the zip file, but after i integrate the apps and install it on my desire, it does not show the files on the market under downloads.
Is there any way to let them show up in there so i could uninstall them if thats what i want?.
Download any app from the market and they should show up... you are putting them in /data/app and not /system/app aren't you?
ephumuris said:
Download any app from the market and they should show up... you are putting them in /data/app and not /system/app aren't you?
Click to expand...
Click to collapse
I put them in system/app,
so if the data folder its not there i just make data/app and place them in there correct?.
Thanks for the reply.
Okay i tryed to make the folder data and inside that i made the app folder and placed all the apk i need.
Seems not to work they dont install automatic when installing the custom rom?
bump!!!!
bump.......
Put them in /data/app. They will show up. If they don't, you're doing something wrong.
Sent from my HTC Desire using XDA App
ehm, okay.
I took opendesire 3.6.0. i opend it with winrar and made the folder data and app folder, in the root of the zip file okay? its not there on standard. And then i putted the files in in zip file and signed it.
It does not work. Is there a guide somewhere?. Have trying to search but no luck yet.
bump!.......
when you install an app without using the market, there is no market link for the market to... well... link to.
I use aTrackDog to keep track of my constant backups and flashes etc. it even provides you a market link if you want to update.
Have a look at Titanium Backup as a different way of keeping market links. when restored it can restore the market link necessary for it to show up in the market downloads section
If there is no /data/app folder in the ZIP then simply adding it won't work as the update script won't look for it and flash them - you'd need to ask AdamG (or someone else) to add the lines to the script to make the ROM flash that information as well...

[Q] Modifying the apps in a ROM

I notice if you unpack the zipped ROM file you get a load of folders including one containing all the APKs in the ROM. If for instance I didn't need certain APKs like Twitter.APK can I just delete that APK and rezip the ROM and flash it?
Similarly if I wanted to use the Skyfire browser instead of the one provided in the ROM could I just delete the browser.apk and replace it with skyfire.apk?
jazzzy786 said:
I notice if you unpack the zipped ROM file you get a load of folders including one containing all the APKs in the ROM. If for instance I didn't need certain APKs like Twitter.APK can I just delete that APK and rezip the ROM and flash it?
Similarly if I wanted to use the Skyfire browser instead of the one provided in the ROM could I just delete the browser.apk and replace it with skyfire.apk?
Click to expand...
Click to collapse
Don't unpack it. Just open it and delete the Twitter.apk with WinRar or 7zip, then flash it.
System apps like browser are not recommended to be deleted (errors will come). Just install Skyfire then and it will popup for you to choose which browser you want to use for any thing.
I could be wrong, but don't you have to sign your "new" ROM before you can flash it? Even if you have signature check disabled in CWrecovery?
And if not, what is the meaning of signing a ROM?
Erwin
If you want to go pro check this thread http://forum.xda-developers.com/showthread.php?t=633246 you can cook your custom ROM very simple

[Q] HTC Locations' App. on other Custom ROMs

Hi,
I need to install HTC's Locations app on any custom ROM (ie: MyOneV or CM9/CM10)
So any1 can help me with this ?
(i tried it though, by moving these files (from MyOneV5.0FX Removed apks) htclocation.apk,locationpicker.apk,locatiooninstaller.apk in System/app folder bt it didn't worked)
When you move those files to system app manually, you need to put right permission rw-r--r-- then reboot.
Or the simplest way is, open the Removed_Apks_RC5.x.zip with 7-zip (not extract), delete all apks that you don't need and leave those location files in zip.
Then flash the zip in recovery.
And these files will not work on a CM rom.
ckpv5 said:
When you move those files to system app manually, you need to put right permission rw-r--r-- then reboot.
Or the simplest way is, open the Removed_Apks_RC5.x.zip with 7-zip (not extract), delete all apks that you don't need and leave those location files in zip.
Then flash the zip in recovery.
And these files will not work on a CM rom.
Click to expand...
Click to collapse
:good:
Thankz
I tried that too, by removing all apks from zip keeping the said three files & flash it in recovery, still it doesn't appeared in apps!
Though i'll try again may b missed something or some file..
I just tried it, it works.
Your filename looks different, attached here the files from the Removed_Apks_RC5.x.zip, I named it to location.zip. Flash in recovery.
It Worked: Thanx

Categories

Resources