yashsingh1/xdaforums huggingface dataset:
[Virtuous Ten Studio] Moscow Desire:
animation loop

Great Studio. Check your mail, sent donation info.

So, it worked great with deodexing (saving original signing). And the decompile and recompile of android.policy.jar went great.

The problem is what I expected. Framework-res.apk. It's an Acer 4.1.1 apk.

I create a new project, set the properties;

Apk name framework-res.apk

newest apk tool

Framework Tag (this is where I'm a little foggy, In APKTool cmd line, we used to us "if framework-res.apk" before we decompiled and recompiled). Currently, the drop down dialog states "ramework-res"?????? or is there something I need to type in there.

The next 2 options have checks in them.

API level to JB 4.1

Sign APK via "keep original signature". All the other apks have original sig's, and I do not want to chase down logcat errors by using test keys. Acer is sensitive.

Any, after making 2 small color edits, recompile, no errors. Push to device. Result, animation loop. Also decompiled and recompiled without changes, and still animation loop.

Any guesses folks? Did I not configure something correctly in properties. Framework file attached.

MD
[Virtuous Ten Studio] Diamondback:
This seems to be an issue with the installed .net framework. Try reinstalling it. This has fixed this error a few times already.

Check YOUR mail :p

Anyway, since you already posted here, we can also make this public :)

Did you read the tutorials here?

http://www.virtuous-ten-studio.com/index.php/getting-started

Very useful stuff there :good:

To me it seems you have a few issues at the same time.

1) Get some knowledge about apktool frameworks. The link above should contain some basic stuff, but you need to understand what "tags" are all about :)

With tags you can have different "sets" of framework apks, for example from different devices or differente ROM versions.

Every project needs an assigned framework tag so it can use the proper set of frameworks (only applies to apks that actually NEED frameworks at all, ie. /system/ apks)

2) Keep old signature does not work 100% in the current version. This is fixed in the next one but until then you'll have to do some handwork.

(this is most likely the cause for your bootloop too) Due to various obscure reasons you'll have to copy the OLD, compiled AndroidManifest.xml over to the NEW apk after VTS built it for you.

Feel free to contact me on GTalk via the email I gave you if you have problems with that.
[Virtuous Ten Studio] Moscow Desire:
Indeed I did :p :laugh:

Well, success!!! Indeed it was the original signing not being carried over! Thanks for the quick answer and the workaround!

As with framework tags, it seems most important for HTC frameworks for example, from what I read. Will have to read more. I remember always using "if framework-res.apk" when using the old manual APKTool. Just wasn't sure how to enter it in the Tags options in properties. Couldn't find a reference to it on your site. Maybe I missed it somewhere. Regardless, I entered framework-res.apk and everything compiled fine. Acer frameworks seem pretty straight forward compared to Sammy and HTC.

Anywho, thanks as always. Great app and look forward to the next version!!! Sure makes life a lot easier!

MD
[Virtuous Ten Studio] NunoPitbull:
Hey, im totally newb at this first time, and im trying to decompile SecMms.apk (jellybean nordic) since im on stock rom what I need to do ? I try to import it, Solution name i put SecMms but when its decompiling resorces, it fails. I tried importing also the twframework but no sucess using as a tag either...help is needed :D Just want a stock original SecMms.apk with unlimited characters and ~100contacts....thanks for your help and comprehension...also I dont understand how to use the apk tool at all and this one seemed more user interface friendly... great work thouh!!!
[Virtuous Ten Studio] Diamondback:
We need some logs to tell you what's wrong ;)
[Virtuous Ten Studio] Diamondback:
Okay guys, the next version is coming soon.

Have a peek at it here:

http://www.virtuous-ten-studio.com/index.php/what-s-new/104-what-s-new-in-2-3-27

