yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Josephigloe:
Well that's the thing I have read over and over but this is new to me and I can't figure it out that's why I'm asking for help.
[Android Software Development] bovirus:
[MENTION=5419764]Josephigloe[/MENTION]

Is not clear what's your request. How to compile and create apktool.jar?

If this your request all info that you need are included in first posts.

Otherwise I didn't understand what you mean as "instalL" apktool.
[Android Software Development] Josephigloe:
Well don't I need to install apktool to decompile, I downloaded and renamed the files as stated and put them in the c://windows but that's as far as I can get I open up cmd window and type in apktool but it can't find it.

---------- Post added at 08:11 AM ---------- Previous post was at 08:08 AM ----------

I want to learn how to do this but if I can't even use the tool I'm just stuck I'm missing something.
[Android Software Development] bovirus:
[MENTION=5419764]Josephigloe[/MENTION]

You question is OT here.

It regarding use of Windows, path, and Java. But are not OT here.

You should jave java jdk/jre iun path, open a DOS prompt where you ahve apktool.jar and type

java -jar apktool.jar.

Note: apktool is just like a library. But for specfic you have specifc program likAndroidMultiTool or AdvancedAPKTools

Please don't post question OT anymore.
[Android Software Development] Spannaa:
Do you have Java 1.7 installed?

Sent via Bacon...
[Android Software Development] Josephigloe:
Well thank you for you advise, I was just seeking help on using this apktool2.0.0 that is posted in this thread sorry if I offended you.
[Android Software Development] bovirus:
[MENTION=5419764]Josephigloe[/MENTION]

No offense for no one. But you have to post here question only about apktool compilation and nothing else.

This is not a thread that can help you with a training ho to use apktool tool.

As I said before to do that use tools like AndroidMultitool or AdavanceAPKTool.
[Android Software Development] Aman Dewett:
help

I wanna change color of message text on conversations pannel which is defined in some smali. Will you please tell me how can i find that smali? Please do check screenshot.
[Android Software Development] :
No i Think its defined in the xml you have open. look at Android text color #ffffff is black change thus values and you will change the color
[Android Software Development] Aman Dewett:
No, I defined it " #ffffffff " but no profit because it's color is defined in some smali.
[Android Software Development] :
If its in smali look at some files that has name R$colors. (Or something similar)

It also can be located in a folder in res/values/color

Or /res/color
[Android Software Development] Aman Dewett:
Neither it's in (R$colors smali) nor in any res files like (colors,styles etc), i already checked those files.

It's hidden somewhere in other smali's.

Please tell me if you know how to find smali for any particular res.
[Android Software Development] :
What you can do is search for color with notepad++ to see what it will lead you to
[Android Software Development] Aman Dewett:
That will lead to nowhere because there is no such thing.
[Android Software Development] :
That's rather strange. Just to ask are you sure you tested the new apk instead of the old one
[Android Software Development] civato:
Layout bug

+1

Info system.

Note Pro 12.2 Samsung

Lollipop TW official rom 5.0.2

APK tool 2.0.0 used and older versions of the 2.0.0 version. Baksmali and smali 2.0.6

When I decompile the SystemUI.apk and just Recompile it (no changes at all) the Notification area (drop down notification area with quick toggles and brightness slider) isn't in the middle of the screen as it should be.

It goes to the left of the screen after installing the recompiled SystemUI.

Original manifest and signature or even tested with own signature.

Please some help is welcome.
[Android Software Development] Aman Dewett:
Yeah
[Android Software Development] :
Think it is mentioned earlier. It is a bug why that happens I don't know maybe a bug when decompile the classes file not entirely sure.

Well I must say if it doesn't change it is rather strange. The xml should change the color specially if its defined as Androidtext color. Hmm what app is it? Messaging for OEM or?
[Android Software Development] Aman Dewett:
"Android text color " was not defined there, i defined it to change text color but it does not effect color of that text because color is defined in some smali and when color is defined in smali do whatever with res file it will not effect it.

And it's messaging app WhatsApp
[Android Software Development] Thebear j koss:
Open all smali files in notepad ++ and search setTextColor. Then go through those til you find the right 1. There must be literally 1000 android:textcolors besides those 2 you changed in whatsapp. Find someone that has it changed and diff merger or compare their edits. Easiest way to find stuff. Whatsapp updates like 3 times a week, so if it is in smali it most likely will not be in the same place. It also isn't a hex if in smali. It's probably 0x1 or 0x100 or a public id from public.xml
[Android Software Development] Aman Dewett:
Yeah right smalis are always changed with every update, i have to search for it because smali's don't use hex codes or we can say smali use reverse of hex codes.

