yashsingh1/xdaforums huggingface dataset:
[Android Software Development] OvrDriVE:
lets see if anyone can help with this.

i have newest apktool 2.1.1 dirty and it installs frameworks fine. i have a note 4 which for some reason samsung cheated and used 5.0.1 base and slapped 5.1.1 and 6.0.1 code on top of all the apk's

now i can decompile and recompile fine. no errors at all

my issue is when i addn those apk's to a fresh install features are broken.

example. secsettings. pin, pass, and pattern lock all work fine until i recompile secsettings. then they are broken.

also when i look at apktool.yml it shows min and max sdk versions as being 21 and 23

and when i copy the smali folder from a decompiled apk to the folder after recompiling the same file. it copies smali that is missing. it has something to do with apktool deleteing old smali files i think. i've had others test this with all versions of apktool back to 2.0.0 and i get same result. any help would be appreciated.

btw, java, android sdk, aapt, you name it it's all up to date. i have even used 4 different apps plus manually to decompile and recompile with same result
[Android Software Development] Er. Aditya:
even i have the same issue with 6.0.1 apps and tw home launcher simply breaks alot of stuff only with decompile and recompile even with latest apktool
[Android Software Development] :
any one of you guys can be so kind and tell me where i can download the lates apktool released by Connor (the 2.1.1)

thanks in advance

and Connor ... great job pall ... i million views ... :good:
[Android Software Development] fibonaccis:
Hello and thanks for the tool, and sorry for my bad english

I have one problem and maybe anyone can help me.

I cant compile some apps from miui 7, for redmi note 2.

The apps are miui.apk, miuisystem.apk and framework-ext-res. Im only translating, but tried decompile and recompile changing nothing and end in error in compile step. I tried the versions, 2.10, 2.01,... All the latest and i install the next as frameworks

Framewok-res, framework-ext-res, mediatek-res, miui.apk and miuisystem.apk

Help please i cant find the way

Enviado desde mi Redmi Note 2 mediante Tapatalk
[Android Software Development] Wesley Eley:
Dude, You did Fantastic Job.

No Doubt, APKTool is most useful one when it comes to reverse engineering of APK files
[Android Software Development] zelendel:
Please follow the rules before posting. Had you done so and searched the thread you would see that this has already been spoken about.

Miui are known issues due to the s they make and the dev cant/won't support every android distro. So some of them never work correctly. Miui being one of them.
[Android Software Development] Tigerstown:
I never post here but only use your ApkTool. I have a Nexus 6P and N6 I do work on. Just wanted to give a shout out that I have no issues at all when using your tool on Ubuntu. Decompile,recompile all good. Thanks for your awesome work!
[Android Software Development] fibonaccis:
Im so sorry, but i've been searching not only in the thread in all the web. But i tried with an apk from a custom rom and the apps were translated ti russian, then there must be a way to do it,

Thanks.

Enviado desde mi Redmi Note 2 mediante Tapatalk
[Android Software Development] carrsteven:
Can anyone that has compiled 2.1.1 post it, or pm me with a link? I don't have a way to build it setup.
[Android Software Development] zelendel:
There is and it normally takes one of the miui developers to build a forked version. It has to be built with their changes. Only one that has access to their source would be able to make it work correctly. Well at least with out spending more time then it's worth. The dev used to keep it in line with miui and then miui went to hell and he gave up.
[Android Software Development] :
Are you decompiling and decompiling N apks? or just MM?
[Android Software Development] Tigerstown:
I'm only doing MM builds I just figured N apks would work correctly sense it's preview so I didn't even try any N apks.
[Android Software Development] :
SystemUI works but framework-res doesn't...
[Android Software Development] Tigerstown:
What don't work with the Framework? I changed my LED blink time inside framework not that long ago. Bout to make my new roms tonight that's why I was wondering what error you get on Framework thanks
[Android Software Development] :
I mean on N framework. It decompiles but doesn't baksmali
[Android Software Development] Tigerstown:
O my bad I didn't catch you were talking about N. That's good to know tho about systemui. Wonder if it works for settings/settings provider on N. Good look on the info :good:
[Android Software Development] :
Because framework-res doesn't have a classes.dex therefor it won't give you a smali folder.

I know LG has classes.dex in their lg-res but it decompile it without issues.

So no it's not an issue it's the fact that there's no codes in framework except resources.
[Android Software Development] :
Settings works however they've changed dashboard_categories.xml to something else in N. Very annoying, they've changed it with every release since KitKat that I know of.
[Android Software Development] aceqott:
Problem installing framework-res.apk ...

Samsung S5 G900F, Marshmallow.

Apktool v2.1.0
[Android Software Development] edzamber:
Hi,

Use this tool under Windows cmd to Baksmali/Smali classes.dex [emoji6]

https://mega.nz/#!L51BUBqT!__wGcqCi9chlTCktaFrDGEwLwNkL_FC9ju-GkYnpprM
[Android Software Development] fgr:
I have a Samsung Note 5 (Sprint) running Marshmallow.

Version 2.1.1 worked great for me!!!

Decompiled framework-res and SystemUI, made a few minor changes then recompiled and transferred to phone.

All is well!
[Android Software Development] :
The same for me on note4 under 6.0.1 ... evereything work 100% with 2.1.1 - ditry apktool

Connor u'r da man .... you should make public the 2.1.1 apktoo versionl... i can confirm that for me work excellent .

Thank you Connor peoples like u make great this community
[Android Software Development] Terraalpha:
Apktool 2.1.1-dirty ,Download Link please
[Android Software Development] iBotPeaches:
I'll see about releasing 2.1.1 over the weekend, as its a patch update on 2.1.0.

Hold tight for weekend or build it yourself. It is really quite easy.
[Android Software Development] Er. Aditya:
hope that fixes a great amount of stuff for 6.0.1 , thanks alot dev
[Android Software Development] Tigerstown:
Yeah that's definitely very annoying. Do you know what that something else is by chance?
[Android Software Development] :
I wish! I've sifted through every single xml file in it and cannot find it...
[Android Software Development] iBotPeaches:
A new version has been released!

v2.1.1 (Released May 7, 2016)

On my immediate radar is now

LG framework bug

Dexguard Enterprise bugs

Null TypeSpec bugs

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

Details of Release: http://connortumbleson.com/2016/05/07/apktool-v2-1-1-released/
[Android Software Development] :
Yes it's finally here ☺ public release ^^
[Android Software Development] archeart:
ERRORS

Hi!!

thanks for all the updates

Really appreciate what your doing!

just a quick concern tho

decompiled and build without edits yet and got those errors

everything is in the rar file..

uploading to mediafire cause of the size...

https://www.mediafire.com/?idm393jxfuhcry5

the errors and the systemui and framework-res and the other things i use... hope you can check to see whats up

oh and its from a myphone my28s spreadtrum sc7731
[Android Software Development] edzamber:
[MENTION=3924617]iBotPeaches[/MENTION]

Recompile error with SecSettings2 from S6 Edge G925F using new Apktool 2.1.1

Recompiling "SecSettings2.apk" With Original Signature,

in work area "_WorkArea1", using "apktool_2.1.1.jar"

With Tickle My Android 13.0.0.

(tinyurl.com\ticklemyandroid)

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

I: Using Apktool 2.1.1

I: Smaling smali folder into classes.dex...

I: Building resources...

W: E/ResourceType( 7212): Failed resolving ResTable_map name at 3052 with ident 0x02040075

W: warning: string 'device_info_software_summary_wifi' has no default translation.

W: warning: string 'device_info_status_summary_wifi' has no default translation.

W: warning: string 'incorrect_dialog_wipe_1' has no default translation.

W: warning: string 'incorrect_dialog_wipe_2' has no default translation.

W: warning: string 'pdg_summary_title' has no default translation.

W: warning: Package not found for resource #02010052

I: Copy original files...

I: Copy AndroidManifest.xml...

I: Copy META-INF...

I: Building apk file...

I: Copying unknown files/dir...

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

Recompile Successful!
[Android Software Development] bluflight:
Guys i not understand something.. "LG framework bug" on the immediate radar of dev, mean apktool is not working for lg? I switched 1 week ago from s6 to g4 H815, so i prefer to ask.

however great compliments to [MENTION=3924617]iBotPeaches[/MENTION] for his hard work :good:
[Android Software Development] gemini16:
[MENTION=1367408]bluflight[/MENTION]: As i understand, "LG framework bug" mean there some bug with framework for LG android M. If you're going work with LG android L devices it's works fine.
[Android Software Development] popo72:
Really thank you for this great apktool which makes the modder work just possible!

I'm writing to have support on a strange problem I'm facing since working on marshmallow (everything was fine until lollipop!).

