Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[FAQ] Frequently asked question concerning VTS

OP Diamondback

31st October 2014, 04:07 PM   |  #1  
Diamondback's Avatar
OP Developer Committee / Senior Moderator / Recognized Developer
Thanks Meter: 6,473
 
4,497 posts
Join Date:Joined: Jan 2010
More
Quote:

How to properly install framework apks and use tags


ApkTool (and therefore VTS) needs framework apks to properly de- & recompile Android resources.
Framework tags are used to differentiate between multiple sets of framework apks.
You are usually going to have one set (ie. multiple apks) per device and base/rom version.
When installing frameworks it's very important to install all frameworks from the same device/rom with the same tag.

Have a look at this tutorial to learn more about installing frameworks with VTS.

Quote:

How to completely reset the VTS layout


VTS has a "Reset layout" button, but sometimes this can't repair all problems with a broken window layout.
To fix such persistent problems, open the settings and untick the "Save dock layout" checkbox.
Now restart VTS, the layout should be reset to the default layout.

You can enable layout saving again.

Quote:

How to manually edit VTS settings


Since VTS 2.6.12 you can easily change these settings with the "Advanced settings" window inside VTS.
Open the settings window and click on the "Advanced" button at the bottom.


VTS stores its settings easily accessible in XML files. They are stored in a folder (normally) located here:
C:\Users\<your user>\Documents\Virtuous Ten Studio\Settings\

You can easily open and edit these settings files, just make sure VTS is closed before doing so.
Note: Some settings only exist after VTS used them for the first time.

Quote:

VTS can't find the Java binary


Make sure to add the location of your Java.exe to your PATH variable and reboot after doing so.
VTS should be able to find your java binary now.

If it still doesn't work, you can manually specify the java path in the VTS settings.

Quote:

Something else went wrong and I need help


Editing apks and other Android related files can be a highly complex task.
There are many possible error sources. If something goes wrong nobody can help you unless you provide some important things: (if applicable)
  1. The VTS logs. Without these it's pretty impossible to troubleshoot problems that occured while using VTS.
    Have a look at this tutorial, it explains you how to use the Log Viewer.
    Make sure all checkboxes on top are checked and copy all the log text from the textbox.
    When asking for help, make sure to include all the text in [CODE]<log text>[/CODE] tags.

  2. A logcat of your device, the packagename (if applicable) and filename of the file you are working on.
    If something goes wrong or doesn't work on the device you are working with, it's absolutely required to get a logcat before asking for help.
    You can use the Logcat viewer of VTS to get a copy of the so called Logcat. It's the internal log of your device and usually helps revealing and solving all kinds of problems occuring on the device.
    As with the VTS logs, please include the Logcat in [CODE]<logcat text>[/CODE] tags.

  3. Your Operating System version (eg. Windows 8, Windows Vista etc)

  4. General information:
    • Can you reproduce the issue?
    • Did you try to restart your computer/your device first?

Feel free to propose me any new entries for this post
12th November 2014, 03:05 AM   |  #2  
Senior Member
Flag Pune, Maharashtra, India
Thanks Meter: 8
 
145 posts
Join Date:Joined: Sep 2013
More
Something is badly messed up..
I used VTS v2.6.12 .. Until then everything was alright.. I used to decompile framework-res.apk, framework.jar, systemui.apk..
I never got any boot loop..
I downloaded and installed the latest version and ..
Whatever projects I made in v2.6.12 .. Were not recompiling.. May be because there was an update to apktool..
I had to make all new projects.. .
SystemUI.apk of my stock ROM is ~2.5mb.. After I decompile and recompile its size is like 5mb .. Why so??
I have to do everything manually ..
It never shows any error while decompiling or compiling..
How can i figure out where the problem is??
12th November 2014, 12:13 PM   |  #3  
Diamondback's Avatar
OP Developer Committee / Senior Moderator / Recognized Developer
Thanks Meter: 6,473
 
4,497 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by rkharat98

Something is badly messed up..
I used VTS v2.6.12 .. Until then everything was alright.. I used to decompile framework-res.apk, framework.jar, systemui.apk..
I never got any boot loop..
I downloaded and installed the latest version and ..
Whatever projects I made in v2.6.12 .. Were not recompiling.. May be because there was an update to apktool..
I had to make all new projects.. .
SystemUI.apk of my stock ROM is ~2.5mb.. After I decompile and recompile its size is like 5mb .. Why so??
I have to do everything manually ..
It never shows any error while decompiling or compiling..
How can i figure out where the problem is??

You made a pretty big jump in versions there, I suspect the changes in the file formats prevented a proper loading of your old files.
Sorry for that, I never expected such large version jumps.

As for the size, in its default configuration VTS builds all binaries with no compression, whereas most binaries come with some compression. You can set the compression level in the settings of the zip module yourself. In any case, the size difference does no harm, you can leave it either way.
The Following User Says Thank You to Diamondback For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes