yashsingh1/xdaforums huggingface dataset:
[Virtuous Ten Studio] Dean1650:
Minor Beta Bug:

The "create new project" (apk) fails when trying to pull an APK file from a remote device. I copied the beginning and end of log. I don't see where adb or shell fails, just the last entry in log. Frameworks setup works ok, pulls files, lists, and let's you select like normal . There are plenty of work around so not a big deal. Have already set up a few projects, like the changes. De/recompiled compile working fine.

20:40:44.799: [Debug] - ADBTool.Shell: 'Starting Adb...'

20:40:44.841: [Debug] - ADBTool.Shell: 'ADB args: shell'

20:40:46.064: [Debug] - ADBTool.Shell: 'ADB shell: su'

20:40:46.072: [Debug] - ADBTool.Shell: 'ADB shell: find /data/app /system/app /system/framework -type f \( -iname "*.apk" -o -iname "*.jar" \)'

20:40:46.077: [Debug] - ADBTool.Shell: 'ADB shell: exit'

20:40:46.090: [Debug] - ADBTool.Shell: 'ADB shell: exit'

20:40:46.090: [Debug] - ADBTool.Shell: 'ADB shell: shell@android:/ $ su'

20:40:46.091: [Debug] - ADBTool.Shell: 'ADB shell: root@android:/ # find /data/app /system/app /system/framework -type f \( -inam'

20:40:46.091: [Debug] - ADBTool.Shell: 'ADB shell: tem/framework -type f \( -inam <e "*.apk" -o -iname "*.jar" \)'

20:40:46.092: [Debug] - ADBTool.Shell: 'ADB shell: /data/app/com.google.android.gms-1.apk'

20:40:46.092: [Debug] - ADBTool.Shell: 'ADB shell: l.Shell: 'ADB shell: /system/app/ApplicationsProvider.apk'

...........

...

20:40:46.162: [Debug] - ADBTool.Shell: 'ADB shell: root@android:/ # exit'

20:40:46.162: [Debug] - ADBTool.Shell: 'ADB shell: shell@android:/ $ exit'

20:40:57.363: [Debug] - CreateNewProjectCommand.Execute: 'Project wizard aborted.'

sent from my SGH-i317
[Virtuous Ten Studio] Diamondback:
Thank you, I just fixed that one :)
[Virtuous Ten Studio] Ajthescot:
--keep-broken-res doesnt seem to be working on the beta unless im doing something wrong

my external settings.xml doesnt seem like it has changed though.
[Virtuous Ten Studio] fisha21:
Still working for me.....did you set it in the Advanced Project Settings as well?
[Virtuous Ten Studio] Ajthescot:
if i downgrade to older version i can decompile recources.

upgrade i cant.

the advanced project settings only show up for already decompiled apks

how to apply to a new project is what am i missing.

excuse me if im overlooking somthing.
[Virtuous Ten Studio] Diamondback:
Yea, that seems to be a little flaw in the current workflow. You can't alter the advanced settings without creating a new project first. And you can't create a new project without actually importing something.

I'll change that bit, so you can create empty projects again.

However, in the meantime you need to create a project like normal, let the import fail, set the apktoolflag in the advanced settings and then import the apk again.

The setting inside the xml file is useless by now btw.
[Virtuous Ten Studio] Diamondback:
And here is how the color thing looks like in smali:
[Virtuous Ten Studio] Diamondback:
Oh and for those of you wondering what use this actually has:

You can click those little squares, it brings up a color picker that immediately changes the color in xml and smali files :p
[Virtuous Ten Studio] DSA:
This just gets better and better

I had an idea (might not be good one or possible)

I've seen in a lot of guide threads, people having issues porting code to their phone model/firmware

Its nearly always related to the registers (v0 vs p0 etc)

Is there a way of getting them to auto convert/get the system to advise what they should be after dropping the code into the smali? I know it already highlights the line that is incorrect...
[Virtuous Ten Studio] Diamondback:
Not really... If you copy paste code from one project to another you need to understand its logic and flow, there's no good way a program can take over that part.
[Virtuous Ten Studio] Diamondback:
So any other problems with the beta? If not I am going to release a fixed version tomorrow. :)

If you still have any suggestions/bugs please let me know.
[Virtuous Ten Studio] torxx:
Not an issue but a little suggestion:

