[Q]] Apktool/manager etc problem! Really bored ! Devs help please! - Android Q&A, Help & Troubleshooting

Guys i really got bored this apktool compile errors!
I tried a lot of apktool manager .jar aapt versions but result is same!
1.apk referred to my framework-res.apk on Xperia ARC!
I can decompile but can not compile..
Im searching xda and google for a result but theres not any chances..
JDK SDK(full from 4.1 to 1.5/6) JDR JAVA latest versions..
All I want to edit xml's from SystemUI.apk but with no changes cant compile too..
heres the log
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2569)
at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeNodeStream.java:106)
at org.antlr.runtime.tree.TreeParser.getSourceName(TreeParser.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:349)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeWalker.java:428)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
I tried decompilin with original apktool and compile back ICSapktool too. no success..
Im on GB but havng same errors on ICS too!

Related

[Q] unable to decompile systemui.apk from ICS rom

Hi Guys..
I can see lots of threads about decompiling systemui.apk for GB devices and thats fine no problem..
however I am having difficulty in decompiling systemui.apk from ICS (MODDED STOCK/DEODEXED not AOSP)..
using apktool 1.4.3 and 1.4.2. still doesnt solve it
I install the framework-res.apk fine no problem... but as soon as i try and decompile systemui.apk i get the following...
Code:
C:\apktools>apktool d systemui.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Nutmeg\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x7f0e00ab
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quicksetting_divider_line.9
.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_plmn_bg.9.png". Renaming it
to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_call_ongoing_backgr
ound.9.png". Renaming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x7f0e00ab
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(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
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)
similarly when i recompile i get
Code:
C:\apktools>apktool b systemui
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
I have also attempted to install twlauncher-res.apk along with framework-res.apk.. but still comes out with the same results..
What the hell am i doing wrong..
You aren't doing anything wrong. It's just that apktool can't properly decompile or compile ICS based apks yet.
Sent from my GT-I9100 using xda premium
aaah ok... so how are Devs modding the systemui.apk?
Hi, I have the same problem, I can not decompile the systemUi.apk nor any other except the framework apk-res.apk.
I do not understand how they did the other devs
i did find this on my travels round interweb...
here
And it does state that apktools should work..
Yes, with the framework-res.apk work perfectly but not with the other apk .
at least to me
same problem here
tried 1.4.2 and 1.4.3
1.4.2 isnt working for decompiling(For me)
i tried compiling with 1.4.2 this also doesnt work
i can only decompile with 1.4.3..
and cant compile it with 1.4.3
i tried it all
even the commands like java -jar didnt help me
hope someone can find a solution quick
---------- Post added at 12:28 PM ---------- Previous post was at 12:15 PM ----------
or.. does someone know if it is possible to decompile/compile one single xml ?
For modifying systemui I've just been changing .PNG files. No XML editing yet.
locomain said:
or.. does someone know if it is possible to decompile/compile one single xml ?
Click to expand...
Click to collapse
I would like to know this also.
Sent from my GT-I9100 using xda premium
has someone figured it out yet?
Yea this bugs me too. Can't make systemUI edits. The Log shows Java related stuff.
for what i've heard you can decompile it but when compiling it again, thats where the fun ends
Well this is the solution but doesnt work for me.
http://forum.xda-developers.com/showthread.php?t=1365810
Sent from my SPH-D710 using XDA App
ssconceptz said:
Well this is the solution but doesnt work for me.
http://forum.xda-developers.com/showthread.php?t=1365810
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
this works on aosp systemui not on the sammy one
locomain said:
this works on aosp systemui not on the sammy one
Click to expand...
Click to collapse
Did you try using the touchwiz framework instead? In earlier versions, Sysremui.apk had references to twframework-res.apk and needed that as dependeny for decompile.
tsachi said:
Did you try using the touchwiz framework instead? In earlier versions, Sysremui.apk had references to twframework-res.apk and needed that as dependeny for decompile.
Click to expand...
Click to collapse
did try this but doesnt work
it will decompile but cant compile
For to decompile systemUi.apk you must remove classes.dex from apk and decompile with apktool 1.4.2 and compile with 1.4.3.
But i don't know how decompile the files .jar

Hou do I recompile Semcgenericuxpres.apk

