Post Reply

Re-Compile Framework-res.apk = Bootloop

OP OmenHTX

31st July 2012, 09:36 AM   |  #1  
OmenHTX's Avatar
OP Senior Member
Flag POLAND
Thanks Meter: 862
 
357 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Helo, sry for noobish thread but i can's solve my problem. This method allways work for me using Zte blade. But now on Xperia Arc it doesn't.

Im trying to change somethink in framework (values) , but first i try to re-compile framework to check. And what ? i got bootloop.
Im using
ApkMultiTool 1.0.6
ApkManager 5.0.2
apktool.jar
signapk.jar

First i decompile this clean stock framework (o errors), then i try to compile (0 errors, no changes inside framework) and i got bootloop.I sign new framework and put it in my rom zip file. Then i try to make it manualy, so i run ms command line :

java -jar apktool.jar d framework-res.apk
java -jar apktool.jar b framework-res.apk

Then Sign manualy :
java -jar signapk.jar certificate.pem key.pk8 framework-res.apk signedframewok-res.apk

AND ? BOOTLOOP :////////////////////
The Following User Says Thank You to OmenHTX For This Useful Post: [ View ]
12th August 2012, 08:32 AM   |  #2  
hasan4791's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 368
 
1,073 posts
Join Date:Joined: Nov 2011
More
Exclamation same prob
Quote:
Originally Posted by OmenHTX

Helo, sry for noobish thread but i can's solve my problem. This method allways work for me using Zte blade. But now on Xperia Arc it doesn't.

Im trying to change somethink in framework (values) , but first i try to re-compile framework to check. And what ? i got bootloop.
Im using
ApkMultiTool 1.0.6
ApkManager 5.0.2
apktool.jar
signapk.jar

First i decompile this clean stock framework (o errors), then i try to compile (0 errors, no changes inside framework) and i got bootloop.I sign new framework and put it in my rom zip file. Then i try to make it manualy, so i run ms command line :

java -jar apktool.jar d framework-res.apk
java -jar apktool.jar b framework-res.apk

Then Sign manualy :
java -jar signapk.jar certificate.pem key.pk8 framework-res.apk signedframewok-res.apk

AND ? BOOTLOOP :////////////////////


same prob here too happening.....i cant able to change theme....!!
The Following User Says Thank You to hasan4791 For This Useful Post: [ View ]
12th August 2012, 01:05 PM   |  #3  
Senior Member
Thanks Meter: 1,398
 
413 posts
Join Date:Joined: Mar 2012
More
Before decompiling you mmust install the .apk use this command:

Cd C:/.. navigate to your framework-res.apk

Once you in the folder where it is located use this command to 1)install:

Apktool if framework-res.apk

2)Decompile:

Apktool d framework-res.apk

3)Recompile:

Apktool b framework-res

4) new .apk is in .../framework-res/dist/

I think you forgot to install the .apk



Sent from my GT-I9001 using xda app-developers app
12th August 2012, 06:38 PM   |  #4  
Felimenta97's Avatar
Senior Member
Flag Ribeirão Preto
Thanks Meter: 2,322
 
7,835 posts
Join Date:Joined: Aug 2011
More
Quote:
Originally Posted by Diablob555

Before decompiling you mmust install the .apk use this command:

Cd C:/.. navigate to your framework-res.apk

Once you in the folder where it is located use this command to 1)install:

Apktool if framework-res.apk

2)Decompile:

Apktool d framework-res.apk

3)Recompile:

Apktool b framework-res

4) new .apk is in .../framework-res/dist/

I think you forgot to install the .apk



Sent from my GT-I9001 using xda app-developers app

If he didn't install the apk, he wouldn't be able to not even decompile correctly.

OP: I also have this problem, but from what I read, after you recompile, you need to open the new and the old apk with WinRar or 7-Zip, copy the resources.src (or something like that) from the original framework-res.apk to the modified framework-res.apk. I read that this should do the job. I'm going to try that myself later when I get home. Good luck for you.

Sent from my LT26i with Tapatalk 2
13th August 2012, 07:34 AM   |  #5  
kong's Avatar
Senior Member
Thanks Meter: 831
 
1,244 posts
Join Date:Joined: Jan 2012
You shouldn't sign any system apks, instead just copy over the META-INF folder and AndroidManifest.xml from original framework-res.apk to the newly compiled one.
The Following 36 Users Say Thank You to kong For This Useful Post: [ View ]
18th August 2012, 06:12 PM   |  #6  
krazzyvishal's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 246
 
344 posts
Join Date:Joined: Oct 2011
Donate to Me
More
Talking
Quote:
Originally Posted by kong

You shouldn't sign any system apks, instead just copy over the META-INF folder and AndroidManifest.xml from original framework-res.apk to the newly compiled one.

This simple comment of yours gave peace to my soul... THANK YOU SO MUCH!!!!!!
The Following User Says Thank You to krazzyvishal For This Useful Post: [ View ]
20th August 2012, 04:41 PM   |  #7  
c_shekhar's Avatar
Recognized Developer
Thanks Meter: 34
 
1,941 posts
Join Date:Joined: Jun 2005
Great solution !!!!
17th December 2012, 10:14 PM   |  #8  
eris72's Avatar
Senior Member
Thanks Meter: 33
 
186 posts
Join Date:Joined: Aug 2010
Quote:
Originally Posted by kong

You shouldn't sign any system apks, instead just copy over the META-INF folder and AndroidManifest.xml from original framework-res.apk to the newly compiled one.

sorry for a 6 month later post, but i'm having the same problem and this solution isn't making sense to me..

edit: holy **** it worked

i compile first, I just drag them into the newly compiled apk

thank you!
Last edited by eris72; 17th December 2012 at 10:24 PM.
20th March 2013, 11:17 AM   |  #9  
Member
Thanks Meter: 1
 
31 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by eris72

sorry for a 6 month later post, but i'm having the same problem and this solution isn't making sense to me..

edit: holy **** it worked

i compile first, I just drag them into the newly compiled apk

thank you!

For me it is not working. My phone keeps looping after rebooting it.
I tried with 7zip and winrar and it is not working.

1.- Decompile with apktool1.4.2
2.- Compile with apktool1.4.3 (in this step i was editing eri.xml I need to edit this file, but also without editing this file I have the same result)
3.- Drag the META-INF and AndroidManifest.xml from the original apk to the newly created one with 7zip(also tried with winrar)
4.- push the file to the phone (system/framework)

Actually right after pushing it I get an error message saying Unfortunately, C has stopped.

What am I missing?
18th April 2013, 02:15 AM   |  #10  
dutchmaster18's Avatar
Member
Flag South Jersey
Thanks Meter: 9
 
69 posts
Join Date:Joined: Dec 2010
More
Did you fix permissions before pushing back to system/framework

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software and Hacking General [Developers Only] by ThreadRank