Could a little public ID porting tool be included? It's really annoying for me always updating public ids in smali when porting for example to a new HTC base, maybe it's possible to put somehow old public ids into an xml and VTS pulls them and you put an xml with the new public ids into another one and it updates with the new ids in smali.

Would save a lot of copy paste work especially for quick settings mods etc.
[Virtuous Ten Studio] Dean1650:
One thing you may be could do different is when using file compare, it creates a back up file in the same directory. You have to move or delete the .Bak file before you compile or causes errors. Not a big deal as long as you are aware. It might be a setting in the merge program, didn't look.

Other than that, everything else I found has been mentioned/fixed. I tried the boot unpack/repack for the first time. It's another great tool. Thanks for what you do.

sent from my SGH-i317
[Virtuous Ten Studio] Dean1650:
Never mind, I figured out settings for Win merge. Sorry I didn't look before posting.

sent from my SGH-i317
[Virtuous Ten Studio] kelvin216:
upside down

Hi is any one seeing when opening the assets folder the images are upside down?
[Virtuous Ten Studio] Raymond Ebertt:
Hey mate. See what a great guy you are? Thanks for everything. :o
[Virtuous Ten Studio] cybhunter:
Some recommendations

Been using VTS for a month or so. In an effort to clutter on my computer I ended up reinstalling windows in addition to the various programs including VTS. Reinstalling VTS ended up taking the better part of the last 12 hours.

The problem I faced primary dealt with trying to find the apktool binary (which oddly enough could not be found initially). To resolve it I had to install Apk multi tools and copy the everything into the root folder of apktool of C:\User\xxx\ .

-Recommendations,

1) If possible incorporate APK multi-tools into VTS (if permissions can be obtained) natively to resolve this Apktool binary not found problem.

2) Allow the ability to change where to find the Apktool binaries (in an effort to keep the windows partition clean, I install programs on a separate partition, and AFAIK there is no way under settings change the folder location from C:\users\xxx\Apktools)

3) When starting, VTS goes full screen. Even if the user forces it to a window, the next startup results in full screen. Any prompts also default and do not retain their modified values (IE slightly narrowed import from prompt shifted to the left of center). This can get annoying when multi-tasking. If possible allow the option to startup as a window instead of being maximized.

VTS is great tool nonetheless, allow the ability to see the smali and java code (great for people starting to get into java programing and trying to understand the environment). Keep up the good work
[Virtuous Ten Studio] Diamondback:
I just published a bug fix update to 2.6.16.10020 which is a normal OTA now (not beta anymore)

Download (or get the OTA)

Changelog

Can you please explain a little more in detail what your current workflow looks like and how exactly VTS could assist you there with the public IDs? :)

Not sure why I would want to do something like this. You are probably talking about something entirely different here ("apktool framework folder not found", which isn't a serious thing, hence the warning VTS gives you).

But without the logs I can't really tell you what you did wrong. Have a look at the log directory of VTS, maybe the logs showing your problem are still there. (C:\Users\<user>\Documents\Virtuous Ten Studio\Logs\Default)

Apktool binaries are stored in the installation directory of VTS (to be exact here: C:\Program Files (x86)\Virtuous Ten Studio\External\ApkTool if you selected the default installation path)

I might add this for the mainwindow but implementing this for each and every modal window would take up way too much time ;)
[Virtuous Ten Studio] SXUsr:
As it's giving errors about the .9 images it would suggest it's a themed apk?, so you can either replace the problem images in the apk with stock ones before trying to decompile or just use a stock apk, which is what I would do because you don't know what else has been badly edited.
[Virtuous Ten Studio] oneders65:
So how is this done? I am very new at this.
[Virtuous Ten Studio] Jayrod76:
Yeah..looks like they dropped the.9 from the file name as they are no longer true .9s.

You could either find the original. 9s and remake them yourself or not try to decompile a themed frameworks. Sometimes you can get by with dropping a non compilable .9's suffix and it compile without errors but generally they are swapped via 7zip or whatever.
[Virtuous Ten Studio] Flashalot:
When I try to load up vts on my computer it dose not work but its active I checked it in task manager so I have to download winXP version of vts and it works

My windows 7 set up is

64 bit 8 gb ram Intel core i5

I Think this issue may have been address already this is the only thing preventing

