yashsingh1/xdaforums huggingface dataset:
[Virtuous Ten Studio] nick1313:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.19.7

I didn't finish catching up in the thread so I apologize if what I'm about to suggest has been mentioned.

Here's what I do to deal with those. If you haven't messed with the images just drag and drop the .r.9's from the original apk into your modified apk and rename them by deleting the .r from them so it will match your public xml. You will also need to delete the images with the same name from the modded apk, because on recompile they get renamed without the .r. Do all this in 7 zip, btw.

Hope that helps and made sense.
[Virtuous Ten Studio] Diamondback:
Wait, you just want to edit some xmls or images? Then an odexed apk should work just fine with this version.

If there is no classes.dex in the apk VTS won't care at all.

Can you please explain your problem a bit more in detail?
[Virtuous Ten Studio] Diamondback:
Would you guys like if I added some option to automatically use the "old"/"original" .r.9.png files after compiling the apk?

Would that be useful for you?
[Virtuous Ten Studio] alkhafaf:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.19.7

When I take the apk part without its odex, and try to decompile then compile, no errors. But when I push the file to my device, the apk just doesn't appear in the drawer. I restarted and still same.

I even pushed it manually using adb in cmd, still the same.

OK, for the deodex version, it works with me, after compiling I just odex it using my auto odexer tool and it works well.
[Virtuous Ten Studio] nick1313:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.19.7

That would be cool. I've tried all kinds of different variations to get it to work correctly. From renaming the image prior to decompiling, to after, etc and nothing works. They are always distorted. Dialer, phone, and mms apks are the ones I've dealt with.

I was gonna try to include in my scripts that I have to just copy the originals back into the apks and then rename it, but I haven't got that far yet.

Anything you can do would be great.
[Virtuous Ten Studio] xcesco89:
hi guys!

i'm trying to upgrade to the new version, but after installing VTS won't start. it show me for less than one second a screen about an internal error, some debug things and something related to server and to .NET 3.0 SDK. i've tried to uninstall all, re-download and reinstall but nothing happened.

when i start VTS it always show me that pop-up window (already tried to reboot my PC )

Installing the previous version all works properly.

anyone can point me to a solution?

thanks in advance :good:
[Virtuous Ten Studio] Diamondback:
Which OS?

.Net 4.5 installed?
[Virtuous Ten Studio] xcesco89:
windows 7 home premium and .Net 4.5 already installed :)
[Virtuous Ten Studio] Diamondback:
Okay, I guess you can't get me a screenshot of that appearing message? (That'd be pretty helpful :p)

Did you try uninstalling VTS

and

deleting all leftovers in the actual VTS program dir? (usually C:\Programs (x86)\Virtuous Ten Studio\)

Did you also try re-installing .net? (seen issues because of broken .net before, so... ;))
[Virtuous Ten Studio] chrisryn:
Is the site down? Trying to download and it keeps timing out.
[Virtuous Ten Studio] Diamondback:
Nope, working fine here, must be on your side ;)
[Virtuous Ten Studio] xcesco89:
after gazilion times here is the screenshot:

i've already tried to reinstall NET 4.5, completely uninstall VTS ( and the folder in C:\programs (x86)\) reinstall VTS and try to run it, but always the same issue :p
[Virtuous Ten Studio] Diamondback:
Okay, nothing to do with .net.

Please check whether a SECOND VTS instance is running in the background (--> task manager) and close it if there is one.
[Virtuous Ten Studio] xcesco89:
i've only one VTS process, killed that and tried to restart vts but same as before D:

( sometimes i hate windows >:eek: )
[Virtuous Ten Studio] Diamondback:
I'm going to bed now, but you are not the only case with this problem. One of my testers had it too, but it magically disappeared.

Will investigate further tomorrow.:good:
[Virtuous Ten Studio] xcesco89:
thanks anyway Diamondback :laugh::good:
[Virtuous Ten Studio] NadMaj:
wow.. thanks for this.. makes it a lot easier to de/recompile and sign apk's and jar's... :good:
[Virtuous Ten Studio] Diamondback:
Okay so, I have changed a few things and it still works for me :p

