Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
THREAD CLOSED
Tip us?
 
tommytomatoe
Old
#1211  
tommytomatoe's Avatar
Recognized Developer
Thanks Meter 6718
Posts: 6,234
Join Date: Dec 2010
Location: Knoxville USA

 
DONATE TO ME
Quote:
Originally Posted by klquicksall View Post
True brut is the theme god father lol

Sent from my DHD / Inspire 4G
No doubt. Without him 92% of this wouldn't he possible.

Sent from my PC36100 using XDA Premium App
 
dully79
Old
#1212  
dully79's Avatar
Senior Member
Thanks Meter 1328
Posts: 1,576
Join Date: Apr 2010
Location: Durham/Liverpool

 
DONATE TO ME
Been very busy lately and only just seen the update, thanks Brut.all.

I created a little right click reg-edit for windows based on your tool here, hope you dont mind.
If you have any objections just let me know!!??
Loving the new draw9patch tool.

 



Bug report:
"I put my mobile on flight mode... but when i threw it, it smashed on the floor!"

I will not respond to private message support questions.
 
Locster126
Old
#1213  
Locster126's Avatar
Senior Member
Thanks Meter 54
Posts: 385
Join Date: Feb 2011
Location: LONDON
OK I'm decompiling SystemUI.apk (using framework-res.apk for same ROM), once decompiled without any changes (just testing) I compile it again (opt. 11 - system - yes) and sign it and the file is 209kb instead of the original 257kb.

Problem is when I adb push it it won't install, when booting no statusbar is visible...for the life of mine I can't figure out whats wrong.

Is there a special way to compile/decompile SystemUI.apk?
Phones:

Iphone 1gen = SOLD
HTC Wildfire = SOLD
Dell Streak = BROKEN
HTC DESIRE HD = SOLD
SAMSUNG GALAXY TAB 7" = SOLD
SAMSUNG GALAXY S2 = Rooted, VillainRom 1.4 - KF2 Kernel - KF2 Modem.

Replaced SGS2, 3 times already! First was scratched, second was flickering, third seems perfect *fingers crossed*


Click here - BatteryMod CM7 Style - VillainRom 1.4 - KF2

Bloatware Buster for Galaxy S2 - Remove bloatware using CWM
 
klquicksall
Old
#1214  
Account currently disabled
Thanks Meter 556
Posts: 2,453
Join Date: Dec 2010
Location: Texas

 
DONATE TO ME
Quote:
Originally Posted by Locster126 View Post
OK I'm decompiling SystemUI.apk (using framework-res.apk for same ROM), once decompiled without any changes (just testing) I compile it again (opt. 11 - system - yes) and sign it and the file is 209kb instead of the original 257kb.

Problem is when I adb push it it won't install, when booting no statusbar is visible...for the life of mine I can't figure out whats wrong.

Is there a special way to compile/decompile SystemUI.apk?
Ok are you using a sense rom? In any case you need the meta-inf and Android manifest from the original apk.

Sent from my HTC Desire HD using XDA Premium App
 
mb02
Old
#1215  
Senior Member
Thanks Meter 42
Posts: 519
Join Date: Jun 2010
Hey guys, I'm having trouble working with Rosie.apk from an evo3d port. I have no problem decompiling or recompiling any other apks from this rom or any other, including other Rosies. For some reason, this one apk is the only one giving me problems. Here's the errors when compiling:

Code:
c:\>apktool b Rosie Rosie1.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image c:\\Rosie\res\drawable\all_apps_divider.9.pn
g
libpng error: Read Error
ERROR: Failure processing PNG image c:\\Rosie\res\drawable-hdpi\all_apps_divider
.9.png
c:\\Rosie\res\values\public.xml:87: error: Public symbol drawable/activity_title
_bar declared here is not defined.
c:\\Rosie\res\values\public.xml:88: error: Public symbol drawable/alarm declared
 here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\MIKEYB~1\AppData\Local\Tem
p\APKTOOL2559603846819444637.tmp, -I, C:\Users\Mikey B\apktool\framework\1.apk,
-I, C:\Users\Mikey B\apktool\framework\2.apk, -S, c:\\Rosie\res, -M, c:\\Rosie\A
ndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:174)
        at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\MIKEYB~1\AppData\Local\Temp\APKTOOL2559603846819444637.tmp, -I, C:\Users\Mi
