yashsingh1/xdaforums huggingface dataset:
[Android Software Development] ziaulh.ch:
Rom: GPE 5.01

Device: HTC M7

OS: win 8.1

Java: 32 bit and 64 bit both installed.

Apk tool RC3

I am trying to install framework and I get this error.

*
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:562)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
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:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
Press any key to continue . . .

Any solution?
[Android Software Development] IgorEisberg:
Sadly APKTool RC3 outputs broken APK files.

Details here:

http://xdaforums.com/showpost.php?p=57619858&postcount=257
[Android Software Development] USMC retired:
I bot, question

Ibot

Are you familiar with the QMG images in the note 4 apk's, do you know of any work arounds for these? I tried to compile a few themed images and got the following errors

Thanks
[Android Software Development] zelendel:
Are you installing the system ui apk as frameworks?
[Android Software Development] friedrich420:
i just tried it over here with latest apktool (v2.0.0 RC3) and it recompiles just fine..

Im thinking you need to update your apktool..
[Android Software Development] SXUsr:
Hi.

Can someone try decompiling and recompiling my 4.4.4 GmsCore.apk please, it wont recompile for me. I've used the 2.9beta, RC2, RC3 apktool, I've installed my own frameworks, lollipop frameworks and just wont rebuild without a ton of public and plural tag errors. If you can get it to build, can you change system_update_title_color in colors.xml to #ffb6ff00, would be much appreciated. The one mod I need to make is in the only apk I've had issues with.
[Android Software Development] RK:
Thanks I am using RC3 but I had an older aapt binary somewhere in the PATH. I deleted that and now all is good
[Android Software Development] mazenbs:
[QUOTE

Well right now your options are wait or help fix it. As I just discovered minutes ago in #713, this appears to be Apktool at fault in decoding resources improperly. I'm just guessing here, but I bet those resources would appear in a dump of the resources (aapt d resources apk_name.apk | grep 'resource id'). The next step is to figure out which resources are being decoded improperly and why.[/QUOTE]

The problem here:(

As an example

What should I do with me this error

root@kali:/mazen_tools/app/framework# aapt d resources SecMms_Candy.apk | grep 'resource 0x7f0c0596'
spec resource 0x7f0c0596 com.android.mms:string/permlab_readMsgPref: flags=0x00000000
resource 0x7f0c0596 com.android.mms:string/permlab_readMsgPref: t=0x03 d=0x00000645 (s=0x0008 r=0x00)
root@kali:/mazen_tools/app/framework#

pleeeeeeeeeeeeease help me
[Android Software Development] Kickoff:
Could somebody please be so kind and post here a latest built version of apktool? Issue 713 should be fixed but I cannot manage to build the tool.
[Android Software Development] iBotPeaches:
I've been trying to make building Apktool as easy as possible to help get more people involved in the codebase. May I ask what the problem was? Where did you get stuck on? What failed? What part was confusing?
[Android Software Development] Kickoff:
I tried to build the tool under Ubuntu.

Used the following codes in the terminal:

sudo git clone git://github.com/iBotPeaches/Apktool.git

cd Apktool

./gradlew build fatJar

Response:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/laci/apk/Apktool/brut.apktool.smali/dexlib2/build.gradle' line: 92

* What went wrong:
A problem occurred evaluating project ':brut.apktool.smali:dexlib2'.
> Failed to create parent directory '/home/laci/apk/Apktool/brut.apktool.smali/dexlib2/build' when creating directory '/home/laci/apk/Apktool/brut.apktool.smali/dexlib2/build/generated-accessor-test-sources/org/jf/dexlib2'

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

BUILD FAILED

Total time: 10.613 secs

Thank you for your attention, greatly appreciated.
[Android Software Development] iBotPeaches:
Very strange. It can't create the directory. Did you change users in between downloading and running the build? (thus preventing the user from making directories) You could try running "./gradlew clean" and trying again.
[Android Software Development] Kickoff:
Solved by using the sudo command with gradlew. Thanks. Now I am testing the new tool...

Edit: the built version of apktool has a size of only 10893 bytes . It does not work.

https://www.dropbox.com/s/m4fwwpicfe79wld/apktool-cli.jar?dl=0

I also downloaded the apktool_master.zip and tried to build under windows, got the same result.

The building process stops at 89%.

http://pastebin.com/YgzGxSmz

Edit 2:

Tried gradlew clean, same result. :confused:
[Android Software Development] PerfectSlayer:
Do not use sudo when you git clone ;)

Envoyé de mon Nexus 6 en utilisant Tapatalk
[Android Software Development] iepurasu_poznas:
Microsoft Windows [Version 6.1.7601]
(c) 2009 Microsoft Corporation. Toate drepturile rezervate.

C:\ApkTool>apktool d PersonalPageService.apk
I: Using Apktool 2.0.0-RC3 on PersonalPageService.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Mihai\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x7f060007
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x7f050000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
icon, value=0x7f020000
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x7f060007
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:60)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:45)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
1)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:369)
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$1.event(XmlPullStreamD
ecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:153)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:134)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:296
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)

