APKManager errors - Galaxy Ace S5830i General

Im trying to decompile SystemUI.apk tried apktool and manager and both give a folder with some decompiled items in but also and error
Code:
C:\Users\Barbra\Desktop\apktool>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Barbra\Desktop\apktool> apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Barbra\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010300a9
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
0)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
C:\Users\Barbra\Desktop\apktool>
Im trying to mod statusbar.xml from mindCr rom
here is the decompiled version of the .xml with my edit in
http://pastebin.com/S0zn9CWF
and here is the compled version from my phone
https://dl.dropbox.com/u/94731736/SystemUIapk.rar
please can someone help me

Good luck
Sent from my GT-S5830 using xda premium

K3vin71 said:
Good luck
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Sent from my GT-S5830i using xda premium
thanks i guess?

Are you not so genius enough to read a guide before doing it!
I recommend apkmanager
And before using the apkmanager
You have to paste SystemUI.apk and framework-res.apk on Others folder
You have to run Setup.bat
Choose option 2
Install SystemUI.apk and framework-res.apk
Then open Script.bat
Then Decompile
I just wanted to post Good Luck too

I followed 3 guides i have apk manager and this is there error i get with them all, ok then use the folder i give and see if you get the error too then mr so so bright.
Sent from my GT-S5830i using xda premium

PhaseCoder said:
I followed 3 guides i have apk manager and this is there error i get with them all, ok then use the folder i give and see if you get the error too then mr so so bright.
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Have you even read what I posted?

sorry posted from my phone just came across as cocky yes i am not so genius i am new to this im not a total noob tho.
So in the same folder were I normaly put SystemUI.apk also put ramework-res.apk

PhaseCoder said:
sorry posted from my phone just came across as cocky yes i am not so genius i am new to this im not a total noob tho.
So in the same folder were I normaly put SystemUI.apk also put ramework-res.apk
Click to expand...
Click to collapse
Yes
(I am in a big need of Thanks)

I can do it for you (tomorrow).
Sent from my GT-S5830i using xda premium

RubenStauttener said:
I can do it for you (tomorrow).
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Thank you very much I really appreciate it.

Related

Editing systemui.apk

I decompiled systemui.apk using apk manager . ,added some smali's and edited xmls. Now I am going to recompile it. Do I need do delete the smali's and xmls from keep folder or the recourses file.?? Also after compilation it shows unsignedsystemui.apk if I sign it using 12 option it gives error please help
Note- don't post any links of tutorials as I have checked dem
Would really thankful
Sent from my GT-S5570 using xda premium
arpitkh96 said:
I decompiled systemui.apk using apk manager . ,added some smali's and edited xmls. Now I am going to recompile it. Do I need do delete the smali's and xmls from keep folder or the recourses file.?? Also after compilation it shows unsignedsystemui.apk if I sign it using 12 option it gives error please help
Note- don't post any links of tutorials as I have checked dem
Would really thankful
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
Not so expert in this but maybe this question solved could help you
http://forum.xda-developers.com/showthread.php?t=1852321
It didnt
Sent from my GT-S5570 using xda premium
arpitkh96 said:
It didnt
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
The keep folder contains the stock files unchanged..So if you changed a smali in your project folder you'll have to delete the classes.dex in the keep folder,if you changed xml you'll have to delete the resources.arsc in the keep folder..

[Q] Help to compile APK