It's too difficult to find this ?
[Android Software Development] civato:
Yep I got it , I used apk multitool with 2.0.0 apktool now and did it the old way, i kept all the original files , just delete the modified one. (option Y when recompiling)
[Android Software Development] :
So you got it working?
[Android Software Development] DUHAsianSKILLZ:
Hi, its a problem when it decompiles the layouts xmls for our tablet. Useing the one option just places your modified/themed things into the apk whilst using the original layouts xmls etc. I did fix it myself similar to the advanced apktool you used, just two xmls from the original apk can center it back
[Android Software Development] iBotPeaches:
A new version has been released!

v2.0.1 (Released July 15, 2015)

I've investigated the bug that I held this release back for about 2.5 weeks. Problems seem to be isolated to old apks & strange OEMs. I could not duplicate issues with modern OEMs such as LG, HTC, Samsung and Nexus devices. For this reason, I'm green lighting this release. If this proves to be a mistake, then I guess we will have a 2.0.2 coming.

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

Details of Release: http://connortumbleson.com/2015/07/15/apktool-2-0-1-released/
[Android Software Development] :
[MENTION=3924617]iBotPeaches[/MENTION]

The "bug" https://github.com/iBotPeaches/Apktool/issues/996

Isn't really a bug. If the app is decompiled and recompiled it will break the maps api (if its signed) and should be same if you don't sign it.

The fix is to sign it with a working map api key and change it where it is stated.

Read more here http://stackoverflow.com/questions/24492881/google-maps-does-not-work-after-resigning-an-apk
[Android Software Development] :
[MENTION=3924617]iBotPeaches[/MENTION] isn't the https://github.com/iBotPeaches/Apktool/issues/989

Missing file in source code ? I got a similar issue but its cause it isn't defined in smali?

Also https://github.com/iBotPeaches/Apktool/issues/1000 Isn't a bug. User just gets missing info About drawables and I'ds i got something similar when i decompiled with wrong framework files, maybe that's the issue he's facing
[Android Software Development] harsh0143:
i was facing some problem When decompiling apk Log in attachment

Regards,Thank you
[Android Software Development] iBotPeaches:
Usually means a

1) OEM Apk that is modified AOSP beyond the norm

2) An unreleased AOSP version (Android M)

3) Some magic apk (modified)

Really need an apk though. Feel free to open a bug report w/ apk.
[Android Software Development] :
Looks like you have multiple files (resources) try delete the help_1_basic and try see if it will decompile (not a proper fix) but might help
[Android Software Development] SPAstef:
Hi, I can't decompile Android M developer preview "2" (the one released one week ago) system apps, and I can't even import framework.

This is the error:

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
I: Using Apktool 2.0.0-07ea41-SNAPSHOT on M2_Velvet.apk
I: Loading resource table...

(I was using apktool for android on my phone, but the PC one has the same error, I tried to decompile many apks and the error is always the same)
[Android Software Development] prdog1:
Could be something else but M support hasn't been incorporated with ApkTool yet. Different API level. :cool:
[Android Software Development] SPAstef:
So I just have to wait November? (When M will be released)

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Android Software Development] :
Well yes but depends also what you want to do. If decompile recourse then yes

smali I doubt you need to worry about [emoji14]
[Android Software Development] sevenkel:
Hello there, i have decompiled my app, i wanted to add push notification to it using Parse, then it says: "Drag the Parse-*.jar you downloaded into your existing app's "libs" folder"

can I just drag and drop Parse.jar into lib folder (decompiled apk using apktool) and add desired codes and recompile it or it's not working since libs files are .so?

sorry I dont have much inf. abt programming.

thank you
[Android Software Development] Morningstar:
Whatever you're reading that says to put the .jar in the libs folder is talking about doing so in an IDE as you're building the app. You're probably not going to be able to add something as complicated as a push notification system to a decompiled apk....You need the source.
[Android Software Development] Adizzzle:
Did a quick search, and tried numerous times to successfully

Recompile my framework-res.apk but I get an error

relative to the apktool.yml on my S6 Edge - 5.0.2

I am using apktool 2.0.1 as well..

Any insight on what I might have missed?
[Android Software Development] Ticklefish:
That really depends on what the error is. It helps if you can let us know.

Generally though, if you're getting an error that apktool.yml isn't found, that means your APK didn't decompile fully.
[Android Software Development] Adizzzle:
Hey [MENTION=4315551]Ticklefish[/MENTION]

Thanks for the reply man, here is the error I am running into. Wow editing the framework-res.apk is like pulling teeth..
[Android Software Development] Ticklefish:
Yup. It doesn't exist. Which suggests something isn't right about your decompile.

If you're using a Touchwiz ROM, have you installed twframework-res.apk before you decompile?
[Android Software Development] Adizzzle:
I did install both frameworks (tw as well) before decompiling.. Also this is a Deodexed ROM.. Not sure if that is the cause of this
[Android Software Development] iBotPeaches:
You are building the apk vs the directory. You should do apktool b framework-res.
[Android Software Development] Adizzzle:
I honestly tried both with the same result.. I just don't get this, all I did was make a tiny change in the arrays.xml
[Android Software Development] Ticklefish:
Hmm. Are your original APK and the decompiled APK in the same directory? It could be that apktool is trying to recompile the original APK.