Me from buying the pro version :(
[Virtuous Ten Studio] Diamondback:
Hm, can you please check this folder and see if there is any log file in there?

C:\Users\<user>\Documents\Virtuous Ten Studio\Logs\Default

If so please post it here.
[Virtuous Ten Studio] Jackos:
I also got some problems with the latest version on Win 7 x64

2013-06-16 18:09:40
The type initializer for 'VTS.Windows.Documents.Base.BaseDocument' threw an exception.
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at VTS.Windows.Documents.Welcome.WelcomeDocument.InitializeComponent()
at VTS.Windows.MainWindow.MainRibbonWindow.ShowWelcomeDocument()
at VTS.Windows.MainWindow.MainRibbonWindow.<HandleCmdArguments>d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Inner exception:
An exception occurred while creating the PrintServer object. Win32 error: The RPC server is unavailable.

at System.Printing.PrintServer.Initialize(String path, String[] propertiesFilter, PrinterDefaults printerDefaults)
at System.Printing.PrintServer..ctor()
at System.Printing.LocalPrintServer..ctor()
at System.Printing.LocalPrintServer.GetDefaultPrintQueue()
at VTS.Windows.Documents.Base.BaseDocument..cctor()
[Virtuous Ten Studio] Diamondback:
I wonder, do you have any printers installed?
[Virtuous Ten Studio] Jackos:
Nope. My printer service is even turned off, and I guess thats the problem.
[Virtuous Ten Studio] Diamondback:
Yea indeed, I'll send you a private message shortly.
[Virtuous Ten Studio] Flashalot:
installed the curent vts from the site installed it

i ran it twice the file might have other times it fc'ed for me to

46 MB of it
[Virtuous Ten Studio] Diamondback:
Oh wow :D, but yes you are right, this file gets appended all the time. I'll have a look, thanks :)
[Virtuous Ten Studio] Diamondback:
Okay I see two main problems in your logs, both related to settings files.

Did you somehow mess with the xml settings files? Can you please try to delete all the settings files here?

C:\<user>\Fabi\Documents\Virtuous Ten Studio\Settings

If that still doesn't help, it's probably the second problem as well which needs a little fix code wise (I'll build you a quick version in that case)
[Virtuous Ten Studio] Jackos:
My logs gotta 670MB, wanna have a look, buddy? :D
[Virtuous Ten Studio] Diamondback:
I guess I should switch to date/time based files there as well....:angel:
[Virtuous Ten Studio] Flashalot:
it looks like i don't have a settings folder
[Virtuous Ten Studio] Diamondback:
Aha, now that's interesting. Did you try any previous VTS version? If so, which one worked last?
[Virtuous Ten Studio] Adam77Root:
I can say without any doubt that this is among the best tools I use for Android development. Thanks and keep it up!
[Virtuous Ten Studio] Flashalot:
Can't remember but it was before the new blue icon that starts up

Sorry for not a lot of info
[Virtuous Ten Studio] andy442:
Q;How to Integrate apk?

I am trying to integrate an apk into the settings menu on a gs3 with a tw rom. I can get the apk icon and title in the settings menu, but when I try to open it I setttings ui f.c. I know I need to put the apk somewhere. Has anyone tried this with vts? What do I need to do to get it to work. Thanks.
[Virtuous Ten Studio] SXUsr:
http://xdaforums.com/showthread.php?t=2105652
[Virtuous Ten Studio] Rimmer1966:
Loving this program. The only issue for me is I can't import the boot.img file from my Xperia T, anyone else having the same issue? It works fine with other boot.img files but doesn't like the Xperia ones..

If I could get that to work it would be perfect.

Thanks for the time and effort that must have gone into creating this tool..
[Virtuous Ten Studio] Diamondback:
Can you provide me such a file, please?
[Virtuous Ten Studio] Rimmer1966:
Of course.. Thanks for quick reply..

4.2.2 Xperia T Kernel
[Virtuous Ten Studio] InflatedTitan:
Hey guys I had vts in my comp when I had XP and it was flawless... Went to windows 7 and now when I install vts and try to load up the systemui apk I get this attached picture. I've uninstalled, rebooted and redownloaded again and its still throwing up the same thing... Any pointers?
[Virtuous Ten Studio] Dean1650:
Check properties of project for apktool settings. If using "custom" make sure path is set (environment variables). If not make sure apktool is in "external" directory.

sent using xda Premium
[Virtuous Ten Studio] tapan15in:
Hi guys,

I am trying to recompile systemui.apk nut I am getting error.

I have just made changes in 2 xml files that are required for transparent status bar.

It doesn't let me recompile the apk back.

Anyone can help?
[Virtuous Ten Studio] Diamondback:
I've seen this before. Unfortunately this seems to be caused by a custom apk format which apktool can't handle. iBotPeaches (apktool author) doesn't know any way to solve this.

Not without the logs and stuff ;) Have a look at the FAQ in the third post.

Yup, looks indeed like you forgot to actually set a custom apktool version.
[Virtuous Ten Studio] orangerot.:
Hello Diamondback,

first of all thank you very much for providing us such a great solution for our projects :)