Hi..
I've been searching for this for a long time now, and i cant find a solution..
How do I recompile this apk??? Semcgenericuxpres.apk..
Its been so long searching that I can actually type the entire name now...
Decompiling is ok, but while recompiling, it says, aapt.exe has stopped working..
This happens for all ICS frameworks..
Please give me a solution to this.. I really wana mod the pngs!
plz guys, any..any ideas?
JJdoctor, sirkay, arcatarc? anybody? enlighten me plz..
Tan9890 said:
plz guys, any..any ideas?
JJdoctor, sirkay, arcatarc? anybody? enlighten me plz..
Click to expand...
Click to collapse
use xDAAutotool, Install framework first (framework-res.apk of the same version)... some apks wont recompile if framework is not installed... and for some u have to install another framework which should be Semcgenericuxpres.apk...
and next time provide a logcat of error if u r using
You don 't need to recompile it:simply modify. png and replace with winrar(i think it only contain graphic resources)
...hehehe:you want make a theme right?
Inviato dal mio ST18i
jjdoctor said:
use xDAAutotool, Install framework first (framework-res.apk of the same version)... some apks wont recompile if framework is not installed... and for some u have to install another framework which should be Semcgenericuxpres.apk...
and next time provide a logcat of error if u r using
Click to expand...
Click to collapse
...jj, how much millisecond before me you have answered??
Inviato dal mio ST18i
Haha, arcatarc you guesed it right.. I want to mod the pngs...
However, the zipped file dosent work directly.. must be a compression issue... as the images inside are much more compressed..
however, i've attached the error screenshot.
and here's the log..
apkt2 folder contains apktool 1.4.2
apkt3 folder contains apktool 1.4.3...
C:\AndroDev\fwdere>java -jar apkt3\apktool.jar if framework-res.apk
I: Framework installed to: C:\Users\Tanuj\apktool\framework\1.apk
C:\AndroDev\fwdere>java -jar apkt3\apktool.jar if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\Tanuj\apktool\framework\2.apk
C:\AndroDev\fwdere>java -jar apkt2\apktool.bat d -f SemcGenericUxpRes.apk SemcGe
nericUxpRes
Error: Invalid or corrupt jarfile apkt2\apktool.bat
C:\AndroDev\fwdere>java -jar apkt2\apktool.jar d -f SemcGenericUxpRes.apk SemcGe
nericUxpRes
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Tanuj\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\AndroDev\fwdere>java -jar apkt3\apktool.jar d -f SemcGenericUxpRes SemcGeneri
cUxpRes.apk
Input file (SemcGenericUxpRes) was not found or was not readable.
C:\AndroDev\fwdere>java -jar apkt3\apktool.jar b -f SemcGenericUxpRes SemcGeneri
cUxpRes.apk
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Tanuj\AppData\Local\Temp\A
PKTOOL8012574018097594409.tmp, -x, -I, C:\Users\Tanuj\apktool\framework\1.apk, -
S, C:\AndroDev\fwdere\SemcGenericUxpRes\res, -M, C:\AndroDev\fwdere\SemcGenericU
xpRes\AndroidManifest.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:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Tanuj\AppData\Local\Temp\APKTOOL8012574018097594409.tmp, -x, -I, C:\Users\T
anuj\apktool\framework\1.apk, -S, C:\AndroDev\fwdere\SemcGenericUxpRes\res, -M,
C:\AndroDev\fwdere\SemcGenericUxpRes\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
JJ, when u recompile this apk, which version of apktool do u use? 1.4.3 and 1.4.2 both cause the aapt.exe to crash...
Ok, now understand what is your problem:when you add file in the apk with winrar use no compression, or better recreate the apk as zip archive without compression, i use this metod, then is better if you zipalign it.
Inviato dal mio ST18i
oh!! i've made this zip now.. I'll put it in my phone and report back..
Earlier what happened was, the original png was 1.44kB.. after modification it became around 25kB... so when i put in the apk, it didnt work... I noticed that now however, that apktool dosent actually compress images..as i used to think earlier..
ok.. the pngs are working.. however there are problems..
settings crashes... and the pngs lose their .9 data... they appear stretched and the black lines determining the 9 patch data also appears there..
Any way to retain the 9 patch info?
if you wanna edit .9.png you need to extract it, decompile it using 9patch first. then you can edit it and recompile back.
information about .9patch http://code.google.com/p/android-apktool/wiki/9PatchImages
SemcGenericUxpRes.apk recompile
Can someone please help me out on this issue? Please go to the below link for my question.
http://forum.xda-developers.com/showthread.php?p=30690702#post30690702
After asking the question to Q&A forum i saw this thread, so thought of linking.
-Muthu
Help plz!
Here is the problem....
Does any one know the trick for recompiling SemcGenericUxpRes.apk [4.1.B.0.587]?
I used apktool to decompile this apk and edited styles.xml and dimen.xml to sync some of the styles to framework-res.apk.
but when tried recompiling it failed saying "aapt" stoped working. i thought it could be due to corrupted *9*.png files.
but it doesnt seems to be as i included those *9*.png files part of another apk and just re-compiled, it worked.
then i deleted public.xml file from values folder and attempted an recompile, it worked.
but the signed apk from apktool didnt work, when it was loaded back. i do not know what do to after this.
if someone has an answer please help me out.
-Muthu
I've worked out a workaround for this..Its kinda funny..
If u wana edit any xml file, just edit it and put in in another apk. Any apk file that succesfully decompiles and recompiles..
There's a problem with semcgenericuxpres.apk, and it does not recompile with this aapt.exe..
so, u just add your modded xml from semcgenericuxpres to any other recompilable apk..
Recompile that other apk
and now open that apk with winrar
extract your compiled xml from that apk
Add it to the original semcgenericuxpres.
It works..
@Tan9890, Thanks for replying...as the view count growing up without replies . Do you any option for editing styles.xml?

