[Q] problem with framework-res.apk - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

I've Compiled framework-res.apk from stock SE XMP 4.0.4, it's successfully complied. then I open the new framework-res.apk and deleted 2 files ( META-INF and AndroidManifest.xml) after that i opened the old framework-res.apk and make a copy those two files ( META-INF and AndroidManifest.xml) back to the new one...then i copy to /system/framewok with permission 644...
Question is: Why it's boot loop? I didn't had any error on compiling...please......................

Framework-res.apk is highly recommended to install via Recovery, also occured bootloops long ago, however if I created Recovery-flashable .zip file, then it worked.

Related

Re-compile framework-res.apk (Custom Rom)

I got this figured out already, sorry about that.
Who ever thanked me, I wasn't posting a guide but a question.
I am trying from a fresh firmware base to learn from scratch but no idea how to get that framework to compile correctly.
did you install framework first?
Code:
apktool if framework-res.apk
Easy
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Chadw1985 said:
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Click to expand...
Click to collapse
If you just want to modify one of the 'normal' XML files or an image then that approach will work fine. The problem is he wants to edit the bool.xml file and that is contained in the 'resources.asrc' file and you need to decompile it first.
I am in the same situation although someone managed to edit the file for me and recompile it so I got there in the end, just not by doing it myself.
I followed the instructions you describe and the file never recompiled properly - or at least my device never booted with the one I recompiled
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
nickiberli said:
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
Click to expand...
Click to collapse
I have tried exactly like this and it didn't work for me. I downloaded lots of different APK tools and tried them all - there were comments about using older versions of apktool.jar etc. I kept getting different sizes of the output file depending on which one I used. I gave up in the end as someone edited the file for me and it was only one specific entry in bool.xmls I wanted changing. As far I could tell we were both doing exactly the same thing.
The last thing I said I was going to do was wipe the PC I was attempting to do this on. I never got round to doing it... I'd be interested to know why I could never get this working though
Andy
Give me the framework and tell me what u want to do.
I will do that for u
Btw is the framework ICS based?
Sent from my Micromax_A70 using Tapatalk 2 Beta-4
You have resigned?
Greets!

[Q] Modifying QuickSnote.apk for Jelly 'Beans' build 4

Hi,
I'm trying to figure out why a modified QuickSnote.apk doesn't work on Jelly 'Beans' Rom - Build 4->http://forum.xda-developers.com/showthread.php?t=2032447
This is a problem (for me) because it used to work on build 3 just two days ago.
Here is what I did,
0. Install framework-res.apk, SystemUI.apk, and twframework-res.apk that I extracted from root (build 4)
1. Download and decompile the '/system/app/QuickSnote.apk' using 'apktool'
2. Overwrite QuickSnote/res/raw/popupnote_sound.ogg with a dummy ogg file.
3. Recompile the 'QuickSnote.apk' using 'apktool'
4. Copy&paste jar-res directory from the original apk into newly created apk (it's missing from the new apk for some reason)
5. Sign the apk using 'signapk'
6. Finally, overwrite /system/app/QuickSnote.apk with the new&signed apk
After doing this, I assumed that the only difference in the MANIFEST.MF files would be the SHA1Digest of the 'popupnote_sound.ogg' file. However, many other digests seem to be different.
Could this be the reason why it's not working?
Please assist me with this.
Thanks.
Have you tried to copy :
assets
META-INF
android-manifest.xml
from the original to the new one?
I had same problem with framework-res.apk and it solved it

[MOD]Removing the ciphering warning message from notification

Hello,
This MOD is for the Razr XT926 VZW
I have been using Eclipse rom v1.3 by nitroglycerine33 based on 4.1.2
I keep on getting this annoying message in the notification, "ciphering is not available on your network. Phone calls and/or cellular data will be unencrypted."
I decided to try and remove this message. After a little searching, i found a solution in the Razr M forum.
I pulled the framework-res.apk from system/framework folder, decompiled it, did the following modification to the bool.xml file in res/values folder:
<bool name="config_enable_ciphering_indicator">false</bool>
<bool name="config_enable_ps_ciphering_indicator">false</bool>
<bool name="config_enable_cs_ciphering_indicator">false</bool>
After changing the values to false in notepad++, i save it and recompiled it. Now the tricky part. I used apk file manager 5.0.2 by jonny walkerRK and extracted both newly compiled apk and original apk. Now i copied the "resources.arcs" file and "res" folder from the new apk folder and pasted it in the original apk folder. After that i used 7zip to zip the original folder and renamed it as .apk. I rename the original apk as framework-res.apk and i used it to replace the framework-res.apk in system/framework.
Here are the required steps to remove that annoying notification:
1. Copy the framework-res.apk to sd card.
2. Use Root Explorer to copy the file.
3. Navigate to /system/ framework folder
4. Click on "Mount R/W" on the top to change permission.
5. Paste and overwrite the existing framework-res.apk
6. Done!!!
i hav tryed, but not worked n i got bootloop
after replace the file, the phoe automatically restart it self but no load...
it restarts as soon as you replace it. thats normal.

System app modification problem

Hi everyone,
I'm trying to modify Phone.apk 'smali' but am having some difficulties.
What I did so far:
1. Decompiled Phone.apk I pulled from my phone.
2. Modified smali file.
3. Buit it, unzipped, copied original META-INF folder and androidmanifest.xml from unmodified original Phone.apk to my modified Phone.apk
4. Zipped it and pushed to the phone. Got nothing but the "no service". :crying:
Other problems I encountered in the process:
1. When I unzip original Phone.apk and zip it again without modification, I get a different file size than the original no matter what compression method I use.
It worked but force closed on phone call end. (used 7zip). When I zipped (WinRar this time) with no compression (storage only) it worked.
2. I made a tiny modification in 'smali' by defining a new variable (to be sure I didn't mess something up with my mods), built it,
copied META-INF and androidmanifest.xml from the original, and zipped (no compression, storage only, winrar) and it showed 'no service' again.
The phone I used is Samsung Galaxy Advanced (I9070) with Gingerbread Stock ROM.
I tried the described procedure on Samsung Galaxy S (I9000) and it worked.
What am I doing wrong in the process? Please anyone help.

SystemUI.apk compiling error - solved

SystemUI compiling error on stock Android 4.3 roms
This is not actually a fix just a work around to allow the compiling of the SystemUI.apk
The problem is that apktool isn’t decompiling the SystemUI.apk resources.arsc values correctly, download the attached zip and copy the enclosed values-sw720dp folder to your res folder.
This should solve the compiling error but do not replace the newly compiled resources.arsc to you phone as it could cause the SystemUI.apk to crash.
Changes to other xml or png files should work as normal if you are flashing via vrthemeing or similar methods but would suggest that after compiling your SystemUI.apk you extract the files you changed and only flash those files to your phone not the full apk
Thanks for this, it solved my compiling issues instantly.
Thank you very much

Categories

Resources