[Q] Compiling SecSettingsProvider - Android Q&A, Help & Troubleshooting

I am currently working on creating a new rom for the Note 2 (XXDLL4 - 4.1.2) and I was trying to edit SecSettingsProvider.apk. While I could decompile it, apktool kept bringing up errors while compiling even when not even modifying the apk. On other system files it worked correctly so I'm wondering if there's a different process to use with this file ?
This is the error :
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:168)
at brut.androlib.Androlib.build(Androlib.java:185)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
... 4 more
Thanks

Related

[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?

[Q] APKtool compiling problem

So Im porting miui v5 and has a liitle problem with apktool. It cant compile framework.jar. I need answer fast because bootable version is almost done.
[email protected]:/home/ja/patchrom/live# make fullota
>>> build out/framework.jar...
/home/ja/patchrom/tools/add_miui_smail.sh >/dev/null out/framework_miui out/framework
/home/ja/patchrom/tools/apktool --quiet b out/framework out/framework.jar
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: method index is too large.
at org.jf.dexlib.Util.ExceptionWithContext.withContex t(ExceptionWithContext.java:54)
at org.jf.dexlib.Item.addExceptionContext(Item.java:1 77)
at org.jf.dexlib.Item.writeTo(Item.java:120)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at brut.androlib.src.DexFileBuilder.getAsByteArray(De xFileBuilder.java:75)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBu ilder.java:58)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:52)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib. java:257)
at brut.androlib.Androlib.buildSources(Androlib.java: 214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: java.lang.RuntimeException: method index is too large.
at org.jf.dexlib.Code.Format.Instruction35c.writeInst ruction(Instruction35c.java:102)
at org.jf.dexlib.Code.Instruction.write(Instruction.j ava:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258 )
at org.jf.dexlib.Item.writeTo(Item.java:117)
... 12 more
code_item @0x1b0f20 (Lcom/google/android/util/AbstractMessageParser$Token$Type;->values()[Lcom/google/android/util/AbstractMessageParser$Token$Type
make: *** [out/framework.jar] Błąd 1
And as you probably see working on ubuntu 12.04

apktool error help

Hi all i keep getting errors when trying to recompile my SystemUI.apk it decompiles without error
[email protected]:~/Desktop/apktool1.5.2$ apktool b SystenUI
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:132)
at java.util.zip.ZipFile.<init>(ZipFile.java:169)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
I have googled like mad and says i haven't set the sdk path propperly wich i have or not the framework resources installed which i have im at a loss can ant one help please.

[Q] Apk tool that works on ubuntu 14.04

HI every one, i m looking for apktool for ubuntu 14.04. the one i have lets me decompile but not recompile. i get errors like
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Or maybe there s something i m doing wron. need urgent help
Well it looks like the yml files that was created when you decompiled the apk was deleted
Sent from my One using Tapatalk

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