yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Stocco:
when trying to compile Systemui Touchwiz

unsuccessfully :(

C:\apktool> apktool b SystemUI.apk

I: Using Apktool 2.0.1-dirty

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:251)

at brut.androlib.Androlib.build(Androlib.java:263)

at brut.androlib.Androlib.build(Androlib.java:256)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:246)

... 4 more

C:\Users\giova\Desktop\coisas inuteis\apktool (1)>apktool b -c SystemUI.apk

I: Using Apktool 2.0.1-dirty

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:251)

at brut.androlib.Androlib.build(Androlib.java:263)

at brut.androlib.Androlib.build(Androlib.java:256)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:246)

... 4 more
[Android Software Development] Ticklefish:
This error is saying that apktool.yml can't be found in your decompiled APK. That normally means it didn't decompile fully.
[Android Software Development] Thebear j koss:
Need more info, what version of Touchwiz? If you read back the last few pages it has been discussed to death, there are issues with apktool and newer samsung OS builds....

Thebe?r'$ NeXu$
[Android Software Development] fonky59:
Can't compile redmi 3 miui rom..
[Android Software Development] Thebear j koss:
Read the op, no support for builds that stray far from stock android. Miui hasn't been supported in a while

Thebe?r'$ NeXu$
[Android Software Development] Stocco:
Thanks for answering, the version of TouchWiz is 6.0.1 Note 4
[Android Software Development] Thebear j koss:
touchwiz is being worked on by ibotpeaches, just need to be patient .as i stated above apktool is built to work on stock android and these other proprietary OS' s like Samsung, HTC, LG, etc are causimg issues with apktool om newer builds. read back the last 4 or 5 pages as it is discusse in great detail
[Android Software Development] :
Have you tried build a version with sdk set to 24 (if that what it's uses)

Just to make sure it isn't a sdk version issue too
[Android Software Development] superdild:
compiled apktool from github repo, working well on Nexus6 running stock Android N npc91k,

no error on de/recompile SystemUI, framework-res :)

saluti, mario

Stock Android N centerclock mod :victory:
[Android Software Development] djdarkknight96:
It's not
[Android Software Development] :
Can you upload your modified SystemUI.apk?
[Android Software Development] t-ryder:
Damn those #$%! over there at Huawei Tech Co..

No happy smali hacking for us.

No really cool custom ROMs.

And Xposed breaks the EMUI theme engine.

This all sucks.
[Android Software Development] :
Their phones are great but for any techy person to buy one they'd have to switch to snapdragon and get rid of things that hinder development. I see so many phones with better specs than my N6 but nothing beats Nexus development.
[Android Software Development] Ticklefish:
Could be worse.

Could be like Samsung. It seems like every rom they do now is filled with more and more custom stuff that apktool can't handle. It's put me off buying a Samsung device completely.

If it can't be decompiled, I don't want it!
[Android Software Development] :
Can anyone help me compile apktool from the repo? I have everything downloaded, i type gradlew.bat build fatJar because thats what it says on site, it builds but it doesnt work. And yes ive cloned it multiple times
[Android Software Development] superdild:
use at your own risk :)

Link Download

saluti, mario
[Android Software Development] Crussader:
what .jar are you getting? just the apktool.cli.jar?
[Android Software Development] iBotPeaches:
I think the Samsung thing is an edge case bug vs them intentionally doing something. The addition of my CountingStream to counter the difference reading bytes should fix that up finally.

A log or something of what failed would be great. Not sure what "it doesn't work" means.
[Android Software Development] :
Yes
[Android Software Development] Crussader:
for me it works like this:

gradlew

gradlew build fatJar
[Android Software Development] :
yes I had been doing that on Windows and itd build but wasn't runable through command prompt. So I tried Linux and it works fine! Decompiling N apks as we speak :good:
[Android Software Development] Crussader:
weird, I've just cloned a branch and even

apktool --version

works.
[Android Software Development] :
dang samsung ;P destroys the fun :D

hmm so that's an issue reading bytes, geez that one small thing can break whole decompilation. of resources
[Android Software Development] :
Anybody gotten problems decompiling Android N framework-res.apk? It decompiled for me but smali is missing.
[Android Software Development] iBotPeaches:
You might be interested in "starring" or "subscribing" to this pull request then - https://github.com/iBotPeaches/Apktool/pull/1226 as it will have up to date details as Android N is fixed.
[Android Software Development] tamirda:
Hi my friend,

Thank yo for your hard work.

