Compiling framework-res problem (UPDATED) - Galaxy S II Q&A, Help & Troubleshooting

Original problem has been fixed, therefor I'm editing this instead of creating a new thread
So just ignore the 3 first comment
Whenever I compile framework-res after decompiling it (Even if I haven't modified anything) it goes from 8 MB to 5 MB!
And when I try to install it on my phone, its just boot-looping.
I have tried both APK Manager and APK Tool without any luck.
It doesn't help to pull the file again either.
Sent from my GT-I9100 using XDA App

I have the same errors. I think that's a problem of apktool. Try some different tool

You need t change ur framework under home/apktool/framework/1.apk
Replace the 1.apk with untouched stock framework-res.apk renamed to 1.apk....u will be out of trouble then

I use baksmali e smali for decomile/compile

Thread updated due to the first problem was fixed, and I don't bother to create a new one
Sent from my GT-I9100 using XDA App

bruflot said:
Thread updated due to the first problem was fixed, and I don't bother to create a new one
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Nobody? :'(
Sent from my GT-I9100 using XDA App

Related

[Q] Ninja Morph for framework-res.apk?

Hey
I'd like to change some pictures in the framework, but I don't really understand the signing procedure.
So I found the App Ninja Morph, that can change pictures within an apk. Does this work with the framework-res.apk?
Thank you
FireRider
Yup
And no need to sign if u use the right zip program
Sent from my X10a using XDA App
gavriel18 said:
Yup
And no need to sign if u use the right zip program
Sent from my X10a using XDA App
Click to expand...
Click to collapse
And which is the right zip programm? I use 7zip
That's the one. Right click on the apk. Select open archive and move the modified stuff into it
Sent from my X10a using XDA App
gavriel18 said:
That's the one. Right click on the apk. Select open archive and move the modified stuff into it
Sent from my X10a using XDA App
Click to expand...
Click to collapse
OK thank you very much.
So there are two easy ways to modify the framework-res.apk right?
First one with Ninja Morph an the second with 7Zip (and I think with adb? because with Root Explorer it failed...) Or are there more?
Ninjamorph will only mod pics within an apk whereas u can push an entire apk with adb.
Ive managed to use winrar instead of 7zip to accomplish the same result!
Sent from my rooted 026 x10i using swype via xda!!
i have tried changing my icons with ninjamorph... but after i finish project and reboot my icons are still the same... 7zip?? i don't see this in the market... will AndroZip work?? and what exactly do u mean open archive and move the stuff? i see 'view archive' and then it only lets me check off what i want to extract.. what am i doing wrong?? thanks for anyone's help!!
jdawgyy said:
i have tried changing my icons with ninjamorph... but after i finish project and reboot my icons are still the same... 7zip?? i don't see this in the market... will AndroZip work?? and what exactly do u mean open archive and move the stuff? i see 'view archive' and then it only lets me check off what i want to extract.. what am i doing wrong?? thanks for anyone's help!!
Click to expand...
Click to collapse
There are two basic methods for changing icons. 1) using ninjamorph and only using the device. 2) using 7zip, winrar,etc on your pc to make the changes them moving the modified apk to your phone.
Are you getting any specific errors and what are you trying to change? I assume your phone is rooted, busybox installed and superuser set to allow?
Sent from my SAMSUNG-SGH-I897 using XDA App
i'm not getting an error at all... everything does fine.. but after i reboot there is no change at all... and i'm just confused on how to edit it on the computer... b/c they say open it but don't extract.. so how can i change the files without extracting? and yes i'm rooted.. and have busybox
i'm trying to change icons in the notification bar......
Are the images you are replacing the right file type? Afaik its not a problem...
On the pc if you are using 7zip, right click on the framework and hit open archive.
Check out calums theme sticky for further instruction if you take that route.
Sent from my SAMSUNG-SGH-I897 using XDA App
So, for instance, using Ninja Morph I could change the background of SE dialer?
i've searched for calums theme sticky and can't find it...any help with a link?
thanks
gavriel18 said:
Are the images you are replacing the right file type? Afaik its not a problem...
On the pc if you are using 7zip, right click on the framework and hit open archive.
Check out calums theme sticky for further instruction if you take that route.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
glhelinski said:
i've searched for calums theme sticky and can't find it...any help with a link?
thanks
Click to expand...
Click to collapse
Here:
http://forum.xda-developers.com/showthread.php?t=834806
Mobzter said:
Ive managed to use winrar instead of 7zip to accomplish the same result!
Sent from my rooted 026 x10i using swype via xda!!
Click to expand...
Click to collapse
I used ASTRO to replace some images in my framework-res with success
Ninjamorph issue
Hey everyone,
I've been using Ninjamorph for awhile, changing png's in framework-res.apk ith much success... that is until I tried changing a specific one and now everything is fc'ing (clockwokmod, root explorer, settings... even Ninjamorph!) The png in question is the first on the list: activity_title_bar.9.png
Can anyone help me on how to fix this? I still have the original png but without any use of Ninjamorph or RootExplorer, what can I do?!
Try rebootin if you aint tried that usally wrks for me
Sent from my X10i using XDA App
using x10 didn't work. Why?
im using a xperia x10a and i did the changes in the framework then when ninja morph ask me to reestart i hit ok but the phone didn't start, it stays on the sony ericsson logo...
why this happened? can someone help to do the right things on my x10 and change the icons and status bar colors in my phone
THANKS A LOT!
How to use Ninja Morph
After reading of others success using Ninja Morph I purchased it. I replaced one image in my Framework-res.apk. When I finalize the project, should I select that the project needs to be installed or just copied? How do you move the new apk into the active configuration on the phone? Do I need to use ADB to push it?

