yashsingh1/xdaforums huggingface dataset:
[Android Software Development] thereassaad:
I qoute u both just to say that apktool v2.0.0 its installed mm 6.0.1 framework & its decompiled but its have many errors related to qmg so for now only this working for me ..

Edit 1 ::

If u gonna decompiled .apk with apktool v2.0.x or v2.x.x then u will get same errors as edzamber as i get it here same but its decompiled .jar success but apktool v2.0.0 its decompiled successful only the issues it's don't decode files that's related to .9.qmg images so that's what i get for now ..
[Android Software Development] Carotix:
wow !! you are right .. i got framework MM installed and systemui decompiled :good:

thanks a lot :D
[Android Software Development] :
using a "unprofessional" work around, not fully tested yet,

you can remove the resources.arsc temp decompile tw-framework/framework-res

change api > 22.

does only seem to work on tw framework not stock one
[Android Software Development] Deltadroid:
Maybe the problem is with the version of java. I thought latest version of apktool still requires java 7.
[Android Software Development] Carotix:
deleted
[Android Software Development] :
I think it's quite strange that,

apktool 2.0.0 snapshot works on pretty much everything except SecSettings2 since it kills the touch response (idk why)

and apktool 2.0.3 creates a dup size apk i don't know why either, but won't help in creating a successfull SecSettings2 (5.1.1). otherwise it works O.o

and there is only a string "complaint" while compiling SecSettings2 nothing more,
[Android Software Development] edzamber:
No issue with apktool 2.0.3 and SecSetting2 on my S6 Edge. I use TMA V12 Tool...
[Android Software Development] mjraogr:
Is it running for MIUi 7 roms?

Tks
[Android Software Development] WILMANS2M:
Me neither. On gs5 neo.

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Android Software Development] ROBERT CM:
[MENTION=3924617]iBotPeaches[/MENTION], waiting soon a new update of apktool for work with samsung marshmallow frameworks and apps .. :D
[Android Software Development] zelendel:
As apktool is built against aosp it maybe awhile before they work with Samsung devices due to the stupid changes they make to things like frameworks and art.
[Android Software Development] iBotPeaches:
With MIUI6 and whatever MI4C runs having a multitude of problems, I'd say probably not. My anger towards MIUI grows more on every new release to the point of almost dropping support for it entirely. Read those bugs for in depth details.

Yep, most of these Samsung issues (not sure if yours) are related to this strange bug where apktool gives custom resources the android namespace, which you can imagine breaks it completely and doesn't even match the original XML. I've merged a lot of related issues into this one - https://github.com/iBotPeaches/Apktool/issues/1157 which you can see has a lot of comments from myself recently.

Additionally before 2.1.0 is dropped, I'm removing SmaliDebugging to have a cleaner codebase. This bug can be seen here - https://github.com/iBotPeaches/Apktool/issues/1061 (My focus has been on others so haven't had time)

There is current regression that works in 2.0.0 and fails in 2.0.1+, which is funny because that means the "broken" code occurred between 2.0.0 and 2.0.1 so it should be easy to just look at those commits and revert what the problem is. However, I did that process of reverting a commit and re-testing and the application still failed for every commit in between those versions. This means one of two things. 1) It was a combination of multiple commits together that caused this problem. Or 2) I missed a commit. You can follow this Github on for notifications on fix/progress on this problem - https://github.com/iBotPeaches/Apktool/issues/1131

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

Unrelated. I'm no longer a student (graduated yee), but another citizen in the work force. These 40 hour weeks of programming has really made the weekends my primary apktool time.
[Android Software Development] intxeon:
Hi

I'm trying to decompile Secsettings2.apk from my s6 5.1.1 but I got this error:

M:\Folder>java -jar apktool.jar d -c SecSettings2.apk

I: Using Apktool 2.0.3 on SecSettings2.apk

I: Loading resource table...

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\intxe\apktool\framework\1.apk

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0116001c

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:65)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:61)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)

at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:502)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:136)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)

at brut.apktool.Main.cmdDecode(Main.java:165)