Sorry for my question but i have a big problem with my PC so i can't compile the apk inside the .rar in the attachment file...
Can someone compile it for me please?
Thanks in advance
G.Galante said:
Sorry for my question but i have a big problem with my PC so i can't compile the apk inside the .rar in the attachment file...
Can someone compile it for me please?
Thanks in advance
Click to expand...
Click to collapse
I pressed the thanks button by error somehow. I need the source apk file to compile it.
ImSoBored said:
I pressed the thanks button by error somehow. I need the source apk file to compile it.
Click to expand...
Click to collapse
I have added the original APK
Open apktool.yml
And under ids
-1 add -2
Then compile
Then it wont fc
Its lidroid framework app so make sure u add that - 2
And install framework res and twframework note:
Twframework not twframeworks
Sent from my ST25i using xda app-developers app
R: [Q] Help to compile APK
SpaceCaker said:
Open apktool.yml
And under ids
-1 add -2
Then compile
Then it wont fc
Its lidroid framework app so make sure u add that - 2
And install framework res and twframework note:
Twframework not twframeworks
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
The problemi si that my PC si not working
Sent from my GT-P3110 using xda app-developers app
G.Galante said:
The problemi si that my PC si not working
Sent from my GT-P3110 using xda app-developers app
Click to expand...
Click to collapse
How u decomplliled it then?
Sent from my ST25i using xda app-developers app
R: [Q] Help to compile APK
SpaceCaker said:
How u decomplliled it then?
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
With my PC! When it worked
Sent from my GT-P3110 using xda app-developers app
when recompiling I get an error messages:
Code:
[*] /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk
rebuilding /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk...
recompiling _INPUT_APK/twframeworks-res.apk.apk...
W: Could not find sources
I: Building resources...
/home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res/layout/power_widget_scrollview.xml:2: error: No resource identifier found for attribute 'overScrollMode' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4977741146867658710.tmp, -x, -I, /home/muelra/apktool/framework/1.apk, -S, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res, -M, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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, /tmp/APKTOOL4977741146867658710.tmp, -x, -I, /home/muelra/apktool/framework/1.apk, -S, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res, -M, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Can anybody help please?
Some errorr message recompiling under ubuntu12.04 64bit or win7 prof. 64bit.
Is it a problem, running that under a 64bit OS?
muelra said:
when recompiling I get an error messages:
Code:
[*] /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk
rebuilding /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk...
recompiling _INPUT_APK/twframeworks-res.apk.apk...
W: Could not find sources
I: Building resources...
/home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res/layout/power_widget_scrollview.xml:2: error: No resource identifier found for attribute 'overScrollMode' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4977741146867658710.tmp, -x, -I, /home/muelra/apktool/framework/1.apk, -S, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res, -M, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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, /tmp/APKTOOL4977741146867658710.tmp, -x, -I, /home/muelra/apktool/framework/1.apk, -S, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res, -M, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Can anybody help please?
Some errorr message recompiling under ubuntu12.04 64bit or win7 prof. 64bit.
Is it a problem, running that under a 64bit OS?
Click to expand...
Click to collapse
platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res/layout/power_widget_scrollview.xml:2: error: No resource identifier found for attribute 'overScrollMode' in package 'android'
Thats the error
Sent from my ST25i using xda app-developers app
SpaceCaker said:
platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res/layout/power_widget_scrollview.xml:2: error: No resource identifier found for attribute 'overScrollMode' in package 'android'
Thats the error
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Thanks.
How can I resolve it? I decompiled the apk and than recompiled the folder.
muelra said:
Thanks.
How can I resolve it? I decompiled the apk and than recompiled the folder.
Click to expand...
Click to collapse
It pretty much says what your error is and a bit how to solve
Sent from my ST25i using xda app-developers app
muelra said:
Thanks.
How can I resolve it? I decompiled the apk and than recompiled the folder.
Click to expand...
Click to collapse
I found it.
I edit inside power_widget_scrollview.xml the value
Code:
android:overScrollMode=
from "2" to "never"
and recompiled it.
I will send you the apk to PM.
Regards

crt animation(try this one pleas)

3. CRT OFF ANIMATION.
Decompile framework-res.apk with apktool or similar.
Go to framework-res.apk\res\values\ and open bools.xml with notepad++
Search for line
Quote:
<bool name="config_animateScreenLights">true</bool>
Replace true with false. As shown below
Quote:
<bool name="config_animateScreenLights">false</bool>
Save the file and close it.
Now compile back apk file and push back to system/framework.
Now open your build.prop with root explorer or similar on your phone.
search for
Quote:
debug.sf.hw=1
add # infront of this line. Like this
Quote:
#debug.sf.hw=1
save it and restart your phone.
write your roms name if itll work
thanks
Wont work... tried on many ROM, can't remember on which ones...but fact is, it wont work
btw: have you tried by yourself? when i edited the first value i was getting bootloop..
kewkie said:
Wont work... tried on many ROM, can't remember on which ones...but fact is, it wont work
btw: have you tried by yourself? when i edited the first value i was getting bootloop..
Click to expand...
Click to collapse
i cant decompile apk
(my brains ate are small)
can decompile apk(imll sent it to you) and this decompiled files pass in zip arhive?
Sent from my GT-S5830i using xda premium
oxxxymiron said:
i cant decompile apk
(my brains ate are small)
can decompile apk(imll sent it to you) and this decompiled files pass in zip arhive?
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Read older posts
It is confirmed that CRT won't work on our phone except for CM7 ROMs

[Q] about apktool compiling framework-res

i decompiling framework-res.apk and With out change anything
but when i compiling framwork-res apktool show this
aapt: warning: string 'add_region_in_locale_picker_dummy_string' has no default
translation in D:\apktool\framework-res\res; found: en_HK en_JM en_PH es_AR es_B
O es_CL es_CO es_CR es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_PY
es_SV es_UY es_VE kn_IN ml_IN mr_IN ta_IN te_IN
I: Building apk file...
how to fix it
thanks a lot
It's a warning not an issue, but you will always have that
But there is no method yet for decompiling and recompiling without bootloop for Xperia Z.
Sent from my C6603 using xda app-developers app
krabappel2548 said:
It's a warning not an issue, but you will always have that
But there is no method yet for decompiling and recompiling without bootloop for Xperia Z.
Sent from my C6603 using xda app-developers app
Click to expand...
Click to collapse
yes, when i use this apk, my Xperia Z will bootloop, so i cannot decompiling and recompiling to change softkey ?
because i want change the softkey to 32dpi
krabappel2548 said:
It's a warning not an issue, but you will always have that
But there is no method yet for decompiling and recompiling without bootloop for Xperia Z.
Sent from my C6603 using xda app-developers app
Click to expand...
Click to collapse
I'm having the same issue but persisting on as ZeroInfinity seems to have managed it HERE? I'm just using their framework in the meantime.

[Q] [DEV] camera2.h problem

In file included from development/tools/emulator/system/camera/EmulatedCamera2.h:28:0,
from development/tools/emulator/system/camera/EmulatedFakeCamera2.h:26,
from development/tools/emulator/system/camera/EmulatedCameraFactory.cpp:28:
hardware/libhardware/include/hardware/camera2.h:112:39: error: 'HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED' was not declared in this scope
make: *** [/home/syafiq0408/slim/out/target/product/janice/obj/SHARED_LIBRARIES/camera.goldfish_intermediates/EmulatedCameraFactory.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
can someone please help me.. i'm trying to build slim rom but during build, this error appear and i dont to how to deal with HAL_PIXEL_FORMAT_IMPLEMENTATION..
Grab the string from system/core/graphics.h and add it to the camera2.h file
Sent from my GT-I9070 using Tapatalk 4 Beta
Maybe you are missing the framework mods for camera hal, pixel format, vibrator, etc from github cause they don't sync automatically with a repo init and sync I guess unless you manually edit your default.xml in .repo folder
Sent from my GT-I9070 using xda app-developers app
Shaaan said:
Grab the string from system/core/graphics.h and add it to the camera2.h file
Sent from my GT-I9070 using Tapatalk 4 Beta
Click to expand...
Click to collapse
I will look into graphic.h and try as u suggested..thanks shaan
frapeti said:
Maybe you are missing the framework mods for camera hal, pixel format, vibrator, etc from github cause they don't sync automatically with a repo init and sync I guess unless you manually edit your default.xml in .repo folder
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
No2 i did not manually edit the default.xml..so what is your suggestion then?btw, i will try as shaan suggested and report back here..
Sent from my GT-I9070 using xda premium

Categories

Resources