yashsingh1/xdaforums huggingface dataset:
[Virtuous Ten Studio] M4ST3R-V:
Error

Hi [MENTION=2295247]Diamondback[/MENTION], I am getting an error starting up with a new project of decompiling settings.apk. I have given the path to framework-res from the general settings. But While building the solution I am getting this error. Any luck to know why ?

13:22:18.579: [Error] - ApkTool.CompileApk: 'ApkTool: Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml'
13:22:18.579: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.readMetaFile(Androlib.java:164)'
13:22:18.581: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.build(Androlib.java:183)'
13:22:18.583: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.build(Androlib.java:176)'
13:22:18.585: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.apktool.Main.cmdBuild(Main.java:228)'
13:22:18.589: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.apktool.Main.main(Main.java:79)'
13:22:18.591: [Error] - ApkTool.CompileApk: 'ApkTool: Caused by: brut.directory.PathNotExist: apktool.yml'
13:22:18.593: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)'
13:22:18.595: [Error] - ApkTool.CompileApk: 'ApkTool:	at brut.androlib.Androlib.readMetaFile(Androlib.java:160)'
13:22:18.597: [Error] - ApkTool.CompileApk: 'ApkTool:	... 4 more'
13:22:18.606: [Error] - ApkProjectViewModel.BuildBinary: 'Settings: Compiling resource files failed!'
[Virtuous Ten Studio] Diamondback:
Hm, that's kind of weird, did you try importing the apk again?
[Virtuous Ten Studio] M4ST3R-V:
I tried importing the apk again and now I am getting this error : :confused:

14:29:21.262: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Copying raw classes.dex file...'
14:29:21.262: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table...'
14:29:21.266: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loaded.'
14:29:21.275: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Decoding AndroidManifest.xml with resources...'
14:29:21.278: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loading resource table from file: C:\Users\Vishal\apktool\framework\1-XperiaMini.apk'
14:29:21.280: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Loaded.'
14:29:21.281: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Regular manifest package...'
14:29:21.283: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Decoding file-resources...'
14:29:21.287: [Error] - ApkTool.DecompileApk: 'ApkTool: I: Decoding values */* XMLs...'
14:29:21.289: [Error] - ApkTool.DecompileApk: 'ApkTool: Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.'
14:29:21.294: [Error] - ApkProjectViewModel.ImportFilesAsync: 'Settings: Decompiling resource files failed!'
[Virtuous Ten Studio] Diamondback:
Did you install ALL framework apks from in the settings and did you use the proper framework tag in the project settings?
[Virtuous Ten Studio] M4ST3R-V:
ALL the frameworks ? I Think the problem is with the framework-res which is provided to me (Maybe it is edited/custom one) :/

There was no problem with VTS while decompiling my settings for Xperia U. Thank you for the consideration :) :good:
[Virtuous Ten Studio] Gautam Padirooted:
Stupid question , but Can i use VTS with eclipse also on the same computer

I dont want to take any risk :p
[Virtuous Ten Studio] Diamondback:
Sure, there is literally no connection between the two ;)
[Virtuous Ten Studio] Gautam Padirooted:
Thanks. I just insatalled it.

Can i look into the java code of any app ?

I couldn't find any java file in the solutions explorer
[Virtuous Ten Studio] fisha21:
You need to generate the java source first. When creating the project, there is a checkbox option to generate java source. If you've already decompiled the apk, right click on the project and there is an option to generate java source on the context menu. To find the files, open the project folder in windows explorer, and the java files are in the misc folder. Bear in mind, the java files are read-only...
[Virtuous Ten Studio] Zaiaku:
For some reason can't decompile official Facebook apk, anything I may be possible missing?
[Virtuous Ten Studio] Mr Hofs:
Hi guys, i was thinking about a small implementation the other day. When you have the solution explorer with all the decompiled apk files (and there can be a lot) is it possible to make a sort of search function ? Like when i press the P it goes to the first apk starting with the P in the explorer. In alphabetical order, kinda like windows does when you open a file ?

Cheers.
[Virtuous Ten Studio] Mobzter:
it's happen to me before with the project settings framework all installed but still got it so I just went to the folder with the actual framework, included adb within n then installed it manually (apktool if framework-res.apk).

worked for me.. hope it helps!

Sent from my HTC One
[Virtuous Ten Studio] asdfasdfvful:
Sorry if it was very obvious, but can someone link me to instructions on how to make a boot.img from a zImage (bubba)? I can't find it...
[Virtuous Ten Studio] BigJoey010:
Hey guys,while i was installing framework files everything went succesfullt except for framework-res.apk and im getting this error

