[Q] Modifying a ROM - Xperia Arc Q&A, Help & Troubleshooting

I have a ZIP ROm from this site to flash in CWM. There are a couple of APK's I want to remove from the system/app folder and a few to add.
Can I simply open the ROM in Winrar and remove/add the files, or will the ROM need resigning or something due to being altered?

Open with winrar or űzip and simply delete those apk.
Sent from my MT15i

Wrong thread...
sinkster©

Related

ResettingOf Themes

Hi there could someone assist me how am I to go abt changing the to defaultThemes upon using a particular one in the Samsung Galaxy S, Android 2.2.1, Thanks s
salmannizam said:
Hi there could someone assist me how am I to go abt changing the to defaultThemes upon using a particular one in the Samsung Galaxy S, Android 2.2.1, Thanks s
Click to expand...
Click to collapse
I posted this in my theme thread, but here goes...
Using 7-zip or WinRAR, take a look inside the downloaded theme zip file. In there browse to the /system/framework and /system/app folders - these are the files that get installed.
What you need to do is make a note of the file names, then go to your phone and make a copy of the same files from /system/framework and /system/app to a folder on your sdcard.
Then copy this folder over to your pc.
Make a copy of the theme zip and call it e.g. mybackup.zip. Open mybackup.zip and copy the files you've backed up into their respective folders, overwriting the ones that are already there.
Close 7-zip/WinRAR and you're done.
Backup created. You can flash it using ClockworkMod recovery.
Each theme replaces different files. You need to check each time you want to try a new theme if you have the right files backed up that the theme is going to overwrite - if you hope to go back to 100% now it was before.

[Q] Force Close after re-compiling framework-res.apk

Hi,
I'm trying to make some changes to framework-res.apk.
I user APK Manager 4.9 to decompile the file, then made one trivial change to a XML file (changed one auto brightness related value).
I then compiled back to APK without signing and pushed to the phone in recovery mode the deleted Dalvik cache just to be on the safe side.
No matter how I play with it I always get FC from all the system apps immediately after the phone completes the boot process.
Some more information:
1. My original APK had directories like /res/drawable-hdpi-v4 while after decomplie they become res/drawable-hdpi (without the "v4")
2. After I recompile the "v4" directories are not created back and the generated APK contains the directories without the v4
3. If I use the "Reduce errors" feature of the APK manager complie option then I end up with APK that contains both the directories with v4 and those without.
4. I tried with the "reduce errors" option and without it (in which case I manually copied the signature directory into the APK) but got same FC.
5. It seems that once the FCs begin to happen they don't stop until a full nandroid restore. Even if I put the original framework.res.apk file I still get FCs after rebooting.
6. I'm using Revolution HD 2.0.11 ROM
7. The APK file I'm trying to modify was generated by the UOT kitchen.
Any idea what am I doing wrong?
No one knows?
erank said:
No one knows?
Click to expand...
Click to collapse
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
AndroHero said:
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
Click to expand...
Click to collapse
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
erank said:
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
Click to expand...
Click to collapse
Too true, the only other thing you could try is to sign the .apk before pushing it....
Sent from my Desire HD using Tapatalk
AndroHero said:
Too true, the only other thing you could try is to sign the .apk before pushing it....
Click to expand...
Click to collapse
Thanks AndroHero.
Everywhere I was looking they always say not to sign system APKs, but just to be sure I also tried signing it and not signing but copying the original META-INF directory - always got the same result - FC in all systems apps after boot.

[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] Creating flashable system/app package zip

How can I create flash zip app installations for flashing in recovery, there are some apps i want permanent? Thanks. I have searched and only found threads for update.zip, but not for apps.
To find the format of the zip, go to my Rom...skyraider's thread. On page 25, there is an attachment called "mms.zip"... download it, and you can either dissect it to see how to build one, or open (not extract) it and replace the "mms.apk" with any app(s) that you want added to your /system/app folder and flash
Vinchenzop said:
To find the format of the zip, go to my Rom...skyraider's thread. On page 25, there is an attachment called "mms.zip"... download it, and you can either dissect it to see how to build one, or open (not extract) it and replace the "mms.apk" with any app(s) that you want added to your /system/app folder and flash
Click to expand...
Click to collapse
Oh I thought about that when I had the LatineIME package but I thought I'd have to edit the META-INF contents, but I guess it's universal huh? Thanks, I'll try this.

[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