Any chance you can come to my IRC (#vts-dev on Freenode) to test it on your own PC?
[Virtuous Ten Studio] nick1313:
Just wanted to come back and give you a little update on my new method for dealing with the .r.9's.

I decompile them by using this code.

apktool d -r blahblah.apk

Works great and doesn't mess up the .r.9's however if you want to make xml changes to any of the xml's in the values folders that decompiling method won't work for you. If you are just messing with images it will work great. I tested it on the dialer and it worked great.

BTW. Ibotpeaches has said that he has fixed the .r.9's issue in his next release.
[Virtuous Ten Studio] mootenator23:
holo like skin help

I have the new droid DNA and recently downloaded the holo light skin for my phone I tried to apply it as normal but it doesn't even show up in any skins can you please please help me I really like this skin and want to use it
[Virtuous Ten Studio] Diamondback:
These skins are for the HTC One X or One S. Not for the DNA...

And this is clearly the wrong topic.
[Virtuous Ten Studio] charlescaz:
Just been looking at the new sense 5 screenshots . After using VTS and seeing what everyone else is developing in the M10 thread i must admit im a bit dissapointed . Maybe HTC should start using VTS as I've seen some themers create some amazing things for our devices .which to me put the "new" sense 5 to shame . Diamondback and team you guys rock , awesome product .
[Virtuous Ten Studio] Bebida:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.19.7

Untick use dedicated aapt in projects settings in the Apk part
[Virtuous Ten Studio] alper.s:
thank you mate
[Virtuous Ten Studio] ikjadoon:
Some cutoff issues

Hello! Just found this AMAZING app.

One little thing: some text is cut off in the file menu (see attached screenshot). I don't think this happened with whatever build was available on 1/19 (I had that one, but I wanted to screenshot the installation process for a guide I'm making, so I uninstalled the 1/19 one and installed today and had some trouble finding the Settings again, haha!). BUT, I might be wrong and it's always been like this.

I'm on a 1920x1080 screen, DPI set to 110% (custom). That DPI might be the issue?
[Virtuous Ten Studio] ikjadoon:
Also, maybe a noob mistake I'm making, but where is ADB pull putting files? I checked \External, nothing. I checked desktop, nothing. I searched for boobs.apk, nothing. :(

C:\Program Files (x86)\Virtuous Ten Studio\External\ADB>adb pull /system/framewo
rk/framework-res.apk framework-res.apk
4114 KB/s (30188437 bytes in 7.164s)

C:\Program Files (x86)\Virtuous Ten Studio\External\ADB>adb pull /system/framewo
rk/framework-res.apk /desktop
4556 KB/s (30188437 bytes in 6.470s)

C:\Program Files (x86)\Virtuous Ten Studio\External\ADB>[B]adb pull /system/framewo
rk/framework-res.apk boobs.apk
[/B]3320 KB/s (30188437 bytes in 8.878s)

C:\Program Files (x86)\Virtuous Ten Studio\External\ADB>

EDIT: Couldn't find it. Just used "remote" and it worked! :) I think...see issue below, haha:

---

I had a little trouble today:

1) I pushed a modded SystemUI.apk via VTS and my phone in recovery (this easy mod: http://xdaforums.com/showpost.php?p=31321978&postcount=18)

2) Said it pushed successfully, but I'm not sure it did (mod didn't work and SystemUI.apk in phone was original, not new)

3) So, then I pushed SystemUI.apk via ADB and my phone on. Restarted to a missing notification bar. No idea what happened, so I fixed permissions in recovery (to 0644) of SystemUI.apk.

4) Phone entered bootloop -> nandroid back before mod attempt.

It's probably something I've done, but I had two quick questions: 1) Does VTS fix permissions of files before pushing them? and 2) Does VTS remount /system when pushing files to it? Err...3) Does anyone know what I did wrong?

1) Created new project. Uploaded framework-res.apk and SystemUI.apk through "Remote". Used "Keep old signature" because it's a system app and changed smali API to 4.1 (I'm on 4.1.1)

2) Found XML file, edited file via copy/paste, saved it.

3) Hit build, no errors.

4) And attempted to push, starting with step 1 above.

--

Tried again; unable to push with VTS nor ADB! :( Any reason why? I can pull files fine. I'm using a stock 4.1.1, rooted, stock kernel (using adbd insecure). I specifically remount using adb before hitting "push," but even then after 15 minutes of waiting, still "pushing...." :(
[Virtuous Ten Studio] torxx:
Diamondback, imho you should disable it from the beginning in the next version :)

Happens on nearly every apk when having it enabled..
[Virtuous Ten Studio] Diamondback:
Yes you are right, your custom DPI is the problem. In fact it's very hard to make an app fully compatible with different DPI settings.