Thanks as always to the awesome Dunc for writing that article :good:
[Virtuous Ten Studio] Brds7t7:
HTC Frameworks are a pain in the rear end! :(
[Virtuous Ten Studio] Dirk64:
Great tool, donated (xxxxxxxxxxx261E) :good:
[Virtuous Ten Studio] NunoPitbull:
Here dear sir. Using JB 4.1.2 stock nordic. I explained what im trying to do in the above post. Thanks for ur comprehension!
[Virtuous Ten Studio] Diamondback:
Here is your issue:

[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.'

You didn't install all required frameworks ;) You need to install all *.apk files from /system/framework/ (should be 2-5 apks or so) as framework apk with the

same tag

and then select that tag in the project settings.

Apparently you only installed

one

framework, so you are missing one or a few more.
[Virtuous Ten Studio] NunoPitbull:
How do you "install" that in the computer? I just draged them to the folder o.O Its jellybean, and odex(beeing stock) how do I do this?

EDIT: I'm in framework folder and I have: framework-res.apk, framework.jar, framework.odex framework2.jar, framwork2.odex, twframework-res.apk, twframework.jar, twframework.odex and nothing more related to framwork..
[Virtuous Ten Studio] Diamondback:
Good so you have two framework apks there. You need to grab both and install them as frameworks.

Have a look here;

http://www.virtuous-ten-studio.com/index.php/getting-started/89-get-started-how-to-setup-vts

and here:

http://www.virtuous-ten-studio.com/index.php/getting-started/88-setting-up-your-first-project

Make sure to use the same tag for both and select that tag in the project settings.
[Virtuous Ten Studio] Dirk64:
AW: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.2.11.8

Thanks for the key, great tool. So far I used apktool and smali, this is much more comfortable. Placed my own compiled newer smali and apktool in the folders and it works well.

Will not ask for any issues caused by my changings ;)

Sent from GNex...
[Virtuous Ten Studio] NunoPitbull:
I'm just nto understanding right the part of the tag, but i'll try in a while. To build again the SecMms.apk its just click on build? (Its for deodex ersion,stock JB :S)

EDIT: I have 2 frameworks, one and 2 and twframework...which ones i use??
[Virtuous Ten Studio] mushtafa:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.2.11.8

Hi, I ran the .net install again and it ran a repair on the system. Also tried to reinstall VTS again without success.

I'm running .net 4.5 - is this the latest one?

Sent from Tapatalk 2
[Virtuous Ten Studio] Diamondback:
You'll have to install framework-res.apk and twframework-res.apk if these are the only two apks from /system/framework/

Have a look at the two tutorials I posted for help on how to install and properly select the frameworks in your porject.

make sure to use the same tag for both framework apks.
[Virtuous Ten Studio] NunoPitbull:
Thanks! It finally decompiled sucesfully. How do I build the Odex version now?(For stock JB 4.1.2 Nordic countries):)
[Virtuous Ten Studio] Diamondback:
Why do you want it to beodexed again? Just delete push the new app and delete the odex file on the device. Should work just fine.

Odexing an app requires some more work since you can't do that on your pc... It needs to be done remotely on the actual device.
[Virtuous Ten Studio] NunoPitbull:
I clicked on Build, it went to a folder named Binary. I grabed it and puted on phone. It said the partition was full so i deleted a app. Then i sucesfully pasted it there, and rebooted phone, i thoutgh it was going to work. But now i tested and still saying converting to MMs..:/ bah...
[Virtuous Ten Studio] Diamondback:
There is a new VTS version: (available via OTA and standalone download)

2.3.27.9200

Here is the link to the "What's new" article again, please read it so you know all the great new stuff. (Thanks Dunc! :))

What's new in 2.3.27

And here's the link to the actual changelog, which lists even more changes:

VTS Changelog

Standalone VTS installer (OTA is online too)

VTS Downloads
[Virtuous Ten Studio] Diamondback:
did you delete the odex file on your phone?
[Virtuous Ten Studio] NunoPitbull:
I have to delete the .odex file? why? I did "clear data" on "App manager" if its the same thing..
[Virtuous Ten Studio] Diamondback:
Because if you are using a deodexed app this file is not needed anymore. And no, that's not the same as clearing data.
[Virtuous Ten Studio] NunoPitbull:
So I did what u told me, and rebooted phone, now I dont have message icon ... Im running stock JB....only with root..

And now i try to put .odex file back on and keeps saying I dont have room even though i deleted 3 apps:/

---------- Post added at 11:50 PM ---------- Previous post was at 10:55 PM ----------

No SMS app now, ouch :/

Managed to push it somehow. by putting SecMms also on preload folder.
[Virtuous Ten Studio] NunoPitbull:
1:) Installed both framework-res.apk and twframework-res.apk.

2) Decompiled SecMms.apk.

3) Went to config_ and edit the smstomms.....from 4 to 200.

4) Edit recipients from 10 to 200.

5) Clicked on build. Program asked there was unsaved things, if I wanted to save, I said yes.

6) It builded and created to Binary folder. (I will attach the file so you can see if smth wrong with it)

7) Download by Dropbox the file to my PC, Copied by using Root Explorer to preload/symlink/asystem/app (since it wasnt allowing me to do it on system/app) and created link to system/app. Setet permissions to 644 or R-w--r-w, rebooted phone.

