yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Penacal:
I install the VisualBasicPowerPacksSetup, and after that i had sucess opening AndroidApktool, thanks for that
[Android Software Development] Flextrick:
[MENTION=535343]all[/MENTION]

We (SavanTorian and me) found a solution for this problem: As mentioned install Microsoft Powerpacks and it hopefully will work!

Added to the OP.
[Android Software Development] SavanTorian:
i've attached it to my post :)

personal note:

you do not need to copy the folder to C:\

it works elsewhere, too :)

e.g. c:\program files

e.g. c:\temp

important: it should be the win boot partition, no logical.
[Android Software Development] "D":
Nice! Very good :)

"D"
[Android Software Development] Flextrick:
What´s going on with the layout?

Anybody else who has this issue too?
[Android Software Development] RomWiz:
Great :)
[Android Software Development] geedos:
???

..dont know why but its not finding "java" and i know its properly installed because ive been able to use other, scripts/tools for modding.
[Android Software Development] astrokreep:
Compiled APK

Where does the compiled apk file go? I have specified the location under compile but when I go to that location there's no apk or dist folder. Any ideas?
[Android Software Development] Flextrick:
How have you specified?

~ via Nexus
[Android Software Development] astrokreep:
Specification

Yes I have. I even created an empty folder and specified that as the output folder but once I've clicked compile and it finishes there is nothing.:confused:
[Android Software Development] Flextrick:
You cannot specifie where the output is, that's integrated in the code. The output is in the same location where the AndroidApktool.exe is located. When the AndroidApktool.exe is on C:\, the output is in C:\AndroidApktool\dist

~ via Nexus
[Android Software Development] astrokreep:
Alright, but either way it's not creating the dist folder. If i do create another folder though it does allow me to select it under compile.
[Android Software Development] toorentz:
while installing vs package i found this error:
[Android Software Development] shoman94:
I had decompiled 7 apks and 4 jars... no problem. Then I moved everything to a ROM area and started to do it all over again and am not getting this error on ever APK I try to download.

The long shows this: The filename or extension is too long.

EDIT:

So if I use this tool in this location:

C:\Users\shoman94\Downloads\AndroidMultitool_2.2_beta1\AndroidMultitool

it works fine....

If I use it in this location:

C:\Users\shoman94\Desktop\ROMs\SGS2\ROMS\SHOstock-SGS4\jflte_unsigned_101713_212056\AndroidMultitool_2.2_beta1\AndroidMultitool

it errors out.... I think it doesn't like the depth of the file name.
[Android Software Development] Flextrick:
Maybe.. but the best thing is to put it directly on C:\.
[Android Software Development] shoman94:
Maybe I should but I shouldn't have too. Sounds like a limitation somewhere in the program.
[Android Software Development] Flextrick:
I think the problem is the string in the textbox
[Android Software Development] shoman94:
Can you fix it?
[Android Software Development] Flextrick:
I'll look at it. :)
[Android Software Development] shoman94:
Thanks.... :good:

I did move all my projects to c: and its working well now.
[Android Software Development] Maurice5813:
Do I need to follow these same steps when recompiling system apps, e.g frmework-res.apk,settings.apk,systemui.apk?
[Android Software Development] nobody573:
Hi, I have a problem . I have Windows 8 beta tool and loaded it. But when I try to install the framework I get this error message. Brut.androlib.AndrolibException Exception in thread "main " java.io.FileNotFoundException : No \ Desktop \ AndroidMultitool \ Files \ framework - res.apk ( The system can not find the path specified )

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

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

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

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

Caused by: java.io.FileNotFoundException : No \ Desktop \ AndroidMultitool \ Files \ framework - res.apk ( The system can not find the path specified )

at java.io.RandomAccessFile.open ( Native Method )

at java.io.RandomAccessFile . <init> ( Unknown Source )

. org.apache.commons.compress.archivers.zip.ZipFile at <init> ( ZipFile.java : 203)

. org.apache.commons.compress.archivers.zip.ZipFile at <init> ( ZipFile.java : 182)

. org.apache.commons.compress.archivers.zip.ZipFile at <init> ( ZipFile.java : 143)

. brut.directory.ZipExtFile at <init> ( ZipExtFile.java : 28)

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

... 3 more

if I want to decompile an apk I get this error message. Input file (No \ Desktop \ AndroidMultitool \ Files \ Gmail.apk) which was not found or not readable.

The system can not find the file specified.

The system can not find the path specified.

The system can not find the file specified.

can someone help me further

it's all JRE7 installed, APK Manager SDK Manager
[Android Software Development] nobody573:
So i have the Problem fixed