I don't know for sure, it's been a while since I've used command line to decompile, but it's worth putting the original APK in a separate folder.
[Android Software Development] Adizzzle:
Yes they are.

Can I upload my framework-res.apk? Maybe somebody else can try on their apktool just to confirm my framework is borked.. Or maybe I'm just overlooking something..

Edit: in any case thank you very much for all the help guys much appreciated.
[Android Software Development] iBotPeaches:
The screenshot you posted was using "apktool b framework-res.apk". That is not right. "apktool b framework-res" (where framework-res) is a folder is the correct way. If this shows an error, than the decode failed and didn't produce the apktool.yml file. In which case there will be an error during decode.
[Android Software Development] Adizzzle:
Thanks for the explanation I'll give that a shot as soon as I get home and see if it returns the same error or not, perhaps I should have had a coffee before trying all this stuff this morning. [emoji12]

EDIT:

Now I am getting different errors here

[MENTION=3924617]iBotPeaches[/MENTION], [MENTION=4315551]Ticklefish[/MENTION]

C:\APKTOOL2.0>apktool b framework-res
I: Using Apktool 2.0.1
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\APKTOOL2.0\framework-res\res\drawable-sw360dp-xxxhdpi-v13\ic_knox_badge.PNG:
error: File is case-insensitive equivalent to: C:\APKTOOL2.0\framework-res\res\d
rawable-xxxhdpi-v4\ic_knox_badge.png
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Adrian
\AppData\Local\Temp\brut_util_Jar_2830987286475523019.tmp, p, --forced-package-i
d, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --ver
sion-name, 5.0.2-G925W8VLU1AOE1, -F, C:\Users\Adrian\AppData\Local\Temp\APKTOOL9
80906997493907835.tmp, -x, -0, arsc, -S, C:\APKTOOL2.0\framework-res\res, -M, C:
\APKTOOL2.0\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
at brut.androlib.Androlib.buildResources(Androlib.java:397)
at brut.androlib.Androlib.build(Androlib.java:285)
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.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Adrian\AppData\Local\Temp\brut_util_Jar_283098728647552
3019.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version
, 21, --version-code, 21, --version-name, 5.0.2-G925W8VLU1AOE1, -F, C:\Users\Adr
ian\AppData\Local\Temp\APKTOOL980906997493907835.tmp, -x, -0, arsc, -S, C:\APKTO
OL2.0\framework-res\res, -M, C:\APKTOOL2.0\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:445)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Adrian\A
ppData\Local\Temp\brut_util_Jar_2830987286475523019.tmp, p, --forced-package-id,
1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --versi
on-name, 5.0.2-G925W8VLU1AOE1, -F, C:\Users\Adrian\AppData\Local\Temp\APKTOOL980
906997493907835.tmp, -x, -0, arsc, -S, C:\APKTOOL2.0\framework-res\res, -M, C:\A
PKTOOL2.0\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:413)
... 6 more

C:\APKTOOL2.0>

I must have the most stubborn framework-res out there...
[Android Software Development] Marília de Oliveira:
God:D
[Android Software Development] Thebear j koss:
That 1 png is named incorrectly. Change the PNG from uppercase to lowercase. Needs to be exact. Hence the case sensitive messsge.
[Android Software Development] PotsyKay:
Can u help me please, i have a n9005 using alliance rom Lollipop.

I decompiled my SECcontacts a first time with apktool, then gives me errors when i compile. So i corrige them and compiled success. Then i sign my apk. I copy past my apk in system/priv-app and fix permission and it works great. but when i restart the SECcontacts fc.
[Android Software Development] bovirus:
[MENTION=1605506]PotsyKay[/MENTION]

Is not clear. The only error duri compialtion

warning: string 'action_menu_add_new_contact_button' has no default translation.

warning: string 'guide_dialer_make_call_with_this_number' has no default translation.

warning: string 'guide_dialer_tap_to_write_your_number' has no default translation.

warning: string 'tab_logs_verizon_lra' has no default translation.

warning: string 'tab_logs_verizon_uscc' has no default translation.

regarding only strings that are available in not english language but not available in master english language.
[Android Software Development] djdarkknight96:
Those are warnings, it's still building fine.