Actually I decompile/recompile system apps without issues (Cinese Letv rom) introducing languages strings, then I push apk back into phone but when I perform a recovery wipe data, some apps (dialer, gallery, settings) disappears!

Whereas if I make the first boot with stock apps and then overwrite them with my new ones WITHOUT wiping data, it works and I see the translations. Unfortunately as soon as I make wiping data, the issue occurs once again.

I'm getting crazy! :(

P.S. rom is ODEX one

Really thanks in advance to who will help me!
[Android Software Development] Thebear j koss:
Need more info. Are you replacing the old apks with new modified versions in system partition? By pushing I'm presuming this is adb, where are you pushing them to?

Thebe?r'$ NeXu$
[Android Software Development] popo72:
Really thank you for your reply!

Actually I'm using flashable zip via TWRP to replace original apk with my modified ones. As evolution of the story, yesterday I tried to sign the system apps generating the issue (Contacts.apk, Dialer.apk, Gallery.apk) and indeed now they do not disappear after wiping data but they do not work properly (get some force close). To be honest I never signed system apps so it looks strange to me....
[Android Software Development] firefds:
Are you pushing them into folders?

Are you puahing deodexed files instead of odex ones?
[Android Software Development] Ticklefish:
You're signing system apps? What are you signing them with? Is it the same key as the original files?
[Android Software Development] popo72:
yes, into folders....tried both...just apk and apk deodexed with same result

Actually I do not have key of original file (or at least I do not know where to find it). I just sign with jBart as all the non system apps
[Android Software Development] firefds:
Are you also removing the left over odex files??
[Android Software Development] popo72:
yes I remove it when flashing the deodex version
[Android Software Development] gemini16:
With SecContact.apk in Lollipop, after decompile i got force close when view a contact(or after add a contact). I have solve by modified AndroidManifest.xml, decompile with new signature, edit services.jar and feature.xml (edit or delete some lines under <!-- Contact -->), and that works. May be with Mashmallow, you should look in csc folder as well.
[Android Software Development] Ticklefish:
I think that might be the problem. Recompiled system app's need to be signed with the same key as the original, or they won't start.

