yashsingh1/xdaforums huggingface dataset:
[Virtuous Ten Studio] ithakaner:
@Diamondback Thanks for your fast answer, awaiting the first docs for the variables. :highfive:

Indeed, reading my assumptions for the variable value now - this is complete nonsense! I already identified the variable name

NewTmpPath

and later called this a simple

folder

... thanks! :silly:

Right at the moment, I miss the ability to define a name for the compiled binary, but this might be also done with a small batch using the command module in the configuration.

Also a direct call (somewhere in the UI) of the app JD (by Emmanuel Dupuy) for the Java sources (.jar-files) would be nice.

I'll recall my workflow, maybe I'll find some more... :fingers-crossed:
[Virtuous Ten Studio] Diamondback:
So here's a quick overview of the default variables so far:

public static class DefaultVariables
{
public const string DataPath = "$(DataDirectory)"; //The 'Data' dir of a project
public const string BinaryPath = "$(BinaryDirectory)"; //Binary dir
public const string BackupPath = "$(BackupDirectory)"; //Backup dir
public const string MiscPath = "$(MiscDirectory)"; //Misc dir

public const string ImportBinaryPath = "$(ImportBinaryPath)"; //always holds the path to the binary to import (ie. only important for the import script)

public const string BinaryName = "$(BinaryName)"; //Holds the binary name from the advanced project settings

public const string NewTmpPath = "$(NewTmpPath())"; //returns a new, unique tmp path

public const string DefaultSmaliArgs = "$(DefaultSmaliArgs)"; //All adjustable in the advanced VTS settings
public const string DefaultBakSmaliArgs = "$(DefaultBakSmaliArgs)";
public const string DefaultApkToolCompileArgs = "$(DefaultApkToolCompileArgs)";
public const string DefaultApkToolDecompileArgs = "$(DefaultApkToolDecompileArgs)";
public const string DefaultADBArgs = "$(DefaultADBArgs)";
}

The DefaultXYZArgs are defined in the Advanced VTS settings btw.

The binary name can be adjusted in the advanced project settings, by default it's set to the name from the file you imported, but you can change to anything else. :)

More to come later.
[Virtuous Ten Studio] Diamondback:
So the final release of VTS 3.x is nearing completion, the variable documentation will be build into the script editor, so I won't post it here.

I've made a few refinements to the script editing process as well as to the default script configurations shipped with VTS.

Users of the Beta may have to do a little task after updating to the final version to get the updated default configs. (Nothing complex)

If there are any further requests the next few hours would be a good time to ask ;)
[Virtuous Ten Studio] joni2012:
Hello no tutorials for HTC one?please, regards and thank
[Virtuous Ten Studio] Diamondback:
What kind of tutorial are you expecting? The HTC One doesn't need any special tutorial since HTC isn't using their M10 system anymore.
[Virtuous Ten Studio] Diamondback:
From now on VTS will have a new folder in the installation director called 'SDK'.

At the moment it includes a Visual Studio template for creating custom plugins and a little readme file explaining what to do with that template.

If you are a C# / .NET developer you can easily write your own plugin with the next version :) (You already can with the beta, but now I added a template for easier use)
[Virtuous Ten Studio] joni2012:
OK thanks I'll look jiji
[Virtuous Ten Studio] Marília de Oliveira:
Hi

Which version that works with 4.1, 4.2, 4.3? :good:
[Virtuous Ten Studio] asdfasdfvful:
android version? Should work with all. I've themed apps for kitkat too
[Virtuous Ten Studio] Diamondback:
Nice :) with my "solution"?
[Virtuous Ten Studio] Stephen:
No I just built it the the the one x apktool.jar. Seems to work well. Some of the text in the settings.apk is american spelling rather than UK. I like to be able to change it.

The apktool I used is a couple of posts above!
[Virtuous Ten Studio] amidabuddha:
multiple resources...

Hi

I have an issue too, will be glad if someone can give an advice.

I am trying to decompile HTCDialer from both Sense 4 and Sense 4a. Tried various apktools and it gives an error about "multiple or missing arsc"

After using Apk Analyzer (quite handy tool, thanks to the Sony dev relations for sharing) it states that the apk needs resources (2) com.htc.resources.apk and (127) itself! (com.htc.dialer)

Maybe someone faced the same issue and has a resolution for it?

Thank you in advance
[Virtuous Ten Studio] Diamondback:
A little teaser for the next version :)

VTS Changelog
[Virtuous Ten Studio] Pneuma1985:
Hey diamonback ? is there an eta on the next version?
[Virtuous Ten Studio] Diamondback:
There are never any ETAs. Everything is currently under heavy testing to make sure it works as intended.