8) No changes whatsoever.

9) Cleader Message data, rebooted phone. No changes.

What am I doing wrong here?

P.S: My phone is odexed, since i'm using OFFICIAL stock firmware, jellybean v4.1.2 for sgs2.
[Virtuous Ten Studio] Diamondback:
What about a logcat? :) Without it's hard to tell anything.

Btw, you don't really seem to know what you are doing, you might want to get some general knowledge about modding Android first...

If you need the app back badly, just restore the backup you made before starting to tinker around :)
[Virtuous Ten Studio] PerfectSlayer:
> You are great ! So needed feature. Thanks ! :good::good:
[Virtuous Ten Studio] Tungstwenty:
Sorry if this is a bit unrelated to VTS, but I think it might be a good approach for the simpler modifications that don't involve much refactoring of code or resource changes.

Have a careful look at this thread's OP and you'll find a simple way to do the change you want for SMS->MMS behavior.

Here's a direct link to the relevant source code snippet.
[Virtuous Ten Studio] NunoPitbull:
I don't know why all of this, when i "sucesfully" learned how to decompile and recompile the app. I edited the fields that were presented in a topic, on which they also advice to use this program since its easier for newbs like me. The question is why the changes aren't felt in the android...a guy told clearing Messaging data solved it, while i did it and rebooted and nothing...
[Virtuous Ten Studio] ikjadoon:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.3.27.9

Had a similar issue:

Why can't you push to system/app? What's the error? Try using adbd insecure, if it's a permissions issue.

Also, try pushing the file to your sdcard and then use adb shell to copy it to system/app.

If you need exact commands, I'll write them up today or tomorrow. And make sure to make a Nandroid.
[Virtuous Ten Studio] NunoPitbull:
Yeah if you could, would help. I just dont knorw What not working, did same on galaxy ACE and it works...why not in s2?
[Virtuous Ten Studio] DavidIQ:
I'd post this on the tracker but it's apparently down right now (500 Internal Server Error) so I'll have to do it here instead. When renaming a project within a solution I'm getting the following error:

Same error if I try to add a new project to the existing solution.

I must say that I'm very impressed with the completeness of this thing. You guys have done an excellent job creating this IDE. Many thanks. :good:
[Virtuous Ten Studio] GuyAdams:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.3.27.9

I've never decompiled an apk before, with your app and tutorials I've just pushed my first modified frameworks-res.apk without any issues whatsoever.

Donation incoming tomorrow, many many thanks for your hard work.
[Virtuous Ten Studio] ikjadoon:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.3.27.9

Make sure your apk is in the same directory as ADB.

Adb push yourapk.apk /sdcard/yourapk.apk

Confirm it made it there. :)

adb shell
su
mount -o remount,rw /system
mount|grep /system

Here, it should say rw somewhere instead of ro.

busybox cp /sdcard/yourapk.apk /system/app/yourapk.apk

Maybe not /system/app, but wherever it's supposed to go.

Reboot your phone. It will reload the apk and set system back to read-only, both good things. These steps should work with any phone that is rooted and has busybox installed. :)
[Virtuous Ten Studio] Diamondback:
I'll have a look at that one. Issue tracker is up again btw :)
[Virtuous Ten Studio] toxicthunder:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.3.27.9

Diamondback, would it be possible to introduce something like a Firebug tool (a Firefox extension) or anything similar to the native web developer tools?

Just incase you haven't dabbled in web designing, you get these features via 3rd party browser extensions. These days even the built-in developer tools are sufficient enough to analyze CSS layouts, topographies, element information etc

In chrome and several others, it is accessed by simply right-clicking on any element on the screen and clicking on 'Inspect Element'.

Just a thought if its something that can be worked upon whenever you're free. I played around with the Hierarchy Viewer tool that comes with the Android SDK, but it isn't as user friendly as the web counterparts.

Edit: sorry for being greedy with the feature list, VTS seems to have so much possibilities so I thought why not this feature as well :D
[Virtuous Ten Studio] Diamondback:
I'm probably missing something here, but why would you want to have web developer tools in VTS?

Its intended use is for reverse engineering apks and stuff after all :cyclops:
[Virtuous Ten Studio] ikjadoon:
Thanks for incorporating the AndroidManifest.XML copy over. Psyched! :D It's so much easier now! :)

--

BTW, as a follow-up from our IRC chats, here's a thread where we have figured some things out: http://xdaforums.com/showthread.php?t=2182496&page=2