Problem report! PersonalPageService.apk it is from stock lollipop rom for galaxy S5.
[Android Software Development] iBotPeaches:
I believe this is the same issue as 722 and 713, which were both fixed by this commit. Which will be in the next release.
[Android Software Development] DaOldMan:
I hope to see rc4 soon.... or final ?. I have those problems too on lollipop. ..

Maybe someone built the tool from source?

Thomas
[Android Software Development] Phone_Guru:
I'll upload a built from source file later
[Android Software Development] S3V3N:
I look forward to;)
[Android Software Development] Phone_Guru:
APKTool
[Android Software Development] S3V3N:
not work
[Android Software Development] Phone_Guru:
Something is wrong with your setup. The file works fine for me.
[Android Software Development] S3V3N:
For RC3 works. On your not working. So what settings?
[Android Software Development] friedrich420:
my friend unfortunately i had the same issue as the man above..

I tried to see what i maybe doing wrong on my side.. i havent changed anything since using RC3 and it works fine with RC3..

if this is the stupidest comment pls ignore it: is there a chance the apktool you linked us to not be the correct one? the date of upload there shows that is an old one.. unless thats a mistake on the server part..
[Android Software Development] MJPollard:
The latest date stamp of the files in the zip is 8/17/2014, so yes, it's possible that the link is to an old version.
[Android Software Development] DaOldMan:
The signiture/version of the apktool is: Apktool v2.0.0-3d2e93-SNAPSHOT

And yes it's not working even on things the RC3 has no problems with. Just tried to decompile InCallUi.apk that the RC3 worked and got:

Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:607)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
at brut.androlib.Androlib.getResTable(Androlib.java:53)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:206)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:93)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:86)
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:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:95)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more

Doesn't even read the res from framework-res. Crash is before that. Hope that helps,

Thomas

---------- Post added at 04:29 PM ---------- Previous post was at 03:50 PM ----------

I made my own dirty build of the tool and it seems to work great :)

Please try the attached file (had to use zip as jar is maxed out at 8mb, so please extract) ;)

Thanks the great [MENTION=3924617]iBotPeaches[/MENTION] for his work and sources !

Thomas
[Android Software Development] Ticklefish:
So this dirty build is based on the latest commits?
[Android Software Development] DaOldMan:
Unless his downloads don't include them. ..yes ?. This version does decompile lollipop apk the rc3 didn't.

Btw your tool is great. ..I don't use it but I checked it out. Also great support, I know it's time consuming.

Thomas
[Android Software Development] iepurasu_poznas:
Thank you! Thomas build work very well with TW Lollipop!
[Android Software Development] Ticklefish:
Cool, I'll add it to the latest version. :highfive:
[Android Software Development] ffalete:
thanks very much thomas. thanks thanks thanks:D:D:D:D
[Android Software Development] andybones:
thanks for this
[Android Software Development] sebdigital:
With Thomas version when I decompile/recompile seccontacts.apk from S5 Lollipop the app no longer starts.

I don't know what's wrong.
[Android Software Development] DaOldMan:
Does the program appear in the app drawer ? Did you make a logcat ? Did you check permission ?

Thomas
[Android Software Development] bovirus:
[MENTION=560460]sebdigital[/MENTION]

Please Post seccontacts.apk.
[Android Software Development] sebdigital:
[MENTION=3026895]DaOldMan[/MENTION]

I didn't make a logcat, it doesn't appears in appdrawer and I correctly set permissions.

[MENTION=637263]bovirus[/MENTION]

You can find seccontacts.apk HERE.

Thanks all ;)
[Android Software Development] Maxix9:
Hi thanks for your great work .,

Can we use these files in the mobile apk version of apktool??
[Android Software Development] Ticklefish:
Have you installed framework-res.apk?

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

Sent from Tapatalk

------------------------------
[Android Software Development] Kickoff:
Yes of course. Could not decompile all other apps without that.
[Android Software Development] DaOldMan:
I have recompiled the apktool with the aapt included in the archive by [MENTION=3924617]iBotPeaches[/MENTION]. It's also up to date. Try it, maybe it will work better

Thomas
[Android Software Development] iBotPeaches:
Hi all,

Due to the large amount of issues that cropped up in RC3, I will be releasing an RC4 prior to the final gold release of Apktool 2. I see people have been building the current Github sources and releasing them here. I'll ask again then we hold off on posting those in this thread. Please keep those in private channels.

