Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,798 Members 49,687 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Why can't I recompile modified apk?

Tip us?
 
Nick_73
Old
#1  
Member - OP
Thanks Meter 6
Posts: 51
Join Date: Jun 2013
Default [Q] Why can't I recompile modified apk?

I am trying to add 1% battery mod to my ROM. I decompiled my SystemUI.apk perfectly with the latest version of apktool. I modified the files I needed then I went to recompile using
Code:
Select Code
apktool b -f -d SystemUI.apk SystemUI-new.apk
Here's (poor) screenshots of my errors:




I tried manually installing apktool in /usr/local/bin and I also tried Apk-Multi-Tool version 2.0. I'm running the latest version of Mint (17 I believe) and everything is up to date, including Java JRE. I cannot find any related help on Google so any help that u can give is greatly appreciated. Thx
 
siMp0lMaN
Old
(Last edited by siMp0lMaN; 27th June 2014 at 03:54 PM.)
#2  
siMp0lMaN's Avatar
Senior Member
Thanks Meter 886
Posts: 286
Join Date: Feb 2013
Location: Baguio City
Quote:
Originally Posted by Nick_73 View Post
I am trying to add 1% battery mod to my ROM. I decompiled my SystemUI.apk perfectly with the latest version of apktool. I modified the files I needed then I went to recompile using
Code:
Select Code
apktool b -f -d SystemUI.apk SystemUI-new.apk
Here's (poor) screenshots of my errors:




I tried manually installing apktool in /usr/local/bin and I also tried Apk-Multi-Tool version 2.0. I'm running the latest version of Mint (17 I believe) and everything is up to date, including Java JRE. I cannot find any related help on Google so any help that u can give is greatly appreciated. Thx
your error says your lacking of resourses., you need to install also your framework_res.apk, then try to decompile/recompile.,

edit: you can use this awesome tool to decimpile/compile apk or even deodexing., Tickle My Android (TMA) by @Ticklefish here:

http://forum.xda-developers.com/show....php?t=1633333
The Following User Says Thank You to siMp0lMaN For This Useful Post: [ Click to Expand ]
 
masanamuthu
Old
#3  
masanamuthu's Avatar
Member
Thanks Meter 9
Posts: 58
Join Date: Apr 2014
Location: pollachi
Use apkmultitool for a better experience. In this u dnt gve any command lines. There is a numbers for decompile & recompile . Hit >>>>>>> THANKS

Sent from my GT-S6102 using XDA Free mobile app
The Following User Says Thank You to masanamuthu For This Useful Post: [ Click to Expand ]
 
Ticklefish
Old
#4  
Ticklefish's Avatar
Recognized Themer
Thanks Meter 3113
Posts: 3,584
Join Date: Oct 2011
Location: UK
Quote:
Originally Posted by airupthere_23 View Post
your error says your lacking of resourses., you need to install also your framework_res.apk, then try to decompile/recompile.,

edit: you can use this awesome tool to decimpile/compile apk or even deodexing., Tickle My Android (TMA) by @Ticklefish here:

http://forum.xda-developers.com/show....php?t=1633333
Say my name and I appear...

It's hard to know quite what the problem is here as the screenshots are missing most of the error message. Including the first error, which is often the key to solving the problem.

By the looks of things though, I would say that you haven't added your png files. These error messages are all saying that you have a reference to image files in your xml..but no actual image files.

(Oh, and TMA isn't available on Linux...yet. But if the OP has access to a Windows PC, I can definitely suggest it!)


- Tickle My Android 9.1 -

Making Theming Android Fun!


Decompile Files, Change Icons, Change Fonts,
Change Boot Animations, Create Flashable Zips, Deodex Roms
..And More!


http://forum.xda-developers.com/showthread.php?t=1633333
The Following 2 Users Say Thank You to Ticklefish For This Useful Post: [ Click to Expand ]
 
Nick_73
Old
#5  
Member - OP
Thanks Meter 6
Posts: 51
Join Date: Jun 2013
Quote:
Originally Posted by Ticklefish View Post
Say my name and I appear...

It's hard to know quite what the problem is here as the screenshots are missing most of the error message. Including the first error, which is often the key to solving the problem.

By the looks of things though, I would say that you haven't added your png files. These error messages are all saying that you have a reference to image files in your xml..but no actual image files.

(Oh, and TMA isn't available on Linux...yet. But if the OP has access to a Windows PC, I can definitely suggest it!)
Ha thx so much I think that's it I forgot to put my pngs on the system ui.
 
Nick_73
Old
#6  
Member - OP
Thanks Meter 6
Posts: 51
Join Date: Jun 2013
Fixed one issue, now I got these:



I didn't even modify the public.xml file...
 
Ticklefish
Old
#7  
Ticklefish's Avatar
Recognized Themer
Thanks Meter 3113
Posts: 3,584
Join Date: Oct 2011
Location: UK
Quote:
Originally Posted by Nick_73 View Post
Fixed one issue, now I got these:

I didn't even modify the public.xml file...
You should never modify the public.xml file...

I'll be honest, it's really hard to tell what's going just from screenshots of part of the error. Can you provide the entire error message please? And it would help if you're able to provide the screen output from when you decompiled as well.

What type of phone/rom are you using?


- Tickle My Android 9.1 -

Making Theming Android Fun!


Decompile Files, Change Icons, Change Fonts,
Change Boot Animations, Create Flashable Zips, Deodex Roms
..And More!


http://forum.xda-developers.com/showthread.php?t=1633333
 
Nick_73
Old
#8  
Member - OP
Thanks Meter 6
Posts: 51
Join Date: Jun 2013
Quote:
Originally Posted by Ticklefish View Post
You should never modify the public.xml file...

I'll be honest, it's really hard to tell what's going just from screenshots of part of the error. Can you provide the entire error message please? And it would help if you're able to provide the screen output from when you decompiled as well.

What type of phone/rom are you using?
I didn't mod it...

When I get back on my computer I'll copy the whole thing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes