have got error when re-compile app - Xperia Arc Q&A, Help & Troubleshooting

when i tried to recompile apk after modified systemui.apk, i had god this error. anyone can tell me what is it and how to fix this problem. THanks

What you edited?
Sent from my CM9'd Arc

XperienceD said:
What you edited?
Sent from my CM9'd Arc
Click to expand...
Click to collapse
drawables.xml in res/values folder and put an .PNG image to drawable-hdpi

Oohhlala said:
drawables.xml in res/values folder and put an .PNG image to drawable-hdpi
Click to expand...
Click to collapse
have you done a clean recompile to see if it will work without the changes? also have you got the newest version of APKtool?
Pvy.

pvyParts said:
have you done a clean recompile to see if it will work without the changes? also have you got the newest version of APKtool?
Pvy.
Click to expand...
Click to collapse
no, i used ver 1.4.3 and this is result when i used 1.4.9

Oohhlala said:
no, i used ver 1.4.3 and this is result when i used 1.4.9
Click to expand...
Click to collapse
Have you installed all the frameworks?
Apktool if framework-Res.apk
Apktool if semc.............
Sect
Pvy
Sent from my Galaxy Nexus using xda premium

http://forum.xda-developers.com/showthread.php?t=1374394
Sent from my CM9'd Arc

XperienceD said:
http://forum.xda-developers.com/showthread.php?t=1374394
Sent from my CM9'd Arc
Click to expand...
Click to collapse
@pvy and Experience : two way, same result. aapt warning : string : statusbar_setting_autobrightness_laber has no default translation in ....

Related

lost statusbar after modifying

Hi all, first i'm sorry for my poor english and thanks to anyone can help me After long time of searching how to modify an apk, i decided to modify systemui.apk to change notification pulldown background. i was very happy when i decompile, modified and re-compile in success. And i put modified apk to phone and waiting for good result.But i lost my statusbar and home button was in wrong position ( plz look at attached image ) So i tried 2 way to sign modifid apk : use winrar add META IFF folder straight to new apk and in other way i put back resource.arc file to the new apk after extracted from it. Hmm the resut was not like i hope. So any one here can tell me which step i was wrong or something like it and how to fix to get better result
Again thank in advance to everyone :good:
It's probably the image that's wrong.
You try to flash the rom or use the Backup and then set the lock screen by the member Xda post
XperienceD said:
It's probably the image that's wrong.
Click to expand...
Click to collapse
Sorry mate, what you mean ? If i remember exactly Themeing tool is your, and u also used it to modify an apk and attention to the notice that you mentioned in your guide before using new apk.
Oohhlala said:
Sorry mate, what you mean ? If i remember exactly Themeing tool is your, and u also used it to modify an apk and attention to the notice that you mentioned in your guide before using new apk.
Click to expand...
Click to collapse
What have you edited?
Sent from my CM9'd Arc
XperienceD said:
What have you edited?
Sent from my CM9'd Arc
Click to expand...
Click to collapse
deleting a line in .xml file and put an image.png into drawable-hdpi
Well there is the issue. Is this from a guide?
Sent from my CM9'd Arc
XperienceD said:
Well there is the issue. Is this from a guide?
Sent from my CM9'd Arc
Click to expand...
Click to collapse
yes, i used themingtool without any error in decompiling and re-compiling, but when put new apk to phone , i dont know how to make it work,
Oohhlala said:
yes, i used themingtool without any error in decompiling and re-compiling, but when put new apk to phone , i dont know how to make it work,
Click to expand...
Click to collapse
What tool, what guide???
Sent from my CM9'd Arc
XperienceD said:
What tool, what guide???
Sent from my CM9'd Arc
Click to expand...
Click to collapse
tool from here : http://forum.xda-developers.com/showthread.php?t=1374394
guide from here : http://forum.xda-developers.com/showthread.php?t=1803813
Upload the unmodified apk and I'll take a look when I get home.
Sent from my CM9'd Arc
Delete the public.xml and recompile and report back.
XperienceD said:
Delete the public.xml and recompile and report back.
Click to expand...
Click to collapse
first attached file is original apk and next is the one i modified with deleting public.xml and just re-compile
Oohhlala said:
first attached file is original apk and next is the one i modified with deleting public.xml and just re-compile
Click to expand...
Click to collapse
And did it work? I'm on CM9 so can't test it.
XperienceD said:
And did it work? I'm on CM9 so can't test it.
Click to expand...
Click to collapse
no, it didn't work, the statusbar still disappeared

[MOD][GUIDE] 4.1.2 Enable Ripple Effect

Hai,
This is easy guide to get back ripple effect in galaxy s III mini...
REQUIREMENTS:
1. Rotted only
2. Deodex and not deodex
INSTRUCTION:
1. DECOMPILE framework-res.apk
2. Go to
Framework-res/res/values-hdpi/
3. Open bools.xml
4. Find
Code:
<bool name="config_isWaterRippleEnabled">false</bool>
5. Change to
Code:
<bool name="config_isWaterRippleEnabled">true</bool>
save bools.xml
6. Recompile framework-res.apk
7. Push new framework-res.apk to system/framework, set permision to rw-r-r
8. Reboot
Done, and now you get back ripple effect in your S III mini.
And if you like my work, don't forget to click on "Thanks" button
Sent from my GT-I8190 using xda premium
what tool u use? link please..
can u provide some SS guide?
thanks
Apkmanager, or apktool
Sent from my GT-I8190 using xda premium
CahBagoes354 said:
Apkmanager, or apktool
Sent from my GT-I8190 using xda premium
Click to expand...
Click to collapse
help me enable ripple effect please ,
heres my framework http://www.mediafire.com/?gdr089y8t6xl1y2
Thanks first for you Mod/Guides !!!!!:good::good::good:
Houston we have a Problem :
Please can you help me ???
What doing wrong ??:crying:
cheech01 said:
Thanks first for you Mod/Guides !!!!!:good::good::good:
Houston we have a Problem :
Please can you help me ???
What doing wrong ??:crying:
Click to expand...
Click to collapse
you change the image .9. png
AW: [MOD][GUIDE] 4.1.2 Enable Ripple Effect
No...i have only change ripple Effekt to true..... but i have a Theme Installed before. Is this the problem?
This theme : http://forum.xda-developers.com/showthread.php?t=2156286
Sent from my GT-I8190 using xda premium
cheech01 said:
No...i have only change ripple Effekt to true..... but i have a Theme Installed before. Is this the problem?
This theme : http://forum.xda-developers.com/showthread.php?t=2156286
Sent from my GT-I8190 using xda premium
Click to expand...
Click to collapse
you have to patch it back in the picture, use draw9patch.
Sent from my GT-I8190 using xda premium
cheech01 said:
Thanks first for you Mod/Guides !!!!!:good::good::good:
Houston we have a Problem :
Please can you help me ???
What doing wrong ??:crying:
Click to expand...
Click to collapse
Which version of apktool do you have? It needs to be 1.5.2. Update your aapt as well.
finally managed to make the changes to my framework-res.apk
apktool version needed to be updated and then it worked
thanks to CahBagoes354
This don't work for me! I use apk-multi-tool to decompile and recompile framework-res.apk but when i push it i get bootloop.
Decompile and compile without any error. Do i need to do something more?
same here :/
Sent from my GT-I8190 using xda app-developers app
same here too...
same with xxamj3. phone boots well, when i lock the screen it goes bootloops and never opens
edit: my bad. compiled with new apktool and it works
burak185 said:
same with xxamj3. phone boots well, when i lock the screen it goes bootloops and never opens
edit: my bad. compiled with new apktool and it works
Click to expand...
Click to collapse
how do you manage to compile i always get error apktool didnt find sorces
hello , no find this file in framework-res values-hdpi ... how to search this ? i have xxamg4 stock rom
halfnakedprince said:
how do you manage to compile i always get error apktool didnt find sorces
Click to expand...
Click to collapse
This guide worked for me
CahBagoes354 said:
Hai,
This is easy guide to get back ripple effect in galaxy s III mini...
REQUIREMENTS:
1. Rotted only
2. Deodex and not deodex
INSTRUCTION:
1. DECOMPILE framework-res.apk
2. Go to
Framework-res/res/values-hdpi/
3. Open bools.xml
4. Find
Code:
<bool name="config_isWaterRippleEnabled">false</bool>
5. Change to
Code:
<bool name="config_isWaterRippleEnabled">true</bool>
save bools.xml
6. Recompile framework-res.apk
7. Push new framework-res.apk to system/framework, set permision to rw-r-r
8. Reboot
Done, and now you get back ripple effect in your S III mini.
And if you like my work, don't forget to click on "Thanks" button
Sent from my GT-I8190 using xda premium
Click to expand...
Click to collapse
Mod Edit Quote shortened
thanks...its work for me..
khaisttj92 said:
thanks...its work for me..
Click to expand...
Click to collapse
help me please ! thanx i have xxamj2
is there any1 here have deodexed framework-res.apk s3 mini xxAMG4.....i need it pls....tq