One of the more stressful things of managing an open source tool the size of Apktool is the amount of support requests I receive. This comes from all avenues of emails, IRC, PMs, forum posts, google groups and more. The reason I say this is because any new binary that is posted makes it way to all avenues of the internet. There is a huge international following of Apktool in which I receive countless requests. Every time a binary file is posted here, those who don't fully understand the English language pull that file and immediately share it among others.

Quite instantly the file is spread almost as much as an official release. Then I get tons of message saying "This bug still doesn't work on this version". Every moment I spend downloading a file, testing it, pushing to phone in order to close a bug report is time I'm not spending on the final bugs that need to be fixed. It may just be an ugly coincidence, but every time 3rd party binaries are posted in this thread my amount of support requests go up by 3 times. Especially if the binaries posted weren't built correctly :/

Sorry for ranting about this, but it continues to happen and really hinders the speed at which I can work.
[Android Software Development] DaOldMan:
Sorry if I caused any trouble. I shell do exactly what you say, keep it in private channels. I hope RC4 will come out soon, your tool is the best !

Something for me, why is the tool not compiled correctly (both or just one of them)?

Thomas
[Android Software Development] iBotPeaches:
Whoever built and published a binary before you, did it incorrectly.

No hard feelings. It's been happening for awhile, I just posted a rant after yours. RC4 will come after I merge a pending PR and fix the bug related to invalid casts. It's close.
[Android Software Development] chandarakk:
still not work on LGsetting err in recompole any 1 suuces ?
[Android Software Development] Kickoff:
This issue is not related to the new version of apktool. Look here.
[Android Software Development] hoangps:
How to decomplie samsung lolipop apk file,im using RC3 for lolipop but get error
[Android Software Development] erislav:
Did you install framework for touchwiz and framework-res.apk from your Rom ?
[Android Software Development] hoangps:
Yup,try many times and still get errot with some files.
[Android Software Development] _alex74_:
This error is related to wrong framework-res usually... so try this:

go to C:\Users\your user\apktool\framework and delete all apk(1 and 2.apk)

from apktool reinstall again both framework and twframework from your TW lollipop rom

if not, your apk has been compiled with different framework or belongs to other device(ported apk)
[Android Software Development] Ale95:
You can compile and decompile SecContacts without damage the apk? i use RC3 And Dirty version but nothing work, always the apk is damage
[Android Software Development] Morningstar:
Unless someone has come up with an alternate method, then no. I'm using the latest apktool, that I built myself from source, and it decompiles/compiles with no problems, but it doesn't work when pushed back to the phone.
[Android Software Development] blueberry6401:
Waiting for LG Lollipop support :)
[Android Software Development] monivan:
CM12 Framework-res build error

Hi guys, I am not sure if I am doing anything wrong. I can compile other apps fine but the framework-res is not compiling properly. It is a CM12 framework. The decompiling process is done without any error. I have tried recompiling without any modification and the same error appear.

Below is the screenshot of the error when compiling a unmodified framework-res. You can also find the original framework-res.apk from CM12 in the attachment and try to decompile and recompile it and see if it works on your PC. Thanks.

Screenshot:

[IMG="Screenshot"]http://s2.postimg.org/4ixmphuu1/Screenshot.png[/IMG]
[Android Software Development] Rycon33:
^^You're screenshot is too blurry.

In case you haven't done, for system apps, you need to put back the original Meta-Inf folder and AndroidManifest.xml
[Android Software Development] monivan:
Sorry for the bad quality pic. Thanks for your response. Btw the problem is that it didn't compile. I figured out that there is unknown character in the decompiled folder which crashed the app when trying to compile. I tried removing one single folder and the compilation is successful. But sadly, it doesn't boot.
[Android Software Development] danivancouver:
I have the same problem

Any solution ??

The apk is the SecContacts_Phone_OSup

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x7f0f00e2
[Android Software Development] Golv:
Try this:

http://xdaforums.com/showpost.php?p=58127766&postcount=2685
[Android Software Development] Primokorn:
How do you extract the framework-res.apk from a CM12 build?
[Android Software Development] danivancouver:
thanks for the reply .. but the jar breaks me the apk. Verification failure to execute
[Android Software Development] Spannaa:
I use System Extractor

Sent via Bacon...
[Android Software Development] Psycho_666:
Hey guys, i hope someone can help me out here.

i have a little issue when recompiling SecSettings.apk for my Note 4 N910F.

It all recompiles fine but when i push or flash it to my phone i lost all checkboxes.

Nothing else is wrong, it's just the checkboxes that magically disappear, without errors or FC's anywhere.

any ideas on what is wrong? i tried a lot of different apktool versions, and even in windows 7 and in mint 17.1, but it all gives the same problem.