Haven't tested it yet, though. So much work. :(
[Virtuous Ten Studio] Diamondback:
Ah, so it looks like Samsung is doing its own thing again ;)
[Virtuous Ten Studio] toxicthunder:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.3.27.9

Yes you surely misinterpreted my point :)

What I meant was to have something 'similar' to web Developer tools, but for the Android gui.

Many users find VTS extremely helpful for Theming in Android, and having the ability to click on, lets say any status bar on your screen and consequently bringing up information about it (dimensions, drawable names etc) would be a big boon.
[Virtuous Ten Studio] Diamondback:
I still don't see how and *where* I should implement this. Most UI elements get their properties on runtime, dimensions etc aren't fixed...

And how would you "click on any statusbar"? Are you talking about something running on the Android device? (The web dev tools you are mentioning are running on the "device" after all)

Sorry, I still don't really understand you :o
[Virtuous Ten Studio] DavidIQ:
I understand what he's talking about but the technical feasibility of it is out of this world. Think about Visual Studio's different Source/Design views and about applying that in this case. Doing something like that is not something that I see as doable with APKs however. The resulting output is not really traceable as the elements of a web page are.
[Virtuous Ten Studio] toxicthunder:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.3.27.9

Yes I guess I need to explain more.

I'll try with the help of an example. Lets say I have the xda app open on my phone. Now I connect it to my pc, and with debugging enabled I start VTS.

Now we somehow have a snapshot of whatever activity is open on my device screen on VTS. A refresh rate could be specified to reload the snapshot to pull up any changes (like any popup dialogues etc )

Lets say I have the subscribed threads page open. A snap of the same would be available on the screen. Now suppose I feel that one of the buttons is too small, and slightly out of place with regards to alignment. But how do I find out what the button's properties are? What image is used, what are its dimensions etc?

So I click on the the button as it appears on the VTS snapshot and immediately all info related to it pops up - all measurements, topographic information, resource ids and so on.
[Virtuous Ten Studio] toxicthunder:
Re: [IDE] Virtuous Ten Studio - The next level of reverse engineering apps | 2.3.27.9

Yes most elements get their properties at runtime, no doubt about that. And the layouts would obviously depend on the screen size.

But i am sure there are other elements that would remain consistent across all implementations.
[Virtuous Ten Studio] Diamondback:
Okay so no, I doubt this will ever happen ;)

The thing is, Android doesn't provide you any access to all these information.

Even with my upcoming smali debugger that's not possible. (or at least only very little of that would be feasible)

Of course nothing is really impossible and I am sure someone could hack together something using reflection and other crazy stuff

but the time needed for that is just out of this world.
[Virtuous Ten Studio] NunoPitbull:
Anyone here can assist me on my problem? I'll remind it again.

I decompiled SecMms.apk and edited the required fields, and with root explorer i puted it on /preload since it wasnt allowing on system/app.

Rebooted phone, and still cant addmore then 10 contacts or make SMS larger then 4 pages..

Running official stock JB 4.1.2 SGSII
[Virtuous Ten Studio] tri83:
buliding .apk file

When I'm buliding the project. VTS produces an .tmp file instead of an .apk. What I'm doing wrong?
[Virtuous Ten Studio] Diamondback:
Hm, did you use Sign & Zipalign? Where did you find that tmp file?
[Virtuous Ten Studio] Diamondback:
Guys have a look what memnoc put up here:

[TUTORIAL] First approach to VirtuousTenStudio Software|best way to manipulate apk's

It's a really nice tutorial on how to get started with VTS :)
[Virtuous Ten Studio] deathblade:
hi, im sorry if this isnt the place for bugs, but virtuous ten studio doesnt seem to like compiling framework-res.pk, it keeps failing when i try i have a video i made showing the error messages and such you can find a link here

also thank you for this awesome software, this is the only thing i found so far that doesnt seem to want to work
[Virtuous Ten Studio] Dougi:
this tool is simply amazing... WOOOOW

AMAZING , AMAZING , AMAZING ..

:cool:
[Virtuous Ten Studio] Dougi:
really weird, i can de-compil the Rosie of PKMN ROM and i can't de-compil the Rosie of leedroid lastest V 5.0.0 .. itried 1 million setup , i just can't..

anyone else..

info , i can de-compil that Rosie through my severals setup of apktool that i have on my C:\ user

???????????????????
[Virtuous Ten Studio] Dunc001:
Dougi, use the hacked apktool and aapt which memnoc posted HERE in the VTS tutorial thread. I have decompiled rosie and many others from the PKMN ROM with it. The only one that failed (other than com.htc.resources which is still not possible) is SystemUI, but I got that to decompile using apktool 1.4.3.