Will it fix Samsung MM problems? Because as for now, we can not touch apk files..
[Android Software Development] :
If you ever need any files like my framework-res or framework.jar I can upload for you. SystemUI works fine tho. Great job!
[Android Software Development] tx_dbs_tx:
My thoughts on Samsung MM

I can't help but think that Samsung has taken steps in MM to try to prevent apktool from being able to effectively decompile their apk's. I have yet to be able to decompile then recompile framework-res and the rom boot with it. Nothing appears to be broken yet the rom refuses to boot once the original framewrork-res is decompile then recompiled.

I'm not familiar with the inners of apktool but from what I have been testing with Samsung MM and all of the releases of apktool since the early rc versions, the problem seems to be caused by Samsung's method of compiling the resources and is not entirely a problem with Apktool itself. This is my gut feeling after countless hours testing decompiles & recompiles using various combinations and every trick I can think of. I'm afraid the imported Samsung frameworks aren't being properly decoded using apktool 2.0.0 or 2.0.1 even though it "appears" to be successful without errors. I have searched every single image, xml, etc inside my decompiled N4 and N5 MM framework-res apk's and I don't see anything that catches my eye. This tells me that some of the images must not be properly decoding during the initial import/decompile process or the build process is breaking something. Another thing worth mentioning is Samsung's addition of all of these new image/file types beginning in MM. are these in fact being decoded properly? I have my doubts.

I hope more people will now have a much greater appreciation for the developers like [MENTION=3924617]iBotPeaches[/MENTION] for what they bring to the table. I always have had a great appreciation for these guys. Without these people we would have no tools or root and no way to develop custom roms, etc. Life would be boring and we'd all be running stock roms with bloat and spyware.
[Android Software Development] cricriadi:
I have to go in 1 milion threads, when I try to complie the "apktool b" is says that apktoo.yml is missing I changed what I had to change but I cant compile the apk
[Android Software Development] :
then it wasn't decompiled successfully
[Android Software Development] Lippe23:
Jbart/apktools

Hi, all

I use Jbart last version and apktools compile from gitHub version 2.1.1 and is impossible compile settings.apk of MIUI 7. Anyone have solucion for this? I add id line 18 and nothing happens. Please help me if someone can. Thanks
[Android Software Development] Ticklefish:
MIUI isn't supported by apktool.

Until Xiaomi are more open-source and reveal how they construct their APK's, I doubt it ever will be.

Sorry about that.
[Android Software Development] link77kz:
Greetings.

there is a tool for ( Huawei Ascend Mate 7, + Huawei Mate 8. ) system (priv-app) Settings.apk + SystemUI.apk decompile/compile Pliz ?

Help Pliz!

1) http://xdaforums.com/showpost.php?p=66500867&postcount=556

2) http://xdaforums.com/showpost.php?p=66504642&postcount=557
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

Error in compilation with latest changes in repository

:brut.apktool:apktool-lib:test

brut.androlib.ProviderAttributeTest > isProviderStringReplacementWorking FAILED

org.junit.ComparisonFailure: expected:<...mBuildVersionCode="2[3" platformBuildVersionName="6.0-2438415]"> <application a...> but was:<...mBuil

dVersionCode="2[2" platformBuildVersionName="5.1-1756733]"> <application a...>

at org.junit.Assert.assertEquals(Assert.java:125)

at org.junit.Assert.assertEquals(Assert.java:147)

at brut.androlib.ProviderAttributeTest.isProviderStringReplacementWorking(ProviderAttributeTest.java:79)

65 tests completed, 1 failed

:brut.apktool:apktool-lib:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':brut.apktool:apktool-lib:test'.

> There were failing tests. See the report at: file:///D:/GIT/Apktool/brut.apktool/apktool-lib/build/reports/tests/index.html

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
[Android Software Development] Carotix:
+1

please [MENTION=3924617]iBotPeaches[/MENTION] take a look at samsung MM when you can

you are the only one

thanks
[Android Software Development] _alex74_:
Same here,

[MENTION=3924617]iBotPeaches[/MENTION] we suffer lot of issues with MM, using few apktool version is a mess, we have experienced that same apk with same changes recompiled with different apktool(even 2.1.0) may kill the system(issue here with SystemUI then even a dirty flash of same rom has not recovered my issue, only nandroid, then a dev shares his apktool and no more issues)

Every themer and developer is so only thanks to you, we owe you a years of development, i think whatever you need, lot of devs and even me can help(already donated, and if this is the issue i will support you more :D)

