yashsingh1/xdaforums huggingface dataset:
[Virtuous Ten Studio] DeSim:
Well i pulled the following from my phone

com.htc.resources

com.htc.socialnetwork.res

com.htc.videowidget.res

com.htc.weather.res

framework-htc-res

framework-res

I gave them all the same tag MeanBean1,7. i edited a few images on a apk skin that i downloaded for MeanBean.. It wouldnt work..

Then i downloaded the stock JB. Pulled the same as above..still no go. Tryed to use a stock skin as well and still no go.. I dont know what i am doing wrong. here is another log. im sure it looks the same..

www.dropbox.com/s/femvrxfw7rqfr69/Debug.log
[Virtuous Ten Studio] Diamondback:
Did you also assign this tag to the project in the project settings? :p

Just installing the frameworks won't help ;)
[Virtuous Ten Studio] DeSim:
now when you say did i assign the tag to the project do you mean like when i first open a new project, then in the apktool sec choose the framework tag that i tagged the frame work i want to use? Yes I did that! if thats not what you mean then i have no clue...:(
[Virtuous Ten Studio] DeSim:
That is the first step I do

2nd

Not sure what I'm am supposed to choose here but I normally leave it on 4.0

My ver on my phone says senses 4.+

Then I import the apk I want to edit

Sent from my MeanEvo
[Virtuous Ten Studio] DeSim:
Also is this path right?

Sent from my MeanEvo
[Virtuous Ten Studio] DeSim:
Anyone? I really need some help..

Sent from my MeanBean LTE
[Virtuous Ten Studio] vanessaem:
Try following this procedure http://www.virtuous-ten-studio.com/index.php/getting-started/88-setting-up-your-first-project. Start with one apk at a time.

But this is what I did -

Click on:

New Project

Project choose Apk-Project(give your Project and Solution a name)

Apk-tool (to be honest I didn't do anything with this)

Smali choose 4.1 Jellybean

M10(Optional) tick "Use M10 tools to decompile M10 files" choose Sense 4.1

Import choose the file you want to work on then click OK

Everything I said may not be textbook correct but this was how I was able to get my mods and other work done without issue. I'm just trying to help out here.
[Virtuous Ten Studio] DeSim:
So when I set up my framework with a tag do I need to make a tag the same for all or different for each. I've followed that guide along with the skin guide as well and to no luck. I'll try what you said and leave the apk part alone.

Sent from my MeanBean LTE
[Virtuous Ten Studio] vanessaem:
To be honest, I didn't set up any tags. Maybe I'm doing it wrong but I haven't had any problem decompiling and recompiling my apk's.
[Virtuous Ten Studio] fisha21:
Just some clarification on tags:

Tags are useful if you are editing apks from different versions of android...GB/ICS/JB, or Sense/AOSP/MIUI.

As you know, if you want to decompile an apk, you need to install the framework apks first. So, say you're working on an ICS apk. You install the ics framework-res.apk etc. All fine. But now you want to work on a JB apk. So you install the JB framework-res.apk. Now this overwrites the ICS fw-res you installed before, so you'd need to reinstall that if you wanted to work on ics apks again.

But if you installed the ICS frameworks using the tag "ICS", and the JB frameworks with a "JB" tag, then you can have both sets of framework files installed side by sidez and call the relevant one using the tag, depending on which android version the target apk is from. So, all framework apks from a particular android version can have the same tag...and in fact this probably keeps things simpler. And if you're only ever working on apks from one android version, you don't need tags at all.

Hope that makes things clearer, and not more horribly complicated!!
[Virtuous Ten Studio] vanessaem:
Thanks for the clarification sir. ;)

That's probably what I used to do when I was just working with the apktool. All I knew was I had to use the correct framework-res.apk between Android versions.
[Virtuous Ten Studio] DeSim:
Well I found out that if I don't mess with the apk area and choose a framework it won't decompile at all..

I loaded up from my phone the com.htc.resources, framework-htc-res and the framework-res. All with the same tag Jellybean... With out making any changes I try to build the project and it fails compiling..

Sent from my MeanBean LTE
[Virtuous Ten Studio] vanessaem:
Just for the heck of it, perhaps you can try the steps I listed above? :)
[Virtuous Ten Studio] DeSim:
I just walked through it... No go. It's like it's not installing the framework or some thing.. Keeps seeing the same errors that I've posted be for.. Here it is again..

Sent from my MeanBean LTE
[Virtuous Ten Studio] DeSim:
It was so much easier to theme the older phones.. No issues when I have the my touch and even the og evo... This is frustrating.. Lol

Sent from my MeanBean LTE
[Virtuous Ten Studio] vanessaem:
Sorry, didn't realize you were compiling. I thought you were having issues with decompiling. My bad.

Try this: Go into res>values, delete the public.xml, go into arrays.xml, in Line 18 and 20, remove "reference-" but don't remove "array" save and try compiling again.
[Virtuous Ten Studio] DeSim:
Lol.. quite alright. Can seem to get it do compile at all. If I load up and edit with out the m10 files it's fine. But the things I want to change are in the m10 files.. Lol

Sent from my MeanBean LTE
[Virtuous Ten Studio] vanessaem:
When you decompiled, did you tick "Use M10 tools to decompile M10 files" and choose Sense 4.1 at the M10 option?
[Virtuous Ten Studio] DeSim:
Yes sir.. It decompiles fine. I edit (lately I haven't edited) then I go to build and it fails.. SMH

Sent from my MeanBean LTE
[Virtuous Ten Studio] vanessaem:
Did you try what I suggested above to get rid of those public.xml errors you're getting?
[Virtuous Ten Studio] DeSim:
I over looked the bottom my bad.. now the res you mean is the res folder of the apk I'm working in correct?

If so I see line 18

<reference-array name.....

Is this how it should look <array name...

And 20 should be </array name....?
[Virtuous Ten Studio] vanessaem:
Yes, right under assets, there's the res folder, then you go into values and do what I had mentioned above. Please report back. If you have a PC, please use the Snipping Tool to take your screenshots. It takes better pics. :D
[Virtuous Ten Studio] DeSim:
I never knew I had a snipping tool on my PC lol. It seems to work but I didn't change anything yet I'm going to do that now and get back with you. see if that works. Will I need to do that all the time?

Sent from my MeanBean LTE
[Virtuous Ten Studio] vanessaem:
It seems anytime you open an apk, the old public.xml remains in there. When you compile a project, the public.xml is created automatically. The old public.xml conflicts with this causing error messages saying something like, "<Fill in the blank> have already been declared."

You will not have to keep taking those steps previously mentioned as long as you're continuing to work from that open project. However, if you open new apk's, you might have to take those steps again.
[Virtuous Ten Studio] DeSim:
Well that worked... I'm working on a skin. Using clear jb v1 from here. I changed the lock ring and the wall paper. The wall paper stuck when I loaded the apk to my phone. Lock ring didn't. I changed the lock ring in the assets folder and in the res.. it didn't stick along with everything else is stock not clear...wth? Lol
[Virtuous Ten Studio] vanessaem:
Try rebooting your device.
[Virtuous Ten Studio] DeSim:
did that then I deleted it and a fresh install reinstall of it
[Virtuous Ten Studio] vanessaem:
Did you rename the folder in Assets that contains the m10 files? Note: It's the folder that contains drawable, drawable_land, stylesheet. In values, did you go into strings.xml and rename the skin there? Did you rename the package string in AndroidManifest.xml? The name you gave in the AndroidManifest.xml has to the same as the Folder in Assets.

For example, the name of your skin is ClearSkin. The folder in Assets should be called ClearSkin and the package name in AndroidManifest.xml should be com.htc.skin.ClearSkin.
[Virtuous Ten Studio] DeSim:
Yep also I noticed this in the android manifest. Where is says sense version that's probably what I need to set the m10 too?
[Virtuous Ten Studio] vanessaem:
Please ignore all of that. All you should be concerned about is that the package string is not named correctly.

Check the example seen in the attachment below.
[Virtuous Ten Studio] DeSim:
Got you.. now I was messing with some images in my systemui.apk and now I have not status bar after reboot.. not a big deal I can do a restore just wondering what happened
[Virtuous Ten Studio] vanessaem:
Or you can just reflash whatever rom you're on. That will put it back and won't remove any current apps on your device.
[Virtuous Ten Studio] DeSim:
Well I get it to compile now. But all I am trying to do is change the damn lockring and its not doing it. I loaded up a skin. It all just stays the stock skin.

Sent from my MeanBean LTE
[Virtuous Ten Studio] Diamondback:
There are multiple lockring images in some skins. Maybe you edited the wrong one?
[Virtuous Ten Studio] Diamondback:
I got bored:

Any further wishes for the interface?
[Virtuous Ten Studio] Bebida:
Did you change the manifest and folder in assets to the same if not it will pull from stock fusion also make sure to include image tracker in the same folder as the ring, also as mentioned there is 2 lockring images make sure to med the right one. I would recommend the skin guide on the vts website too.
[Virtuous Ten Studio] torxx:
Nice job, maybe you can add an option to remove all debug code from /app and /framework as well?

Gesendet von meinem HTC One X mit Tapatalk 2
[Virtuous Ten Studio] Diamondback:
What kind of debug code are you talking about? The smali debug things like ".line xyz"?
[Virtuous Ten Studio] torxx:
Yep, you have an option in vts to remove it when you decompile a single apk but an option to remove it for whole /app and /framework woulf be awesome

Gesendet von meinem HTC One X mit Tapatalk 2
[Virtuous Ten Studio] Diamondback:
Why would you want to do that? I don't see a reason to remove these information on apks you don't want to decompile...:confused:
[Virtuous Ten Studio] torxx:
Hmm, to clean up the files mainly, you save about 50 MB or more on sense files by doing that, smaller ROMs and better for servers..

I think all people do that with a batch from the forum but I recently jumped on vts 100%ly from all other tools and want to have everything in one.

I understand though that it is no option for you as the tool is mainly for apk reverse engineering only

Gesendet von meinem HTC One X mit Tapatalk 2
[Virtuous Ten Studio] Diamondback:
Hm well, if that's true, that might be worth considering it.
[Virtuous Ten Studio] vanessaem:
I told him this exact same thing many posts ago. :eek:

Hey Bebida.

/waves :o
[Virtuous Ten Studio] DeSim:
Well if I never changed the name in the manifest or the folder they would be the same from the stock skin. Example: Concrete. What you guys are saying is I HAVE to change that? (concrete) I didn't change it cuz I figured I'd keep it the same and just change the lock ring. I only seen the lock ring in the images folder and the one in drawable xhdpi

Sorry I'm such a noob at this..

Stuff isn't like it used to be.. This is the most help I've asked for ever, since I've been rooting and flashing things...

Sent from my MeanBean LTE

---------- Post added at 03:56 PM ---------- Previous post was at 03:53 PM ----------

Sorry what do you mean image tracker. I'll go back and look at the skin guide again and see if I missed something.. Since I can get the stuff to compile now...

Sent from my MeanBean LTE
[Virtuous Ten Studio] vanessaem:
It's really a good idea if you rename whatever you're doing. All you're doing by keeping the same name(s) is calling elements of the stock skin. Hence, no change in yours. We've all have had the problems you're having and from experience we've learned the best way to do things so there aren't any issues and the mod will work the way it's intended. I don't know what else to tell you. Good luck with your creation. :)
[Virtuous Ten Studio] DeSim:
Thanks man you've been really helpful. I'll check and double check the skin guide on the site along with what we've talked about and see what I'm doing wrong... Thanks again man! I'll let you know how it goes and maybe one day I'll be able to be a master themer.. Lol

Sent from my MeanBean LTE
[Virtuous Ten Studio] coal686:
Vanessa is a woman. :p
[Virtuous Ten Studio] DeSim:
Didn't mean it like that.. Lol.

Sent from my MeanBean LTE
[Virtuous Ten Studio] fisha21:
This is a really good point and possibly the reason your edits are not working. In JB roms, fusion.apk contains resources folders for all the stock Sense 4+ skins. Check your fusion.apk, and there will probably be a Concrete folder in there....that's what your modded skin is pulling its image from, hence the lack of change.

You have 2 options:

1. Remove the Concrete folder from your devices fusion.apk. This will break the line between the skin and fusion, and allow your mods to work

2. Change the name of your skin, which again will break the link to fusion.apk. As said before, if you're changing skin name, you need to have the same name in Assets folder, manifest and strings.xml in res/values
[Virtuous Ten Studio] jasminthoria:
Hello all members, I have one question if anyone can help me please. I am using ViperS ICS 1.6 with sense 4.1 Rom, I have managed to change lockrings from all skins of Fusion.apk and working well. I wanted to change lockrings from some other skin file which was made by Dves of xda. now after decompiling that m10 file i get 3 lockrings, one lockscreen_ring.png in the folder (asset\skinname\drawable\shared\images) and other 2 in the folder (res\drawable-hdpi) which are named as lockscreen_ring.png and lockscreen_ringhigh.png something like that,

In previous versions of sense 3 and sense3.5 there was only one lockring. can you please explain me why now there are 3 lockrings in sense4 skins?

I have tried to change one, two and all three lockrings from that skin file still when i apply that skin it always take lockring from my default fusion skin file, is there any other thing i need to change it? i am just changing only lockring nothing else by replacing png file with same name and dimensions. Replacing lockring is working in all other skin files why it is not working in this skin file? and why it takes lockring from my fusion.apk

Your help and guidence will be really appriciated.
[Virtuous Ten Studio] Diamondback:
Well I have a better idea.

Dowload this setup here and install it. Directly on top of the old version. No uinstall required. This setup already contains everything from the alpha OTA, so you won't be prompted to update.

http://files.virtuousrom.com/vts/beta/VTS_1.4.29.4378.rar
[Virtuous Ten Studio] alper.s:
thanks. it works : ) i will study VTS.
[Virtuous Ten Studio] Diamondback:
Perfect, I'll push the update as a normal update then :)
[Virtuous Ten Studio] Diamondback:
Okay, OTA pushed for all the other users too and I also updated the setup file on the website if anyone needs it.

VTS is not beta anymore now. :)
[Virtuous Ten Studio] Vernox701:
Thanks for this great tool. The problem that I was having was I only set up the JRE with the 64 bit ,but I also needed 32 bit as well windows 7(64).........

is there a way to only build one app when its in a project. if I add apk's to my project the new app will build but the previous older app fail for some reason
[Virtuous Ten Studio] frostthejack:
would love to see a version for linux if you guys feel like making one. ill keep an eye on this.
[Virtuous Ten Studio] Diamondback:
Ah yea, the x64 JRE is somewhat useless...

Not sure what you are talking about, you can add as many projects as you want to one solution.

And you can either build all at once or build only one of them via the context menu in the solution explorer.
[Virtuous Ten Studio] scaryshark:
Ive been playing around with this for about a day now and I have to say this is absolutley brilliant!

one thing to report back though is that it doesn't seem to play well with the win 8 consumer preview, but it's perfect on xp SP3

@the guy who had a slow UI problem, I am running it on an old '07 netbook and it seems to be pretty smooth for me! its probably a problem on your end.
[Virtuous Ten Studio] Diamondback:
Yea I am pretty sure it doesn't run on Win8 and it won't run properly until Microsoft releases the final version of .net 4.5.

VTS uses some code which was patched into 4.0 but was realized differently in 4.5, so it seems I can't provide a build that runs on both.