apktool if framework-res.apk W: Config flags size > 36. Exceeding bytes: 0x2000000

any assistance will be appreciated
[Virtuous Ten Studio] AlexMailOne:
Hello, I use the latest version of the VTS HTC's framework-htc-res (One Dual Sim, 4.2.2) has been a head scratcher for the last few otas. It compiles fine, as far as apktool goes, but all the public IDs change from 0x04* to 0x03*. Any thoughts on how to prevent this?

In the original version

<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="drawable" name="common_list_item_background" id="0x04020006" />
<public type="drawable" name="zero_dummy_asset" id="0x040200b2" />
<public type="drawable" name="cab_background_top_holo_dark" id="0x04020000" />
<public type="drawable" name="common_app_bkg_down_shadow" id="0x04020001" />
<public type="drawable" name="common_b_div" id="0x04020002" />
<public type="drawable" name="common_dialogbox_full_dark" id="0x04020004" />
<public type="drawable" name="common_div" id="0x04020005" />

after assembly,

<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="drawable" name="common_list_item_background" id="0x03020006" />
<public type="drawable" name="zero_dummy_asset" id="0x030200b2" />
<public type="drawable" name="cab_background_top_holo_dark" id="0x03020000" />
<public type="drawable" name="common_app_bkg_down_shadow" id="0x03020001" />
<public type="drawable" name="common_b_div" id="0x03020002" />
<public type="drawable" name="common_dialogbox_full_dark" id="0x03020004" />
<public type="drawable" name="common_div" id="0x03020005" />

<VirtuousTenProject>

<Settings>

<Setting Name="pushpath" Value="/system/app/" />

<Setting Name="usezipalign" Value="True" />

<Setting Name="usesign" Value="True" />

<Setting Name="signtype" Value="KeepOldSignature" />

<Setting Name="signcert" Value="" />

<Setting Name="signkey" Value="" />

<Setting Name="apilevel" Value="JellyBeanMR1" />

<Setting Name="usesmalidebug" Value="True" />

<Setting Name="apktooltype" Value="UseCustom" />

<Setting Name="customapktoolversion" Value="1.5.2" />

<Setting Name="dedicatedaapt" Value="True" />

<Setting Name="frameworktag" Value="2.41" />

<Setting Name="usem10tools" Value="False" />

<Setting Name="decompileresources" Value="True" />

<Setting Name="generatejavasource" Value="False" />

<Setting Name="useadbinstall" Value="False" />

<Setting Name="useoptipng" Value="False" />

<Setting Name="isdebugtarget" Value="False" />

<Setting Name="additionalsmaliargs" Value="" />

<Setting Name="additionalbaksmaliargs" Value="--sequential-labels " />

<Setting Name="additionalapktooldecompileargs" Value="" />

<Setting Name="additionalapktoolcompileargs" Value="" />

<Setting Name="binaryname" Value="framework-htc-res.apk" />

<Setting Name="version" Value="3" />

<Setting Name="hassuccessfulimport" Value="True" />

</Settings>

<OpenDocuments>

<OpenDocument Path="res\values\public.xml" Offset="98.951666666666668" />

</OpenDocuments>

<MarkedLines />

</VirtuousTenProject>
[Virtuous Ten Studio] Krocko:
I am also interessted in an solution. I have the same problem on 4.4, on 4.3 this worked for me.
[Virtuous Ten Studio] asdfasdfvful:
I had that before because I used the framework-res.apk in my slim backup folder. Is your apk size 10.6MB? Try redownloading the framework from system/framework and trying it again
[Virtuous Ten Studio] Diamondback:
We can't tell without the logs about why it failed ;)

Hm, yes, sounds interesting, I'll have a look :)

You have to create a "Boot" project and import your existing .img file :)

These are not errors but warnings (hence the 'W' from apktool)

Never heard of that one before, maybe ask in the apktool thread as this is obviously something apktool does?
[Virtuous Ten Studio] asdfasdfvful:
I still don't quite understand (sorry...). But it's alright, I finally got s-off so I'm able to flash the zImage directly. Thanks!
[Virtuous Ten Studio] ilie321:
hey developers best app ever continue like this;

check this for future :) also
[Virtuous Ten Studio] neothegod:
Is this tool paid?
[Virtuous Ten Studio] Flashalot:
Not really if you use it for sense like for m10 then ya but if not your all good

But this tool is well worth the money

Sent from my Nexus 7 using Xparent Red Tapatalk 2
[Virtuous Ten Studio] Diamondback:
That's an apktool error, nothing I can do about unfortunately :(

As long as you don't want to edit M10 images ( something that only applies to previous HTC Sense devices) VTS is completely free to use. You can still edit these images but they will have a watermark applied.