Use the option "-c" when recompiling for apktool to use the same key. (Have a look here http://ibotpeaches.github.io/Apktool/documentation/ for more information).
[Android Software Development] popo72:
This is indeed very similar to what happens to me....I will try to look into services.jar...really thanks for the suggestion

Actually with original signature (whch means -c) I get app disappering after wiping data, with signature (different as explained before), I get app persistent after wiping data but not able to create contact (it says I have to activate the app!) or force close when entering into contacts settings
[Android Software Development] gcrutchr:
[MENTION=3924617]iBotPeaches[/MENTION]

Thanks for 2.1.1

I was able to decompile/modify/compile SystemUI & SecSettings2 on my N920C.

Everything is working great!
[Android Software Development] six110:
I faced problems when I try to rebuild some apps due to special characters.

If it can help you I wrote a simple python script for the renaming...

/github.com/six110/SmaliRenamer
[Android Software Development] DaOldMan:
You did the following guide for SecSettings, right ?:

Read OP here please
[Android Software Development] bluflight:
Only to report full working of latest apktool.jar on lg apk on 6.0. I tested on LGSystemUI.apk, modded, flashed all ok

Inviato dal mio LG-H815 utilizzando Tapatalk
[Android Software Development] migueloma:
hi,

i have a problem with try compile flyme-res.apk.

This is error:

[14.05.2016 11:46:20] I: Java version: 1.8.0_91

[14.05.2016 11:46:20] I: OS name: Linux

[14.05.2016 11:46:20] I: OS version: 4.4.0-22-generic

[14.05.2016 11:46:20] I: OS arch: 64 bit

[14.05.2016 11:46:20] I: Home directory: /home/miguelo/Escritorio/jBART-master/

[14.05.2016 11:46:20] I:

[14.05.2016 11:46:20] I:

[14.05.2016 11:46:21] I: ******** Compiling file started ********

[14.05.2016 11:46:22] I: **** Compiling flyme-res.apk ****

[14.05.2016 11:46:22] I: Using apktool_2.1.1.jar

[14.05.2016 11:46:23] I: I: Using Apktool 2.1.1

[14.05.2016 11:46:24] W: W: Could not find sources

[14.05.2016 11:46:25] I: I: Building resources...

[14.05.2016 11:47:09] W: W: /home/miguelo/Escritorio/jBART-master/flyme-res.apk.bzprj/decompiled/flyme-res.apk/res/layout/airplane_notify_dialog_view.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/message').

[14.05.2016 11:47:09] W: W:

[14.05.2016 11:47:09] W: W: /home/miguelo/Escritorio/jBART-master/flyme-res.apk.bzprj/decompiled/flyme-res.apk/res/layout/airplane_notify_dialog_view.xml:4: error: Error: No resource found that matches the given name (at 'text' with value '@string/enable_airplane_notify').

[14.05.2016 11:47:09] W: W:

[14.05.2016 11:47:09] W: W: /home/miguelo/Escritorio/jBART-master/flyme-res.apk.bzprj/decompiled/flyme-res.apk/res/layout/airplane_notify_dialog_view.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/reminder').

[14.05.2016 11:47:09] W: W:

[14.05.2016 11:47:09] W: W: /home/miguelo/Escritorio/jBART-master/flyme-res.apk.bzprj/decompiled/flyme-res.apk/res/layout/airplane_notify_dialog_view.xml:5: error: Error: No resource found that matches the given name (at 'text' with value '@string/not_prompt_notify').

any help?

thanks
[Android Software Development] ervius:
shure, recompile success, but into device, crashes if you choice do not disturb start or end hours, is related to malformed resources.arsc built with apktool, something wrong iet.....
[Android Software Development] Ticklefish:
This is saying that you have two id's used in "airplane_notify_dialog_view.xml" (on lines 4 and 5) that aren't in "ids.xml". This is easy enough to fix, just manually edit ids.xml to put them in.

You're also missing two strings. Either make your own strings or remove that attribute from the lines of XML.
[Android Software Development] migueloma:
Sorry, but I'm newbie and do not know very well as I have to. I tried to add everything that is not in " ids.xml " that is in " airplane_notify_dialog_view.xml " and follow out the same mistakes.

IF you do not mind I added a zip with all decompiled and the complete log.

Thank you very much.
[Android Software Development] organick87:
first timer here - not able to rebuild layers apk

[MENTION=3924617]iBotPeaches[/MENTION] (or really anyone else willing/able to help me out)

to give some perspective, i'm not an aspiring dev by any means, just an at home tinkerer. what i'm trying to accomplish is changing the main accent color(s) of my current layers theme that i use. i didn't create it myself, i'm using one from Dejan Baric. I've gotten as far as getting the my first apk decoded (this time for the Phone layer) and have accessed the xml files and changed the color codes to what I want. (color hex codes in the xml files are "#xxxxxxxx" instead of # then 6 digits?? if anyone can shed light on this as well) However, I'm not able to perform the build command successfully. I've thoroughly read the github page documentation and instructions (particularly the Build section here, but i'm thinking since i don't fully understand the language maybe i'm missing a simple, yet crucial step. I've attached an image of what i'm receiving after issuing the build command.

Thank you in advance for any help I receive on this.
[Android Software Development] iBotPeaches:
It's in the Android base package. So you just have to build raw android from source. Except with those changes I posted above.

I already did it for linux. I have a windows computer. Just don't have any Android stuff on it and I'm too lazy this week to setup anything.

Sent from my SGS3 AT&T Variant
[Android Software Development] iBotPeaches:
Send me that apk. That bug was fixed ages ago, don't know how it can be back.

Sent from my SGS3 AT&T Variant
[Android Software Development] pele78:
Fix this please its unusable
[Android Software Development] llohcyoing:
here

http://www.mediafire.com/?dslosd5f5ed2ccj

thanks
[Android Software Development] iBotPeaches:
Could not duplicate.

peaches@turf:~/Downloads$ apktool if framework-res.apk
I: Framework installed to: /home/peaches/apktool/framework/1.apk
peaches@turf:~/Downloads$ apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
peaches@turf:~/Downloads$ apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
peaches@turf:~/Downloads$

Your not using apktool v1.5.0. You know how I can tell? I changed some commands that go to aapt, and on that stacktrace near the bottom the commands aren't there. I added them in v1.5.0, so you have to be running v1.4.5 or less.

Whatever is pulling your apktool isn't up to date. You can try by using java -jar apktool.jar commands here and see if that works.

FYI,

I got a Windows system and MAC OS X Thanks to JBQ for the instructions. I will have patched aapt for Mac and Windows by tonight. Proper built aapt.

EDIT: I have finished patched aapt for Windows: http://miui.connortumbleson.com/other/apktool/aapt/win/aapt.exe

Could someone (running Windows) download that and tell me if it works?
[Android Software Development] fisha21:
Just tested it with Windows 7 on HTC SystemUI.apk - decompiles and recompiles just fine. Let me know if you want any other HTC apks tested. Now I just need to read back through the thread to find out the benefits of the patched aapt.... :D

Thanks for your continued work on this!
[Android Software Development] espaciosalter20:
This is not really needed if you're not working with miui files, right?? The aapt from android sdk is enough, right??

Enviado desde mi MB525 usando Tapatalk 2
[Android Software Development] Jonny:
Also confirmed this works, thanks a lot for this, really appreciate it :)
[Android Software Development] llohcyoing:
mmm i downloaded your apktool 1.5.0 but not is the latest version???

