I'm trying to decompile the systemUI.apk to get into the xml files, but I'm getting errors from both APKtool and APK Manager. Is there a special trick to getting system files to decomp?
Try this
bigrushdog said:
Try this
Click to expand...
Click to collapse
Noob alert: What do I do with those? Just put them in the folder with everything else?
arrtoodeetoo said:
Noob alert: What do I do with those? Just put them in the folder with everything else?
Click to expand...
Click to collapse
It's a custom apktool patched for honeycomb. Use the .jar file with dependencies just just you would with apktool. It currently will not recompile though due to the decompile causing some anomalies. BigRushDog is working on a fix for that.
I actually got a build that works from someone else.
XOOM'd from the XDA app.
Quick tip. When you solve your own problem, you may want to share the solution with others
^^^this
Sent from my Xoom using XDA Premium App
Related
Ok so I am trying to get friend stream to work in the new fresh rom. I got the apk from damages rom along with the widget. In cmd I successfully push the apps /system/app/ after typing in adb remount. However after I reboot the app is not there. How do I get this to work? Also was wondering how to port a system app from a darchlegend rom to work on any other rom. Any advice is welcome.
-------------------------------------
Sent via the XDA Tapatalk App
Wont work, period. It needs an .odex for both the widget and the normal .apk for it to work in the latest release.
Wont work, period. It needs an .odex for both the widget and the normal .apk for it to work in the latest release.
Click to expand...
Click to collapse
Ok I can pull the odex file but where does that go? Or is that something created when the apk is compiled if so any good tuts for editing and recompiling?
-------------------------------------
Sent via the XDA Tapatalk App
rejectedkid said:
Ok I can pull the odex file but where does that go? Or is that something created when the apk is compiled if so any good tuts for editing and recompiling?
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
If you want to learn, you tell me where you think it goes...
Ok I can pull the odex file but where does that go? Or is that something created when the apk is compiled if so any good tuts for editing and recompil
Click to expand...
Click to collapse
If you want to learn, you tell me where you think it goes...
Click to expand...
Click to collapse
I suppose I will search the forums. Was just being lazy.
-------------------------------------
Sent via the XDA Tapatalk App
I was kind of hoping TitaniumBackup would give me this one...
I can't find the odex...
But I read from the other Hero forum that Friendstream may require an update package.
Can someone help me, how to compile systemUI apk, after i edit xml file.
Sent from my GT-P1000 using XDA App
waazaii said:
Can someone help me, how to compile systemUI apk, after i edit xml file.
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
isnt a APK a type of zip?
a zip with scripts to tell the os how to install it.
Well hi everyone,
I think that several users of you have seen my theme for stock Sammy, but CM themed.
My question here is:
I tried XML editing in Notepad++ and in Editix. But when I open a XML file, I only see strange squares instead of lines of text.
Does anybody know what I can do about this? Because I need it for my upcoming release....
Thanks in Advance
Jeroenvk94 said:
Well hi everyone,
I think that several users of you have seen my theme for stock Sammy, but CM themed.
My question here is:
I tried XML editing in Notepad++ and in Editix. But when I open a XML file, I only see strange squares instead of lines of text.
Does anybody know what I can do about this? Because I need it for my upcoming release....
Thanks in Advance
Click to expand...
Click to collapse
Those files are encrypted, use apktool for decompiling it first
Sent from my GT-I9070 using xda app-developers app
frapeti said:
Those files are encrypted, use apktool for decompiling it first
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Oh lol, I just unpacked it with 7Zip, but I didn't know I needed to decompile it.
Okay guys,Hello,I am LED 26.
Trying to theme framework-res.apk i recompile it,do all necessary stuff and now AOSP ICS doesn't boot.. It's 99 % bad program used.. Can you tell me what program do ypu use for theming png's ? Thanks in advance
L.E.D 26 said:
Okay guys,Hello,I am LED 26.
Trying to theme framework-res.apk i recompile it,do all necessary stuff and now AOSP ICS doesn't boot.. It's 99 % bad program used.. Can you tell me what program do ypu use for theming png's ? Thanks in advance
Click to expand...
Click to collapse
Photoshop - paid
Gimp - free (almost like ps)
Sent from my BL-S5570 using xda app-developers app
I used gimp sometime ago,and was good,you remember it to me,so thanks!
Sent from my GT-S5570 using xda premium
L.E.D 26 said:
Okay guys,Hello,I am LED 26.
Trying to theme framework-res.apk i recompile it,do all necessary stuff and now AOSP ICS doesn't boot.. It's 99 % bad program used.. Can you tell me what program do ypu use for theming png's ? Thanks in advance
Click to expand...
Click to collapse
i too wanted to decompile framework-res.apk to add reboot options to power menu to aosp ics. Never manged to make it boot :|...
Yep,but i managed TO mod xml correctly with Notepad++ And the mods work very well,like lockscreen rotation!
Sent from my GT-S5570 using xda premium
XDRdaniel said:
i too wanted to decompile framework-res.apk to add reboot options to power menu to aosp ics. Never manged to make it boot :|...
Click to expand...
Click to collapse
The reboot options are located in the framework files, in android.policy.jar if I remember well. It's really hard to add those in smali.
L.E.D 26 said:
Yep,but i managed TO mod xml correctly with Notepad++ And the mods work very well,like lockscreen rotation!
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
I think your problem is the AndroidManifest.xml file. Everytime you recompile a system app, the apktool (or aapt binary) doesn't correctly compile this particular file. So you have to copy and replace inside the new created apk, the AndroidManifest.xml and the META-INF folder from the original apk.
It worked,thanks,now is booting And i just Need to fix SystemUI (statusbar not appearing) !
Sent from my GT-S5570 using xda premium
alin.p said:
The reboot options are located in the framework files, in android.policy.jar if I remember well. It's really hard to add those in smali.
I think your problem is the AndroidManifest.xml file. Everytime you recompile a system app, the apktool (or aapt binary) doesn't correctly compile this particular file. So you have to copy and replace inside the new created apk, the AndroidManifest.xml and the META-INF folder from the original apk.
Click to expand...
Click to collapse
yes, i know...i followed a few tutorials but allways got stuck at framework-res.apk. I compile it without errors but if i use it bootloops my rom :|.
thanks for the tips.
i'll return later to report if it worked for me.
L.E.D 26 said:
It worked,thanks,now is booting And i just Need to fix SystemUI (statusbar not appearing) !
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
SystemUI is very sensitive in XML editing. You have to be really careful to not delete some components from the XMLs (imageview, relative layouts, widgets). Some can be deleted, usually the simple ones like TextView or some drawables. But for the rest, the SystemUI will appear as uninstalled in your system, even after a clean re-compile.
Infact that was what i got,SystemUI not installed. Fixed by rebuilding my ROM (just delete everything and re-start from scratch and it worked. Thanks alin for your precious tips ! :*
Sent from my GT-S5570 using xda app-developers app
Every time i try to recompile or decompile i get this error it looks like a java error but i have tried reinstalling in and on other computers so i dont know what it is if anybody could help that would be great.
You need to install the framework-res.apk and tw-framework.apk both of them in the framework folder. Google how to install framework for apktool.
Sent from my SM-N900A
RErick said:
You need to install the framework-res.apk and tw-framework.apk both of them in the framework folder. Google how to install framework for apktool.
Sent from my SM-N900A
Click to expand...
Click to collapse
Will try and report back thanks for the reply
Musgrove99 said:
Will try and report back thanks for the reply
Click to expand...
Click to collapse
i am still getting the same error. I thought it might be the rom so i downloaded a new stock rom and a new systemui.apk and try to decompile it and and i am i getting the same error but i decompiles it i dont know if it is missing something or not.
Musgrove99 said:
i am still getting the same error. I thought it might be the rom so i downloaded a new stock rom and a new systemui.apk and try to decompile it and and i am i getting the same error but i decompiles it i dont know if it is missing something or not.
Click to expand...
Click to collapse
Tell me the steps you're doing
It's because your using an old version of apktool. Don't use the automated programs they suck. Do it manually with aptool.jar just Google how to use it properly. Should have no issues. And make sure java is installed properly.
Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
drakeymcmb said:
It's because your using an old version of apktool. Don't use the automated programs they suck. Do it manually with aptool.jar just Google how to use it properly. Should have no issues. And make sure java is installed properly.
Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Not necessarily. I use an outdated apktool only has api up to 4.3 works fine. You can clearly see that its not getting framework info from the screenshot he took
RErick said:
Not necessarily. I use an outdated apktool only has api up to 4.3 works fine. You can clearly see that its not getting framework info from the screenshot he took
Click to expand...
Click to collapse
I have tried apktool.jar it does same thing.
Musgrove99 said:
I have tried apktool.jar it does same thing.
Click to expand...
Click to collapse
Yeah I know. It doesn't matter. What are your exact steps?
RErick said:
Yeah I know. It doesn't matter. What are your exact steps?
Click to expand...
Click to collapse
I download java files and installed I got the systemui.apk and put in in the put files and I put twframework.apk in framework I opened .bat file and tried to decompile it and I get that error but I get a systemui decompile but I think it is missing something
Yep. You have to install both frameworks. Framework-res.apk AND tw-framework.apk. They also have to be installed. See this website
http://bit.ly/LLKRja look for a YouTube video or a guide and THEN try decompiling
Edit: the second hit that comes up there will help you a lot
Sent from my SM-N900A
RErick said:
Yep. You have to install both frameworks. Framework-res.apk AND tw-framework.apk. They also have to be installed. See this website
http://bit.ly/LLKRja look for a YouTube video or a guide and THEN try decompiling
Edit: the second hit that comes up there will help you a lot
Sent from my SM-N900A
Click to expand...
Click to collapse
Will try this afternoon and report back thanks
I did the command for the framework and it installed the framework but i am getting the same result.
Did you put the java path in the correct environmental path? for your apk tool?
tankxx said:
Did you put the java path in the correct environmental path? for your apk tool?
Click to expand...
Click to collapse
I did.
It is only when i try to do systeyui.apk i get a error