[Q] [HELP][DEVs]Help with framework-res.apk--Some serious, weired problems!!!

Hi Guys! I am trying to modify the framework-res.apk of my bro's Micromax A70 with PNGs from trettet's CosmicExperia ROM. This Q is abt. A70, but related to P-500, so I think you guys can help me out. I've searched & tried everything, but nothing seems to be working. Its been more than 2 weeks here messing up and I've tried almost EVERYTHING possible and useful I came across.
I replaced those btn_check buttons, radio buttons, zoom in-out buttons, not. icons including battery, Wi-Fi, GPS, data and other such. The point is, I've replaced them accurately, deleted the extra PNGs and the no. of PNGs are same in both original and Modded apk. Moreover I've checked each and every PNG with their names and also, each *.9.png is properly 9-patched...!!!
Here's what I tried to change them:-
First tried APK-multitool, the apk got compiled succesfully, but after replacing it with original one, I am getting crash at the boot up.
Again, i searched for the prob., and got that APK-multitool doesn't seem to work correctly with sys apps and has bugs in compiling process. So I tried apktool(apktool.jar), and manually decompiled apk with commands, made changes and again recompiled, but got the same results.
NOTE:-In both the above cases, i tried unsigned as well as signed apks, also I Zipaligned the signed apk.
For replacing APK:-
I tried creating update.zip, but after flashing, I simply get crash at boot up!!
Next, I tried to include the framework-res.apk in ROM itself. Replaced the framework apk with modded one and again built it with kitchen, flashed it, but that didn't work even...........!!!
Finally, I tried a "reframe.sh" script for replacing apk with the terminal, but no luck still......
NOTE:- I didn't/can't try ADB Push, 'cause i don't have phone with me......
What can be the problem?? Am I missing something?? PLZ. guys help me out, I am really fried up with the F*****ing problems and its all getting REALLY WEIRED here!!! HELP REQUIRED ESPECIALLY FROM DEVS AND THEMERS!!!!!!!
Thanks In Advance.....
used 7-zip and copy paste all images from drawable-mdpi
aspee said:
used 7-zip and copy paste all images from drawable-mdpi
Click to expand...
Click to collapse
That I tried first of all....... That's not the solution, the problem is much more complicated........
Sent from my LG-P500 using XDA App
I once port a70 and change framework images didn't got any such error
Sent from my LG-P500 using xda premium
aspee said:
I once port a70 and change framework images didn't got any such error
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Which things you did??? Same as i've described above???????
Sent from my LG-P500 using XDA App
Yeah somewhat
Sent from my LG-P500 using xda premium
aspee said:
Yeah somewhat
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Do you remember which rom's framework you modded???
Sent from my LG-P500 using XDA App
Stock
Sent from my LG-P500 using Tapatalk
aspee said:
Stock
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
I am too modding framework from a custom rom, based on the stock one.....
It worked for you, but why not for me?? Can't understand!!! What do you think the problem is???
AND, DEVS, PLEASE LOOK AT THIS MATTER!! I REALLY WANT HELP!!!!
Sent from my LG-P500 using XDA App
WTF?? The thread is going down n down!!!!! Plz someone help me with this!!!
Sent from my LG-P500 using XDA App
Guys, please help!! Its delaying!! I cant start any new things bcoz of this!!.
Sent from my LG-P500 using XDA App
D3oDex3D_Ayush717 said:
WTF?? The thread is going down n down!!!!! Plz someone help me with this!!!
Sent from my LG-P500 using XDA App
Click to expand...
Click to collapse
the a70 framework is like that a little change makes it stuck at logo or boot loops ...
follow the below method to make it work ...
In apk manager select this settings..
compression level =0
1.first change the images using any tool like apkmanager and recompile it ...
2.now again select the recompiled unsignedframework-res.apk and extract it ...now again using the apkmanager zip the apk ..
3.now zipalign the unsignedunsignedframework-res.apk manually and flash it ..then it will work...
http://forum.xda-developers.com/showthread.php?t=1195969
samrox144 said:
the a70 framework is like that a little change makes it stuck at logo or boot loops ...
follow the below method to make it work ...
In apk manager select this settings..
compression level =0
1.first change the images using any tool like apkmanager and recompile it ...
2.now again select the recompiled unsignedframework-res.apk and extract it ...now again using the apkmanager zip the apk ..
3.now zipalign the unsignedunsignedframework-res.apk manually and flash it ..then it will work...
http://forum.xda-developers.com/showthread.php?t=1195969
Click to expand...
Click to collapse
You are right! This framework is a SENSITIVE thing!!
Will surely try this!!
Thanx a lot for yor quick reply...!!!!
Sent from my LG-P500 using XDA App
Hi sam, I tried what you said, but when i decompile apk for the first time, and agiain compile it with apk-multitool, the compiled apk contains a "keep" folder in it!! I think it's gone mad!!
This I've seen for the first time! previously, there were always only assets, res, androidmanifest, and metainf files. So i tried apktool.jar manually. It recompiled properly.
Now, i placed the compiled apk in the modding folder of apk-mutitool. first extracted the the apk i.e. option no. 2, and then zip it again, i.e option no.3, right?? but now inside the zipped file, is see this- project\unsignedframewok-res.apk\assets, res, androidmanifest, and metainf , that should be directly in the root of the zip. Also due to this the file doesn't get zipaligned!!!
HELP!!!!!!
D3oDex3D_Ayush717 said:
Hi sam, I tried what you said, but when i decompile apk for the first time, and agiain compile it with apk-multitool, the compiled apk contains a "keep" folder in it!! I think it's gone mad!!
This I've seen for the first time! previously, there were always only assets, res, androidmanifest, and metainf files. So i tried apktool.jar manually. It recompiled properly.
Now, i placed the compiled apk in the modding folder of apk-mutitool. first extracted the the apk i.e. option no. 2, and then zip it again, i.e option no.3, right?? but now inside the zipped file, is see this- project\unsignedframewok-res.apk\assets, res, androidmanifest, and metainf , that should be directly in the root of the zip. Also due to this the file doesn't get zipaligned!!!
HELP!!!!!!
Click to expand...
Click to collapse
use apk manager it is better then apk tool
did you delete the resources.arsc from keep folder
D3oDex3D_Ayush717 said:
Hi sam, I tried what you said, but when i decompile apk for the first time, and agiain compile it with apk-multitool, the compiled apk contains a "keep" folder in it!! I think it's gone mad!!
This I've seen for the first time! previously, there were always only assets, res, androidmanifest, and metainf files. So i tried apktool.jar manually. It recompiled properly.
Now, i placed the compiled apk in the modding folder of apk-mutitool. first extracted the the apk i.e. option no. 2, and then zip it again, i.e option no.3, right?? but now inside the zipped file, is see this- project\unsignedframewok-res.apk\assets, res, androidmanifest, and metainf , that should be directly in the root of the zip. Also due to this the file doesn't get zipaligned!!!
HELP!!!!!!
Click to expand...
Click to collapse
As far as my experience goes ,you will have to delete the files you modified from the keep folder (if you changed any XML also delete resource.arsec) and continue with the batch script(it will tell u to do so after asking you If you want to copy unchanged files)
Sent from my LG-P500 using Tapatalk
APKTOOL IS EASIEST ACCORDING TO ME!
Sent from my LG-P500 using Tapatalk
androidusero1p500 said:
As far as my experience goes ,you will have to delete the files you modified from the keep folder (if you changed any XML also delete resource.arsec) and continue with the batch script(it will tell u to do so after asking you If you want to copy unchanged files)
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
That's not the problem. I do delete the modified files in keep folder. But that script adds a keep folder inside the apk itself when recompiled!! lol!!!!
Sent from my LG-P500 using XDA App
samrox144 said:
use apk manager it is better then apk tool
did you delete the resources.arsc from keep folder
Click to expand...
Click to collapse
Apk multitool is the updated version of apk manager. Though, i will try with that one to.........And no, i didn't delete resources. Infact nothing except the pngs in drawable-mdpi....
Thanks!!
Sent from my LG-P500 using XDA App
androidusero1p500 said:
APKTOOL IS EASIEST ACCORDING TO ME!
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
By apk tool, you mean apkmanager or that apktool.jar??
I used that apktool.jar manually with cmd, when apk multitool didn't work for me.....
Sent from my LG-P500 using XDA App