Even Microsoft's own apps usually don't work too well with higher DPIs.

So unless there aren't any major bugs caused by this (cut off text is not so major for me in this case ;)) I probably won't try to fix it. Sorry ;)

When doing adb pull it should probably place the files in the folder where the adb.exe is.

No, VTS won't change any permissions when pushing a file. I am not aware that this is needed btw. Never had any problems so far related to premissions.

Yes, VTS calls adb remount prior to pushing. You can actually see this in the debug log.

Yes, I partly know what's happening. Your problem is a broken signature.

You selected to use the old signature but then edited a file which is protected by this signature.

Therefore Android refuses to load your apk. The half solution would be to sign the apk with a proper signature (ie. use the test signature option in VTS).

However, this will lead to another error. Android will

still

refuse to load your apk, because its signature is

mismatched

.

All system apps

have

to be signed with the same key in order to get loaded by the package manager. Otherwise they will be rejected.

To circumvent this you need to patch services.jar to

ignore the mismatched signature

.

There are a few tutorials around on how to do that.

Actually people should rather use a newer apktool version with support for that feature. ;)

But I see this is a common problem and I am currently thinking about a few things to solve problems like this.
[Virtuous Ten Studio] mwilky:
Hey mate, today out of nowhere VTS just wouldnt open.

I'm on windows 8 and ive tried uninstalling, reinstalling, everything.

The error message quickly flashes but i managed to get a print screen.

It worked perfectly around an hour ago then suddenly wouldnt open.
[Virtuous Ten Studio] Diamondback:
Did you install any updates or anything?

I never saw this error before...

Looks like some Windows thing is screwed up.
[Virtuous Ten Studio] mwilky:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.19.7

Not in the time before it was working fine them not working, weird I know, might try a sys restore
[Virtuous Ten Studio] ikjadoon:
Haha, right, no worries. The alt-text works when I hover over, so I'm solid. :D

Right...I think something is broken there, then. I tried again today into a myriad of directories: nothing. It is pulling the file into maybe Bermuda's triangle because I've looked everywhere now. I wonder if it's maybe pulling into that temporary directory, as it does with remote (even if I'm using straight ADB commands)? See here:

Got it; will keep that in mind for future reference. Thanks, :)

Ah. OK, unfortunately, I already closed that VTS instance and lost the logs (I checked the /Logs folder, but it had one file that didn't seem to show my commands) :( But, thank you for confirming: that's why I had issues before (my fault, not yours). I'm on a stock kernel, so adb remount wouldn't work (needs that adb shell, su, mount -o remount, etc. or adbd insecure). And, also (again my fault, not yours; just to let you know, lol), adbd insecure requires after patching that you unplug/replug USB and/or restart the adb server....neither of which I did... :silly: These combined reasons are why I sat at "pushing...." for 20 and 15 minutes respectively, lol.

Ohhhhhh. Thank you for the clearest explanation of signatures I've see anywhere! :D So, the signature is checked by the APK itself (must match, i.e. no modifications) and also by Android (must be the same key it has on file). One teensy question: I've seen some people who have modded the SystemUI.apk (with similar XML mods), but they don't require (or...at least....talk about) modifying the services.jar? They just copy the META-INF folder and AndroidMainfest.xml from the original *.apk to the modded *.apk...but what you're saying is that those people must already have a modified services.jar. Right?

I just feel a little weird telling Android to ignore signatures of all the files (a little insecure), if I'm really just modifying just this one file. Or--now that I'm rooted--I'm being a little hypocritical trying to keep /system secure?
[Virtuous Ten Studio] SXUsr:
I'm falling out of love since the latest update, had no problems decompiling my framework and other apks before, and it's not loading my projects either when I run the program like it did before. Log attached.
[Virtuous Ten Studio] Diamondback:
That's because people don't read the changelog ;) (or this thread that is)

You are using an old apktool version which does not support the -a switch.

Go to the project settings and deactivate the dedicated aapt usage.
[Virtuous Ten Studio] alkhafaf:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.19.7

Yes it should work without the patched services.jar.. I always do it without patching.

And u don't need to copy Android Manifest.XML from the original, maybe your mod needs it to be modified to make it work..

Anyway, I am also facing a problem in vts when keeping signature, the apk doesn't appear in drawer... I will try to do it manually and see.