But there's one thing I really miss.. If I'm editing my ramdisk(from galaxy s3) I add some scripts to tweak the kernel.. Those have the ending '.inc'.. If you open it it's just like a normal text file.. But as the file isn't supported in virtous ten studio I can't open it there and have to edit it with Notepad ++.. That's kinda annoying to switch between those two programs..

So my request is: Could you add support to open files in the studio even if they're not officially supported? That'd be sooo great!

Thanks in advance.
[Virtuous Ten Studio] Diamondback:
Yea I guess I can add an option to open ANY file as text file. Or maybe just for the unknown ones.
[Virtuous Ten Studio] orangerot.:
Thank you very much :) that'd be awesome! If possible with syntax highlighting? (in notepad ++ the kernel scripts have a syntax highlighting.. If you could do the same it would be perfect! )

Sent from my Nightmare featured GT-I9300
[Virtuous Ten Studio] iBotPeaches:
That attribute "primaryUserOnly", I've never heard of and either has the framework / aapt you use, thus it will fail rebuild. You can remove it from the AndroidManifest or get to the bottom of it.

Which is either

1) Your framework is out of date and has no support for primaryUserOnly

2) Your aapt is out of date and doesn't know about primaryUserOnly, but then again aapt doesn't (i dont think) validate individual attributes in Manifest.

3) Remove that attribute.

4) Find some proof of this attribute online (I looked here: http://developer.android.com/guide/topics/manifest/manifest-intro.html) and didn't find anything.
[Virtuous Ten Studio] bondlolo:
How can I recompile a .jar file?
[Virtuous Ten Studio] Diamondback:
With a Framework project. Have a look at the tutorials here:

http://www.virtuous-ten-studio.com/index.php/getting-started
[Virtuous Ten Studio] amit.mb:
I get an error when I try to start the app...

It says

Problem signature:

Problem Event Name:	CLR20r3

Problem Signature 01:	virtuous ten studio.exe

Problem Signature 02:	2.6.16.10020

Problem Signature 03:	51bdcc78

Problem Signature 04:	AppSettings

Problem Signature 05:	2.6.16.1424

Problem Signature 06:	51bdcc6b

Problem Signature 07:	6

Problem Signature 08:	23

Problem Signature 09:	System.NullReferenceException

OS Version:	6.1.7600.2.0.0.768.3

Locale ID:	16393

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

Can you help me resolve the problem please?
[Virtuous Ten Studio] Jayrod76:
I appreciate the quick answer! Guess it's a good way to keep others from meddling around!

Love VTS! Without it. Yeah..I'm not as good with the"old way" :)

Sent from my Platyraptor extreme ultra maxxxx 4gLTE/GSM/ABC/123 Nick Knack Pattywack Ermegherd GED, MD,RNA,DNA,YMCA Edition S4! Via the 4th dimension....Running Liquid AOSP
[Virtuous Ten Studio] pathuri97:
Help!

Needed Help for the following problem.

1) Test 1

--------------------

I'm planning to change the LIGHT theme to BLACK theme.

I'm modifying framework-res.apk and modified as per the steps mentioned in NOTE10.1 Themes and Apps forums.

Not doing any major additions/deletions.

Simple changing Theme.DeviceDefault.Light to Theme.DeviceDefault in some lines.

I followed your steps and used VTS to compile and decompile (I'm on ARHD 8.0 ROM).

VTS created a binary, NO PROBLEMS before compilation and after compilation.

I also see signing and zipalign also went through without any problems.

But I got boot loops after copying into /system/framework (with proper permissions and ownership).

Finally I had to replace with original framework-res.apk file.

Any Idea why this happens?

2) Test 2

---------------------

Also one more thing I noticed is when I copy framework-res.apk, systemui.apk, and secsettings.apk from different custom rom,

everything works fine.

The moment I tried to edit Light to Dark theme etc in styles.xml and compile using VTS,

and copy properly to /system files - either I get a message saying 'apk n't installed' or it won't work.