Essential question

Hi
I downloaded a custom rom based on ICS and unzip the file then I add some app.apk to data/app and rezip it.
I tried to run zip in recovery but coudn't.
My question is that, why it didn't work??
Originally is it possible to add app.apk to same folder of a custom rom and then install the rom with my favorite apps??
Thanks for answering me.
Sent from my HTC EVO 3D X515m using xda premium
You can use 7zip "free download" to modify roms. It allows you to edit the rom without extracting it. Download the program and read the tutorial. Basically when you extract a rom you change the file association and it needs to be resigned. Also when you swap out and or add apps,files,etc you have to edit the update script to reflect the changes. You can google to find out more. This is just my understanding, hope it helps.
#Root-Hack_Mod*Always\
arses said:
Hi
I downloaded a custom rom based on ICS and unzip the file then I add some app.apk to data/app and rezip it.
I tried to run zip in recovery but coudn't.
My question is that, why it didn't work??
Originally is it possible to add app.apk to same folder of a custom rom and then install the rom with my favorite apps??
Thanks for answering me.
Sent from my HTC EVO 3D X515m using xda premium
Click to expand...
Click to collapse
If u unzip the file, it will lost it signed properties (something like that) which cause the file not useable. If u need to add or remove apk, just use winrar or 7z and open the file without unzipping it.
Sent from my LT18i using xda premium
maliceomalice said:
If u unzip the file, it will lost it signed properties (something like that) which cause the file not useable. If u need to add or remove apk, just use winrar or 7z and open the file without unzipping it.
Sent from my LT18i using xda premium
Click to expand...
Click to collapse
Thanks man I'll try it.
Sent from my HTC EVO 3D X515m using xda premium
maliceomalice said:
If u unzip the file, it will lost it signed properties (something like that) which cause the file not useable. If u need to add or remove apk, just use winrar or 7z and open the file without unzipping it.
Sent from my LT18i using xda premium
Click to expand...
Click to collapse
Hi
I did it with both winrar and 7zip but I got same error.
If find a solution I'll pleased you
thanks for helping
hey
I found it. Must use androidsigner.
Glad you got everything worked out.
#Root-Hack_Mod*Always\
Could u upload the zip here cuz I don't feel like making a ppc account
Sent from my PG86100 using xda premium
kickyoace said:
Could u upload the zip here cuz I don't feel like making a ppc account
Sent from my PG86100 using xda premium
Click to expand...
Click to collapse
ummm, what zip?
Hey
I did it and installed the rom but many of added apps didn't work.
I do not know why???
Perhaps it cause of my recovery because I used. 4EXT recovery.
And I must say that androidsigner n not sign zip files over than 600Mb. I tried several times.