For all other uses there are no functional restrictions at all.
[Virtuous Ten Studio] coal686:
Diamondback won't say it so i will. If you like it, support the devs so they have incentive to keep updating. This program is worth the $20 if/when you can afford it.

/and I'm cheap so that's saying a lot. ;)
[Virtuous Ten Studio] Diamondback:
So here's the next little update on my progress:

Since the christmas time was extraordinary busy this year I'm a little behind. I planned to be mostly finished with my three major new features by now, but only two of them are ready to be released soon.

The smali debugger isn't finished yet, so I am not sure yet whether to postpone it to the update after the next one or not.

Anyway, here's the mostly finished interface for the new script import/build/push system:

The first screenshot shows the new configuration selection screen when creating a new project. Configurations can be compared to the old presets they store all your settings but they also (and more importantly) store HOW certain tasks are executed. Want to modify HOW VTS builds your binary? Want to execute some custom task? No problem anymore, the new script system is extremely customizable, there's pretty much nothing you can't do.

Once you selected a configuration you can customize it via this (simplified) interface.

Existing projects have the full blown script editor, you can either use the drag & drop style version with a graphical flow layout or the XML representation of the script.

Of course you can create your own configurations with already customized settings and script flows.

Currently I am planning to release the next version somewhere in late january/early february.
[Virtuous Ten Studio] gunfromsako:
Anybody know why the software wont update?

It says it needs to close virtuousten.exe, i press OK, everything closes and when i open VTS my version is still the same.

Then it checks for update, downloads again, and repeats...
[Virtuous Ten Studio] PerfectSlayer:
May be the installation directory is write protected ?
[Virtuous Ten Studio] gunfromsako:
Hmm shouldn't be, I'm running as admin as im the only user...
[Virtuous Ten Studio] Diamondback:
Which version are you using?
[Virtuous Ten Studio] coal686:
Have you tried to download the new one as an exe and just install it on top of itself?
[Virtuous Ten Studio] gunfromsako:
2.9.15.10501 which it the newest available for download.…
[Virtuous Ten Studio] Lordomn:
I'm not sure if I understand why I'm getting this error... I have the latest vts for xp and the .net framework 4.

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'BakSmali: UNEXPECTED TOP-LEVEL ERROR:'

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'BakSmali: java.lang.OutOfMemoryError: Java heap space'

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'BakSmali: at org.jf.dexlib.Util.SparseArray.ensureCapacity(SparseArray.java:324)'

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'BakSmali: at org.jf.dexlib.ReadContext.setItemsForSection(ReadContext.java:179)'

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'BakSmali: at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:51)'

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'BakSmali: at org.jf.dexlib.Section.readFrom(Section.java:143)'

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'BakSmali: at org.jf.dexlib.DexFile.<init>(DexFile.java:431)'

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'BakSmali: at org.jf.baksmali.main.main(main.java:280)'

21:19:27.671: [Normal] - SmaliTool.BakSmali: 'BakSmali failed, see log for further information.'

21:19:27.671: [Debug] - SmaliTool.BakSmali: 'Exitcode: 1'

21:19:27.671: [Error] - <>c__DisplayClass2.<ImportFilesAsync>b__1: 'framework: Decompiling classes.dex failed! Project: framework'

21:19:27.859: [Debug] - TenProjectViewModel.LoadBackups: 'Found 0 backups for project 'framework''

Not sure what's missing...
[Virtuous Ten Studio] PerfectSlayer:
Your application must be too huge. You get an OutOfMemory error.

Try to change -Xmx parameter for apktool in the settings (to provide more memory to the VM).

See Oracle documentation for parameter values.
[Virtuous Ten Studio] Lordomn:
Will take a closer look at it. Just got this laptop so I'm still getting used to it
[Virtuous Ten Studio] Lordomn:
I must be doing something wrong... Because I'm still getting the java.lang outofmemory error...
[Virtuous Ten Studio] Tr4sHCr4fT:
I am on XP so i need to use the v1

Is it still containing the latest external tools or can i update them seperately?
[Virtuous Ten Studio] Diamondback:
The external tools are only updated with the regular VTS updater or by installing a new setup, so no, you will have to update them on your own.

Please be advised: Both apktool and smali introduced breaking changes in their version 2.x, so it's not done with replacing the binaries.

Smali 2.x just won't reassemble smali code disassembled from smali 1.x (so you need to use the same version for dis- and reassembling) but apktool 2.x changed the commandline usage so this won't work with VTS 1.x at all (neither with 2.x but support is coming with the first 3.x release)