[Help] [Pro] Help me to edit settings.apk (decompile & compile) correctly

I installed all apk found under system/framework with apktool.
*framework-res.apk & another apk
Then decompiled Settings.apk of Xperia pro stock ics Rom.
After that ,without making any change I compiled the apk. Then I surprisingly noticed that the size compiled apk is 1/3 of original stock settings.apk .
Then I flashed the apk using cwm to my phone to test if it work .after flashing, the setting icon is invisible in launcher menu !
Plz anybody tech me how decompile and re compile stock settings.apk of Xperia pro properly..
----------------****---------------
I'm noob. Help me to be great like U
shouvo said:
I installed all apk found under system/framework with apktool.
*framework-res.apk & another apk
Plz anybody tech me how decompile and re compile stock settings.apk of Xperia pro properly..
----------------****---------------
I'm noob. Help me to be great like U
Click to expand...
Click to collapse
take a look here
cosmyndemeter said:
take a look here
Click to expand...
Click to collapse
On that post I found something like this
"2-STEP hope u guys know how to decompile iam not going to explain it so decompile the settings.apk (make sure u set the compression level 128mb)"
Then explain me how set compression level in apktool??
Sent from my MK16i using xda premium
I know how to decompile and compile. Also know how to mod....but main problem Is ,after re compile, settings.apk's size is decreased...why it's happening !?
Sent from my MK16i using xda premium
shouvo said:
I know how to decompile and compile. Also know how to mod....but main problem Is ,after re compile, settings.apk's size is decreased...why it's happening !?
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
size depends on apktool aapt or other files. ıts not so important. if you truly decompiled and recompiled. Be sure on resources.arsc's compression method is STORE. Generally that causes this problem. run 2 apps (original and unsigned) with winrar. move edited xmls from unsigned to signed with normal compression. Move icons(if you added or changed) with STORE method and finally move resources.arsc with STORE method.
Erhany said:
size depends on apktool aapt or other files. ıts not so important. if you truly decompiled and recompiled. Be sure on resources.arsc's compression method is STORE. Generally that causes this problem. run 2 apps (original and unsigned) with winrar. move edited xmls from unsigned to signed with normal compression. Move icons(if you added or changed) with STORE method and finally move resources.arsc with STORE method.
Click to expand...
Click to collapse
"Be sure on resources.arsc's compression method is STORE. " how can i set it to STORE ??
Sent from my MK16i using xda premium
shouvo said:
"Be sure on resources.arsc's compression method is STORE. " how can i set it to STORE ??
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
as I told you, open 2 apks with winrar. drag& drop resources arsc from unsigned.apk to original.apk, a screen will appear, Check compressin method on left center( generally writes NORMAL) change it to STORE and select OK for copying. thats all
Erhany said:
as I told you, open 2 apks with winrar. drag& drop resources arsc from unsigned.apk to original.apk, a screen will appear, Check compressin method on left center( generally writes NORMAL) change it to STORE and select OK for copying. thats all
Click to expand...
Click to collapse
thanks dude...it worked just like a charm
Sent from my MK16i using xda premium
shouvo said:
thanks dude...it worked just like a charm
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
You r welcom. Im glad

[Q] Able to de and re compile framework-res.apk?

I was just wondering if anyone with the UAMDL software has been able to decompile and recompile the framework on here yet.
I have tried with the APK multi tool and the decompile works fine but when I try to recompile it errors our right away.
Anyone have any luck with this?
If so what tool did you use?
Yes I have.
Sent from my SGH-M919 using Tapatalk 2
I'd like to know this as well, and how people have been successful. I haven't had any luck installing framework-res.apk or recompiling a modified app. From my understanding, it's an issue with apktool and aapt that needs to be updated.
TheArtiszan said:
I was just wondering if anyone with the UAMDL software has been able to decompile and recompile the framework on here yet.
I have tried with the APK multi tool and the decompile works fine but when I try to recompile it errors our right away.
Anyone have any luck with this?
If so what tool did you use?
Click to expand...
Click to collapse
That and SystemUI.apk are both missing files needed for them to decompile and recompile right
evil..............out
elesbb said:
Yes I have.
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
Can you elaborate on what tools you used and how to set it up please?
I have been stuck trying to get this to work for over a week now.
Sent using xda premium.
evil1art said:
That and SystemUI.apk are both missing files needed for them to decompile and recompile right
evil..............out
Click to expand...
Click to collapse
There are ways for making it work though
TheArtiszan said:
Can you elaborate on what tools you used and how to set it up please?
I have been stuck trying to get this to work for over a week now.
Sent using xda premium.
Click to expand...
Click to collapse
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
elesbb said:
There are ways for making it work though
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
Click to expand...
Click to collapse
Im the one who figured out the missing style for the systemui
evil..............out
evil1art said:
Im the one who figured out the missing style for the systemui
evil..............out
Click to expand...
Click to collapse
Yeah so did I lol. Ive ran into that issue before and thats all you have to do to get around it.
elesbb said:
There are ways for making it work though
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
Click to expand...
Click to collapse
We have our own modified apk manger works good
evil..............out
evil1art said:
We have our own modified apk manger works good
evil..............out
Click to expand...
Click to collapse
Ahhh. That makes life a lot easier lol. How did you modify it? Build it from source or edit the jar file?
elesbb said:
Ahhh. That makes life a lot easier lol. How did you modify it? Build it from source or edit the jar file?
Click to expand...
Click to collapse
Modified the original files and changed memory heap etc
evil..............out
Oh okay that makes sense.
I am editing the framework res apk
Making changes only to the arrays.xml file in the values folder.
Which styles should I be commenting out and then which file should I copy to the original?
I tried putting a + in front of a few lines based on the errors I was getting but that seemed to make it worse.
Sent using xda premium.
I think the arrays and other values xml get compiled into the resources file no?
Sent using xda premium.
TheArtiszan said:
I think the arrays and other values xml get compiled into the resources file no?
Sent using xda premium.
Click to expand...
Click to collapse
Everything in the values directory is found in your resources.arsc file in the apk.
Sent from my SGH-M919 using Tapatalk 2
Ah that makes sense.
The changes made for layouts, does that go into the same area though?
Just wondering if that might cause a problem since that is what I would want to move over.
Sent from my HTC VLE_U using xda premium
That is odd.
I can get this to decompile in apk multi tool but not Elesbb's GUI
I get the following error:
Tue 06/25/2013
0:46:56.39
Decompiling.. "C:\Users\Bill\APK GUI\framework-res.apk"
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010802f4 drawable/ic_ab_back_holo_dark, config=-hdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:48)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
-----------------------------------------------------------------
Did I miss something.
Made some progress and decompiling ok now on a different computer.
If I add the + before the layouts would that cause operation issues?
I would like to know too.
Still having trouble.
What did you do too decompile?
Okay I can now get it to recompile adding the +layout to the xml files that were erroring in the compile log and only other change was made was to the arrays.xml file to enable bluetooth tethering like on the GS3 did.
however when I push it to the phone and chmod and try it I get a boot loop.
Did I do something wrong?
Am I supposed to copy out the resource.asrc from the file I compiled like a zip then add it to the original that I pulled using 7zip or something?
Any input would be greatly appreciated.
TheArtiszan said:
Okay I can now get it to recompile adding the +layout to the xml files that were erroring in the compile log and only other change was made was to the arrays.xml file to enable bluetooth tethering like on the GS3 did.
however when I push it to the phone and chmod and try it I get a boot loop.
Did I do something wrong?
Am I supposed to copy out the resource.asrc from the file I compiled like a zip then add it to the original that I pulled using 7zip or something?
Any input would be greatly appreciated.
Click to expand...
Click to collapse
Move the AndroidManifest.xml and Meta-INF folder from the original apk to the modified one.
Sent from my SGH-M919 using xda premium

[Q] Recompiling SystemUI.apk or any other apks Error

Everytime i try to compile system apps i get this error, i have latest sdk installed, latest jdk and last version of apktool. I did apktool if framework-res.apk then apktool if semcgenericuxp.apk and decompiled systemui.apk, i have it done. I edited things, when i try to recompile it, gives me this error. I searched a lot but nothing helped, so if there is anyone who's facing this issue and then solved it, please help me. This is really eating me inside
federico rotundi said:
Everytime i try to compile system apps i get this error, i have latest sdk installed, latest jdk and last version of apktool. I did apktool if framework-res.apk then apktool if semcgenericuxp.apk and decompiled systemui.apk, i have it done. I edited things, when i try to recompile it, gives me this error. I searched a lot but nothing helped, so if there is anyone who's facing this issue and then solved it, please help me. This is really eating me inside
Click to expand...
Click to collapse
Try deconpiling then recompiling without any changes
If it still shows error change the semcgeneric or framework
Sent from my LT18i
Sahaab said:
Try deconpiling then recompiling without any changes
If it still shows error change the semcgeneric or framework
Sent from my LT18i
Click to expand...
Click to collapse
It showed that error, i changed it showed that again, i tried it again with framework and semcgenericuxpres from your rom.
federico rotundi said:
It showed that error, i changed it showed that again, i tried it again with framework and semcgenericuxpres from your rom.
Click to expand...
Click to collapse
Where is the systemUI from?
Is it a port?
Sent from my LT18i
Sahaab said:
Where is the systemUI from?
Is it a port?
Sent from my LT18i
Click to expand...
Click to collapse
Yes it's from MXY1997's thread.
federico rotundi said:
Yes it's from MXY1997's thread.
Click to expand...
Click to collapse
Then I suggest u PM him
But I will give u a suggestion
Use the framework-res and semcgeneric from DdcCabuslay's Xperia Z theme
Sent from my LT18i
Sahaab said:
Then I suggest u PM him
But I will give u a suggestion
Use the framework-res and semcgeneric from DdcCabuslay's Xperia Z theme
Sent from my LT18i
Click to expand...
Click to collapse
It is not about the SystemUI, there is something wrong about java, i can't recompile any other system app with apktool as i said, i used lots of versions of apktool and this problem still remains, maybe it is something to do with Windows 8?
federico rotundi said:
It is not about the SystemUI, there is something wrong about java, i can't recompile any other system app with apktool as i said, i used lots of versions of apktool and this problem still remains, maybe it is something to do with Windows 8?
Click to expand...
Click to collapse
Ya maybe windows 8 isnt supported yet
Sent from my LT18i

Categories

Resources