(Even installing 4.5 on Windows 7 screws EVERYTHING... :( )
[Virtuous Ten Studio] Dunc001:
Sorry for the reeeeeeally noobesque question but not having used Eclipse or anything similar before what is the usual naming convention with Project and Solution names? I am guessing project name is just a personal identifier for the umbrella project (so for example I want to look at adding Sense 3.x type lockscreen shortcuts back into Sense 4 I would name the project Lockscreen_Shortcuts), but what is the Solution name for?
[Virtuous Ten Studio] XsMagical:
Going to give this a test drive in a few. thanks for the hard work.
[Virtuous Ten Studio] Vernox701:
Thanks I figured it out after posting... right clicking on build name brings up the menu to just import additional file....I was creating numerous projects and causing my own problems.
[Virtuous Ten Studio] Diamondback:
Well the project name mostly is somewhat related to the apk/jar you are editing.

So your example make only a little bit of sense.

Imagine the following situation:

You want to do something cool like porting a sense 4 app to 3.6

For this you need to edit multiple apks (the one you are porting + probably some framework files)

You create a new project + solution, solution is for example named "Sense4 backport" and the project is named after the file this project covers, for example "Rosie4"

You can then add additional projects to the solution, one for each file you need to edit. So: "framework-res" and maybe also "htc-extension"

If you only need to edit ONE single file then the solution name is somewhat useless/irrelevant
[Virtuous Ten Studio] Diamondback:
You always create one project per file (apk/jar) you want to edit. So if you want to edit two different apks then you need two projects and also need to import the files into the projects.

Importing a file is usually only done once - when creating the project.

However you can import an apk at any time but this obviously removes all your changes (they are still available via the backups)
[Virtuous Ten Studio] Vernox701:
Ok. That makes sense! I had the impression that you created a project imported all of the apk's you wanted to edit (if you had different devices) then those apps would be in one location per se....so once again thanks also thanks for helping the code challenged enthusiast.
[Virtuous Ten Studio] dmeadows013:
DiamondBack any chance of a Mac version at some point? Really want this and it doesn't run in wine :(
[Virtuous Ten Studio] Diamondback:
Nope, no Linux, no Mac, no DOS, no whatever :p

Windows is the only supported platform and this won't change anytime soon.

(Not because I don't want to but because it's not possible to simply "port" it)
[Virtuous Ten Studio] dmeadows013:
Well crap lol. Time to get Windows I guess
[Virtuous Ten Studio] Diamondback:
hehe, good idea :P
[Virtuous Ten Studio] egyptshun:
Been using it for hours, reported bugs, but really amazing, I mean spectacular. Keeping all Xmls in an easy place to play with is, an omgiloveyouguys moment for me. saved me prob 30-40 mins extra on editing. I'm SUPER surprised I can edit pretty much anything I want. Can't wait for my minor cm7.2 mods go public, and big credits go straight to you guys for helping me save time so I can study, which I should be doing right now :P Anyways, only 2 UI suggestions is try to keep the tabs at a uniform length, it becomes a hassle to close many tabs at once. If you can do what google chrome does with their tabs that would be sick. Scrolling xml files are really slow for some reason, but its a beta, I can't really complain. other than that I love it. please excuse my bad grammar and all, im typing this fairly fast with no sleep and dont care about anything else other than how nice my bed seems right now.

-cheers mike
[Virtuous Ten Studio] knightwolf123:
lockscreen_ring.png in the folder (asset\skinname\drawable\shared\images)

is the only one (if my memory is correct) you'll need to change. I strongly recommend taking the image in the folder and modifying it instead of replacing it. By replacing it when the png doesn't take it defaults to the default png in fusion.apk

I hope that helps shine a bit on light on it :D
[Virtuous Ten Studio] MassStash:
anyone guess/point me in right direction as to why I can't get my skin to recompile from apk decompile to edit string.xml and androidmanifest.xml?? Please and thank you
[Virtuous Ten Studio] Diamondback:
Not unless you show us some logs ;)
[Virtuous Ten Studio] alkhafaf:
Hello