---------- Post added at 01:33 AM ---------- Previous post was at 01:20 AM ----------

Diamondback

Is it possible to make an option in vts to keep the unmodified files as it was originally ( example XML files in layout and PNG files in drawable)

This is useful because I faced some problems before in XML that was decompiled incorrectly and made the GPS icon functionning faultly, without any change I made to the XML file. I just chosed to include the new compiled XML and the problem happened.. ( apk multi tool).. but in vts I can not choose which compiled files to include...

I just wonder if this is a good idea, or it will affect on the operation of building apk.
[Virtuous Ten Studio] Diamondback:
So what you request would be in fact:

Decompile apk normally

Extract /res folder and save it somewhere (with COMPILED xml files)

Save MD5s of all files in /res

Compile apk nromally

Compare saved MD5s vs files on disk and copy the ORIGINAL/COMPILED version of ALL unchanged files to the compiled apk?
[Virtuous Ten Studio] alkhafaf:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.19.7

Well almost close, but u also save the res folder before decompiling, and after comparing the original compiled with the data we work on, u replace every unmodified data with with the uncompiled one.( the replace process occur after the compilation)

I hope i made it clear now. :)

And about md5, actually i dont know what it is, I will Google it :p
[Virtuous Ten Studio] ikjadoon:
Well, if anyone is curious:

1) Well, I'm as confused as anyone, but I copy/paste the META-INF folder and the AndroidManifest.xml file from a backed up SystemUI and paste it into my modded SystemUI: it works! :D I don't know why. But, now, no services.jar patching required!

2) For stock/secure kernel, you cannot add files to /system if you're running your phone. It must be in recovery. The whole adb remount or adb su -> shell mount -o remount,rw /system stuff = patently USELESS, lol. They will do nothing for you: you will always get permission denied. The only way it works is if your phone is in recovery mode. Maybe this could be incorporated into VTS? I don't know how you could go about detecting the ro.secure status easily, but you could just prompt the user if they are on the secure (stock kernels are) or insecure (custom ROMs). If they are, send "adb reboot recovery", wait 45 seconds (IDK if slower phones take longer to boot into recovery; mine is about 30 seconds from full-on), and then adb push the file.

3) But...lol....after all this, the mod didn't work! I haven't heard from anyone on this ROM who it has worked for (I was testing it out), but currently investigating! :)
[Virtuous Ten Studio] Diamondback:
Hm I could certainly check for ro.secure and give out a warning or something.

However, automatically rebooting to recovery, flashing and booting back up is... Less than ideal. However I could include a button to restart to recovery so it's a bit easier. :)
[Virtuous Ten Studio] Diamondback:
Guys I published a new update a few minutes ago.

It's OTA only and mainly contains low level bugfixes and stuff. Nothing too exciting :P

However, as always, here's the changelog:

https://docs.google.com/document/d/1kEiNNgOXuHsheqZRR8b6CJDjDz9Z9KwZGGECOztBZ0w/edit
[Virtuous Ten Studio] ikjadoon:
Oh, you can check for it easily? Well, that'd be awesome. :D

Haha, that's true it would be a little precarious. A button would be legit!

EDIT: OK, slight issue, though: what if they're running the stock recovery? I don't know if it set as ro.secure = 1 or 0.... The other, maybe easier option, is to link them to adbd insecure (http://xdaforums.com/showthread.php?p=37397932).
[Virtuous Ten Studio] dtrail1:
AW: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.19.7

Just found this thread. Thank you very much! This tool makes it more easy for my work!! Thx.

XT910 - Stock System: D-WiZ 3.0.2 / 2nd System: Moto Jelly Bean
[Virtuous Ten Studio] ikjadoon:
There has to be a better way! :D

haha, and there just might be; all you need to do, I think, is just edit your push command. See here: http://xdaforums.com/showpost.php?p=37407408&postcount=39
[Virtuous Ten Studio] Diamondback:
I don't think that's a solution. As far as I know SuperSU doesn't grant su automatically to shell (as opposed to the older Superuser, which does this)

However, you can always just use the built-in shell thginie from VTS do remount manually and push then. :)
[Virtuous Ten Studio] ikjadoon:
Right, SuperSU doesn't grant su automatically. It will create that "Grant/Deny" prompt on phone, which you need to say grant. And then it will always work, right?

haha...yes...I guess I could use the built-in shell........fine. At least, then, maybe let ro.secure users know this, though, so they aren't like me for two days wondering why "push" command is taking 20 minutes for a 2MB file. If you get time.