at brut.apktool.Main.main(Main.java:81)
[Android Software Development] Thebear j koss:
not enough info. did you install tw framework as well? have you tried an earlier version of apktool? read back the past few pages as proprietary apks have been discussed.

Hail ?
[Android Software Development] :
Strange must be my setup then anyway 2.0.1 works for now until I solve the issue
[Android Software Development] Deltadroid:
Did you load Samsung's framework-res.apk into apktool to support Samsung's new framework changes?
[Android Software Development] :
Ah I see,

Well I got it work so on 2.0.1

2.0.3 created a double sized apk and below version made touch freeze (which is strange that if a broken settings can cause touch to stop) but if it isn't there or it crashes it doesn't kill the touch.
[Android Software Development] esspee.r5:
Apktool-GUI with zenity

A simple bash script with zenity for a user friendly GUI

Download: drive.google.com/open?id=0BxrzrI9F3LgSSWI0ckxLbl9KNlE
[Android Software Development] esspee.r5:
APK Manipulation Update

drive.google.com/file/d/0BxrzrI9F3LgSejE1ci1HTmxlUjQ/view?usp=docslist_api
[Android Software Development] loganwaffle8:
Marking this for later, will do a few tests on my Nexus 7.
[Android Software Development] Gil81:
I get this error with ever version of apktool from 2.0 to latest. I'm trying to install framework-res.apk

root@john-MX6450:/usr/local/bin# apktool if framework-res.apk

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010301fe style/TextAppearance.Material.Notification, config=[DEFAULT]

at brut.androlib.res.data.ResType.addResource(ResType.java:66)

at brut.androlib.res.data.ResType.addResource(ResType.java:55)

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

at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:212)

at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:154)

at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:116)

at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:599)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:581)

at brut.androlib.Androlib.installFramework(Androlib.java:683)

at brut.apktool.Main.cmdInstallFramework(Main.java:240)

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

Any help would be appreciated.
[Android Software Development] alphamale:
Wondering if someone could take a look. Trying to decompile system ui of a rom vrtoxin mm aosp. I am unable to install framework onto computer or decompile systemui and framework. Trying to mod for 3 minit battery. I have successfully moded other mm roms. I have proper java installed.
[Android Software Development] Thebear j koss:
try using a different apktool on TMA, you are using a snapshot apktool, try the last official. plus i have no idea what lge.res.apk is but it is installed to apktool, and this should be posted in the TMA thread not on the apktool thread.

Hail ?

---------- Post added at 09:46 PM ---------- Previous post was at 09:45 PM ----------

not enough info provided. device, rom type, android build, etc. the more info the better.

Hail ?
[Android Software Development] alphamale:
I've tried multiple apktool versions. Also posted in TMA thread with no help.
[Android Software Development] Gil81:
Im using apktool 2.3 and many other earlier builds. Im trying to install framework-res.apk from vrtoxin rom. Its based on cm and aosp blend. Its android 6.0.1 and it is their latest build for the vs985. Im on the latest version of netrunner horizon on my laptop. Apktool works with every rom ive tried up to this one. I use it to do the 3minit battery mod for roms I run and support for othets here on xda.
[Android Software Development] Ticklefish:
Sorry about that. I do try to keep up to date on that thread but somehow I've managed to not notice your post.. :(

It looks like your framework-res.apk isn't installing. Since the post above this one is talking about the same thing, I'm guessing it's an issue with the vrtoxin rom, rather than apktool.

I'd suggest getting in touch with the rom's developers and asking them. It's possible they've built their APK oddly..
[Android Software Development] xinxx:
Hello I tried to decompile an apk: 360yunpan_android_7.0.14.apk because I would translate from Chinese to English... The apk is: 360 cloud that gave me 36TB.

Decompiling works fine, but when I recompile, receive an error I think that there is a problem for custom namespace.

My error:

Please Help me!
[Android Software Development] Thebear j koss:
what does line 28 in the android manifest say? may just need to delete that line for it to build and then transfer original manifest to new apk

Hail ?
[Android Software Development] Thebear j koss:
that's what I thought. If he has it installed wouldn't it conflict with the aosp framework he is using in the apktool?