Edit - sorry just re-read your post so not sure if this will help or not...
[Virtuous Ten Studio] Dougi:
wait i have to reboot my PC, i know about the tutorial , not that clear ...

---------- Post added at 03:17 PM ---------- Previous post was at 02:58 PM ----------

and now i can't decompil anything, i'm such a f###g NOOB

EDIT :

APKTOOL FAIL EXITCODE 1
[Virtuous Ten Studio] Diamondback:
Okay the first thing: There is a "Log Viewer" in the "Extras" tab which lets you view and save all the logs. Way easier for reporting that kind of stuff. :)

Now to your problem. Can't really see much of the log i nteh video but I do see one important part. Something like "failed to execute aapt.exe"

This means you are using an icompatible version of ApkTool - or maybe there isn't even a working version. ApkTool can't decompile all apks atm, mainly ICS apks have huge problems.
[Virtuous Ten Studio] Diamondback:
Did you install the framework files from both ROMs?

Did you use the correct framework files for the second Rosie?

What is the error?
[Virtuous Ten Studio] Dougi:
i did all 2 steps , correctly ...

error is : " can't load public xml "

APKTOOL FAIL EXITCODE 1

---------- Post added at 03:31 PM ---------- Previous post was at 03:28 PM ----------

i might know the mistake .. :)

wait ..
[Virtuous Ten Studio] Diamondback:
No, that is not an error, that's a warning... Just save the log via the "Log Viewer" and paste it on pastebin.
[Virtuous Ten Studio] Dougi:
so in fact , as soon as i change the settings to apktool bad magic values, i get errors, when i put back apktool 1.4.3 no error.. .

pastebin ???? will this solve the prob ??
[Virtuous Ten Studio] jojo4747:
How can we stop apktool from freaking out when you edit an xml?
[Virtuous Ten Studio] Diamondback:
What are you trying to tell me? Different ApkTool versions produce different errors...
[Virtuous Ten Studio] Diamondback:
What exactly are you talking about?
[Virtuous Ten Studio] jojo4747:
Whenever I edit an xml I get an apktool has failed exitcode 1, this only happens with xmls anything else is ok, I tried multiple apk versions but all have the same issue.
[Virtuous Ten Studio] Dunc001:
OK, so I am now trying out VTS at home. I'm on Vista 64, and I have the SDK and JDK both installed correctly (latest SDK Tools 19, 1.7.0_04 JDK, PATH correct, etc). I can open and run SDK Manager, I can open and run the kitchen, when I open cmd and type 'where java' it gives me the JDK bin path first then the System32, and 'java -version' returns 1.7.0_04. So how is it that when I try and import my first local file into the first project in VTS it fails with a 'java binary not found' error?

EDIT - Nope, hang on... can't run the kitchen 'java is not installed' - WTF? Anyone around who can jump on chat or IRC and assist please?

EDIT AGAIN - Forgot to edit my bash_profile to 1.7.0_04 for the kitchen so now kitchen runs, so it's just VTS that isn't finding java for some reason. So help still required...
[Virtuous Ten Studio] Diamondback:
Just come to my IRC and ping me :)
[Virtuous Ten Studio] TheNorth:
Nice work..Downloading.
[Virtuous Ten Studio] Diamondback:
That's an ApkTool problem, can't help you there ;)

Ask in the ApkTool thread or on IRC.
[Virtuous Ten Studio] -pixelfreak-:
re

VTS works with my already installed apk tool? or the files in the VTS program

i have a ApkTool tolder in the External folder and the problem is a .apk files insert this ApkTool folder?

can you send me your files from apkTool folder?

pixelfreak

edit: i have new installed and the self problem. JellyBean 4.2.2 files not work on it
[Virtuous Ten Studio] razer1224:
2LB002866W599881F

Cheers :D
[Virtuous Ten Studio] NunoPitbull:
Anyone here can assist me on my problem? I downloaded and installed Virtuous Ten Studio:

I decompiled SecMms.apk and edited the required fields, and with root explorer i puted it on /preload since it wasnt allowing on system/app.

Rebooted phone, and still cant addmore then 10 contacts or make SMS larger then 4 pages..

Running official stock JB 4.1.2 SGSII

Any help is apreciated. Thanks.
[Virtuous Ten Studio] Diamondback:
Ignore the jar, it's needed for javasource generation.
[Virtuous Ten Studio] -pixelfreak-:
re

thanks. you mean "Generate Java Code" ?

pixelfreak