key B\apktool\framework\1.apk, -I, C:\Users\Mikey B\apktool\framework\2.apk, -S,
 c:\\Rosie\res, -M, c:\\Rosie\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more
There were MANY more instances of "Public symbol drawable/* not defined" for res/values/public.xml, cut them out to size down the error log. Basically every drawable defined in the xml threw this error, but the thing is all of the drawables exist and are where they are supposed to be. Also, this is from a straight decompile and compile, no edits made. I have my sdk in PATH as well as apktool 1.4.1 in my windows dir so aapt shouldn't be a problem. Anybody have any ideas??
 
Locster126
Old
#1216  
Locster126's Avatar
Senior Member
Thanks Meter 54
Posts: 385
Join Date: Feb 2011
Location: LONDON
Quote:
Originally Posted by klquicksall View Post
Ok are you using a sense rom? In any case you need the meta-inf and Android manifest from the original apk.

Sent from my HTC Desire HD using XDA Premium App
nope, no sense ROM, just touchwiz 4 on the galaxy s2...hmm any other ideas?
Phones:

Iphone 1gen = SOLD
HTC Wildfire = SOLD
Dell Streak = BROKEN
HTC DESIRE HD = SOLD
SAMSUNG GALAXY TAB 7" = SOLD
SAMSUNG GALAXY S2 = Rooted, VillainRom 1.4 - KF2 Kernel - KF2 Modem.

Replaced SGS2, 3 times already! First was scratched, second was flickering, third seems perfect *fingers crossed*


Click here - BatteryMod CM7 Style - VillainRom 1.4 - KF2

Bloatware Buster for Galaxy S2 - Remove bloatware using CWM
 
tommytomatoe
Old
#1217  
tommytomatoe's Avatar
Recognized Developer
Thanks Meter 6718
Posts: 6,234
Join Date: Dec 2010
Location: Knoxville USA

 
DONATE TO ME
Quote:
Originally Posted by Locster126 View Post
nope, no sense ROM, just touchwiz 4 on the galaxy s2...hmm any other ideas?
You will also want the tw framework apk in addition to framework res.apk.

Sense has com.htc.resources.apk. I know touchwhiz has one similar.

And yes for all system apks you need to transfer ORIGINAL meta inf and androidmanifest from ORIGINAL apk. It's not just a sense thing. :)

Sent from my PC36100 using XDA Premium App
 
coiledwire
Old
#1218  
coiledwire's Avatar
Senior Member
Thanks Meter 660
Posts: 2,165
Join Date: Oct 2010
Location: norcal

 
DONATE TO ME
Quote:
Originally Posted by tommytomatoe View Post
You will also want the tw framework apk in addition to framework res.apk.

Sense has com.htc.resources.apk. I know touchwhiz has one similar.

And yes for all system apks you need to transfer ORIGINAL meta inf and androidmanifest from ORIGINAL apk. It's not just a sense thing. :)

Sent from my PC36100 using XDA Premium App
+1. Also, I've noticed a normal reboot is sometimes required to have the status bar appear. I have no idea why this happens.

If you're able to bootup ok after applying the your changes, and everything appears to be normal except for a status bar, try a normal reboot.

Sent on the go, from my evo.
If you typed thanks, you should also press "thanks".

TEAM MiK
Since 2/16/11

Search. Read. Learn. Become a productive member.
 
kia1349
Old
(Last edited by kia1349; 25th June 2011 at 05:49 AM.)
#1219  
kia1349's Avatar
Senior Member
Thanks Meter 11
Posts: 165
Join Date: Jul 2010
Location: TEHRAN
after build apk , does it need to signe apk or no?
 
tommytomatoe
Old
#1220  
tommytomatoe's Avatar
Recognized Developer
Thanks Meter 6718
Posts: 6,234
Join Date: Dec 2010
Location: Knoxville USA

 
DONATE TO ME
Quote:
Originally Posted by kia1349 View Post
after build apk , does it need to signe apk or no?
Data app (third party, market app) = signed. Test sign usually works for most apks.

System app (apps that go in system/app) = not signed. Look at a couple posts above. You need to transfer original meta inf and AndroidManifest.xml from ORIGINAL apk to new one, the one in "dist" folder.

Sent from my PC36100 using XDA Premium App

THREAD CLOSED
Tags
apk, apktool, reengineering, resources, xml
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...