[Q]How to change the layout of th UI?

The ui between the ROMs and the ROMs aren't really different. So I'm thinking how to made a big change of the ui
Sent from my XT910 using xda app-developers app
我顶你个肺隔膜 said:
The ui between the ROMs and the ROMs aren't really different. So I'm thinking how to made a big change of the ui
Sent from my XT910 using xda app-developers app
Click to expand...
Click to collapse
well you would need android sdk already installed on your computer
a tool like apkmanager or apktool
and then you'd need to decompile the file you want to edit
once decompiled go into res/layout folder and you'd change layout (assuming you know what it is you are doing)
then just recompile file again.
i would say thats pretty much the jist of it.
(i hope im right assuming your referring to modifying layouts of apps within the ROM? if not please clarify more in detail, ty)
Mobzter said:
well you would need android sdk already installed on your computer
a tool like apkmanager or apktool
and then you'd need to decompile the file you want to edit
once decompiled go into res/layout folder and you'd change layout (assuming you know what it is you are doing)
then just recompile file again.
i would say thats pretty much the jist of it.
(i hope im right assuming your referring to modifying layouts of apps within the ROM? if not please clarify more in detail, ty)
Click to expand...
Click to collapse
Thanks.I'll make more research for this.
Sent from my XT910 using xda app-developers app