However, if you keep these things in mind it's a matter of replacing the existing binaries. VTS 1.x might actually expect special filenames, it's possible that you need to rename the updated binaries to the old names (not too sure about when I fixed this)
[Virtuous Ten Studio] mety333:
I'm Very impressed by this software!

WOW one of the best software i came across!

found this by flukes in google after almost giving up on finding an easy way to decompile apk for themes and then recompiling; and the User Interface is ingenius!

So simple using minimalistic graphics and a simple word/frontpage layout i LOVE THIS!

I really enjoy using this software; every single time i open it for use i get excited!

Donated 30...because this team has done an incredible job!

GREAT work!:good:
[Virtuous Ten Studio] Lordomn:
Just giving my feedback now that it's working... Which was just an issue with java not being updated... great program
[Virtuous Ten Studio] mastaan:
IDE impressive. The best, most practical and most aesthetic that I've experienced. :good:

@Diamondback, just a question:

How to add a folder to apk using VTS (eg add the folder 'values​​-fr' in the 'res' folder) :confused:

Thank you
[Virtuous Ten Studio] darkharbinger81:
Hey guys I had this setup on my dell running windows vista, well the hard drive crashed on it and now I'm running a laptop with windows xp home edition, when I install vts the newest edition for windows xp I get this error

" The application failed to initialize properly (0xc000007b) Click on OK to terminate the application." Any idea on how to fix this
[Virtuous Ten Studio] Sun90:
check whether u have the .net framework 4 on ur laptop with XP home, if not install the same and then try :)
[Virtuous Ten Studio] darkharbinger81:
I have net 4 but also 2 and 3 I think

EDIT: I've installed a couple of the 2. Builds like 2.6 and 2.8 I now got the error its not a x32 valid application now I really confused
[Virtuous Ten Studio] patensas:
Anyone else having issues with installing frameworks for HTC Android 4.4.2 base?
[Virtuous Ten Studio] PerfectSlayer:
Simply use the « data » button and select your project.

File explorer open decompiled resource location so you can add yourself the localization you need.

If you have some resource id problem, you will need to deal with resources.arsc.

(Good to see frenchy modder ;))
[Virtuous Ten Studio] skeleton1911:
yep . me too . but only framework.res

edit: here is a log https://dl.dropboxusercontent.com/u/70686654/Debug.log
[Virtuous Ten Studio] 2WildFirE:
same here......

Debug.log https://www.dropbox.com/s/ob8bxnd3j63t4tk/VTS-debug.log
[Virtuous Ten Studio] asdfasdfvful:
Might I ask if it is possible to edit 9.png files? I'm still looking for a good editor that just allows me to overlay 1px thick black strips.
[Virtuous Ten Studio] ViNOK16Bit:
I prefer Photoshop to edit .9 images. Others use gimp and that is freeware. Beware you have to edit the decompiled .9 and keep the boundaries so you can compile the .9 images again.

Sent from my HTC One using Xparent Red Tapatalk 2
[Virtuous Ten Studio] asdfasdfvful:
I have gimp but I find it quite annoying to do. I probably don't have the best method, but I generally add a rectangular shape set to 1px thick, and fill selected with foreground color. Thanks for you advice
[Virtuous Ten Studio] asdfasdfvful:
Sorry to bother everyone again, but is it possible to import a project that is already decompiled? I am trying to make an sms theme and the stuff is already on github.
[Virtuous Ten Studio] PerfectSlayer:
Your stuff is not a decompiled (smali) project. It's a source project !

Use the ADT if your want to make your theme.
[Virtuous Ten Studio] k3xx:
Hello, im getting this error while trying to recompile an apk file. I tried a few things but nothing helped, what could be the problem?

http://pastebin.com/d1zmqAqr
[Virtuous Ten Studio] DSA:
C:\Users\Administrator\AppData\Local\Temp\72E5A0\AndroidManifest.xml:22: error: No resource identifier found for attribute 'requiredAccountType' in package 'android''

that looks like the culprit

have you modded the manifest?
[Virtuous Ten Studio] k3xx:
No, Im only modded an xml file for google keep's widget and some png's. But even if I dont modify anything, I cant recompile it.
[Virtuous Ten Studio] Mr Hofs:
When you check the data folder after decompiling, are there folders marked with ERR ? If so delete them and recompile.....see if that's possible
[Virtuous Ten Studio] k3xx:
I dont see any errors after decompile.
[Virtuous Ten Studio] asdfasdfvful:
I'm really not too sure what I'm doing, but I attempted to theme ask.fm. I decompiled it, changed the image colors (9.pngs should still be fine), but once I recompiled, I got an error saying that compiling source code has failed. Here is a paste bin..
[Virtuous Ten Studio] DSA:
C:\Users\a\AppData\Local\Temp\88E6C4\smali\com\askfm\R$color.smali[120,0] mismatched input '.field' expecting COLON'
10:51:14.051: [Debug] - SmaliTool.Smali: 'Smali:
C:\Users\a\AppData\Local\Temp\88E6C4\smali\com\askfm\R$color.smali[124,0] mismatched input '.field' expecting COLON'