Hail ?
[Android Software Development] xinxx:
Line 28:

I remove android:qihoo="activity" and the app compile, after I replaced original manifest in my new apk and signed. But when install on android app not started. Gave me error.
[Android Software Development] Ticklefish:
What did you sign it with? Did you use the original signature/key or a new one?
[Android Software Development] xinxx:
new signature/key with signapk.jar
[Android Software Development] :
I doubt that since it won't load LGe res since it's not depending on it

---------- Post added at 01:18 PM ---------- Previous post was at 01:17 PM ----------
[Android Software Development] Ticklefish:
Try using the original signature.
[Android Software Development] xinxx:
How use original signature? If replace resource.asc in a original apk not work.
[Android Software Development] edzamber:
META-INF Folder and AndroidManifest.xml file [emoji6]
[Android Software Development] xinxx:
Not working... Certificate Error. Uff...

Surrender...

I try to decompile after remove: android:qihoo="activity" to AndroidManifest.xml and recompile.

But the apk not working if I signed not working, if replace resource in original not working, if i replace META-INF and AndroidManifest in genereted apk not working.

Any idea?

APK is here: http://down.360safe.com/yunpan/360yunpan_android_7.0.14.apk

Someone can try? and help me step by step?

Thank you very much
[Android Software Development] kgirlx:
Hey guys, this looks like 1 of the tools I need. I just want to simply open and resign a couple apks so they aren't updated when Google Play Store sees them. I don't like the newer versions of a few apps. Besides this app, what other or others would I need? Thanks in advance.
[Android Software Development] :
I doubt it will stop the update from happen. Not sure though. Just stop the auto update settings in Google play so you can update all apps you want manually
[Android Software Development] Thebear j koss:
signing an app will stop updates from play store as you will have a signature mismatch. gotta watch what apps you sign as you may lose a lot of functionability after signing. most apps that use location, or a google sign in you may lose certain functions. most if not all google apps won't work at all...

Hail ?

---------- Post added at 06:33 PM ---------- Previous post was at 06:31 PM ----------

needs to go into system partition after. Won't just install like a data app as it is not signed with correct key.

Hail ?
[Android Software Development] kgirlx:
Ok, it's just WiFi analyzer and gas buddy app that I want to be able to stop from updating. Newer versions added lots of adverts.
[Android Software Development] djdarkknight96:
If you use original signature you'll have to use it on system instead. Cannot install on data after altering it.
[Android Software Development] BillNyeTheRussianSpy:
Where is my newly recompiled APK going? It says it's finished building, but i don't see a new APK anywhere.

Edit: I somehow got the APK to export to where i wanted it to go, but when i moved it to my device and signed it with zipsigner, it would not install. It says it is corrupt or just says it wasn't installed when i try. I just need to change 1 line of code in the androidmanifest.xml, how do i get APKtool to not export a corrupted apk?
[Android Software Development] PityOnU:
Having some issues decompiling an app. I get the following errors:

I: Using Apktool 2.0.3 on com.nhl.gc112.free-1.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Kent\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: anim/abc_slide_in_top.xml
S: Could not decode file, replacing by FALSE value: anim/abc_fade_out.xml
S: Could not decode file, replacing by FALSE value: layout/abc_action_bar_up_container.xml
S: Could not decode file, replacing by FALSE value: anim/abc_slide_out_top.xml
S: Could not decode file, replacing by FALSE value: anim/abc_slide_out_bottom.xml
S: Could not decode file, replacing by FALSE value: mipmap-hdpi-v4/ic_launcher.png
S: Could not decode file, replacing by FALSE value: anim/abc_slide_in_bottom.xml
S: Could not decode file, replacing by FALSE value: mipmap-xhdpi-v4/ic_launcher.png
S: Could not decode file, replacing by FALSE value: anim/abc_fade_in.xml
S: Could not decode file, replacing by FALSE value: anim/slide_in_from_top.xml
S: Could not decode file, replacing by FALSE value: mipmap-xxhdpi-v4/ic_launcher.png
S: Could not decode file, replacing by FALSE value: layout/gamepage_labelline.xml
S: Could not decode file, replacing by FALSE value: layout/game_media_view.xml
S: Could not decode file, replacing by FALSE value: anim/slide_out_from_top.xml
S: Could not decode file, replacing by FALSE value: layout/abc_action_bar_view_list_nav_layout.xml
S: Could not decode file, replacing by FALSE value: mipmap-mdpi-v4/ic_launcher.png
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

