[Q] Recompile 4.2.2 Framework-res.apk - Samsung Galaxy S II Plus

Hi i am trying to perform some mods on framework-res.apk.
I am using deodex I9105PXXUBMI3_I9105POXXBMJ1_I9105PXXUBMI1_HOME that i deodexed using Pandas guide in the other forum.
I can decompile it without problems but when i try to recompile it even without changing anything i get a lot of erros. Tried to update aapt.exe use diffrent version of apktool, apkmanger and so on but still no luck. Searched both the forum and the web for answer but nothing have worked for me.
Tried to run apk if framework-res.apk and same with twframework and tried without.
No luck.
Below is the log and the framework-res.apk file does anyone know why i get this errors.
Framework-res.apk https://dl.dropboxusercontent.com/u/38268704/delat/framework-res.apk
Edit: temporally solved it by adding a + sign before the missing layouts as described here http://forum.xda-developers.com/showpost.php?p=41563695&postcount=31
apperently i did not search well enough. But it feels like it should exist a better solution

Related

Edit Calender.apk

So does anybody know how to edit this one? I tried changing a few things in colors.xml but it will not reinstall. Figured I did something wrong so I decompiled and compiled without doing any changes but it will not install.
Specs
APK Manager 4.8
default calendar.apk
tried with dependencies using com.htc.resources and without
tried signing and not signing.
tried the calendar.apk that came with the rom I am using.
All of these decompile/recompile without errors.
Tried with an update.zip and pushing it using adb
I have been able to edit the pictures in this apk without decompiling but it seems like apk manager is messing it up somehow.

[Theme] Red GB for 2.3.340 OTA

I am working on combining Draya's Red GB theme and stock OTA. I have run into trouble trying to make the 10% battery increments actually display the images. I was wondering if someone could offer assistance.
I have tried decompiling framework-res.apk with apk manager and recompiling it with the changes in stat_sys_battery.xml. Although for some reason when I recompile and install via update.zip I bootloop.
This update.zip currently works perfectly, although it only displays battery in increments of 20%.
Here is a link to the themes current update.zip. http://db.tt/LV6Y9i9
Sent from my DROIDX using Tapatalk
Are u recompiling as a system apk? If you try to recompile with just an apktool command for instance as if it
were an app, it wont recompile correctly.
Sorry if you already knew this, not trying to sound condescending in any way. Just ran into this same issue myself a while ago.
Sent from my DROIDX using XDA App
I actually didn't. I have just started trying to learn to do all if these modifications.
I have learned that I can do hex editing to change colors and change the .png's but I am still working on learning to compile my own .9.png's and trying to figure out how to decompile and recompile so that I can modify the xml in standard text vs. hex because I would have no idea how to add my own text to an xml while still in hex form and I believe I read somewhere that if you change the file to much you need to include a new resources file or something.
Do you have any directions in decompiling and recompiling system apk's so that they are editable?
The way I was trying was with apk manager 4.9 as a system apk I believe. I am thinking option 11 or option 9 if I remember right...
I had also switched the apktool version to 1.3.1 because of the issue in 1.3.2 that I read on the apktool page.
Sent from my DROIDX using Tapatalk

HELP with Decompiling APK (using APKTOOL)

I've looked around for some good tutorials on decompiling APKs using APKTool but haven't been able to get a few questions answered. Hoping someone can guide me with this process a bit since I'm really new at it.
A few things first: I am running CM 7.1 on a Droid Incredible (orig) and I'm also on Windows, not Linux. I'm looking to make some changes to the code of an APK and have APKtool downloaded. Questions I have so far are:
1) Do I need to use the CM 7.1 framework-res.apk file for any decompiling / /recompiling work on this 3rd party APK? Or can I do all the work without it? No one seems to have a clear answer on that and I'm not sure exactly what the framework-res.apk is for exactly.
2) After I decompile an APK and make code changes to a SMALI file, is there anything I need to do special before running the compile command?
3) After I have a newly compiled APK, what do I need to do to make this work on my phone? If I do nothing, the overall file size of the compiled APK seems much smaller than the original one that I decompiled so it seems like something is wrong. Plus it won't install. I saw one video where the newly compiled APK is renamed to .ZIP and the contents are put into the ORIGINAL APK (also renamed to .zip), overwriting all the original contents. Is this required?
4) I've also read that APKs need to be signed to install on Android. Is this correct? I found "SignApk" online which seems like it just asks you to rename your APK to app.apk and it does the signing by running a .BAT file. Is that all I have to do before installing the APK on my phone?
Would really appreciate any help on this. Or if there's a great tutorial out there on doing this, I'd be happy to read through.
Thanks for any help in advance!
I want to know these too! Hope someone helps

insert language of rom ics

Hi, I'm trying to enter the European languages ​​in the rom ics. I read around that the files should be placed on the framework-res.apk.
I tried to extract the apk with apktool and removes it properly. the problem comes when I have to recompile the apk. the file does not compile the program can not find the source.
"Could not find sources"
or installed the framework with the command "apktool if framework.pkg"
you have any suggestion about it?
for try to made this job a follow this guide http://www.freeyourandroid.com/guide/how_to_translate_any_rom_to_any_language
I also tried to recompile the file without changing anything but apktool always the same error.make this test i'm sure that i don't mistake to edit some file but the procedure for compile apk file
its not a good idea, the new apk with modified strings is not stable, even you work the compiling out, you would not like the result after you place the new apk in .
logg88 said:
Hi, I'm trying to enter the European languages ​​in the rom ics. I read around that the files should be placed on the framework-res.apk.
I tried to extract the apk with apktool and removes it properly. the problem comes when I have to recompile the apk. the file does not compile the program can not find the source.
"Could not find sources"
or installed the framework with the command "apktool if framework.pkg"
you have any suggestion about it?
for try to made this job a follow this guide http://www.freeyourandroid.com/guide/how_to_translate_any_rom_to_any_language
I also tried to recompile the file without changing anything but apktool always the same error.make this test i'm sure that i don't mistake to edit some file but the procedure for compile apk file
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1427959
I've tried to follow that guide but it did not work.
But there are already successful, but unfortunately modificado only the file framework-res.apk do not get a full translation of the Roma, but partial. There is certainly some other file to edit. the part that is not translated is that relating to the configuration that is the configuration menu
does anyone know how to translate the menu setting
tnks in advance
logg88 said:
I've tried to follow that guide but it did not work.
But there are already successful, but unfortunately modificado only the file framework-res.apk do not get a full translation of the Roma, but partial. There is certainly some other file to edit. the part that is not translated is that relating to the configuration that is the configuration menu
does anyone know how to translate the menu setting
tnks in advance
Click to expand...
Click to collapse
Wait for l9 to be released it uses same frame-res.apk or try the one from the prada
Please post all questions in the General section. Thanks! Thread moved.
Sent from my Galaxy Nexus using Tapatalk 2

[help] cant recompile apk

Hi Im using cm10.1 on my desire s.
I'm using latest apktool. I'm trying to mod in call screen to make more transparent I did found out how to do it thanks to XDA.
but when I recompile it I got error as in screenshot.
I installed framework-res.apk from my rom and decompiled phone.apk
than I edited Phone\res\layout\in_call_screenui.xml that's it.
when I try to recomple it. I get errors in Phone\values\strings.xml which I didn't even edited. I don't get error in every values folder though.
so what am I doing wrong here? can any1 help please?
You may need to install another resource apk, look in your framework folder for one and retrace your steps to make sure you didn't miss anything.

Categories

Resources