[Q] Xperia S on-screen buttons enabler

Since the capacitive buttons really sucks, and no software update could make it better for me, I would like to enable the on-screen buttons. I found some general topics about it, like http://forum.xda-developers.com/showthread.php?t=1364757, but I don't know if there is something specific to Xperia S.
Can I use this generic instructions?
There is no way to that without rooting, right?
yes rooting is the only method that this will work with.
If "rooting" still won't effectively solve the problem, "acceptance" is the last option...
Sent from my LT26i using Tapatalk 2
I've rooted my phone successfully and I'm trying to edit the framework-res.apk following the tutorial (http://forum.xda-developers.com/showthread.php?t=1364757 and http://forum.xda-developers.com/showpost.php?p=9126643#post9126643). No success yet, I'm getting an error on the apk decompile step:
Code:
[email protected]:~/Android/LT26i$ apktool d framework-res.apk framework-res
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
I tried to ignore this error.. Edited the files, and tried to compile the apk again. But I get another error:
Code:
[email protected]:~/Android/LT26i$ apktool b framework-res out/framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Anyone could help me?
Can someone in the know not just make the buttons more sensitive by changing settings in the system?

[TUTORIAL FIX-/policy/impl ] XPERiA S iCS Lockscreen FOR YOUR FILES

XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon​
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
THIS IS ONLY FOR THEMERS AND MODERS​
If Someone needs to add xperia S lockscreen to your MODED files​
::::::::::::::::::::::::::::::::ANDROID.POLICY.JAR:::::::::::::::::::::::::::::::​
First:::: Download This ::::http://www.mediafire.com/download.php?g35chi82ex5wou9
Then
DECOMPILE your android.policy.jar (After Deodexing them if odexed ) --- Using x10modtool or any other tool
Then
Copy the files from the downloaded RAR (above) to the decompiled folder /policy/impl and RECOMPILE
Thats your android.policy.jar
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No NEED TO.ADD.ANYTHING.ANYWHERE SORRY
help
please tell me how to deodex android.policy.jar (x10moddtool cant)...
dex87xda said:
please tell me how to deodex android.policy.jar (x10moddtool cant)...
Click to expand...
Click to collapse
Use xultimate
Thank You,
Aeon
I can't download the apktool.jar which has plurals error fix, can you upload the file here?
EDIT: i had try both my default apktool.jar and a new one gotten from the google seach but both ended up with error when building the apk still :|
simplyjustkids said:
I can't download the apktool.jar which has plurals error fix, can you upload the file here?
EDIT: i had try both my default apktool.jar and a new one gotten from the google seach but both ended up with error when building the apk still :|
Click to expand...
Click to collapse
Explain the error, give a screen shot
Thank You,
Aeon
I post the log here ones I reach home. It's not a problem to decompile but recompile is an issue. I think it's my apk manager.
EDIT: logs are here
--------------------------------------------------------------------------
|Mon 16/07/2012 -- 21:09:54.45|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public entry identifier 0x104051c entry index is larger than available symbols (index 1308, total symbols 1308).
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public symbol string/permdesc_external_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL2279707019009041448.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-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:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL2279707019009041448.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
--------------------------------------------------------------------------
|Mon 16/07/2012 -- 21:11:04.77|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
Could Not Find C:\Users\yourdog\Desktop\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\yourdog\Desktop\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public entry identifier 0x104051c entry index is larger than available symbols (index 1308, total symbols 1308).
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public symbol string/permdesc_external_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL7622665506179392662.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-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:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL7622665506179392662.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Sent From My Sony Xperia Arc S
Like the compiler said, you didn't add lines in strings.xml, and the hex code you added was over, write hex in a way in continuation to the respective part in public.xml
Thank You,
Aeon
Wait you mean i forgot to add any one line mention above? or... i don't get it =[
simplyjustkids said:
Wait you mean i forgot to add any one line mention above? or... i don't get it =[
Click to expand...
Click to collapse
1. You didn't add lines in strings.xml or manifest
2. You also set the hex codes wrong
3. You might have not installed framework files
Thank You,
Aeon
do you mean this part where i set the codes wrongly?
Add these to the end of string names in public.xml (/res/values/public.xml)
I did copy whatever that was posted above. =\
EDIT: I saw some post saying it only require the android policy jar to work as you don't really have to mod the framework apk file. True or?
simplyjustkids said:
do you mean this part where i set the codes wrongly?
Add these to the end of string names in public.xml (/res/values/public.xml)
I did copy whatever that was posted above. =\
EDIT: I saw some post saying it only require the android policy jar to work as you don't really have to mod the framework apk file. True or?
Click to expand...
Click to collapse
Update : thanks man I really forgot to check that ,I will update every post
Thank You,
Aeon
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
simplyjustkids said:
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
Click to expand...
Click to collapse
Yes i think mate
sent from my Xperia Neo V Supercharged ICS 4.0.4
simplyjustkids said:
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
Click to expand...
Click to collapse
May be, and can you try it with an aosp multiwave framework-res and check it out
Thank You,
Aeon
multiwave framework? Which?
Sent From My Sony Xperia Arc S
simplyjustkids said:
multiwave framework? Which?
Sent From My Sony Xperia Arc S
Click to expand...
Click to collapse
I meant an ASOP framework files, no need I tried with Slide stock ics UN modified framework still it works
Thank You,
Aeon
The android.policy.jar file that i posted is what i did using your tutorial, is there anything wrong i did in there that make it not work?
After trying your android.policy.jar mod I am getting the lockscreen settings but no lockscreen. And editing framework-res.apk gives bootloop, as you mentioned earlier it needs editing androidmanifest.xml, but afaik editing it changes the signature of the apk.
I am using a lot of mods (including hansip87's) and I want to incorporate this mod too.
And I dont want to flash the rom.
Any help will be appreciated
what about mod for GB
AeonWorld said:
XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon​
Click to expand...
Click to collapse
Please tutorial how to add lockscreen from SXS for 587 Xperia arc?

New to coding and struggling please help.

Hi Guys
Im really new to this. OK so i have a 3rd party apk i need to modify for personal use. I am trying to use apk multi tool CLI version.
i have
Java 2 Runtime Environment SE v1.41_07 ( installed on pc already)
Java 8 UPdate 121
Java 8 update 131
Java SDK Kit 8 update 131
ANdroid sutdio with Android SDK
Phone is galaxy s7 edge with Android 7.0, USB debugging is enabled in developer options.
I get to the point in multi tool where i can pull the framework-res.apk from the phone, but when i try to install with "apktool if framework-res.apk" i get this error..
C:\APK-Multi-Tool-Stable-RELEASE\other>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:611)
at brut.androlib.Androlib.installFramework(Androlib.java:469)
at brut.apktool.Main.cmdInstallFramework(Main.java:260)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:43)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
0)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
I have no idea what to do now. help please.. thank you
Matt
OK it seems i was using an old apktool.jar file. I am now using apktool_2.2.2.jar... I have managed to decompile the apk and modified what i need to, but when i try and compil i get this message
at brut.androlib.Androlib.readMetaFile(Androlib.java:254)
... 4 more
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:258)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
105)
at brut.androlib.Androlib.readMetaFile(Androlib.java:254)
... 4 more
Press any key to continue . . .
It seems to be refering to a missing apktool.yml but the file is there and readable buy notepad++ so the decompile worked ok
resolved

Categories

Resources