I know this problem has to do with a missing framework, but I'm having difficulties figuring out which one. I know a lot of the above issues are due to appcompat layouts not in framework-res.apk. But if they aren't there, where are they?
[Android Software Development] zelendel:
That depends on the OS you are running and if the app devs used a custom framework files.
[Android Software Development] PityOnU:
The app in question was compiled using the Android 6.0 (23) framework, at least according to the manifest.

As stated, many of the missing layouts are from the Google appcompat library available here. However, that is distributed as a jar and not an apk, so I am unsure of how to get apktool to recognize it and use it when decompiling the code.
[Android Software Development] :
Tried to load the jar goto apktool ? No idea if that works
[Android Software Development] Thebear j koss:
those aren't really errors. the apk decompiled, correct? if it was an error it wouldn't decompile and the log would say could not complete command due to following error... those are animations that you shouldn't need to worry about unless you are changing them, and that is more work and trouble than what it's worth...

Hail ?
[Android Software Development] edzamber:
[MENTION=4315551]Ticklefish[/MENTION]

Maybe this can help for Samsung MM decompil issues...

MM open source code G925F

http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=G925F

MM open source code G920F

http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=G920F
[Android Software Development] Ticklefish:
Thanks!

There's not much I can do with it, to be honest. But the OP might find it useful. :good:
[Android Software Development] Kdio:
Hi iBotPeaches

Just to put down all the gratitude and respect for your work with this tool that is the greatest reason why I could develop this tool to help some themers.

Thank you very much

Nice regards.

.
[Android Software Development] levone1:
I have a problem with my settings apk on AOSP marshmallow. When I decompile and mod files, recompile is successful with no errors, but when I push to /system/priv-app/settings and set permissions and reboot, no settings app appears, and no settings app is installed. I've tried several times with several permissions. Sometimes all I modded was a margin or something, just to test it, and always same result. Any ideas?
[Android Software Development] Ticklefish:
What did you sign it with?
[Android Software Development] djdarkknight96:
What did you use? The dist apk? Try apktool b -c settings.apk and use the dist apk on system.
[Android Software Development] thereassaad:
Use zipsigner app from play store to sign apk before push it to system ok my friend
[Android Software Development] julianod20:
Version 2.0.3 won't downloading correct for me.
[Android Software Development] iBotPeaches:
As in the hash of 2.0.3 isn't matched what is hosted on bitbucket? I just checked both bitbucket and my mirror and both 2.0.3 binaries match - b03ef2020833e12a4a06621bcef0984a
[Android Software Development] levone1:
I'll give a try. Apktool does sign though...

---------- Post added at 04:44 PM ---------- Previous post was at 04:42 PM ----------

Signed w apktool. I'll try zipsigner.
[Android Software Development] djdarkknight96:
DO NOT SIGN SYSTEM APPS WITH TEST KEYS. all you need to do is keep the original signature either dragging your edits to a untouched apk using the build folder files or use -c to copy manifest and signature too new apk in dist folder. Signing it with test keys will cause you more issues.
[Android Software Development] Ticklefish:
Signing system apps incorrectly seems to be the trouble of the month..lol
[Android Software Development] tetrakulo:
I'm modifying an apk whit apktool but in a part of the smali I've added a method and strip me this error

Code:

Exception in thread "main" org.jf.util.ExceptionWithContext: Unsigned short valu

e out of range: 65536

Research of the because this error occurs and it is because it has exceeded the limit of 65 K methods but also there are way using the multidex as it can be that in apktool so it can create a multidex and finish the modification as more I couldn't find I appreciate your help if someone has had the same error and has been able to fix it thank you for your help.
[Android Software Development] mocarela:
Hi all,