concentrate on that bit (Cant give an answer as i dont know what you did)
[Virtuous Ten Studio] asdfasdfvful:
All I did was change all the drawable-xhdpi pictures to grayscale, and change a lot of hex colors. I'll try again from the beginning and see how it goes
[Virtuous Ten Studio] DSA:
decompile and recompile without modding anything....if that fails, you have an issue not related to the apk you are modding
[Virtuous Ten Studio] coal686:
Some app store apps don't decompile and recompile well, try as DSA suggested. Also, the error he showed mentions color, so something may have been broken when you changed the hex codes.
[Virtuous Ten Studio] asdfasdfvful:
I tried by only editing the images and it worked. After I change some hex colors, it doesn't. Guess I can't theme..
[Virtuous Ten Studio] Flashalot:
You can try and vr theme it not saying it will work but won't hurt to try
[Virtuous Ten Studio] asdfasdfvful:
um... what is that?
[Virtuous Ten Studio] Flashalot:
VillainTheme System
[Virtuous Ten Studio] asdfasdfvful:
It looks really useful and safe, but I don't really want to dabble with the system folders. I'm still a beginner as you can see, so it's best I stick with theming apps directly. Thanks
[Virtuous Ten Studio] gunfromsako:
Psht...system smishtem. Hah. Remember you can always backup your system apps and have no worries. Don't be scured... Poking through systemui has taught me a lot.?
[Virtuous Ten Studio] Dwack:
ADB Error

I seem to be having an error getting apps remotely using ADB. It used to work but lately has been giving me a lot of troubles. I can do everything else ADB related(install apps, shell commands etc...) but for some reason getting apps when creating a new project doesn't work properly. It never stops loading. The advanced log screen doesn't offer much support either

19:28:10.690: [Debug] - ADBTool.Shell: 'Starting Adb...'
19:28:10.731: [Debug] - ADBTool.Shell: 'ADB args: shell'
19:30:01.300: [Debug] - CreateNewProjectCommand.Execute: 'Project wizard aborted.''

If if type the shell command that it uses into an ADB shell window I can see a print-out of all the apps and framework files. I just don't understand why it;'s having trouble listing them in VTS.

Your Operating System version (eg. Windows 8, Windows Vista etc) Win 8.1 x64

General information:

Can you reproduce the issue?

Everytime

Did you try to restart your computer/your device first?

Yes
[Virtuous Ten Studio] asdfasdfvful:
Haha it takes a while but I generally come around. I like to do a lot of research before creating things, but since I like theming I'll probably give it a shot
[Virtuous Ten Studio] gunfromsako:
And research will definitely help...? Just remember anything you theme can be backed up. VTS even has its own backup tool and it works great. Start with just replacing some images, like status bar, and move on from there.
[Virtuous Ten Studio] asdfasdfvful:
I actually love vts because it actually works. Can't even get eclipse to function... And yeah images is fine but the HEX colors are not functioning. I'll just look into it more
[Virtuous Ten Studio] Flashalot:
Works and more i cant believe i didt know vts could add in the ids for me wish i knew that when i was messing with the settings app

I would use Google's new android app building environment
[Virtuous Ten Studio] Will_Xda:
that's an amazing feature I found after doing 3 days of intense searching only to find its already in VTS. Saved me alot of time :D
[Virtuous Ten Studio] Diamondback:
What's your Android version? My beta testers and I have seen similar issues on Kitkat Sense ROMs. I don't know why it's happening yet.
[Virtuous Ten Studio] lukakas:
It's a kitkat bug? Because I tried to keep old signature on 4.3.1 app and androidmanifest.xml been successfully edited even using tesk-keys android accepted.

Thanks for services.jar patch tip.
[Virtuous Ten Studio] Dwack:
I just updated to 4.4.2, but it was doing it on JB as well.
[Virtuous Ten Studio] Krocko:
I have the same problem with Android 4.4.

On Android 4.3 all works well.

Gesendet von meinem Nokia 5110 mit ViperN und Tapatalk 7 Ultra HD
[Virtuous Ten Studio] lukakas:
When I disable signature check in services.jar all of my user app disappear!! I'm using Kitkat.