When I compile aren't the new items (like drawables, strings) added automatically to public.XML?

If it doesn't, then why the apk is compiled successfully? It is compiled but doesn't work (the framwork-res.apk) and I get a bootloop.
[Virtuous Ten Studio] Diamondback:
No VTS won't do that. Making this totally automatic doesn't make any sense anyway, since you need to know those numbers. The next version brings you an´new tool which can semi-automatically add new resources to public.xml.

Simply adding items to a framework-res can't make your phone bootloop. You probably did something else too.

Why should non-public resource affect the building process? Apktoo ldoes not care in any way ;)
[Virtuous Ten Studio] alkhafaf:
Yes but I added an item and used it in layouts ( an XML file) so it should be added to public.XML, if not, then probably there will be a bootloop.

I actually dont mess with public.xml when I use apk multi tool Cuz it adds all the new items to public.xml automatically when compiling.

It is very annoying to add these manually to public.XML, specially when I use many new items.

So how does the new tool for the public.xml work? It would be great if u add an option to add any new item to the public.xml automatically.
[Virtuous Ten Studio] Diamondback:
I'm not much into adding new xml contents to decompiled apps, so please excuse if I miss something.

But you are basically saying that you just add new stuff (like strings) in the usual place, reference them via another file (ie. a layout) and then must add them to public.xml for this reference to work? (even though the actual ID from public.xml is never used?)

If that's the case you actually just don't care which ID is assigned them since you don't need it?
[Virtuous Ten Studio] alkhafaf:
Yes, I think it should be added if it it is referred to it from an XML, even if no id number is used.

Cuz I moded the framework-res.a pk on apk multi tool with same modifications without any problems on many versions of GB.

And yes it doesnt matter which id , but of course it should not be already used. And I think it is better to make it incremental to last item id of a certain type( I mean for example if the the last id registered for a string type is 8 then the new string will take 9, and this will be same for other types )
[Virtuous Ten Studio] varun.chitre15:
^^Just wanted to let you know that apktool adds the new ids in public.xml as soon as something new is detected within its root dirs

E.g if I decompile the apk, add some pngs and recompile. Then drawable ids of those pngs are added in runtime, so you wont see the change in public.xml of the apk which you compiled. Instead decompile the newly compiled apk, you will see the new entries in public.xml with their respective ids.

So nothing to do with vts :)