Not doing any major additions/deletions.

Simple changing Theme.DeviceDefault.Light to Theme.DeviceDefault in some lines.

There are NO erros during - compiling, decompiling, signing, zipalign etc.

Finally I had to replace with original framework-res.apk file.

Any help is appreciated.
[Virtuous Ten Studio] Dean1650:
Before I make ANY changes to a project, I always De/recompile and test the apk. You can then make your changes and see if things work. Some changes will compile and yet won't work and cause problems. If you do the first thing I mentioned and it fails, it might be the way you sign the apk. If your changes cause the problem, then you should try logcat or catlog. Hope this helps.

sent using xda Premium
[Virtuous Ten Studio] pathuri97:
Solved!

I had this doubt from the morning & was trying parallely and I saw your reply.

My doubt and your help proved right.

Manually I used apktool to compile and decompile.

Used NOTEPAD++ for editing.

Then copied androidmanifest.xml & META-INF to the new APK (copied through 7ZIP).

Then did zipalign (again manually).

Copied the NEW APK (SecSettings.apk) to TAB and it WORKED!!!

Does it mean that if I use VTS and

copy androidmanifest.xml & META-INF to the new APK

and zipalign manually once again,

will it work???
[Virtuous Ten Studio] Dean1650:
Try keeping existing signature in the properties of project. Sometimes works.

sent using xda Premium
[Virtuous Ten Studio] Diamondback:
VTS can actually do this for you. You can set the signing options to keep the old signature. (in the project settings)

This obviously means that you can't change anything in the manifest (as the "old" one will be used) or any other signature protected files)

Which .net do you have installed? Tried reinstalling it?

Do the logs in "C:\Users\<user>\Documents\Virtuous Ten Studio\Logs\Fatal Errors" say anything about it?
[Virtuous Ten Studio] Dean1650:
I have a useful suggestion. Because this is such a great program, I now have many projects in my many solutions. I would like to have a simple text file in each project that I can open/edit/save to add release notes. I tried to add one, but the system tries to compile. You could even create the text file when you add a new project. Would make life easier. Thanks again for what you are doing for us.

sent using xda Premium
[Virtuous Ten Studio] Diamondback:
That's an interesting idea. What exactly do you need those notes for? For yourself only? Or should they be part of the actual binary as well?
[Virtuous Ten Studio] amit.mb:
I have Microsoft .NET Framework 4.5 installed on my PC. I am uploading fatal errors.txt log files here as I coudnt figure out anything over there :p . Do you recommend reinstalling .NET framework and try again?

fatal errors.txt
[Virtuous Ten Studio] Dean1650:
Mainly for myself. I like to keep track of the files I change (for vrtheme), what the changes were for, ect... I might take the same apk and make 3 projects to keep the mods separate from each other. If there was a txt file in each project you could keep the notes there. Just ignore the file when compiling. I don't know if there is a file extension name the compiler would ignore. Dont know if its possible. In the case of being in the binary, that would be outstanding. Release notes, version, ect, inside the apk would be cool. I've never tried to drop a text file into an apk and see if it would still run. I might just try that later.

sent using xda Premium
[Virtuous Ten Studio] Diamondback:
Okay, looks like the same error I fixed earlier. I'll send you a test version later.

Okay, I'll think about it :)
[Virtuous Ten Studio] Dean1650:
Well I finally got in front of my pc and here is what I found out. As long as the .txt file is in the root of data dir, the compiler ignores it (don't know why it didn't work before). You can click the file and edit/save. I then opened the apk with 7z and dropped the file in the root directory. The apk ran as normal, no errors. I "viewed" the apk on the device and you can open the file and see all the notes. So for right now, looks like I can do it without changes to VTS. I'm sorry if you spent time on it. Of course, automation would be nice. I can now have release notes on each project AND inside the apk.

sent using xda Premium
[Virtuous Ten Studio] rnovino:
boot.img

I am not sure why it is not extracting the boot.img properly it just show this kind of extracted file :( I am using a mediatek mt6577 chipset

kindly check the attach file

View attachment 2106658

here is my boot.img file

http://www.mediafire.com/?gm8wyibtt2pakfk
[Virtuous Ten Studio] bgcngm:
Well, that's simply because VTS doesn't support MediaTek boot images. I don't know if [MENTION=2295247]Diamondback[/MENTION] is willing to add support for that, but in the meanwhile you can use my unpack/repack scripts.