yashsingh1/xdaforums huggingface dataset:
[Virtuous Ten Studio] iBotPeaches:
Apktool intentionally doesn't handle Carbon/Liquid. There was a commit adding resource qualifiers for something called "inverted" mode. Apktool cannot follow every ROM's choice to modify resource qualifiers, as some may break legacy support. This specific change you are talking about, looks like it patches cleanly, but I don't know if its Apktool's job to patch itself for every ROM's change.

These changes aren't just "change x and rebuild". You have to rebuild aapt and apktool for these changes, since aapt handles the rebuild. Building aapt for 3 different platforms to test these changes isn't fun nor easy.

The best bet would be to re-engineer an aapt binary that ignores things it doesn't understand, but then how would we detect errors :o

Trust me, I've been thinking of ways to make this easier for everyone, and there just isn't a good extensible solution yet.
[Virtuous Ten Studio] PiggySmalls:
Not real sure if this is what you are talking about, or if this will help, but SlimRoms released their apktool for use with the dark UI.

http://slimroms.net/index.php/downloads/dlsearch/viewcategory/1151-development
[Virtuous Ten Studio] CNexus:
So...all of a sudden I'm unable to copy/paste into/from VTS.

Any thoughts?
[Virtuous Ten Studio] Mr Hofs:
Admin rights problem maybe ?
[Virtuous Ten Studio] CNexus:
Tried that, no go...and it's all of a sudden, as it used to work fine
[Virtuous Ten Studio] Mr Hofs:
Was it after an update, if so de-install the current version and install a slight older version that you can download via the vts website. Just to try ofcourse.......i am just thinking out loud, sorry if it does not work in the end ;)
[Virtuous Ten Studio] CNexus:
Thanks for trying to help :thumbup:

Tried uninstalling/reinstalling

With and without update....nothing
[Virtuous Ten Studio] Mr Hofs:
I will check later on my laptop, can you describe exactly what and how you copy ? So i can reproduce the exact setting on my unit !
[Virtuous Ten Studio] CNexus:
Either ctrl c or right click > copy

Neither work for me
[Virtuous Ten Studio] Mr Hofs:
You mean a file or a part of an opened file like an xml inside vts or a file or a part of a file opened in a windows explorer folder via vts ?
[Virtuous Ten Studio] CNexus:
A chunk of text.