thank you again :good::good::good:
[Android Software Development] :
with patience comes great things. just wait he works on it whenever he want's to and has time, keeping on we need that won't make it come faster sorry this is the truth.
[Android Software Development] _alex74_:
we are not pushing him at all...i hate when people pretend and pushes:mad:

my intentions is to say to him how much every sigle dev owes him, and in case he needs something, he will have plethora of people can support him.

i know this time Google and Sammy screw development....

Ibotpeaches dont feel pushed, not my intention at all
[Android Software Development] :
nah you just were the victim of being quoted :) i just mean for feature pepz :D
[Android Software Development] STRYDER~007:
[MENTION=3924617]iBotPeaches[/MENTION] apparently apktool has issues with AOSP 6.0.1..I decompiled framework-res.apk and recompiled without any modification and pushed to system, device gets stuck on bootanimation. For now, It seems I cannot touch any apk for modification. :confused: Logs-

04-24 16:38:34.434 2187 2187 D AndroidRuntime: Shutting down VM
04-24 16:38:34.436 2187 2187 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
04-24 16:38:34.436 2187 2187 E AndroidRuntime: java.lang.RuntimeException: Unable to find android system package
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at com.android.server.am.ActivityManagerService.setSystemProcess(ActivityManagerService.java:2233)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:386)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at com.android.server.SystemServer.run(SystemServer.java:270)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at com.android.server.SystemServer.main(SystemServer.java:170)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: Caused by: android.content.pm.PackageManager$NameNotFoundException: android
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:304)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: at com.android.server.am.ActivityManagerService.setSystemProcess(ActivityManagerService.java:2216)
04-24 16:38:34.436 2187 2187 E AndroidRuntime: ... 6 more
[Android Software Development] link77kz:
Hi Guys! Look please Huawei Mate 8 OpenSource NXT Android 6.0, you can do ApkTools?:confused:

http://consumer.huawei.com/en/search/index.htm?keywords=opensource

Look please I beg you, and I hope for your help!:crying:

here ➥ Log + .apk
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

Could you please fix the compilation errror? My JDK is 1.7 build 80.

:brut.apktool:apktool-lib:test

brut.androlib.ProviderAttributeTest > isProviderStringReplacementWorking FAILED

org.junit.ComparisonFailure: expected:<...mBuildVersionCode="2[3" platformBuildVersionName="6.0-2438415]"> <application a...> but was:<...mBuil

dVersionCode="2[2" platformBuildVersionName="5.1-1756733]"> <application a...>

at org.junit.Assert.assertEquals(Assert.java:125)

at org.junit.Assert.assertEquals(Assert.java:147)

at brut.androlib.ProviderAttributeTest.isProviderStringReplacementWorking(ProviderAttributeTest.java:79)

65 tests completed, 1 failed

:brut.apktool:apktool-lib:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':brut.apktool:apktool-lib:test'.
[Android Software Development] dicksteele:
What you are building and what version of apktool you are using would be helpful. Someone else may be able to answer your question.

But with just this information, kind of impossible.
[Android Software Development] :
Looks like something was messed up maybe broken sync?
[Android Software Development] bovirus:
[MENTION=2918361]dicksteele[/MENTION]

The error is about to compile apktool.jar from the folder that contain a reply by github project repository.

[MENTION=4435346]LastStandingDroid[/MENTION]

I already replied all apktool github repository (from scratch).

Same error.
[Android Software Development] iBotPeaches:
Just for you bo - https://github.com/iBotPeaches/Apktool/commit/868999162679da3f68ad7259dc9935226b387ccc (Since your framework was out of date during build, it caused those errors)
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

Thanks. Which framework do you mention? Java JDK?
[Android Software Development] iBotPeaches:
The one located at $HOME/apktool/framework/1.apk
[Android Software Development] nhokonline2010:
[MENTION=3924617]iBotPeaches[/MENTION] apktool_2.1.0 no Decompile file SecMms_Epic_Common.apk for Samsung S6 6.0 MM

Log For : SecMms_Epic_Common.apk

Log Type : Decompiling

Log Recorded At : 28 2016-04- 0:05:06,43

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

------------------------------------------------------

Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:538)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)
at brut.androlib.Androlib.getResTable(Androlib.java:64)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:209)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000001
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:238)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:189)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:114)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
... 8 more

------------------------------------------------------
[Android Software Development] Crussader:
Please try to use search the next time, this issue has been reported several times and the OP is very aware of this issue.
[Android Software Development] nhokonline2010:
Tks. I'm will following next time
[Android Software Development] iBotPeaches:
For all you patiently waiting for a Samsung fix. I believe I have it solved here - https://github.com/iBotPeaches/Apktool/commit/bd088ee5b4d09665c1d525a18d1b763a028de850