Did you get my AndroidManifest.xml-actually-being-modified screenshot, btw? I sent it on IRC, but I don't know exactly how "old" messages are stored, if at all.
[Virtuous Ten Studio] Diamondback:
Yea I got that screenshot. Doesn't really matter though, since I am going to implement a "maximum compatibility mode" longterm.

I am planning to introduce a pretty breaking change in the next version. I want to replace the current ApkTool path system with one based on version numbers.

You won't be able anymore to set a custom ApkTool path, instead you have two choices:

Always use newest ApkTool

Select a custom ApkTool version (but based on the version number, not a custom path)

The main goal is to simply the whole process of selecting ApkTools and to ease the upgrade to a newer ApkTool.

However, the main problem is that all your old projects will be resetted to "Use newest ApkTool" instead of using the custom one you might have assigned.

The question is now, how many of you actually use a very special ApkTool version and can't use a newer one?
[Virtuous Ten Studio] hammerholm:
Is it possible to decompile an shared.m10 file without having the .apk ?

Sincerely

Edit: You know what, nevermind.. xD
[Virtuous Ten Studio] Diamondback:
It's not possible anyway ;)
[Virtuous Ten Studio] ikjadoon:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.30.7

Oh, solid. Glad to hear it! :) if you need a beta-tester, let me know.
[Virtuous Ten Studio] Diamondback:
Well in the end it's aapt that fails... Always hard to find out what's going wrong in tehse cases.

What kind of apk are you trying to compile?
[Virtuous Ten Studio] -pixelfreak-:
re

its the ROMControl.apk from my rom

i send the link via PM

Pixelfreak
[Virtuous Ten Studio] Diamondback:
Works fine here. Decompilation and recompilation wtihout any issues.
[Virtuous Ten Studio] -pixelfreak-:
re

please write me your settings from VTS. work VTS with other android tool in background?

pixelfreak
[Virtuous Ten Studio] Diamondback:
Obviously VTS. :p

No special settings, just imported the apk with apktool 1.5.1 and the dedicated aapt checked (you had the same settings btw)

Did you try more than once?
[Virtuous Ten Studio] -pixelfreak-:
re

15-20 once ! i have smali for JB 4.1 and this not work. i have test later with smali for 4.0 and this works

i have test with framework-res.apk and with smali 4.0 works good with smali 4.1 not

pixelfreak
[Virtuous Ten Studio] PerfectSlayer:
No matter for me. I always use the last one (1.5.2 for now) ;)
[Virtuous Ten Studio] nick1313:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.30.7

+1, however I like the idea of being able to change easily, because some versions of apktool worked better on different apks.
[Virtuous Ten Studio] Diamondback:
You will be still able to change it easily (actually even more easy than before)

The only downside is that all

old

projects revert to "Use newest ApkTool" instead of any custom set one. (Just a one time thing. You can select the proper version again afterwards. You just need to think of this if you face any weird ApkTool errors and used a very special version before)
[Virtuous Ten Studio] nick1313:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.30.7

Yea that won't really affect me too much because I don't ever reopen old projects. I just start a new one. ;)

Thanks for all your work, btw I assume you saw latest apktool was released and has, supposedly, fixed the .r.9 issue. I only say supposedly because I haven't tested it yet.
[Virtuous Ten Studio] nick1313:
Just thought of something that would be a pretty cool addition to the program. Not sure if it's been brought up or if it would even be possible. Maybe you guys have tried.

Allowing the user to pick multiple apks at once, so for instance, if you wanted to do a red theme you could just call the project red theme, then pick all the apks you want at once inject them into the project and the program decompiles/remcompiles/pushes them all at once.

I basically do it that way right now with scripts and commands in command prompt but thought it would be a cool addition to the program.
[Virtuous Ten Studio] Diamondback:
Most of this is already possible. (If I understand you correctly)

Just create a solution for your red theme and add all the related apks to it.

Since VTS remembers the settings you made in the "New Project Window" that's a matter of seconds when using drag & drop.

After editing you can build & push all projects at the same time via the buttons on top or via the context menu of the solution.
[Virtuous Ten Studio] zalzondabuzz:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.1.30.7

hello sir..

any method to test apk's on AVD/emulator after compiling...??

Sent from my GT-S5360 using Xparent ICS Tapatalk 2