Sent from my HTC One X
[Virtuous Ten Studio] Pneuma1985:
Cool thanks man just wondering...
[Virtuous Ten Studio] Pneuma1985:
Well 127 is contacts as a resource ive tried but I get the same error and to my knowledge there is no fix as of yet...
[Virtuous Ten Studio] yusuv:
i got always failed building apk..
[Virtuous Ten Studio] Diamondback:
Do you mind explaining a bit more? Maybe even post the logs? Without that information nobody can help you ;)
[Virtuous Ten Studio] yusuv:
first : no colors xml found..

2 : main cause is com.brut.brutex or something ..

will look again when on pc..
[Virtuous Ten Studio] yusuv:
sorry double post..
[Virtuous Ten Studio] Diamondback:
Why does everyone think that yellow messages are errors ? :D They are warnings. Just warnings :D

I guess I'll have to hide them ;)

But please get me the complete log via the log viewer (Extras-menu)
[Virtuous Ten Studio] yusuv:
its red n orange..

yess i'll update this post..
[Virtuous Ten Studio] zalzondabuzz:
Huy.. I try to decompiling SystemUI.apk on my phone and build again.. and push all to my phone,,, but nothing change on it..
[Virtuous Ten Studio] Diamondback:
If there are no errors then you probably did something wrong while editing... Some the vts log and i can tell you more.

Sent from my HTC One X
[Virtuous Ten Studio] zalzondabuzz:
I just change some drawable ldpi on it...

When I push to my phone.. there's nothings change...

Can you give me some detail tutorial to pull and push apk using virtuous??

In case . Im newbie guys...:p:rolleyes:

life for learn..!!--
[Virtuous Ten Studio] Diamondback:
Are you sure the LDPI folder actually gets used? Android selects the folder based on your hardware (mainly the ppi).

The app might use another folder like "HDPI" or "MDPI".
[Virtuous Ten Studio] zhp pilot:
Listing what phone you use would help. There are not many phones out there that use ldpi. The majority of phones use hdpi.
[Virtuous Ten Studio] Diablo67:
Kinda looks like the Eclipse interface,nice app,thanks.
[Virtuous Ten Studio] Marília de Oliveira:
I installed the framework-res.apk and more SemcGenericUxpRes.apk gives error when decompiling ... What could it be? :crying:
[Virtuous Ten Studio] erikalin:
Install all of your framework files?
[Virtuous Ten Studio] Marília de Oliveira:
How so? :silly:

I took some pictures for you to see, are installed and also has the error log !!
[Virtuous Ten Studio] dmonium:
issues

Hi

I have been trying to modify some apk for HTC ONE 5.11.401.10 ROM but I got some errors

Firstly I installed the frameworks and the application says that everything is well

but, the Logs shows an error

then, I created a "New Solution" for Prism e.g. and the application says that everything is well too, but in the "Solution Explorer" window appears a folder with Unknown name

then, I recompiled the apk immediately without change anything, but I got errors

Please could you help me with this?

or tell me, How can I decompile and compile this ROM?

Thanks so much

I'm using Windows 8.1 and with the previous version, I may decompile and recompile very well others Roms and with this new version, I cannot do anything
[Virtuous Ten Studio] Haeretik:
Normaly i dont update if a porgram is working fine. But today i thought, why not, lets update VTS.

And now i can not Build any project anymore. It just do nothing...
[Virtuous Ten Studio] Diamondback:
Hey,

did you select a configuration for your project?

The old projects aren't compatible anymore with the new VTS version, you should have seen a dialog asking you to select a configuration for your porjects upon loading them for the first time.
[Virtuous Ten Studio] Raymond Ebertt:
It would be easier to help if it were in English. It could be the pngs in the apk before it gets decompiled. Try opening the apk and take a look st the drawable folders. If you have broken images you'll need to replace them. Most can be found in the resources apk.
[Virtuous Ten Studio] Haeretik:
yes, i seleced "Advanced theming" because it is a CyanogenMod Theme.
[Virtuous Ten Studio] Diamondback:
Okay, in this case, please give me the log of failed build. In the "Help" tab is a button to upload the log directly to pastebin.
[Virtuous Ten Studio] JBHawaii:
Build is 2x the size of original

[MENTION=1336801]Daimondback[/MENTION],

I having an issue when rebuilding .apk(s) .jar(s) - the file size of the rebuilt are 2x the size as the original... Often I'm only editing 1 or 2 lines of code and when I rebuild the project the file sizes are ridiculous....

I'm sure it's a setting I'm overlooking but maybe you could please shed some light on that. I'm quite new to the dev scene for android but have a programming background so it will only get better for me with more practice and projects.

Thanks,

JBHawaii
[Virtuous Ten Studio] Diamondback:
That's because VTS doesn't compress the built apks by default. In the new beta you can adjust this in the zip module settings of the build script. :)
[Virtuous Ten Studio] JBHawaii:
Is there a setting that I can change with the current version 3.4.28.14000? or is this not yet available?
[Virtuous Ten Studio] Diamondback:
That's the "new" beta I am talking about :)
[Virtuous Ten Studio] JBHawaii:
Alright well I guess I can deal with it until then...
[Virtuous Ten Studio] Diamondback:
No you missunderstood me. Your current version already supports this.
[Virtuous Ten Studio] Haeretik:
http://pastebin.com/BdU8c29g

here it is :) I hope we can solve this problem ^^
[Virtuous Ten Studio] Diamondback:
[Error] - TenProjectViewModel.BuildProject: 'No binary name specified, can't build project. Please specify a binary name in the project settings.'

There you go. Are we talking about an upgraded project here? Or did you create it from scratch?
[Virtuous Ten Studio] Marília de Oliveira:
I can not use this tool! help please :crying:
[Virtuous Ten Studio] DSA:
We cannot help without information about your problem, my crystal ball is at the repair shop
[Virtuous Ten Studio] Lordomn:
Hello I want to say that I lime the new changes that have been implemented but I just decompiled my android.policy.jar after a few changes being made I try to recompile it and I get this

Essential modules" assemble smali files failed"
[Virtuous Ten Studio] naheel azawy:
I tried that, but didn't worked :(

please help
[Virtuous Ten Studio] Onepagebook:
OK, nice job always on vts!!

but the neweer 3.42 and 3.60 base,

I have the problem for any apk files after compiled file, it always missing "class.dex part,

please see attached :)
[Virtuous Ten Studio] Onepagebook:
try to rename the apktool with version number to just apktool.jar, and problem might solve

or reinstall java

you need to download from this and install again even though you have x64 or x86 version installed already

http://www.java.com/en/download/chrome.jsp
[Virtuous Ten Studio] freak2431:
i can't start a project i select everything like in the tutorial and it still wont let me start a project
[Virtuous Ten Studio] Dean1650:
I have been away for 6 months or so and decided to get back to mods and themes. Took the upgrade..nice work. I can't say enough good about the new release (it was great before). I am glad for the changes and enhancements. Great Job!! I haven't worked on Sense ROMs for a long time, but was able to pull the frameworks, pull systemUI, and decompile/recompile with changes. I pushed sysui back and everything worked. VTS continues to amaze me. I am glad to be back using this great tool.

from dean1650
[Virtuous Ten Studio] naheel azawy:
renaming the apktool jar didn't worked, but installing java again worked :good:

thanks :good::good::good:
[Virtuous Ten Studio] Onepagebook:
alright, glad to help!! :)
[Virtuous Ten Studio] Marília de Oliveira:
Can anyone help me use this tool? I could not use it help please :'(
[Virtuous Ten Studio] Dean1650:
I think you need to be a little more specific in your question.

from dean1650
[Virtuous Ten Studio] Marília de Oliveira:
I have a xperia sp with Jb 4.3 unable to install the framework-res.apk nor semcgenericuxp'll show you the pictures of the error :mad: I can not decompile or build anything with this tool, I currently use the Advanced ApkTool v2.0.0 By BDFreak to make my edits
[Virtuous Ten Studio] Dean1650:
Not familiar with Xperia but looks like there are some frameworks missing that you haven't installed. Perhaps someone could help that has Xperia experience

from dean1650
[Virtuous Ten Studio] Marília de Oliveira:
Okay thanks ?
[Virtuous Ten Studio] GadgetFreak:
I've been using VTS for quite some time, but I have now run into an error I can't make heads or tails of. The tool is not decompiling files for. Here is the log fromthe error it gave me. Thanks in advnce to anyone that can give me soe guidance!

15:25:50.661: [Error] - UnzipModule.ExecuteInternal: 'Unzipping file failed'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: 'C:\Users\Greg\Desktop\com.speedsoftware.rootexplorer.apk is not a valid zip file'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' at Ionic.Zip.ZipFile..ctor(String fileName)'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' at VTS.Logic.TenSolution.TenProject.ScriptSystem.Modules.Import.UnzipModule.ExecuteInternal(AsyncTask scriptTask)'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: 'Inner Exception:'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' ZipEntry::ReadHeader(): Bad signature (0x00088B1F) at position 0x00000000'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' at Ionic.Zip.ZipEntry.ReadHeader(ZipEntry ze, Encoding defaultEncoding)'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' at Ionic.Zip.ZipEntry.ReadEntry(ZipContainer zc, Boolean first)'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' at Ionic.Zip.ZipFile.ReadIntoInstance_Orig(ZipFile zf)'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' at Ionic.Zip.ZipFile._InitInstance(String zipFileName, TextWriter statusMessageWriter)'
15:25:50.661: [Error] - UnzipModule.ExecuteInternal: ' at Ionic.Zip.ZipFile..ctor(String fileName)'
15:25:50.663: [Error] - Script.ExecuteScript: 'Executing com.speedsoftware.rootexplorer -> Unzip file failed!'
15:25:50.663: [Error] - Script.ExecuteScript: 'Failed module is essential, aborting script execution!'
[Virtuous Ten Studio] Dean1650:
I would pull the apk without using VTS and try to unzip. It may not be a good file for unzip.

from dean1650
[Virtuous Ten Studio] slobo2712:
Hi,can someone tell me is it possibe to downgrade api level of some app in this,I want to try downgrade api from kk to jb? Tnx in advance
[Virtuous Ten Studio] bitemeoftn:
Hello, I'm trying to use this for theming. I've never done any sort of theming before so I've been following tutorials. Unfortunately I can't get past step 1. I have the latest JDK installed and a theme I'm importing to use as a template. I get all the way to the end of importing the file, but I can't push the finish button to get started. I'm sure it's something painfully obvious that I'm missing, but wondered if I could get a quick suggestion on what I'm doing or not doing wrong. Thanks in advance!

EDIT: I was right (PAINFULLY OBVIOUS). I didn't put a solution name in. Hopefully I get my head out of my a** or this theming thing is going to stop before it starts lol.
[Virtuous Ten Studio] TheStrix:
Where can i find the builded/compiled apk??:mad:
[Virtuous Ten Studio] DSA:
In the relevant project folder
[Virtuous Ten Studio] Sammy_052:
Hi Diamondback, love your work..

Still in the process of learning and the VTS website is a great source. Although some links are broken when either accessed from the application and from the xda forums. The link to tutorials is one such example.

The main reason I'm here though is, Can I ask? Have you considered making a Linux version of this? More like for Ubuntu to be specific..
[Virtuous Ten Studio] coal686:
Last time it was asked, he said not possible. http://xdaforums.com/showthread.php?p=52978696&highlight=linux#post52978696
[Virtuous Ten Studio] Sammy_052:
Thanks coal686.. Now i know the reason.. the software was developed using visual studio I believe with sources integrated from various sources that are based on visual studio, hence the port isn't an option as of now. Switching back and forth to windows just for Virtuous Studio is a bummer. Maybe a VM would help. Let me see.. :rolleyes:

Thanks for the pointer though.. :good:
[Virtuous Ten Studio] access9:
Have you tried running it under wine? I have not but it might be worth a shot (no pun intended).
[Virtuous Ten Studio] Dean1650:
I tried that some time ago with Linux Mint 15 and got buried with problems. I could never get it working. I went with a dual boot setup after spending days.

from dean1650
[Virtuous Ten Studio] Sammy_052:
Exactly.. as it was mentioned to me, in the post at "http://xdaforums.com/showthread.php?p=52978696&highlight=linux#post52978696"

he has mentioned extensive use of dotnet and WPF utilities.. in the version of dotnet that comes with Wine, there is a lack of WPF for which MS isnt releasing the sources. Hence windows is a must here. I believe the application uses sources for other functionality like the xml and the png readers based on dotnet and WPF explicitly. Hence the issue. There isn't much we can do about it either. But is a very tool indeed.

Hi [MENTION=2295247]Diamondback[/MENTION], love your app. specially the verbose log viewer. I'd like to ask if its possible to add some functionality. Like,

1> after we've made some script edits and about to compile it to form the apk, is it possible to run only an individual script to check for errors before compiling the entire package and then stumbling upon the errors? that would save a lot of time.

2> and real time updation of "right click to "jump to resource file". Example, i've added some scripting of my own to strings xml found and have placed holders for the same in device info xml. now, in order to get it to check if it properly links to source file or not, I'd have to build it, then again, come back and decompile the apk and check if its linked proper. however, the other pre modification links to original files work great.

3> including draw 9 patch into the application to make .9.pngs without the use of the actual sdk.

everything else works fantabalous. Thanks for this great work.. Kudos.
[Virtuous Ten Studio] kermage:
Will there ever be chance for VTS to support MTK images?

It's been a while, I was hoping that I can do most of my work in one software.
[Virtuous Ten Studio] Pankaj Rai:
Getting error script. ExcuteScript
[Virtuous Ten Studio] ajaichemmanam:
[MENTION=2295247]Diamondback[/MENTION] Sir,I Am Having Trouble With An Apk Package. Its Having Some Unknown Folder Which Contain Some Smali Files in it when using apktool version 2.0. When Using Apktool 1.5.6 (Selecting Custom Apktool), The Problem is fixed and the apk decompiles normally. but at the time of compilation, error occurs even if i haven't edited anything (Just Building the apk after a decompilation). Can Anyone Help me with it?:confused:
[Virtuous Ten Studio] mastaan:
apktool version

Hi. Have you recompiled your apk with apktool version 1.5.6?
[Virtuous Ten Studio] iRhyiku:
Hey can anyone explain to me why I cant edit anything without it breaking (sometimes nothing)

I added the framework by pressing multiple frameworks via remote to settings-external tools-apktool

Created a new project using remote file SytemUI.apk

Using Advanced Editing

FrameworkTag the one I created earlier

Using newest APKToolType

APILevel 4.2.2 JellyBean

Then after I do nothing, right click on the soloution, press build and then push (no errors so far)

Check my phone and SystemUI crashes constantly after rebooting..

In have done no modding yet, can anyone help me here? thanks.

EDIT:

I notice it has the wrong permissions in Root Exporer, so I change them and it still crashes.

EDIT2:

I have included the SystemUI.apk
[Virtuous Ten Studio] tdunham:
Before pushing, are you first inserting the stock androidmanifest.xml and meta-inf folder back into the re-compiled apk? If you don't, it will break the stock signature and the apk will force close (or not appear at all) if the signature doesn't match.

Edit: And to make sure its not one of your edits, can you recompile stock systemui and get it working with no changes?

Also, logcat is very helpful as a troubleshooting tool for errors.
[Virtuous Ten Studio] iRhyiku:
Ah didn't realise I had to do it manually, thought I remember'd it doing it automatically on an old version.. not a problem though :)

Yeah thats what I did, I did it to make sure it was all working before i started editing..
[Virtuous Ten Studio] ajaichemmanam:
Yes, As Said Earlier, it shows error even if i haven't changed anything and won't compile
[Virtuous Ten Studio] mastaan:
Hi @ajaichemmanam

in your post you clear that you decompiled with 1.5.6 release, but not if you have recompiled with 1.5.6 release. I say this because I had the same problem :)
[Virtuous Ten Studio] ajaichemmanam:
Sorry if I Confused You with my post. Here I will make it clear... I am taking an apk and trying to decompile and recompile without any changes, okay?

Decompiling Apk using apktool 2.0 b9 version, decompiles successfully-> will have an unknown folder with some smalies-> Can't recompile

Decompiling using apktool 1.5.6 version, decompiles successfully-> Doesn't have unknown folder->Still Can't recompile, showing errors (missing some files)
[Virtuous Ten Studio] aukhan:
Have a look at this tutorial to learn more about installing frameworks with VTS.

This is broken please fix it.
[Virtuous Ten Studio] Diamondback:
Done, thanks for letting me know :)
[Virtuous Ten Studio] aukhan:
Not Found

It looks like nothing was found at this location. Maybe try a search?

still same error!
[Virtuous Ten Studio] Diamondback:
Works here. Try to refresh the page or clear your cache.
[Virtuous Ten Studio] kermage:
Tried it here. Still broken :D
[Virtuous Ten Studio] Diamondback:
Can't really help you then... :( The link in the third post points to this location: http://virtuous-ten-studio.com/get-started-how-to-setup-vts//
[Virtuous Ten Studio] Sahaab:
i get a cant find any smali binary error

log: http://pastebin.com/3nZpqcAT

Edit: fixed, it seems the installer got 2 apktool jars, which caused it to malfunction

Edit 2 : the problem i fixed seemed to be for importing framework, and didnt affect the main problem

Edit 3 : fixed, seems 2 baksmali and smali jars as well.... :p

Edit 4 : well, while i was closing the logs and stuff it got stuck, hence i rebooted it, and now back to step 1 :p, this is hard stuff XD http://pastebin.com/G1nyFXXW stuck at apktool binary cant find

Edit 5 : all problem was from adb.exe running in background :-/ (it auto runs and didnt see) anywayz maybe you should add a warning or something for this when u start app?
[Virtuous Ten Studio] Diamondback:
Good news:

As some of you might have noticed, VTS has now its own forum: http://xdaforums.com/apps/virtuous-ten-studio

This means you guys can now create custom support / request / whatever threads in this forum :)