I cannot paste from an external source INTO VTS, nor can I copy text FROM VTS and paste it into other VTS files, or into an external application.
[Virtuous Ten Studio] Mr Hofs:
alright then i got it right, just tested it with some xml files and it works here. Sorry don't think i know what's wrong at your side then :(
[Virtuous Ten Studio] varun.chitre15:
[MENTION=2295247]Diamondback[/MENTION]

Will it be possible to implement extraction of cpio archives with various compression types? For Sony devices it is very helpful when the kernel has recovery embedded in it in form of another ramdisk archive of recovery inside the boot.img ramdisk.

To be short, extraction of compressed cpio archives like ramdis.cpio.xz, ramdisk.cpio.lzma, ramdisk.cpio.gz is possible separately?

Second thing if the boot.img itself uses some different compression other than gzip for its corresponding ramdisk then boot.img won't extract.

For example to extract xz ramdisk archive, first I need to split the boot image into zImage and ramdisk archives.

Then for extracting ramdisk

xz -d ramdisk.cpio.xz
And then
cpio -i < ../ramdisk.cpio
[Virtuous Ten Studio] Jayrod76:
Out of curiosity..how is the update to handle the new apktool format going? I realize you are busy and VTS isn't your top priority..just miss the ease that VTS affords with modding 4.4+ vs using alternatives :)

Thanks for an AWESOME tool!
[Virtuous Ten Studio] bovirus:
I had a problem to recompile two apk.

Launcher and Settings.apk (part of a ROM system).

I open it, de-compile it, no error.

When I tried to compile them (just for test - without changes) it failed.

Launcher (APK): https://mega.co.nz/#!7Z4U1QTC!w39arRFxbRF7-wnqGL280xvfd4Qd0G_VLsMBu7ov9-Y

Settings (APK): https://mega.co.nz/#!TcgFACoQ!nO_3WB6F7Un5vxKBHXGRn9VBvy4excRxZpQWACBq13I

The error is: missing resources.

The same VST tool with other apk (more simple/more older) works fine.
[Virtuous Ten Studio] CNexus:
Did you install your rom's framework?

And sometimes, you need to fix stock apks in order for them to recompile without error, even if you made no modifications
[Virtuous Ten Studio] bovirus:
I didn't installa my ROM framework.-

Other apks can be decompield/recompiled in the same configuration (without ROM framework).

How can install my ROM framework?

I tested the same APK that reported an error during compilation with other tools (like APKTool/etc with installed ROM framework) but I obtained similar error.
[Virtuous Ten Studio] vegetaleb:
Is it working with Sense 6?

I can successfully decompile an apk but can't compile after a small smali tweak and png editing.
[Virtuous Ten Studio] jatinrungta:
Tried recompiling without changing?
[Virtuous Ten Studio] bovirus:
The apktool (jar) provided is quite old (1.5.0). Shoulkd b better to use mroe recent version (ex. 1.5.2).
[Virtuous Ten Studio] vegetaleb:
I am using 1.5.2

Though I am afraid Sense 6 requires apktool 2.0

I will try to recompile without changing codes or png
[Virtuous Ten Studio] bovirus:
Where can I get APktool 1.5.2 (for XP)? The default in XP installation is APKTool 1.5.0.

Where can I downlaod apktool 2.0?
[Virtuous Ten Studio] bgcngm:
A basic search would have returned this result. On the latest pages you can find 2.0 beta release.
[Virtuous Ten Studio] vegetaleb:
It's working if I don't change something, it looks like the PNG I edited is the culprit, I tried a second PNG editiong (10% opacity instead of 0) but still VTS won't accept this PNG :eek:

Is there any PNG type I should use when saving it?

I am using Paint Shop Pro and the options I have in saving are:

-Interlaced or Noninterlaced

-Optimized palette or Nonoptimized palette

What settings I should use for VTS compatibility?
[Virtuous Ten Studio] HighlanderZA:
Was it a normal png or a 9 patch png - eg: name xxxxx.9.png?

If so, then 9 patch png's have special requirements.
[Virtuous Ten Studio] vegetaleb:
Yes it's ''common_panel_light.9.png''

What are the requirements please?
[Virtuous Ten Studio] Krocko:
The xxxxx.9.png's must be patched befor you recompil the apk.

Gesendet von meinem Nokia 5110 mit ViperN und Tapatalk 7 Ultra HD
[Virtuous Ten Studio] HighlanderZA:
Do a search on xda - there a few tut's on editing 9 patch pngs.

Basically - they have to be decompiled before editing - edited, then re-compiled.

They have a 1 pixel border that has to be 100% transparent EXCEPT for the patches which control where the content can go and which parts of the image can stretch!

When you re-compile - VTS will fail the compile, telling you where the first problem is!
[Virtuous Ten Studio] vegetaleb:
Ok!

I will use the draw9patch then from Android SDK :good:
[Virtuous Ten Studio] Krocko:
Yes, i use this too.

Gesendet von meinem Nokia 5110 mit ViperN und Tapatalk 7 Ultra HD
[Virtuous Ten Studio] vegetaleb:
Weird!

Loaded the png after decompiling it with VTS, changed it with Paint shop pro,loaded it with draw9patch then saved so it's patched but the program won't save it patched (checked the date and time of the file).

Edit: Tried with http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html

Looks like the png is now patched and good but I am getting an error in VTS ''Signing Binary Failed''

Let's see why the signing failed

Edit 2: MY BAD! I was using apktool 2.0, with 1.5.2 the apk was well built with signing :)
[Virtuous Ten Studio] Krocko:
Ah ok. Great that you sort it. [emoji6]

Gesendet von meinem Nokia 5110 mit ViperN und Tapatalk 7 Ultra HD
[Virtuous Ten Studio] thesparky007:
Im having trouble modding Sense 6 apks. Seems like some files are not being transferred over when recompiling. Is it because of the older apktool?
[Virtuous Ten Studio] Jayrod76:
More than likely that is the cause. Until VTS is updated looks like doing stuff the old way is it.

Sent via Blacked out TapaTalk on my Eclipsed Dev X
[Virtuous Ten Studio] Mikanoshi:
Anybody knows what parameters VTS use to decompile classes? Trying to do manually for Sense 6, but resulting java code is worse then after VTS.

set CLASSPATH=
FOR %%i IN ("JAR\dex2jar\lib\*.jar") DO CALL "JAR\dex2jar\setclasspath.bat" "%%i"

java -Xms512m -Xmx1024m -cp %CLASSPATH% "com.googlecode.dex2jar.tools.Dex2jarCmd" "classes.dex"
unzip -o classes-dex2jar.jar -d classout
JAD\jad.exe -o -r -noctor -space -ff -s java -d classes "classout\**\*.class"

All switch- and even some if-statements are messed up...

dex2jar 0.0.9.15

