Hello guys!
Im trying to edit CM9 systemui.apk
I have succesfully modded it....
BUt when i try to build it its giving error....
I think its about me!
I tried it in 2 computers with true installs!
But its giving this error(at attachment)
This errors take my pleasure about modding apks. And after this error im giving up
Related
Hello everyone,
I tried to mod theme, but I can't recompile and do one thing. If you'll help me, I'll be very happy .
I need effect like Nexus S "more options" and I made it... but I can't recompile framework-res.apk ;/. Second effect is "popup" and I don't know how to do it.
I use Win7 and apktool. I decompilled framework-res.apk succesfully, but I can't recompile that (cmd shows bug). Any help will be nice. Thanks.
My framework-res.apk which I'm trying to mod and images with effects in attachments.
Greetings
Ok, in which file is that pop-up effect?
Hello there
Trying to make some modifications to SystemUI.apk.
When trying to recompile the SystemUI.apk I got some error, which is this:
http://pastebin.com/qLBsLdDB
"D:\Apk_Manager_ICS\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:30: error: Error parsing XML: mismatched tag"
Thats the first error line I read, and that's where I made changes, So I figured there must be something wrong in the code.. so I edit status_bar.xml and check it for xml errors and this is what comes up:
"XML parsing error at line 30:
Premature end of data tag
com.android.systemui.statusbar.phone.PhoneStatusBarView line2"
So I guess that means there's something wrong at line 30, But I can't seem the find out what's wrong.
So I'm asking, any theming expert can see whats wrong here:
http://pastebin.com/bWDhSsSz
Hope anyone can help me figure out what's wrong here
Thanks in advance!
Its either the fact that you're editing the XML in Notepad or your apktool.jar doesn't compile the latest ICS systemUI's. I've had this issue with decompiling before and I had to find an old apktool.jar that I themed back in the SGS2 days and it worked with 0 issues.
Also, have you just tried straight decompiling and compiling to confirm its an issue with the apktool.jar? If you do get the error without making changes, theres your issues.
If you don't, download Notepad++ and try again.
Nitroz said:
Its either the fact that you're editing the XML in Notepad or your apktool.jar doesn't compile the latest ICS systemUI's. I've had this issue with decompiling before and I had to find an old apktool.jar that I themed back in the SGS2 days and it worked with 0 issues.
Also, have you just tried straight decompiling and compiling to confirm its an issue with the apktool.jar? If you do get the error without making changes, theres your issues.
If you don't, download Notepad++ and try again.
Click to expand...
Click to collapse
Alright, thanks for your reply, ill try it when I get home in a few hours. What about the XML error I'm getting? I am using Notepad++ and when I check for XML errors there, it gives me the error @ line 30. Any idea?
nerotix said:
Alright, thanks for your reply, ill try it when I get home in a few hours. What about the XML error I'm getting? I am using Notepad++ and when I check for XML errors there, it gives me the error @ line 30. Any idea?
Click to expand...
Click to collapse
It depends what you're doing. If you've changed a line of code that you shouldn't then it will error like theres no tomorrow. We need to decipher if this is the issue yet, it might not be.
Nitroz said:
It depends what you're doing. If you've changed a line of code that you shouldn't then it will error like theres no tomorrow. We need to decipher if this is the issue yet, it might not be.
Click to expand...
Click to collapse
Alright, ill let u know =)
P.S Could u perhaps give me ur tools? APKManager and/or Apktools etc, the things u use.
Ok, I did it remotely from college, I decompiled the SystemUI.apk and compiled directly again, worked fine. So I guess next is the XML?
Thanks for helping!
Yep, just decompile once more, edit a simple XML like the status_bar.xml and change a hex code, like an ICS Blue hex code or something like that
Nitroz said:
Yep, just decompile once more, edit a simple XML like the status_bar.xml and change a hex code, like an ICS Blue hex code or something like that
Click to expand...
Click to collapse
I changed a hex for res\values\colors.xml and compiled it, worked fine.
nerotix said:
Hello there
Trying to make some modifications to SystemUI.apk.
When trying to recompile the SystemUI.apk I got some error, which is this:
http://pastebin.com/qLBsLdDB
"D:\Apk_Manager_ICS\other\..\projects\SystemUI.apk\res\layout\status_bar.xml:30: error: Error parsing XML: mismatched tag"
Thats the first error line I read, and that's where I made changes, So I figured there must be something wrong in the code.. so I edit status_bar.xml and check it for xml errors and this is what comes up:
"XML parsing error at line 30:
Premature end of data tag
com.android.systemui.statusbar.phone.PhoneStatusBarView line2"
So I guess that means there's something wrong at line 30, But I can't seem the find out what's wrong.
So I'm asking, any theming expert can see whats wrong here:
http://pastebin.com/bWDhSsSz
Hope anyone can help me figure out what's wrong here
Thanks in advance!
Click to expand...
Click to collapse
Hi
a closing tag is missing in your file a "</LinearLayout>" is missing ,
add </LinearLayout> at line 30
el_liberator said:
Hi
a closing tag is missing in your file a "</LinearLayout>" is missing ,
add </LinearLayout> at line 30
Click to expand...
Click to collapse
Added, rechecked with N+++ for errors and there's none! Thanks a ton! gonna try to compile right away!
el_liberator said:
Hi
a closing tag is missing in your file a "</LinearLayout>" is missing ,
add </LinearLayout> at line 30
Click to expand...
Click to collapse
Does it matter where I put that closing tag? I mean if I place it @ line 30, wouldnt it matter if its suppose to be closed earlier one?
every time i'm trying to decompile an APK i get this error:
Code:
Decompiling Apk
testCan't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
"An Error Occured, Please Check The Log (option 24)"
can someone help me?:crying:
someone? anyone?
:crying:
make sure you installed correct framework apps..and then decompile again
arpith.fbi said:
make sure you installed correct framework apps..and then decompile again
Click to expand...
Click to collapse
I already installed the framework-res.apk and the systemui.apk
Sent from my LT18i using xda premium
can you post the 4-5 previous lines in the code before getting error?
arpith.fbi said:
can you post the 4-5 previous lines in the code before getting error?
Click to expand...
Click to collapse
i used used apk multi tool, so i selected a project, chose to decompile, and that are all the lines i get.
install original stock framework-res.apk including other frameworks
First try decompiling and re-compiling the original stock apk before decompiling & recompiling apk of some other roms.
but i still feel framework-res.apk isnt properly installed
Code:
apktool install-framework framework-res.apk
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Erhany said:
apktool if framework-res.apk
/1.apk successfully created.
apktool if SemcgenericUXpres.apk
/2.apk successfully created..
After that try it.. ıt works lots of apk instead of systemUI.apk :S I dont know where I have mistakes during COMPILE process :/
Click to expand...
Click to collapse
thanks, it worked
now i can't compile the apk:crying:
Code:
The system cannot find the file specified.
what can i do to fix that?
please, can someone help me with that?
This is mainly for the rom devs/themers out there.
Since ICS, there have been issues recompiling Phone.apk - the recompile fails with errors in various strings.xmls in the values language folders.
Had the same issue trying to recompile Phone.apk in the lastest Sense4+ ROMs. But thanks to a sharp eyed user over in the Apktool thread I managed to fix the faulty xmls.
Thought I'd upload them here, to save others the effort. Just add the folders in the zip to your decompiled Phone.apk, and it should recompile fine. Have tested these with both Sense4 and Sense4+ Phone.apk, both recompiled fine.
DOWNLOAD HERE
fisha21 said:
This is mainly for the rom devs/themers out there.
Since ICS, there have been issues recompiling Phone.apk - the recompile fails with errors in various strings.xmls in the values language folders.
Had the same issue trying to recompile Phone.apk in the lastest Sense4+ ROMs. But thanks to a sharp eyed user over in the Apktool thread I managed to fix the faulty xmls.
Thought I'd upload them here, to save others the effort. Just add the folders in the zip to your decompiled Phone.apk, and it should recompile fine. Have tested these with both Sense4 and Sense4+ Phone.apk, both recompiled fine.
DOWNLOAD HERE
Click to expand...
Click to collapse
Good work mate
problem recompiling custom hand made skin as well , have to use both VTS and apktool .. no big deal , but i prefer making everything with VTS
Do you face that to ??
Dougi said:
problem recompiling custom hand made skin as well , have to use both VTS and apktool .. no big deal , but i prefer making everything with VTS
Do you face that to ??
Click to expand...
Click to collapse
I did have one issue where ICS skins wouldnt recompile. Was due to an error in decompiling AndroidManifest. Check the difference in manifest between VTS and manual apktool....you'll see there is a "minimum SDK version" line missing from the manifest in VTS. If you add that back in, it should recompile properly.
Though I only had that issue trying to convert JB skins to ICS. Currently working with JB skins and they compile just fine.
Sent from my HTC One X using xda premium
hi all
as you see in my sig im working on a new rom but i have a big problem now
im trying to use this mod for porting xperia z lockscreen but its not working
i getting some problems when i wanna recompile setting.apk
can anyone help me?
here are my files (well my settings is a little different but don't worry make it with this one then i will theme the setting again)
pedyvirus said:
hi all
as you see in my sig im working on a new rom but i have a big problem now
im trying to use this mod for porting xperia z lockscreen but its not working
i getting some problems when i wanna recompile setting.apk
can anyone help me?
here are my files (well my settings is a little different but don't worry make it with this one then i will theme the setting again)
Click to expand...
Click to collapse
Could you post the log containing errors you get when recompiling?
I don't have a pc to test it myself right now, but I should help knowing what errors you're facing
Sent from my R800i using xda app-developers app
My skills are little rusty, but here is compiled settings.apk
If it's not working, post/upload framework-res.apk and i'll try it again
well this setting didnt work
but i made a working one myself :victory:
but now something else is not working(when i click on lockscreen in setting, setting will force close )
thanks for your help i gave me the idea that why mine wasn't getting compiled again
Oh, sorry, just now i see that you need it for cm9 (second post), not cm10 (first post on that guide). It was recompiled without errors, i assumed it worked.
But i couldn't recompile android-policy.jar
Too much differense in smali files or i used wrong ones
Sent from my R800i using xda app-developers app