when i want compile Gmail get this error

..\Decompiled_apk\Gmail\smali\android\support\v4\app\ActionBarDrawerToggle.smali[246,4] Invalid literal value: 16256. Low 16 bits must be zeroed out.

..\Decompiled_apk\Gmail\smali\android\support\v4\app\ActionBarDrawerToggle.smali[265,4] Invalid literal value: 16384. Low 16 bits must be zeroed out.

..\Decompiled_apk\Gmail\smali\android\support\v4\app\ActionBarDrawerToggle.smali[267,4] Invalid literal value: 16128. Low 16 bits must be zeroed out.

..\Decompiled_apk\Gmail\smali\android\support\v4\app\ActionBarDrawerToggle.smali[488,4] Invalid literal value: 16256. Low 16 bits must be zeroed out.

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: android/support/v4/app/ActionBarDrawerToggle.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

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

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

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

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

Das System kann die angegebene Datei nicht finden.

Das System kann die angegebene Datei nicht finden.

can any help

---------- Post added at 09:59 AM ---------- Previous post was at 09:57 AM ----------

So i have the Problem fixed

when i want compile Gmail get this error

..\Decompiled_apk\Gmail\smali\android\support\v4\app\ActionBarDrawerToggle.smali[246,4] Invalid literal value: 16256. Low 16 bits must be zeroed out.

..\Decompiled_apk\Gmail\smali\android\support\v4\app\ActionBarDrawerToggle.smali[265,4] Invalid literal value: 16384. Low 16 bits must be zeroed out.

..\Decompiled_apk\Gmail\smali\android\support\v4\app\ActionBarDrawerToggle.smali[267,4] Invalid literal value: 16128. Low 16 bits must be zeroed out.

..\Decompiled_apk\Gmail\smali\android\support\v4\app\ActionBarDrawerToggle.smali[488,4] Invalid literal value: 16256. Low 16 bits must be zeroed out.

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: android/support/v4/app/ActionBarDrawerToggle.smali

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)

at brut.androlib.Androlib.buildSources(Androlib.java:298)

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

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

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

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

Das System kann die angegebene Datei nicht finden.

Das System kann die angegebene Datei nicht finden.

can any help
[Android Software Development] speechless:
why cant open ur app under windows 8.1 32bit or only for windows 8 :confused:
[Android Software Development] androidseb:
By me it works under 8.1