JAD 1.5.8g
[Virtuous Ten Studio] coal686:
Some of my team members have used VTS with Sense 6 by updating apktool and baksmali to the latest. I personally haven't or if give more details.
[Virtuous Ten Studio] bovirus:
Someone could update/uplaod an updated version of apktool/baksmali to enable decompiling/recompiling new apk?
[Virtuous Ten Studio] DSA:
Google it, easily findable
[Virtuous Ten Studio] bovirus:
Thanks for big effort....and your support (I believe that in this way you help noone)

I already cheked with google.

I foudn just APKTool 1.5.2 that has the same problem with recents app (about recompilcation).

Please make a real helpposting a good source link for

APKTool 2.0 (beta)

baksmal (updated)
[Virtuous Ten Studio] Mikanoshi:
http://connortumbleson.com/2014/02/apktool-2-0-0-beta-9-released/

https://bitbucket.org/JesusFreke/smali/downloads

It's like first links in google)) apktool couldn't extract all resources from new Sense 6 SystemUI for me though...
[Virtuous Ten Studio] DSA:
As the user above me stated, first results in Google

Give a man a fish, he can eat for a day....
[Virtuous Ten Studio] MassStash:
bummer! just started trying to mod sense 6 and could'nt get framework-res.apk to load, failure, came here and it's not just me :(

Can get framework-res.apk and systemui to load as framework tho. any know how to get framework-res.apk from sense 6 m8 to load for framework?
[Virtuous Ten Studio] Mikanoshi:
Adds framework just fine, apktool 2.0.0b9:

java -jar apktool.jar if -t 44Sense6 frameworks\framework-res.apk
[Virtuous Ten Studio] MassStash:
Oh dang bro! Awesome, gonna try that out now. Can you use that command with vts somewhere?

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Virtuous Ten Studio] bovirus:
Do you believe that I didn't searcka pktool with Google?

Search something in Google is quite easy.

Apktool produce a lot of result search and you cannot believe that anyone can know what are good or not.

The real problem is that google has a lot of trash objects/files and then you cannot separate easily the right one from bad one. And this is more important for development objects/files

You can just posted the link of aafordable resource (because you know - please consider that not all people have your knowledge....)

If someone want really hep other users can add theese important links in the first post.

because the same objects included in VTS are quite old....
[Virtuous Ten Studio] Mikanoshi:
I couldn't get VTS to work with latest apktool, it throws an error about writing to Data folder...
[Virtuous Ten Studio] alen1901:
The same for me.

Sent from Pure Nexus 5
[Virtuous Ten Studio] iBotPeaches:
VTS invokes Apktool in a certain way. In 2.0.0 we made breaking changes to make a uniform, consistent usage. These change in parameters / usage, probably isn't in that old version of VTS, thus errors occur.
[Virtuous Ten Studio] alen1901:
Well, i tried with pure apktool through cmd and its the same. Not sure why. I also get mnc350-1 and 450-1 errors (something like that) with 1.5.2 which are supposed to be fixed with 2.0.0 but i cant decompile/compile with 2.0.0. Maybe my setup is derped.

Sent from Pure Nexus 5
[Virtuous Ten Studio] MassStash:
ahhhhh got yea, yea same

Got yea, thanks for explaining

~Jflteusc on OctOS

KToonsez Kernel

1.998 Max ¦ 189 Min ¦ 702 Screen Off

Ktoonsified v5 Setup
[Virtuous Ten Studio] ahmed534:
I deodexed android policy jar file , decompile it, make changes and now I get my android policy deodexed jar ! please how to odex back :s
[Virtuous Ten Studio] Rimmer1966:
I've got a jar file that I successfully modified using this tool. It's works great but if I try to switch to the ART runtime it gives an error saying the version number of the jar file I modified is incorrect.. Anyone got a solution?
[Virtuous Ten Studio] CNexus:
[MENTION=2295247]Diamondback[/MENTION]

I have one feature request if you have time...being able to set a universal output folder for all output binaries.

I have it set up so that my all files in a specific folder get automatically synced to my phone, so this would be insanely useful if it's not too much trouble.

So instead of newly built projects going into the ProjectName/Binary folder, they would go into the universal output folder

Thanks in advance and thanks for the awesome tool. :thumbup:
[Virtuous Ten Studio] Kiray1982:
seems there is something wrong with vts website...

viagra all over there:

http://virtuous-ten-studio.com/
[Virtuous Ten Studio] c0de_junkie:
Helo everyone, I tried to open VTS this morning and for some reason it will not open at all... the blue VTS splash screen pops up but then a few seconds later an error comes up that says that the program has stopped working and this is what it says under details:

Problem signature:
Problem Event Name:	APPCRASH
Application Name:	Virtuous Ten Studio.exe
Application Version:	2.9.15.10501
Application Timestamp:	52358892
Fault Module Name:	AppProfiles.dll
Fault Module Version:	1.0.5.5
Fault Module Timestamp:	5277f418
Exception Code:	c0000005
Exception Offset:	0002ee4c
OS Version:	6.1.7601.2.1.0.256.1
Locale ID:	1033
Additional Information 1:	0a9e
Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
Additional Information 3:	0a9e
Additional Information 4:	0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

The thing that I do not understand is that VTS worked just fine on the 12th the last time I made a few edits.... Once this error started I uninstalled VTS and reinstalled the latest version from the main website and it too has the error when I try to open... I have also tried running the program in Windows XP compatibility mode and I tried running it with admin rights but nothing seems to work and I get the same error over and over.... Nothing has changed on my computer since the last time I used VTS and it worked just fine, so if anyone out there has any ideas or things that I can try to get VTS running again then it would be greatly appreciated... Thank you very much...
[Virtuous Ten Studio] CNexus:
I used it just yesterday, opened and worked fine for me.
[Virtuous Ten Studio] tdunham:
Try creating a new windows profile and run it from the new user. I've seen issues with temp files located within a user profile that will cause issues.

If that doesn't work, try uninstalling and manually deleting the dll file indicated if it still exists. Uninstalling should ask to remove associated dll files but just in case, check anyway.
[Virtuous Ten Studio] c0de_junkie:
Thanks a lot, after reading your post I got the idea to search my computer and I found out what application AppProfiles.dll belonged to, which was an app called RadionPro which I use for my GPU's crossfire profiles and when I closed it VTS opened just fine... so thanks a lot for the tip...

The problem that I am having now is that I am unable to add the new framework files for the rom that I use which is ViperOne v6.1.0 android v4.4.2 sense 6.0 for the HTC One(m7), I downloaded the latest apktool(v2.0.0b9) and added it to the apktool folder for VTS and I tried what Mikanoshi posted on the last page by using this:

java -jar apktool.jar if -t 44Sense6 frameworks\framework-res.apk

and all the files worked except I had an issue with "com.htc.socialnetwork.res.apk" I get this error:

F:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool>java -jar apktool_2.
0.0b9.jar if -t 44Sense6 frameworks\com.htc.socialnetwork.res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x07040000 integer/light_shadow_xoffset, config=-hdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:193)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:162)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:128)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:103)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:675)
at brut.androlib.Androlib.installFramework(Androlib.java:641)
at brut.apktool.Main.cmdInstallFramework(Main.java:252)
at brut.apktool.Main.main(Main.java:91)

and I am still unable to decompile any files from this rom to work on, like I mentioned before all the other files for this framework worked except for this one, so I was wondering, does anyone else know what to do? any type of help would be greatly appreciated... Thanks a lot
[Virtuous Ten Studio] tdunham:
Also, try copying over to folder the second framework file twframework-res.apk (your second framework file may be named slightly different with htc in the name) and use the same command but for the second framework file and try again.

I would use your original command and then do this right after to load second one.

java -jar apktool.jar if -t 44Sense6 frameworks\twframework-res.apk

I know that some of the newer builds require both framework files are loaded before attempting decompiling and compiling.
[Virtuous Ten Studio] c0de_junkie:
I did run the command to import all the .apk files from the framework folder, including the second framework file which would be either framework-res-htc.apk or com.htc.resources.apk, but either way i loaded all files and they all loaded just fine except for com.htc.socialnetwork.res.apk which I assume it must be needed because it is one of the files that VTS tries to import when I select the whole framework folders and because when I try to decompile anything from this rom it gives me an error.... so I don't know what to do next
[Virtuous Ten Studio] Mikanoshi:
I'll just show how I decompile everything :) This is to import frameworks:

java -jar apktool.jar if -t 44Sense6 frameworks\com.htc.resources.apk
java -jar apktool.jar if -t 44Sense6 frameworks\framework-res-htc.apk
java -jar apktool.jar if -t 44Sense6 frameworks\framework-res.apk
REM java -jar apktool.jar if -t 44Sense6 frameworks\SemcGenericUxpRes.apk
REM java -jar apktool.jar if -t 44Sense6 frameworks\com.htc.browsermodule.res.apk
java -jar apktool.jar if -t 44Sense6 frameworks\com.htc.videowidget.res.apk
java -jar apktool.jar if -t 44Sense6 frameworks\com.htc.weather.res.apk
java -jar apktool.jar if -t 44Sense6 frameworks\com.htc.android.home.res.apk
pause

Two REM lines are commented, because they somewhy overwrite resulting frameworks in apktool folder with the files of the same names. I don't really need them even to decompile Sony apps (SemcGenericUxpRes.apk).

Also com.htc.socialnetwork.res.apk gives me an error too, but without it all files decompile just fine.

After that download new smali/baksmali 2.0.3 from their googlecode repository, remove current in Virtuous Ten Studio\External\Smali\ folder and place new ones. That's all, now VTS will decompile almost everything using smali 2.0.3 and apktool 1.5.2. Some apks will still fail on resources (com.htc.launcher.apk for example), you can uncheck resources decompile option while creating project and then decompile them manually with apktool 2.0.0b9:

@echo off
cd /d "%~dp0"
set PATH=%CD%;%PATH%;

java -jar apktool.jar d --keep-broken-res "path\to\app.apk"
pause

or just decompile all resources manually while waiting for VTS to be updated to work with apktool 2.0.0b9
[Virtuous Ten Studio] Diamondback:
All fine here, I suspect it's rather something on your end... :cyclops:
[Virtuous Ten Studio] Diamondback:
Okay here's a little update:

First of all sorry for the long absence. I've been involved in a large commercial project totally unrelated to anything Android and unfortunately I had no time for anything but that project.

However, said project is nearing completition and I think I can spend more time on VTS again.

The current version is almost done, maybe another week of work until a nice beta or something.

So you guys can now decide, if there is enough interest I can publish the current version (which has been tested for months from my beta testers but lacks a few little things - like properly importing existing projects ) as an alpha version. Otherwise I'll wait until I am done and will publish it as a beta.

Let me know what you think :)
[Virtuous Ten Studio] Guich:
I think is better wait you're done and publish it as a beta :)

But I can imagine that the currently version is awesome :p
[Virtuous Ten Studio] 2WildFirE:
+1 I think the same

Powered by SkyDragon ROM
[Virtuous Ten Studio] aeroman:
many thanks for your great work and your amazing tool, is really one of the best. :good:

I would definitely be interested in the new version. :cool: ;)

P.S can you please fix with next Versions import & remote app from device?!

Best Regards
[Virtuous Ten Studio] Diamondback:
Yea that's fixed. :)
[Virtuous Ten Studio] aeroman:
great Sir, :good:

I am looking forward to talk to the new version,

whether now or later appear. :) ;)

Best Regards
[Virtuous Ten Studio] c0de_junkie:
Thank you very much!!! I will try this later on today...

I think it would be best to wait a couple weeks for an update, one that is proper instead of releasing a version that may cause issues... Thank you very much for all of your hard work and I very much look forward to the next update...
[Virtuous Ten Studio] Jayrod76:
I agree. As much as I miss using VTS and can't wait to see the changes...I can wait a little longer to make sure it's more stable.

Sent via Blacked out TapaTalk on my Eclipsed Dev X
[Virtuous Ten Studio] jatinrungta:
It is undoubtedly worth the wait :D

btw, do include apktool 2.0b9 and also

I dont know if it is just me but

the deodexer does not seem to work properly :(

Many deodexed apps dont show up in output folder and the app it self (deodexer ) seems to show incorrect status always, (even if it shows 0 running, the other line says deodexing blabla.apk and the progressbar seems to be stuck in the middle) [MENTION=4647967]Guich[/MENTION] [MENTION=536064]aeroman[/MENTION] If you can confirm this :D

Thank You and hats off to you for this great tool :)
[Virtuous Ten Studio] Diamondback:
Yes apktool 2.x b9 will be included as well as 1.5.2.

Can you upload me a set of files that show the described behavior when deodexing?
[Virtuous Ten Studio] jatinrungta:
Are you referring to the logs of vts or the apk(odex) files themselves
[Virtuous Ten Studio] Diamondback:
If you still got the logs, both please. Otherwise just the files is fine too.
[Virtuous Ten Studio] Diamondback:
Okay guys, thanks to [MENTION=704359]fisha21[/MENTION] here's an in-deep look at the all new configurations:

Diving into Configurations
[Virtuous Ten Studio] kermage:
cant wait for the update.. :)
[Virtuous Ten Studio] jatinrungta:
seems it is working now. Sorry

Anyways does the new vts also push apps to priv=app (KK)
[Virtuous Ten Studio] Diamondback:
And thanks to [MENTION=918378]Basil3[/MENTION] here we have a blog post about a few more additions in the latest VTS version.

What's new in VTS 3.4.28

As always, make sure to check the full changelog here:

VTS Changelog

The release is scheduled for tomorrow if all goes right.
[Virtuous Ten Studio] Raymond Ebertt:
Looking forward to it. Thanks mate