downloading the tool from 2.0.1 on results in a 0 bytes file. 2.0.0 is OK.

Where is the problem? Is there any mirror?

Regards

Alen
[Android Software Development] VegaRoXas:
Same here :/ Also 2.0 has bugs not correctly decoding resources.
[Android Software Development] micnolmad:
Trying to download 2.0.1-3 will produce 0kb size files. 2.0.0 is working. Using windows 10 and chrome..

I am using bitbucket..
[Android Software Development] iBotPeaches:
I see the problem now. What in the hell is bitbucket doing corrupting downloads? Mirror till fixed - http://connortumbleson.com/apktool/
[Android Software Development] tetrakulo:
Helpme Please :C :confused::confused::confused:
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

In th past in Windows I used

gradlew.bat applyPatches

gradlew build fatJar

now with teh latest update gradlew.applyPatches report "task 2applyPatches' not found'.

Is is not necessary anymore?
[Android Software Development] iBotPeaches:
Check the doc commits or the docs themselves after you notice something not working quite right. I documented the removal of applyPatches minutes after making that commit - https://github.com/iBotPeaches/Apktool/commits/gh-pages This should help you resolve problems very quick.

smali is no longer a git submodule so the submodule and apply patches is no longer needed.
[Android Software Development] :
If you modify android manifest you can't use old META-INF period.
[Android Software Development] iBotPeaches:
Quick question for everyone. A few bugs had led me to the solution that bumping the minimum required java to 1.8 would save both my time and some bugs. Otherwise we continue to bloat the apktool code base installing dependencies that work around lower java versions limitation.

I previously (about 2 years ago) moved the requirement from 1.6 to 1.7. For those still on 1.6 two years ago I didn't feel much sympathy because 1.6 came out in like 2006. However, 1.7 might be a different story. It came out in 2011, but was EOL`d in April of 2015.

1.8 came out in 2014 and is the default on some new systems. However, I don't know the mediums and platforms that everyone uses apktool on. For example, AOSP now requires 1.8. So if you are an Android AOSP dev you are set. Some of you might use apktool in an isolated system with a locked dependency.

So basically, do you have Java 8? If not, why?
[Android Software Development] djdarkknight96:
I have 1.8 no problem for me.
[Android Software Development] firefds:
Same here.. 1.8, no problem
[Android Software Development] Ticklefish:
I have Java 1.8.

Or, to be honest, my PC at work does. Which is where I do all my modding. Shhh...
[Android Software Development] julianod20:
When I download the file have 0 bytes of size. Don't know why, since version 2.0.2 download is ok here.
[Android Software Development] tetrakulo:
[MENTION=3924617]iBotPeaches[/MENTION] helpme my ask please
[Android Software Development] iBotPeaches:
Multidex requires the source, so the process can separate and automatically built split dex files. There is no automated procedure for this once the application is disassembled. Find methods that are unused and remove those. You are outside the dex method limit. This isn't apktool or smali's job to automatically fix for you.
[Android Software Development] Thebear j koss:
java 1.8. clear out the useless clutter!!! sorry ICS users...

Hail ?
[Android Software Development] Primokorn:
I also use 1.8. No problem for me either.
[Android Software Development] evildog1:
Hello,

How can i get apktool to decompile the apk on other path? i tried

java -jar apktool d -f "D:/apk/youtube.apk" "D:/decompiled apk/"

but it gives me input file (D:/decompiled apk/) was not found or was not readable

In old apktool.jar it works perfectly

this is old command

d[ecode] [OPTS] <file.apk> [<dir>]
Decode <file.apk> to <dir>.

new command is

apktool d[ecode] [options] <file_apk>

and it is not really useful for GUI program because i want to make custom output

EDIT: i found out. the command must be

java -jar apktool d -o "D:/decompiled apk/" "D:/apk/youtube.apk"
[Android Software Development] Carotix:
hi guys , any news for samsung marshmallow?
[Android Software Development] lijianjunyonghu:
I also want to know