These changes fix the broken APKs that have been sent to me that are related to the Samsung issue. I have to clean up the fix a bit, but I'll release a SNAPSHOT build for you guys to test over the weekend.
[Android Software Development] :
My gosh you're amazing ☺ I'd build if I could asap but I must download sources first ^^ if it work I'm a happy man.

And when it's done well make sure to make this xda news for your hard work <3
[Android Software Development] thereassaad:
U are our hero man thank u a ton will tested asap , thank u
[Android Software Development] sac23:
thank u awesome job bro
[Android Software Development] _alex74_:
Absolutely amazing master, finally our struggling issues are ended.

We owe you a lot, thanks for your hard work:good::good::good::good:
[Android Software Development] :
i can confirm it works on samsung marshmallow framework tested on MoL Note 3 marshmallow :D

tw framework is still broken :o
[Android Software Development] iBotPeaches:
Upload the tw framework into this bug report? or upload here? - https://github.com/iBotPeaches/Apktool/issues/1131

Curious if the new error is related to the changes I made.
[Android Software Development] thereassaad:
Yessssss , confirmed S7/S7E/S6/N5 Worked too by installing frameworks & i just start to decompile few apks & its seemed worked an awesome , thank u IBotPeaches
[Android Software Development] :
well sure; same thing happen with; https://drive.google.com/file/d/0B40ItdHKfkyQZmVkWi1PeXMyUEk/view?usp=sharing

uploaded on the git tracker,

however framework-res works fine tw-framework-res gives same can't decode arsc
[Android Software Development] _alex74_:
recompiling on S7edge smart manager

testing apk now
[Android Software Development] :
how did u manage to load twframework O.o
[Android Software Development] Er. Aditya:
i keep getting this error

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':brut.j.common:compileJava'.

> Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.
[Android Software Development] _alex74_:
with 2.1.1 apktool, and apk works well even the error;):D
[Android Software Development] :
install java JDK you're probably using another java version or similar.

this one works jdk-8u91-windows-x64.exe

i got apktool 2.1.1 thats why i said i can load framework-res but tw-framework doesn't work :eek:
[Android Software Development] thereassaad:
I loaded too , xD without any issues
[Android Software Development] :
share framework :)? maybe i got corrupt ones :D currently extracting S7 but takes time
[Android Software Development] DaOldMan:
Be sure you compiled the correct branch mate. The Master doesn't have the latest commit yet .... I compiled this for [MENTION=5405448]thereassaad[/MENTION] and then noticed the commit we need is in another branch and compiled again ....
[Android Software Development] :
which branch then ? the 1131 ??
[Android Software Development] DaOldMan:
Yes issue/1131 mate :)
[Android Software Development] :
ah TY now it loads, [MENTION=3924617]iBotPeaches[/MENTION] nvm it works now :D
[Android Software Development] bunnys7679:
How is the new tool For Samsung

Gesendet von meinem SM-G925F mit Tapatalk
[Android Software Development] :
loads framework files great, samsung music is giving some issues though about decoding values, but major bug is fixed ^^

om.android.systemui_24.0.7-240007_minAPI23_maxAPI23(nodpi) is decompiled without issues at least :D

Can't tell how much decoding values failure will cause trouble. But it at least works to decompile so it's a huge step forward ^^
[Android Software Development] Er. Aditya:
i still get error while installing framework for note 4 6.0.1

D:\apktool>apktool if D:\Development\apktool\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:52)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:610)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:592)
at brut.androlib.Androlib.installFramework(Androlib.java:643)
at brut.apktool.Main.cmdInstallFramework(Main.java:239)
at brut.apktool.Main.main(Main.java:87)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:292)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:224)

at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:
212)
at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.j
ava:154)
at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.ja
va:116)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.jav
a:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
... 6 more
[Android Software Development] :
i'll throw u a pm
[Android Software Development] tamirda:
Hi [MENTION=3924617]iBotPeaches[/MENTION]

First of all, big thanks for the new apktool.

Second, I keep getting this error when recompiling SecSettings2, of Samsung S7 edge:

This error makes fc for some security things.

Same error with all other apktool versions.

Same error with recompile of CocktailbarService.apk:

Files are here:

https://www.dropbox.com/s/vjqb6zm2u04fndt/Files.zip?dl=0

Thank you

Tamir