Parse Error in apk

Hi,
I am learning apk modification. I decompiled .apk file using advanced apktool and i recompiled the apk without making any changes. i tried to install in android phone i am getting "PARSE ERROR". before decompile it was working. guys please let me know why i am getting this error. i am searching for solution since 2 weeks.help me guys.
Regards,
Sid
it may be because the apk will not be recompiled properly..what tool you are using to decompile and compile..apk toolkit will work for nice for me..without any problem..
Sent from my SM-N900 using XDA Free mobile app
taku_coder said:
it may be because the apk will not be recompiled properly..what tool you are using to decompile and compile..apk toolkit will work for nice for me..without any problem..
Sent from my SM-N900 using XDA Free mobile app
Click to expand...
Click to collapse
Thank you for ur reply, i am using Advanced+ApkTool+v4.1.0+By+BDFreak, for some of the apk it is working fine, but some of apk while installing after modification i am getting parse error.
msiddeeq said:
Thank you for ur reply, i am using Advanced+ApkTool+v4.1.0+By+BDFreak, for some of the apk it is working fine, but some of apk while installing after modification i am getting parse error.
Click to expand...
Click to collapse
thats the problem msiddeeq try to compile with apktoolkit..i mean with older version toolkit..it will surely help u..if any prob pm me
Sent from my SM-N900 using XDA Free mobile app
taku_coder said:
thats the problem msiddeeq try to compile with apktoolkit..i mean with older version toolkit..it will surely help u..if any prob pm me
Sent from my SM-N900 using XDA Free mobile app
Click to expand...
Click to collapse
Thank you for your valuable suggestion, could you please mail me ur apktool(which one you are using) if u dont mind. [email protected]

Categories

Resources