I hope someone can help me out here,

thanks in advance :good:
[Android Software Development] akiravjp:
Thankssssssssssss

Thank you! It 's work fine
[Android Software Development] chandarakk:
can not decomplie lgsetting Loolipo

i try rc2,rc3,and dirty of apktool but can not please help

link Lgsetting here https://docs.google.com/file/d/0B4ZgmkdylvhpaHRESVpEcjhCbFE/edit
[Android Software Development] vishals16:
Guys, I have a doubt. I am running kitkat on my device. I wanted to decrease the haptic feedback intensity so I decompiled the framework-res.apk. I edited arrays/values.xml via notepad++. When I recompiled the apk I get some warnings.

Is that okay or is something wrong?

(New to this)

Thanks in advance

Sent from my Xperia S
[Android Software Development] DaOldMan:
Many types of warnings are ok but some maybe good to know about. The translation warnings for instance don't matter much

Thomas
[Android Software Development] Carotix:
i tried the dirty also but i get no match with lollipop contacts

with RC3 i can't decompile and with dirty i can decompile and compile it but when i flash i lose the apk
[Android Software Development] DirtyDroidX:
Delete
[Android Software Development] JimzFreebies:
Does anybody have link for Apktool 1.5 ?? I want that version only for windows.
[Android Software Development] PerfectSlayer:
You may find it here: https://code.google.com/p/android-apktool/downloads/list ;)
[Android Software Development] JimzFreebies:
Thanks and Sorry
[Android Software Development] DaOldMan:
Did you copy the original manifest and meta-inf folder with the original signatures ?

Thomas
[Android Software Development] bovirus:
jimmy_coolguy2006

Why do you want to use an old version of apk tool?
[Android Software Development] Carotix:
yes i did , but nothing to do ... maybe because my rom is a leak .. i think ...

thanks for replay
[Android Software Development] DaOldMan:
It has nothing to do with the rom beeing a leak. If the app doesn't appear in the app drawer after a modification it's usually because the signature is wrong. You should re-insert into the new apk the original manifest.xml and the meta-inf drawer from the original apk. That usually does the trick.

Thomas
[Android Software Development] danivancouver:
But I can not do what he says .. because I have to make modifications in the manifest
[Android Software Development] DaOldMan:
Well there is a small problem :(, you can't !

1) If you modify the manifest then the signature of the file is wrong. You need to sign the apk again. If it's a system file this is a problem as it will not work with system access :(. If it's a normal app just sign it. Remove the old program and install the new one. It will not get updated because the signature is different.

2) If it's a system file you can modify the roms framework - there is a mod to stop checking signatures in the system apps. You can do that and then use your modified system app

3) When a signature is wrong the app doesn't appear in the system - as if it's not installed :(

Those are the rules you have to play by :)

Thomas
[Android Software Development] svadev:
No. - SecContacts apk (for Samsung Lollipop) do not work after simply decompile and compile after, without any changes, with correct manifest and META-INF from source SecContacts.
[Android Software Development] DaOldMan:
What device and what rom?

Thomas
[Android Software Development] svadev:
S4 duos (GT-I9502) firmware - I9502ZNUIOA2
[Android Software Development] Kamy:
Mate SecContact won't be compiled correctly for all TW lollipop. it's known issue
[Android Software Development] svadev:
Yes, exactly, so that's what I mean ...
[Android Software Development] prdog1:
Have to wait like the rest of us or build from source. Doesn't work on Nexus either. :cool:
[Android Software Development] iBotPeaches:
A new version has been released!

v2.0.0 RC4 (Released February 12, 2015)

Download: https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.0rc4.jar

Details of Release: http://connortumbleson.com/2015/02/12/apktool-2-0-0-rc4-released/
[Android Software Development] chandarakk:
i test 2 lgsetting of costom Rom(loloipop)

1lgsetting work smooth on decompile and compile confirm work well :D

2Lgsetting work only on decompile but can not compile i dont know from what i do wrong because am not edit any just do as 1lgsetting

sorry for my bad eng
[Android Software Development] danivancouver:
fixed dial errors

Note 3 L

[emoji12] [emoji12] [emoji12] [emoji12] [emoji12]
[Android Software Development] chandarakk:
what u mean bro?
[Android Software Development] danivancouver:
Oooohh

Decopila and copila good because error execution..

Lollipop note 3

SecContacts_Phone_OSup.apk

Prove..

Apktool

AdvancedApktool

Apkstudio

[emoji24] [emoji24] [emoji24] [emoji24] [emoji24]
[Android Software Development] Carotix:
i tried rc4 , but unfortunately lollipop s5 and s4 contacts doesn't work ..

i can decompile and compile them but when i flash i lose the main icons in the drawer .. :(