Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,943 Members 52,081 Now Online
XDA Developers Android and Mobile Development Forum

Re-Compile Framework-res.apk = Bootloop

Tip us?
 
OmenHTX
Old
#1  
OmenHTX's Avatar
Senior Member - OP
Thanks Meter 860
Posts: 356
Join Date: Mar 2012
Location: POLAND

 
DONATE TO ME
Default Re-Compile Framework-res.apk = Bootloop

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: [ Click to Expand ]
 
hasan4791
Old
#2  
hasan4791's Avatar
Senior Member
Thanks Meter 325
Posts: 1,002
Join Date: Nov 2011
Location: Bangalore
Exclamation same prob

Quote:
Originally Posted by OmenHTX View Post
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....!!


Guide to Track Android Device|Antitheft|Secure Droid
Don't FORGET to click Thanx...

Works:

Device:

LG Optimus G(E-975) Indian Version
Stock Rom 4.1.2 v10f
Kernel 3.4.0
The Following User Says Thank You to hasan4791 For This Useful Post: [ Click to Expand ]
 
Daniel.96
Old
#3  
Senior Member
Thanks Meter 1398
Posts: 413
Join Date: Mar 2012
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
Daniel96's KernelToolBox - Make and customize your own Kernel - simple & fast.

My GitHub

Don't get mad, get root
 
Felimenta97
Old
#4  
Felimenta97's Avatar
Senior Member
Thanks Meter 2304
Posts: 7,801
Join Date: Aug 2011
Location: Ribeirão Preto
Quote:
Originally Posted by Diablob555 View Post
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

 
kong
Old
#5  
kong's Avatar
Senior Member
Thanks Meter 799
Posts: 1,212
Join Date: 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 33 Users Say Thank You to kong For This Useful Post: [ Click to Expand ]
 
krazzyvishal
Old
#6  
krazzyvishal's Avatar
Senior Member
Thanks Meter 245
Posts: 345
Join Date: Oct 2011
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by kong View Post
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!!!!!!
My homescreens: MyColorScreen
My apps on: Google Play

Always have your stuff when you need it with Dropbox. Sign up for free! http://db.tt/swcWMFA3
Want even more space? Come here: Copy or here: OneDrive
The Following User Says Thank You to krazzyvishal For This Useful Post: [ Click to Expand ]
 
c_shekhar
Old
#7  
c_shekhar's Avatar
Recognized Developer
Thanks Meter 32
Posts: 1,941
Join Date: Jun 2005
Great solution !!!!
Please -DONATE


Samsung Galaxy S Plus
My own ROM
GB 2.3.6 KQE/Feamod NOC 1.4Fix/SkyHigh Kernel 1.4d

HTC HD2
My HD2 3.04.23569bCS (Build 23563.5.5.0)

HTC Touch Diamond
My Diam 2.10.21051A.CS (Build 21051.1.6.3)
My Diam 2.11.21056c.CS (Build 21056.1.6.9)

HTC Touch Cruise
My Pola ROM 1.60.21014aCS (Build 21014)
My Pola ROM 1.60.931aCS (Build 20931)
Radio 1.58.25.14

HTC Himalaya
My Hima ROM 6.1.2a16CS(build 19209)
My Hima ROM 6.1.1c16CS(Build 19199)
 
eris72
Old
(Last edited by eris72; 17th December 2012 at 10:24 PM.)
#8  
eris72's Avatar
Senior Member
Thanks Meter 31
Posts: 183
Join Date: Aug 2010
Quote:
Originally Posted by kong View Post
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!
 
xiltepin
Old
#9  
Member
Thanks Meter 1
Posts: 31
Join Date: Nov 2010
Quote:
Originally Posted by eris72 View Post
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?
 
dutchmaster18
Old
#10  
dutchmaster18's Avatar
Member
Thanks Meter 9
Posts: 69
Join Date: Dec 2010
Location: South Jersey
Did you fix permissions before pushing back to system/framework

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes