yashsingh1/xdaforums huggingface dataset:
[Virtuous Ten Studio] Diamondback:
Okay new update coming in with a lot of bugfixes. However, I haven't been working on VTS for quite some time (busy as hell..), so I am not 100% sure everything is as bug free as I want it to be. It looks okay to me, but well, that was never an incredibly useful measurement anyway :p

That's why this is going to be another beta release. Some of the bugfixes are rather critical and need to be pushed out, so I can't afford another week of testing.

As always:

Changelog

Please note: The update is NOT live yet. I'll post again once it is.
[Virtuous Ten Studio] Diamondback:
Okay, the update is live now. You can get it via the built-in updater (make sure to enable beta updates in the settings) or via the regular website.

Have a look at these Screenshots:

They show the new sidebar with its color features. You can hover the single elements (which increases their size) and click them to open the color picker. Changing the color will actually replace it in the text. :cool:
[Virtuous Ten Studio] :
Is there any solution to this? What am I doing wrong?
[Virtuous Ten Studio] bgcngm:
Read this post, it may be the solution to the problem you are facing.
[Virtuous Ten Studio] Diamondback:
Yea probably, one of the bugs fixed in the last update could potentially lead to projects that didn't decompile resources automatically. Make sure the option is checked in the project settings and import your apk again.
[Virtuous Ten Studio] geocine:
Slow on Windows 7

I have just downloaded VTS because I have been working on some smali code. I have a few questions.

1. Each time I type a character on the smali editor the editor pauses for around 20 to 30 seconds before it displays the character. Is it really this slow or do I have to configure something else? I haven't changed any settings and I have successfully loaded a decompiled APK to the solution. I am using Windows 7 64 bit.

2. Do you have a web version of the Smali Help section. May I reproduce this on my web page?
[Virtuous Ten Studio] Diamondback:
1) That's not normal. Which apk/smali file are we talking about? How large is that smali file?

2) Most of the information is from here:

http://www.netmite.com/android/mydroid/dalvik/docs/dalvik-bytecode.html

But no, there is no web version, so you can't use this directly.
[Virtuous Ten Studio] geocine:
I would not be able to mention what this is. but the smali file has 12826 lines of code which loads very fast on notepad++
[Virtuous Ten Studio] Diamondback:
Okay thanks, I have an idea what could cause this but will have to confirm later today.
[Virtuous Ten Studio] jacobmacek:
jelly bean 4.3

I'm assuming 4.3 isnt supported yet? Tried setting up a 4.3 framework tag and decompiling it's settings.apk and neither worked. [MENTION=2295247]Diamondback[/MENTION]
[Virtuous Ten Studio] Diamondback:
There's no reason why it wouldn't work. VTS doesn't need to support API levels, it's independant from these things.

If you post further information about your error (logs!) we might be able to help you ;)
[Virtuous Ten Studio] gharrington:
I am using Windows 8 and I have the same problem. Any idea Diamondback.
[Virtuous Ten Studio] rfgamaral:
I can confirm that it works fine... I've added the "frameworks" folder from my ROM as multiple frameworks (same tag) and was able to successfully decode Settings.apk. I'm having a different problem though... I can't generate Java code from the smali files.

Dunno if the API Level is important in this case but I tried both 17 and 18 (I'm decoding a Settings.apk from a Sense 4.3 ROM) and neither worked. I always get this in the log:

15:17:40.928: [Debug] - SmaliTool.Smali: 'Successfully compiled file.'
15:17:40.928: [Debug] - Dex2Jar.Dex2Jar: 'Dex2Jar args: -Xmx1024m -classpath "C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\jasmin.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dx.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dex-translator.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dex-tools.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dex-reader.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\dex-ir.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\commons-lite.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\commons-cli.jar;C:\Program Files (x86)\Virtuous Ten Studio\External\Dex2Jar\asm-all.jar;" "com.googlecode.dex2jar.tools.Dex2jarCmd" --topological-sort --output "C:\Users\Nazgulled\AppData\Local\Temp\D9D21D\D441EF.jar" "C:\Users\Nazgulled\AppData\Local\Temp\AB4FC8\classes.dex"'
15:17:40.984: [Debug] - Dex2Jar.Dex2Jar: 'Dex2Jar: Error occurred during initialization of VM'
15:17:40.984: [Debug] - Dex2Jar.Dex2Jar: 'Dex2Jar: Could not reserve enough space for object heap'
15:17:40.984: [Debug] - Dex2Jar.Dex2Jar: 'Dex2Jar: Error: Could not create the Java Virtual Machine.'
15:17:40.984: [Debug] - Dex2Jar.Dex2Jar: 'Dex2Jar: Error: A fatal exception has occurred. Program will exit.'
15:17:40.984: [Warning] - Dex2Jar.Dex2Jar: 'Dex2Jar failed, see log for further information.'
15:17:40.987: [Debug] - Dex2Jar.Dex2Jar: 'Exitcode: 1'
15:17:40.987: [Error] - JavaGenerator.GenerateJavaSources: 'Dex2Jar failed, aborting java generation!'
15:17:40.992: [Success] - ApkProjectViewModel.GenerateJavaSources: 'Successfully generated java sources!'

How can I solve this?
[Virtuous Ten Studio] Diamondback:
What are your computer specs? Looks like you don't have enough RAM left to run dex2jar in its default config.
[Virtuous Ten Studio] Diamondback:
Working on it :)
[Virtuous Ten Studio] rfgamaral:
I have 8GBs of RAM. Should be more than enough... :confused:
[Virtuous Ten Studio] Diamondback:
Hm, that's weird...

Googling around leads to more or less two ideas:

Try

reducing

the max heap size for dex2jar in the advanced VTS settings. (Settings -> Advanced -> External settings -> Dex2JarMaxHeapSize, change it maybe to 512 instead of 1024)

Do you have a 32bit JRE installed? (I suppose you are using x64 Windows) If yes, this might be a problem, try a 64bit version instead.
[Virtuous Ten Studio] rfgamaral:
I have both JREs installed. VTS was using the x86, switched to the x64 version and it worked. Thanks :victory:
[Virtuous Ten Studio] Diamondback:
The lag has been fixed and I am just waiting for the final go from my beta testers before publishing the next bug fix version :)

Should be ready within a few days.
[Virtuous Ten Studio] Diamondback:
Hm, sorry for the delay here, totally missed this one. Going to add a "default" value you can change globally via the advanced settings.
[Virtuous Ten Studio] Will_Xda:
What's affected by error code -2 type:4 when decoding image has failed ? Thanks

Sent from my HTC Desire X
[Virtuous Ten Studio] Diamondback:
You can pretty much ignore it. A few m10 images appear to be broken but that's not going to stop you. You just can't edit these. VTS will just use the original version.
[Virtuous Ten Studio] Diamondback:
New update probably coming this evening :) Most important point is obviously the Fixed lag but check the changelog, there are some other new things as well.
[Virtuous Ten Studio] Diamondback:
Okay so here we go. First of all, thanks again to fisha21 for creating the latest "What's new"-article :) (it includes the stuff from the previous beta as well)

Please enjoy: What's new in 2.9.12

Of course, here's also the full changelog.

And last but not least, the usual sentence: You can either use the built in OTA update function or download the full setup here: VTS 2.9.12.10500

Have fun:good:
[Virtuous Ten Studio] Bebida:
Looks great thank you and the team muchly
[Virtuous Ten Studio] Pacattack:
All Apps Icon

Rosie,Sense 4 ... Rosie Apk... rosie_navbar.x10

I changed all this ............

<Container Name="CenterScale" Header="1041605609" IDC="false">

<FxDefaultContainer Header="0x3e15a3e9" Type="0x509429e7">

<Childs>

<Unknown IDC="true" Header="0x2da8231e">00000000</Unknown>

<Unknown IDC="true" Header="0x7c8c61c0">04000080</Unknown>

<Unknown IDC="true" Header="0x6319673a">000000000B0000000000803F0000803F0000803F0B0000000A0000006666663F6666663F0000803F15000000010000003333733F3333733F0000803F16000000430200000000803F0000803F0000803F</Unknown>

</Childs>

</FxDefaultContainer>

</Container>

to this ............

<Float3 Name="CenterScale" Header="239748898" IDC="true">1.4:1.4:1</Float3>

This changes the size of the the "All Apps" icon 1.4:1.4:1 ....

(0.9:0.9:1) for the original size :victory:

PS I think the new VTS is 4 times slower compiling :(
[Virtuous Ten Studio] Lextermina:
Hello, I can not choose the apktool version in parameters of VTS. Could decompiler.

---------- Post added at 08:14 AM ---------- Previous post was at 07:57 AM ----------

Ok have found! i've delete Settings folder on Document and it work now.
[Virtuous Ten Studio] gharrington:
[MENTION=2295247]Diamondback[/MENTION] Best update so far in my opinion mate everything works great now thanks.
[Virtuous Ten Studio] Diamondback:
Haha, interesting theme :)

Can you please elaborate why you think it's slower? I didn't really change anything in that regard. Some things that might affect the Import/Build performance heavily:

What kind of disk are you using? HDD? SSD? SSDs are WAY faster with VTS because I touch/edit/read/write a lot of small files at nearly the same time

Are you doing any background tasks with IO activity? Backups? Defragmentation? Virus scan? Especially HDDs get really slow with multiple processes accessing them at the same time

Did you just do a fresh restart? After a restart it usually takes quite a while longer for the first build because of Windows' caching behavior
[Virtuous Ten Studio] Pacattack:
Pac Animated battery icon

Ty for a big reply, from a small PS :o

First, I must say, is that VTS is Brilliant :) (also saves alot of messing around with multi programs) :)

My computer has not change, since the last 3 releases , so you can rule that out...

(AMD Black 8 core, x64 W7, 2xSSD, etc etc :) = very multi tasking :))

My problem ? It seems lot slower, when its compiling a large M10 images part (even if the images have not been changed), ie fusion/skins etc ..

Interesting theme !! :laugh::laugh: I am finally got round doing some FUN stuff for myself, instead of the usual thing, of doing mods for others :laugh::laugh:
[Virtuous Ten Studio] Diamondback:
Okay, can you please post the COMPLETE log of such a slow build here? (Use pastebin or hide tags) Also when doing this build, don't change any files before that.
[Virtuous Ten Studio] Pacattack:
Pac Animated battery icon

I have PM'ed you, hope its what you want :)
[Virtuous Ten Studio] Diamondback:
Just a little heads-up, I fixed the long m10 compile times, OTA is already out :)
[Virtuous Ten Studio] Pacattack:
It's Spot-On :) :)
[Virtuous Ten Studio] Mr Hofs:
Awesome piece of software ! Really appreciate the level of development. I made a custom banner in the aroma background for my theme. Hope you guys like it ?
[Virtuous Ten Studio] Diamondback:
That's very nice indeed :)
[Virtuous Ten Studio] DSA:
cannot find any issues with latest version

No error messages anymore either of any kind

New options are great...program is really becoming THE complete product

imo...near enough perfect release, thank DB and team
[Virtuous Ten Studio] Pacattack:
Notes

Still works great :)

If you use the default Fusion M10(sense 3.6/4), in your custom skin.

You will be able change more items, ie Clocks/All_pp/Rings etc..:victory:
[Virtuous Ten Studio] Mr Hofs:
Reporting a thingy i came across :

When i open an apk file straight from dropbox and decompile in vts it's all good even recompiling it.

The problem is when i open for instance the styles.xml file from the values folder, when i scroll it the vts program hangs and become unresponsive. Copying the same apk to the drive and then do the same i have no problems.

Thanks for reading.
[Virtuous Ten Studio] Diamondback:
Sounds like some sort of file lock issue with dropbox, I'll see if I can reproduce this, but I won't promise there's a way to actually fix the problem. :)
[Virtuous Ten Studio] Mr Hofs:
No problem. I can easily copy the file first now i know the problem in my case, if anyone else comes across this they might have an answer :thumbup:
[Virtuous Ten Studio] lolet:
Two things I encountered:

- Importing apks directly from device: I didn't have symlinked 'find' from busybox, so it failed to find any apk on device. I had to manually create link, and then it worked flawlessly.

- Signing apks: I want to sign apk using password protected key, but there isn't an option to type key phrase.
[Virtuous Ten Studio] Diamondback:
Yea I'm indeed using find directly, will have a look at if calling busybody instead will help :)

Is there any way to determine if a key file is protected before I sign? Or is it possible to pass an empty password if there is none set?
[Virtuous Ten Studio] Diamondback:
This one might be of interest for some of you :

I've made some changes to how solutions /projects are loaded and this leads to a pretty significant loading time improvement of about 20x (!!) depending on your use case.

My real world test solution here (thanks to fisha21) with 100 projects jumped from about 100-120 seconds to 5-6 seconds loading time.

Obviously the improvement won't be as visible with smaller solutions but it's still noticeable :)
[Virtuous Ten Studio] Diamondback:
Just a little heads-up, I have released the VTS logcat viewer as an external standalone tool as well:

Advanced Logcat Viewer

It's technically the same thing as within VTS (just looks a bit different until the next VTS update),

but is built to be usable without the rest of VTS for those people that don't want or need the additional features VTS offers.

I am going to do this with two other tools as well:

Advanced Deodexer Tool (already available in VTS)

Advanced Screenshot Creator (coming to VTS with the next update)

Spread the word, I'm trying to improve the awareness of VTS in the public :)
[Virtuous Ten Studio] Dean1650:
I had a total system crash, unrecoverable I might add. After a total rebuild of my OS, I finally got to installing VTS. I had only taken 1 update since Feb. So this was a clean install. With the help of the unbeleivable error messages in the logs during instal, it took all of 45 minutes to complete, including a decompile, changes, build, and push to test working. Most of the 45 minutes was spent on my Windows rebuild. The logs pointed me right to the problems. I am TOTALLY impressed with the new release, all the improvements, and the ease of install. You have done a great job and have a great product. Hats off to you.

dean1650 from xda premium
[Virtuous Ten Studio] HandyBesitzer:
Hi,

i have some trouble compiling the phone.apk.

here is an image from the log:

i simply importet the apk set as apk project, changed 3 text colors, compiled, and than the errors. i don't know what this all mean.
[Virtuous Ten Studio] Mr Hofs:
Thats a problem of the phone.apk file, not the vts program afaik. You need fixed values files to be able to recompile it. Just like the older resources.apk file from older android versions
[Virtuous Ten Studio] HandyBesitzer:
thank you for quik replay.

I really don't know what you mean with fixed values. I mean it runs on my desire, so why are these errors?? How could the devs compile if i get errors??

==EDIT==

fixed it

Thank you for help
[Virtuous Ten Studio] Mr Hofs:
Banner added :)

http://xdaforums.com/showthread.php?p=46198364
[Virtuous Ten Studio] Diamondback:
Thanks, OP updated :)
[Virtuous Ten Studio] lolet:
Unfortunately if you're using original SignApk.jar you can't pass passphrase as an argument ;/ If the key is password protected it will prompt a request.If you'd like to add this feature I'd suggest to edit SignApk.java and add password as an arg instead of prompt. Here's source of it:

https://github.com/android/platform_build/blob/master/tools/signapk/SignApk.java
[Virtuous Ten Studio] Diamondback:
Okay so the next version will ask you for a password if signapk itself asks for one. :)
[Virtuous Ten Studio] Robsworth:
Can i modify the system apps and i cant understand the term viewbyid accompanied by a string or numbers . can any one post a nice guide on java for android tweaking
[Virtuous Ten Studio] stalonn:
Hello, i need sum help, what i wanna do is editing an album apk , i opened the app with this software but i cant find the target file in the containings, in fact i dont really know what to llok at, i seek for a targetting file to sdcard/etc... anyone have an idea please? i m plan,ng to do this for long time..
[Virtuous Ten Studio] Diamondback:
That's a method used to get a View (hence the name) in code from a public ID in the file values/public.xml

For guides or tutorials I'd propose to ask Google ;)

Maybe try to explain a bit more in detail what you are trying to do...
[Virtuous Ten Studio] stalonn:
hey Diamondback u r the one i wanted to ask this at first but i didnt think i could find u, but u found me , thx for reply, what i wanna do is makin an album app, i took xperia z album app to work on it..what i wanna do is to make the app to look on a specific folder to get pic files , but not the DCIM folder, u have any specific advice please?
[Virtuous Ten Studio] Stephen:
Does this mean we will be able to edit sense 3.6 m10 files :D
[Virtuous Ten Studio] Pneuma1985:
yup thats exactly what it means...:D
[Virtuous Ten Studio] Aternus:
@OP

Perhaps you'd like to implement the APK translation as well? I've made a detailed thread with all the requirements from a translator point of view here:

http://xdaforums.com/showthread.php?t=1666630

I hope these suggestions can be implemented in the IDE :)
[Virtuous Ten Studio] djsnake210:
Hi There!

This seems like a really bad ass program, but for some reason I just can't seem to get it to work on the fusion.apk and lockscreen_base.apk files that I would like to edit. These files are Sense 3.0 from the Thunderbolt MR4 release. When I use Import Local File to add the fusion.apk file I get the following error in the log:

Modul: APKProejctViewModel.AnalyzeAdditionalData

Text: Can't find public.xml, path: C:\Users\jkharris.2020CORP\Document\Virtuous Ten Studio\Projects\test\testing\Data\res\values\public.xml

Then it shows the assets and smali folders which I can expand. The assets shows the BlueSky, Burgundy, Default, and stylesheet subfolders along with drawable under each of those, but there are no M10 files showing and no resources (images) showing.

When I load the idlescreen_base file I get an "APKTool failed, ExitCode: 1" error with these lines in the Log:

APKTool: Can't find framework resources for package of id: 2. You must install proper frameworkd files, see project website for more info.

APKTool failed, ExitCode: 1

Decompiling apk failed!

Can't find public.xml, path: C:\Users\jkharris.2020CORP\Document\Virtuous Ten Studio\Projects\test\testing\Data\res\values\public.xml

I have the com.htc.resources.apk and framework-res.apk files from the same ROM listed under my APKTool Frameworks.

Is there something that I am doing wrong or are these known/unknown compatibility issues? If you would like a copy of the two files just let me know and I'll throw them on my hosting and post a link.

I appreciate and welcome any guidance and/or advice.
[Virtuous Ten Studio] Dunc001:
Have you installed the framework files for the ROM you're working from (framework-res, com.htc.resources)? If not then you need to do so. Then before you decompile you need to set the Preferences for each project to select the required set of frameworks. Also be aware that there are several versions of apktool around and no one of them does all apks. IIRC VTS installs with three versions so also in Preferences you can try selecting a different apktool version.
[Virtuous Ten Studio] djsnake210:
Just to make sure i understand... by installed do you mean that they are listed in the APKTool>Frameworks list? if so then yeah i have them in there. is there maybe something else that I need to do with them from there?

Also... I see two different versions of apktool in the External>ApkTool folder. I tried them both and got the same result both times.

---------- Post added at 11:15 AM ---------- Previous post was at 11:06 AM ----------

Also want to clarify that the two versions of ApkTool are apktool1.4.3.jar and apktool1.4.2.31.jar.

Thanks!
[Virtuous Ten Studio] Jam182:
to install frameworks, from terminal:

apktool if path/to/the/framework.apk

and you can optionally add a tag.

just type apktool (hit enter) and you'll see the usage options ;)
[Virtuous Ten Studio] djsnake210:
In fear of sounding totally dumb.... by terminal do you mean a command prompt or a terminal window within VTS?
[Virtuous Ten Studio] Jam182:
yes, command prompt.

sorry, my bad I forgot it's called differently on windows. :o
[Virtuous Ten Studio] djsnake210:
LOL... no prob... I figured as much. I have successfully added the two files (com.htc.resources.apk and framework.res.apk) but I'm still getting the same results. I have attached a screenshot of the results (I hope it doesn't get shrunk too much to be useful). I hope this can help shed light on what I may be doing wrong.

Thanks again!
[Virtuous Ten Studio] Dunc001:
You can do this all within vts and can add as many sets of framework files as you like by using unique tags for each set (I use ROM name and version). Then you can jump between projects for different ROMs without having to reinstall frameworks each time. For apktool search for 'apktool bad magic' and try that version.
[Virtuous Ten Studio] djsnake210:
I received the same error when using the Original APKTool found here:

http://xdaforums.com/showthread.php?t=1558171

BTW I have read through this thread thoroughly and read through the guide that is also posted along with anything else that showed up within the first page or so in google... I didn't want you guys to think I just tried a couple times and couldn't get it... i've been bustin my ass tryin to get this to work... lol.

Anywho... could you please verify that my steps are correct?

1. File > New Project

- Under Project I set Project and Solution Name as test_TSFB

- Under Apk-Tool I set Tool Path as ..\bad magic\apktool.jar

- I leave everything else blank then click OK

2. Right-Click on the Project test_TSFB and go to Properties

- Under ApkTool > Frameworks I click Add framework and choose:

* com.htc.resources.apk

* framework-res.apk

* NOTE: I now have two frameworks with Tag of "tag", names 1-tag.apk, and 2-tag.apk

- Under Projects > test_TSFB in Import section I choose tag from Framework tag the click OK

3. Right-Click on the Project test_TSFB and go to Import Local File

4. Choose my fusion.apk file and click Open

That's exactly what I do to get the screenshot shown above with the error and no files under the folder structure.

---------- Post added at 07:27 PM ---------- Previous post was at 07:25 PM ----------

Do you think I could be missing a framework file that is needed to decode this fusion.apk file? I thought that com.htc.resources.apk and framework-res.apk were all that I would need, but have there been instances where more framework files are needed?

---------- Post added at 08:05 PM ---------- Previous post was at 07:27 PM ----------

The strange part when I look in the framework-res.apk file I see the public.xml file in the right path that's listed.... and I have that framework-res.apk installed under ApkTool > Frameworks, so it should find that public.xml file.

But then again I'm not really sure if that's the reason for not being able to see any of the files.
[Virtuous Ten Studio] Diamondback:
Wow, activity exploded here :D

@Topic: If I am reading this correctly then you are trying to decompile m10 files. However, as stated this is not yet possible.

The warning you get about public.xml (yes that's only a warning, no error) is because you are decompiling an apk which doesn't contain this file (fusion.apk).

Not exactly the wanted behavior, but nothing too bad either.

You will have to wait a few more weeks until I am done with implementing the m10 stuff in VTS :)