Gesendet von meinem LT25i mit Tapatalk Pro
[Android Software Development] carinoxx:
Can u someone attach the program file, i dont know why but i cant download it from mediafire... :((
[Android Software Development] LasVegasRomeo:
Does the current beta have the Smali & Baksmali 2.0 as well?
[Android Software Development] Flextrick:
I only edited the Apktool, I changed nothing on Smali.

[MENTION=535343]all[/MENTION]

I added a function to push your apk per adb. It's working now, but I have to work on a check if the device is ready or not.
[Android Software Development] LasVegasRomeo:
Ok, just was curious if since Apktool 2.0b7 updated to the Smali/baksmali 2.0 if it mattes or will effect anything if the ones in the tool are not. Just was curious. I have and smali 2.0 & baksmali 2.0 anyways so can switch out if i encounter any complications I suppose. Dont know to much abut those. Appreciate the hard work like always man! :highfive::good:
[Android Software Development] Maurice5813:
okay, when installing framework for hybrid roms, crdroid to be specific, I get this:

C:\Users\maurice\Desktop\Apktool>apktool if framework-res.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-nodpi-v8-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v8-ERR1
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-xhdpi-v8-ERR2
I: Framework installed to: C:\Users\maurice\apktool\framework\1.apk

When I decompile the framework-res.apk I get this:

C:\Users\maurice\Desktop\Apktool>apktool d framework-res.apk
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-nodpi-v8-ERR
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-v8-ERR1
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: drawable-xhdpi-v8-ERR
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

Will this be a issue when I recompile the framework-res.apk? Can I just add these folders back from original apk using winrar?

The folders that caused the error were these, they were not found in the framework-res folder:

drawable-inverted

drawable-inverted-nodpi

drawable-inverted-xhdpi

All others seem to be there. But should I just add all the drawable folders, because I see the error also says drawable folder exceeds size i guess?

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

EDIT: When I deleted the folders, and re-added them from the original apk, it seemed to compile fine without error:

C:\Users\maurice\Desktop\Apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Copying raw resources...
I: Building apk file...

But will it work? Hopefully this tool will support hybrid roms in the future, to take away so much manual work:D
[Android Software Development] LasVegasRomeo:
Normal apktool wont recognize the inverted folders. Look into the slim apktool jar which works with roms with that set up. Which seems to me most of them these days. Took me long enough to figure that one out. lol

---------- Post added at 02:54 PM ---------- Previous post was at 02:43 PM ----------

The regular apktool wont recolonize those folders, you need to look into the slim apktool jar with roms with the inverted folder set ups. aka dark mode
[Android Software Development] Ahki767:
What does this mean? :confused:

aapt: warning: string 'wifi_wps_pin_output' has no default translation in C:\AndroidMultitool\Decompiled_apk\Settings\res; found: el es ko
[Android Software Development] Flextrick:
It's just a warning that a translation is missing, it's nothing really important. It's not your fault, just a warning.
[Android Software Development] Maurice5813:
you got link, I need it badly!!! Thanks:D
[Android Software Development] LasVegasRomeo:
link here
[Android Software Development] aditya.kamble:
Very Nice Multitool .. I'm looking for GUI based Toolkit..

Thanks Bro....
[Android Software Development] Android-Andi:
Can someone give me please the "apktool-install-windows-1.5.3-SlimBean.zip" ? i have no github :p
[Android Software Development] prdog1:
+1. I couldn't figure out how to download without an account. :cool:
[Android Software Development] Maurice5813:
When decompiling settings.apk I got this:

C:\Users\maurice\Desktop\Apktool>apktool d settings.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\maurice\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

I'm looking at this error:

W: Skipping "android" package group

Is this a issue? What file is it skipping? BTW the rom is AOSP android 4.3.1
[Android Software Development] Ahki767:
So the recompiled apk will still work after the warning?
[Android Software Development] Flextrick:
If smali, resource and all the other folders are not missing after decompiling, no.

Yes, of course.
[Android Software Development] Maurice5813:
Will I have issues after recompiling?
[Android Software Development] prdog1:
It saw as a complete package that wasn't messed with so it had no reason to mess with. That package will remain as it was. Looks like a sedperate file inside what you were working on. my guess is that package has it's own resources that remain intact. :cool:
[Android Software Development] Maurice5813:
Nope, the sdk versio is the issue. Apktool doesn't recognize 4.3, which is sdk version:18

The error I get when recompiling is:

For settings:

C:\Users\maurice\Desktop\Apktool>apktool b settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more

For Framework-res:

C:\Users\maurice\Desktop\Apktool>apktool b framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more

The error is directing me to the apktool.yml located in the root of the apk, mine contains this:

For framework-res.apk:

version: 1.5.2
apkFileName: framework-res.apk
isFrameworkApk: true
sdkInfo:
[COLOR="Red"]minSdkVersion: '18'
targetSdkVersion: '18'[/COLOR]
packageInfo:
cur_package: android
orig_package: android
compressionType: false

For Settings.apk:

version: 1.5.2
apkFileName: settings.apk
[COLOR="red"]isFrameworkApk: false[/COLOR]
usesFramework:
ids:
- 1
sdkInfo:
[B] minSdkVersion: '18'
targetSdkVersion: '18'[/B]
packageInfo:
cur_package: android
orig_package: com.android.settings
compressionType: false

Apktool just needs a dev to keep it updated which each API Level, which hopefully will continue here:D And kkitkat is out so hopefully I will be able to cook with it also;)

EDIT:But honestly It may just be the Rom im using, because the other rom compiled without issue kow that I think about it. Well, I guess its good to share errors for development so...

EDIT 2: Never mind, I see my error, I typed:

apktool b framework-res.[COLOR="Red"]apk[/COLOR]

I'm a idiot:silly:
[Android Software Development] prdog1:
Yes. It is usually the rom. I use VTS and only thing that won't recompile is the the 4.3 ATT leak as it is incomplete and does not have all resources for the APKs. Have tried other tools and even the 2.X apk tools don't work on this leak although I can recompile any other 4.3. Haven't tried 4.4 yet. :cool:
[Android Software Development] Maurice5813:
No i got it to compile:D The issue was I type "apktool b framework-res.apk" when I only needed to type "apktool b framework-res", the folder name not the apk name:laugh:
[Android Software Development] prdog1:
That's kewl. I'm too old to worry about using and learning commands. This is 2013. No reason or need for manual commands. :laugh::cool:
[Android Software Development] Maurice5813:
Yeah, but I like seeing things "behind the scene", I'm 19yr old but I guess I like it:laugh:
[Android Software Development] prdog1:
I'm 56 and see it all but don't have time to type in all those manual commands. I edit values and smali with no problem and have never entered a single manual command. The manual commands only do one thing at a time. I prefer to make several edits in multiple files and have flashable in 5 minutes or less. :cool:
[Android Software Development] Maurice5813:
Yeah its beter when its faster:laugh: I just now it better the other way so I not to much of a fan. But decompiling a apk take longer doing it manually thats for sure.
[Android Software Development] prdog1:
This tool actually rocks. There is no difference or better manually. They just type the same command for you. lol I use this tool for files that require the new APKtool. All others I use VTS. It shows everythingeven color coded you don't see with manual apk tool. :cool:
[Android Software Development] Maurice5813:
Yeah, I using it right no and I'm seriously considering a switch!!!
[Android Software Development] prdog1:
Yea. Between this and VTS can do anything you ever wanted to do quicker and faster. VTS will actually teach you since it shows everything including the java source code for smali if need it. Can work on multiple files and swap back and forth and compare. All in tabs like Windows. :cool:
[Android Software Development] Maurice5813:
Okay, so when I check "use baksmali" when decompiling a apk, what happens? Is it useful or no need to check?
[Android Software Development] prdog1:
Only if you are going deep enough that need to edit baksmali. There are also layers deeper than baksmali. Don't remember the names. I have never needed baksmali for what I do. If going deep into rom code will need. Checking baksmali should make it actually visible. Being able to understand or modify another animal. I don't wan't to see anything I don't need. :cool:
[Android Software Development] n.vk1305:
installing framework,decompiling SystemUI,modding it.White compiling it log shows this,cant figure out whats wrong.:confused:
[Android Software Development] Flextrick:
It did not decompile without errors. You have to look in the log after decompiling.
[Android Software Development] Android-Andi:
SlimBean APK-Tool as you asked here too :p

Use this link:

https://github.com/SlimRoms/apktool/

On the right side you have a button "Download ZIP"

---------- Post added at 11:08 PM ---------- Previous post was at 10:23 PM ----------

[MENTION=4642185]Flextrick[/MENTION] maybe you can add apktool.jar from SlimBean-APK-Tool in next release? Decompiling without any Problems :)
[Android Software Development] prdog1:
HaHaa. Thanks. I never moved that far down. Haven't run into the inverted files since don't do AOSP base but never know when it pops up. I use this tool and VTS. VTS rocks if you lazy. I'm too old to learn all the apktool commands. Can do but takes me forever. Just a few minutes in VTS to change anything. :p:laugh::cool:
[Android Software Development] Z0R:
can you please link me to VTS ?

Thx
[Android Software Development] plethorahil:
8.1

is this support win 8.1????
[Android Software Development] prdog1:
http://www.virtuous-ten-studio.com/

Works on 8.1 for me.
[Android Software Development] Flextrick:
Of course!
[Android Software Development] hello00:
does this work for kitkat 4.4?
[Android Software Development] Z0R:
This tool is for Windows. That's mean you work with apk on your computer and then push it to you device. If you do all correct it should work on Kitkat too. ;)

Sent with Tapatalk VIP
[Android Software Development] Flextrick:
Yes, it does.
[Android Software Development] iB4STiD:
nexus 5 trying to compile the framework-res.apk.. no mods done just as a test .. i will decompile then try to compile and i get these errors

W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AndroidMultitool\Decompiled_apk\framework-res\res/values-mcc310-mnc-1
invalid resource directory name: C:\AndroidMultitool\Decompiled_apk\framework-res\res/values-mcc450-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Pamela\AppData\Local\Temp\APKTOOL4440580592267460764.tmp, -x, -0, arsc, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Pamela\AppData\Local\Temp\APKTOOL4440580592267460764.tmp, -x, -0, arsc, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Pamela\AppData\Local\Temp\APKTOOL4440580592267460764.tmp, -x, -0, arsc, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
The system cannot find the file specified.
The system cannot find the file specified.
[Android Software Development] Flextrick:
Yes, I know this issue.. you have to delete two folders: values-mcc-310-mnc-1 and values-mcc-450-mnc-1.

It will work after doing this.
[Android Software Development] iB4STiD:
ya... tried that .. i decompile ..then delete 2 folders.. then recompile .. then when i try to decompile again .. diff errors.. i will edit the post with new error codes.. :good:
[Android Software Development] LasVegasRomeo:
If it compiled then why the need to decompile again instead of just doing the editing u want to do and recompile off of what u previously did after deleting the build & compiled folders?

Sent from my SCH-I545 using Xparent BlueTapatalk 2
[Android Software Development] iB4STiD:
simple... if im adding an image to the framework .. i need the call from the public.xml .. to get that i have to decompile it again ..