Sent from my BlakKat CM12.1 Sexy Nexy 5
[Android Software Development] Thebear j koss:
Need to post a log using catlog or a similar app. Right after f/c, open catlog and pause it. Filter for SecContacts or Contacts, expand the messages, save log, pastebin or dropbox link the log here. No telling what causes it without a log.
[Android Software Development] Adizzzle:
After renaming the two .PNG's to lowercase I get a ton more errors then i had before. This framework-res.apk is borked right up. Oh well, thanks for the help man.
[Android Software Development] Thebear j koss:
I doubt it is borked, did you pull it from your rom? What new errors are there? Can you decompile the framework and recompile it without making any changes?
[Android Software Development] PotsyKay:
Thank for your help ! Its weird, apktool success decompile and recompile. works fine on copy/past. But when restart, fc or disappear.

So its the logcat : https://www.dropbox.com/s/k3yr4wnavjmb1tk/2015-07-27-00-39-04.txt?dl=0

Hope it can help
[Android Software Development] PotsyKay:
Sorry to have bothered u. Actually it works after kill app and delete cache and data app.

Sent From Samsung Galaxy Note Pink Using Pink Tapatalk
[Android Software Development] Shaftamle:
You wanna make sure your using a framework that's as close to stock as possible. CM frameworks can cause problems. Go with a vanilla AOSP or a stock Nexus ROM framework.

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

149ThemedGoogleKeyboards!!!!!!

Eclipse ROM fatness!

MyColorScreen
[Android Software Development] Adizzzle:
This is a Samsung framework-res.apk from my own ROM deodexed.
[Android Software Development] Thebear j koss:
Does it decompile and recompile right after without touching it and making any edits.
[Android Software Development] rkharat98:
There is no option to sign with old signature as in Virtuous Studio. Or tell something alternative.
[Android Software Development] Thebear j koss:
Drag manifest and meta inf from original apk into newly built apk using 7zip.
[Android Software Development] Adizzzle:
No I cannot decompile and recompile with no edits, this is what happens:

C:\APKTOOL>apktool d framework-res.apk
I: Using Apktool 2.0.1 on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

C:\APKTOOL>apktool b framework-res
I: Using Apktool 2.0.1
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\APKTOOL\framework-res\res\drawable-sw360dp-xxxhdpi-v13\ic_knox_badge.PNG: err
or: File is case-insensitive equivalent to: C:\APKTOOL\framework-res\res\drawabl
e-xxxhdpi-v4\ic_knox_badge.png
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Adrian
\AppData\Local\Temp\brut_util_Jar_4872988048647883128.tmp, p, --forced-package-i
d, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --ver
sion-name, 5.0.2-G925W8VLU1AOE1, -F, C:\Users\Adrian\AppData\Local\Temp\APKTOOL7
070837517697382442.tmp, -x, -0, arsc, -S, C:\APKTOOL\framework-res\res, -M, C:\A
PKTOOL\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
at brut.androlib.Androlib.buildResources(Androlib.java:397)
at brut.androlib.Androlib.build(Androlib.java:285)
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.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Adrian\AppData\Local\Temp\brut_util_Jar_487298804864788
3128.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version
, 21, --version-code, 21, --version-name, 5.0.2-G925W8VLU1AOE1, -F, C:\Users\Adr
ian\AppData\Local\Temp\APKTOOL7070837517697382442.tmp, -x, -0, arsc, -S, C:\APKT
OOL\framework-res\res, -M, C:\APKTOOL\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:445)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Adrian\A
ppData\Local\Temp\brut_util_Jar_4872988048647883128.tmp, p, --forced-package-id,
1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --versi
on-name, 5.0.2-G925W8VLU1AOE1, -F, C:\Users\Adrian\AppData\Local\Temp\APKTOOL707
0837517697382442.tmp, -x, -0, arsc, -S, C:\APKTOOL\framework-res\res, -M, C:\APK
TOOL\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:413)
... 6 more

C:\APKTOOL>
[Android Software Development] maksnogin:
ic_knox_badge.PNG rename to ic_knox_badge.png
[Android Software Development] Thebear j koss:
He said he tried that yesterday. Not sure if he just added png to the file name or actually changed the file extension though. He didn't post a log the 2nd time, just said his framework was borked. I don't know. Only other thing i can suggest is deleting the 1 with uppercase PNG and try to build.
[Android Software Development] Adizzzle:
There were two .PNG's, first tried just renaming and building, no dice. Then I opened them in photoshop and saved them as .png, same errors..

I can't imagine why these errors keep popping up, everytime, but I'll try again once Samsung releases 5.1 in September. I have a feeling I messed it up deodexing or something.

Thanks again fellas, all the help and suggestions are much appreciated!
[Android Software Development] :
So why not delete them and remove the definition of them?

Try to just delete one of your knox picture or rename the one that has .PNG to .png (edit see you did that already)

Try to just replace the one that has .png with the one that has .PNG

Can you upload the file you try to compile and if any needed files?

You sure you loaded both frameworks and correct one?

Similar issues can be caused by decompile a already modified framework and when a New stock framework-res has been loaded. are you sure no changes has been made?