im confused about...

the windows command work also in linux ?

ok ill try...

EDIT : stop at moment...for apktool working..3 files..apktool install,your apktool and your aapt...im right?
[Android Software Development] iBotPeaches:
True stock aapt will work fine if your not touching MIUI. However, the changes in aapt for the MIUI doesn't affect anything. So I'd just use the patched one.
[Android Software Development] llohcyoing:
wow!!! you are very funny mate.....
[Android Software Development] iBotPeaches:
There is apktool v1.5.0 (The jar file), and an updated aapt (the binary used to package android apps). Just two things. There is current aapt for Windows & Linux. Will build OS X soon.
[Android Software Development] llohcyoing:
its ok...do you mean in my work directory i've only added 2 files? not the same old (like gb) with 3 files?
[Android Software Development] iBotPeaches:
Well you could use a wrapper script, so you don't have to called it like "java -jar apktool.jar", so I guess it could be three. Still not understanding. Please screenshot it. I don't understand.
[Android Software Development] cowsquad:
Are you on Linux?
[Android Software Development] llohcyoing:
so...for work apktool in gingerbread i've need 3 file...

apktool.jar

apktool (brut.all call it apktool install)

aapt

these 3 file (in linux) are in executable folder (/usr/local/bin)...

do you mean i've only need 2 files?

apktool 1.5.0 and aapt patched?
[Android Software Development] iBotPeaches:
Download apktool v1.5.0 (JAR) and rename to apktool.jar replace it for your old apktool.jar. Keep apktool. Download new aapt from OP, and move to /usr/local/bin.

Then your done.

This is quite basic :o
[Android Software Development] cowsquad:
Ibotpeaches. He needs the apktool wrapper from brut.all. for Linux man. Otherwise apktool won't work. Correct me if I am wrong, but yesterday I set up my apktool thing and I moved to usr/local/bin apktool.jar, aapt (from your post) and apktool from brut.all.
[Android Software Development] shag_on_e:
Just wanted to say thanks to you iBotPeaches for your continued work here. I'm grateful I don't have to use two separate apktools to decompile framework-res anymore! Thanks again!

~~~~There is no spoon~~~~
[Android Software Development] Tkkg1994:
[MENTION=3924617]iBotPeaches[/MENTION], your apktool 2.1.1 is nearly working perfect. I only detected one small issue: Using MM roms (Touchwiz samsung 6.0.1) and try to decompile and recompile, your apktool will loose some informations. This is happening in the resources.arsc file. I don't know how or why, but it's annoying if I recompile a new apk and than there are some functions missing which should be in this resources.arsc file.

Can I help you to solve this somehow?
[Android Software Development] marcofelixiano:
Update System app to sdk 23

I need some help ... i have not experience on this job...

I try to install an old system app on my htc m8.

The system app is "htcmirrorlinkserver", because it work only the first versione (3.10.54) , but on android 6 it's possible to install only the newest( 3.10.65 ... 3.10.68). I've rotted my M8 to delete system app , but when i try to install the old one , error appear... i try to install it from adb (-r -d option) but the reason is: "SDK 21 doesn't support runtime permissions but the old target SDK 23 does". I've tried to decompile, it's ok i have small file , also jar file (dex2jar). bur now i don't how proceed to change sdk library or some else to installe app on android 6.

Do you have tips or help for me?

thankyou

Marco

Ps. This is second post , the i wrote in the wrong thread.
[Android Software Development] Crussader:
For example this?

MM Framework-res.... just decompiled and then recompiled... jumpy animation:

Smoother version.. https://www.youtube.com/watch?v=5NQ1GOUnlQM