[TUTORIAL][SENSE 3.0+] The M10 Code Discovery Thread

Search This thread

metaphysical_calamity

Inactive Recognized Developer
Jan 7, 2011
6,474
11,996
39
New Orleans

Attachments

  • uploadfromtaptalk1358018986812.jpg
    uploadfromtaptalk1358018986812.jpg
    23 KB · Views: 168
Last edited:
  • Like
Reactions: Rampage

egren58

Senior Member
Jul 19, 2011
3,634
896
In system/fonts there are two fonts that start with helvectica change the longer one to the font you want. Sorry don't have full name in front of me.
Here's another example I did to replicate aosp ics
It will also change the font on your weather widget.see next post

So I download the font I want a rename it to helvectica...? Or how does it work?..

Sent from my ADR6425LVW using xda app-developers app
 

egren58

Senior Member
Jul 19, 2011
3,634
896
Is it not roboto-bold.ttf?

Yes I thought so but if I replace it the phone gets stock on boot :/

Sent from my ADR6425LVW using xda app-developers app

---------- Post added at 04:23 PM ---------- Previous post was at 04:16 PM ----------

Give it a try see if it's just mee..

Sent from my ADR6425LVW using xda app-developers app
 

metaphysical_calamity

Inactive Recognized Developer
Jan 7, 2011
6,474
11,996
39
New Orleans
Yes I thought so but if I replace it the phone gets stock on boot :/

Sent from my ADR6425LVW using xda app-developers app

---------- Post added at 04:23 PM ---------- Previous post was at 04:16 PM ----------

Give it a try see if it's just mee..

Sent from my ADR6425LVW using xda app-developers app

Make sure its permissions are right, and also check the ttf and make sure it contains more than just numbers.. some are only numbers lol never had that issue with fonts and I've changed em all lol
 

egren58

Senior Member
Jul 19, 2011
3,634
896
Make sure its permissions are right, and also check the ttf and make sure it contains more than just numbers.. some are only numbers lol never had that issue with fonts and I've changed em all lol

I'm using the one I use for my entire font there's text but not bold text..

Sent from my ADR6425LVW using xda app-developers app
 

xcesco89

Senior Member
Dec 7, 2010
687
1,384
Cmon some tips or an apk or something.....

Nice, please share your work...

right, i've forgot that :p

for the apk, the link it's in my signature :)
the how to it's quite simple (for One-x screen):

decompile HTC_Widget_App_and_Shortcut.apk

go to /assets/port

in edit_mode.x10 edit the centerscale value of __Main_Comp from
1:1:1
to
0.8:0.8:1

in short_cut_container.x10 edit the centerscale value of button.add from
1:1:1
to
0.8:0.8:1

in short_cut_scene.x10 edit the centerscale value of _main_widget from
1:1:1
to
0.8:0.8:1

after this, you need to set the vertical offset of the tabs properly in short_cut_scene.x10

  • Tab1 offset: 0:100:0
  • Tab2 offset: 0:60:0
  • Tab3 offset: 0:10:0
  • Tab4 offset: 0:-40:0

substantialy to rescale a widget or an app, you need to set the scale value for the main string and nothing more, because the child strings will inherit the main property :)
:laugh::highfive::highfive:

i also think that you need to look at the sense sdk version in manifest.xml. in this case the sdk version it's the same as for the htc One x sense objects, and i don't' know if you can make a backport of a widget, simply by editing that string to a number less or equal than the htc sense version you are running
 
Last edited:

atego177

Member
Apr 14, 2010
25
16
Moscow
right, i've forgot that :p

for the apk, the link it's in my signature :)
the how to it's quite simple (for One-x screen):

decompile HTC_Widget_App_and_Shortcut.apk

go to /assets/port

in edit_mode.x10 edit the centerscale value of __Main_Comp from
1:1:1
to
0.8:0.8:1

in short_cut_container.x10 edit the centerscale value of button.add from
1:1:1
to
0.8:0.8:1

in short_cut_scene.x10 edit the centerscale value of _main_widget from
1:1:1
to
0.8:0.8:1

after this, you need to set the vertical offset of the tabs properly in short_cut_scene.x10

  • Tab1 offset: 0:100:0
  • Tab2 offset: 0:60:0
  • Tab3 offset: 0:10:0
  • Tab4 offset: 0:-40:0

substantialy to rescale a widget or an app, you need to set the scale value for the main string and nothing more, because the child strings will inherit the main property :)
:laugh::highfive::highfive:

i also think that you need to look at the sense sdk version in manifest.xml. in this case the sdk version it's the same as for the htc One x sense objects, and i don't' know if you can make a backport of a widget, simply by editing that string to a number less or equal than the htc sense version you are running
HTC ONE S 540x960
in edit_mode.x10 edit the centerscale value of __Main_Comp from
1:1:1
to
0.5:0.5:1

in short_cut_scene.x10 edit the centerscale value of _main_widget from
1:1:1
to
0.5:0.5:1
No weather and time, lack id
View attachment 1647700
 

superchilpil

Senior Member
Sep 26, 2009
4,278
1,432
Texas
OnePlus 8 Pro
Nubia Red Magic 6
right, i've forgot that :p

for the apk, the link it's in my signature :)
the how to it's quite simple (for One-x screen):

decompile HTC_Widget_App_and_Shortcut.apk

go to /assets/port

in edit_mode.x10 edit the centerscale value of __Main_Comp from
1:1:1
to
0.8:0.8:1

in short_cut_container.x10 edit the centerscale value of button.add from
1:1:1
to
0.8:0.8:1

in short_cut_scene.x10 edit the centerscale value of _main_widget from
1:1:1
to
0.8:0.8:1

after this, you need to set the vertical offset of the tabs properly in short_cut_scene.x10

  • Tab1 offset: 0:100:0
  • Tab2 offset: 0:60:0
  • Tab3 offset: 0:10:0
  • Tab4 offset: 0:-40:0

substantialy to rescale a widget or an app, you need to set the scale value for the main string and nothing more, because the child strings will inherit the main property :)
:laugh::highfive::highfive:

i also think that you need to look at the sense sdk version in manifest.xml. in this case the sdk version it's the same as for the htc One x sense objects, and i don't' know if you can make a backport of a widget, simply by editing that string to a number less or equal than the htc sense version you are running

Guess everyone is doing this :p

Did my own
uploadfromtaptalk1358388387273.jpg

Did it differently than you although

Tempted to see if its possible to add more tabs

Slithered from my HTC One X+
 
Last edited:
  • Like
Reactions: il Duce

jeb192004

Senior Member
Aug 22, 2012
142
17
Re: [MODS][SENSE 3.0+] The M10 Code Discovery Thread

Guess everyone is doing this :p

Did my own
View attachment 1651590

Did it differently than you although

Tempted to see if its possible to add more tabs

Slithered from my HTC One X+

How did you change the appearance of your clock? Only thing I can figure out how to do is make the background of the weather part of the widget transparent.

Sent from my HTC One X+ using xda app-developers app
 

superchilpil

Senior Member
Sep 26, 2009
4,278
1,432
Texas
OnePlus 8 Pro
Nubia Red Magic 6
Re: [MODS][SENSE 3.0+] The M10 Code Discovery Thread

How did you change the appearance of your clock? Only thing I can figure out how to do is make the background of the weather part of the widget transparent.

Sent from my HTC One X+ using xda app-developers app

Its a skin, there's a tutorial on how to do this on the VTS website.

Slithered from my HTC One X+
 
  • Like
Reactions: jeb192004

Top Liked Posts

  • There are no posts matching your filters.
  • 36
    Hello fellow themers and modders!

    This thread will be STRICTLY for the sharing and discovery of m10 code modifications.

    This is NOT a request thread (for now) - it's possible at some point this could happen...

    To contribute to this thread, and to jump in and learn something new, you'll need some basics.
    - a sense 3.0+ device or ROM
    - Virtuous Ten Studio (VTS) - this is where ALL the code edits happen
    - apktool (maybe)
    - sdk/jdk (maybe)
    - an open mind

    I have been modding this code since sense 3.0 in various apks, as have some others I know. Here's their info:
    me - mostly lockscreen mods and rosie mods
    mayfield103 - mostly clock widget mods
    gumby63 - lockscreen mods
    jeffsanace - mostly rosie mods
    dased14 - general tinkering
    ajthescot - general tinkering

    ^ more can be added! ^ these are just the guys I know personally. My hope is that we will get a HUGE gathering of m10 code modders so we can all make sense more fun.

    Stuff I know can be done:
    - lock shortcuts
    *can be moved anywhere on the screen (literally - also applies to switching them around R-L)
    *can be removed or individually removed (i.e. 3 instead of 4)
    *can be removed entirely (leaving the text)
    *text can be removed
    *lots more

    - lockring
    *same as above
    *can be made to unlock in reverse (pull down instead of up)

    - lock widgets
    *backgrounds can be removed
    *can be moved anywhere on the screen

    - lock music
    *art can be removed
    *text can be removed
    *buttons can be removed

    - lock time
    *can be moved anywhere on the screen
    *can be removed
    *can be individually customized (i.e. remove carrier and time, leave date, etc.)

    - rosie navbar
    *can be removed
    *button highlights can be removed
    *workspace grid changes (5x4, 5x5, ad infinitum - requires mods in .arsc)

    - rosie widgets
    *backgrounds can be removed
    *any spacing probably
    *transparent clock tiles

    There's a lot more that's just what I can think of that I've done or that others listed above have done. Essentially any location changes or size changes, and zillions of other things.

    My hope is that we will all post what we have done or can do, along with screens, and tutorials (not n00b proof tutorials, just the pertinent code modifications).

    HUGE THANKS TO:
    diamondback, vaelek, flemmard, and cypis! - the dev team who brought us VTS
    the guys I listed above who have played with these things and helped me along the way!

    I'm sure I'll add more info and people to this as the thread progresses :)

    Here's some relevant tutorials (mostly sense 3.0 but almost identical logic applies to the newer versions)
    rosie workspace mod
    remove "phone" text
    remove icon labels
    remove widget labels
    LOTS of lockscreen edits
    minimal music
    shortcuts info
    16
    Lockscreen Mods! This post is a continuous WIP!
    Updated 9/13

    Before we do anything, here are the prerequisites you need:

    1. You will need a program called VTS (Virtuous Ten Studio) You can get that here. This is made by the same brilliant minds that created the original m10tools.
    2. Idlescreen_Base.apk. That apk is where all of the edits I will be describing are located in.
    3. Last but not least, patience. Lots of patience. ;)

    If you know how to use VTS, then skip this!

    Alright now that you have VTS installed, open it up. In the top left corner click on file -> new project.

    Choose M10-Project, and pick your project and solution name. Now click on "import" on the left column and navigate to your Idlescreen_base.apk then click ok.

    Now you're ready to get your hands dirty!




    Section 1: Time, date, operator, am/pm, and unlock text.

    This section will be used to describe all of the amazing things you can do to things in the title.

    Navigate to the folder as seen in the screenshot:

    x36zib.png


    And double click lockscreen_time.x10

    Scroll down a little bit, and you will see a property labeled: "lockscreen_time"

    Any edits you make to this property will affect everything. Meaning Time, date, operator, am/pm etc.

    So lets say you want to move the all of that to the left side of the screen. Press the + box to the left to unfold the properties. You will see a bunch of different values like so:

    1zoj1o9.png




    Let's take a look at "offset" :

    There are three values. 0:0:0

    • The first value is what controls where it sits on the screen horizontally.
    • The second value is what controls where it sits on the screen vertically.
    • The third value controls..well..I'm not too sure yet. Anytime I make an edit to it it moves everything diagonally.
    • Negative values move things to the left of the screen. Positive values move things to the right of the screen.
    Pro tip: don't mess with the third one. It is MUCH easier to just play with the first two values.

    Now let's move everyhting to the left side of screen! So change the first value to -220 and click "save" on the top left. So it looks like: -220:0:0

    Okay so let's test your edit. Go over to the left hand column with all of the folders and right click your project name and select "build project" and then "push to device".

    An alternative method you can do that I personally use is to click "push all" at the top. That will build your apk and push it to the device in you step. Do not do that method if you have more than one project open in your solution. It will push both projects.

    Now there are two ways you can reboot. They are:

    1. Click on the ADB tab and select reboot. Done! When you reboot your new lockscreen should be staring you in the face.

    2. I prefer this way beacsue you dont have to wait for the reboot, and it's easier on your device. Click on the ADB tab, and open an ADB Shell prompt. Type in "am force-stop com.htc.idlescreen.shortcut" without quotes. This restarts the lockscreen process with your fresh edit.

    Pro tip(s): You don't need to re-type that every time, just simply press the up arrow key and then press enter. Also, I have it so my phone never sleeps while charging. That eliminates the problem of having to turn the screen back on every time it turns itself off.



    Next up we have "CenterScale"

    This value determines the size of the text.

    Duce explained this pretty well in a post, so I'm going to quote him on that.

    I'll use the lock clock as an example

    In time x10 find the property under "lockscreen_time" and expand it. The property for "CenterScale" where it's 1:1:1, and the first two values are width and height respectively. They need complete integers in any value. So 2 would work, 3.725 would work, 0.8 would work, but .8 wouldn't.

    This logic should apply to anything really, including clock tiles, button sizes, the rosie dock, etc.

    Go wild :)

    Those two properties are the two most important/most used in my opinion. Everything else is pretty self explanatory.


    Okay. so I shrunk everything and moved it to the left. Now that I look at it, I kinda want to get rid of the date. How do I do that?

    Hiding things from the lockscreen is probably the easiest thing you can do.

    In the same x10, find these properties:

    • "text.lockscreentime_operator"
      -Service Provider (Sprint, ATT, Verizon etc)
    • "text.lockscreentime_time"
    • "text.lockscreentime_ampm"
    • "text.lockscreentime_date"
    • "textcomp.pull_unlock"
      -The text " pull ring to unlock"

    Under every property, you will find a line like this:

    <Bool Name="Visible" Header="239748898" IDC="true">true</Bool>

    Change that to:

    <Bool Name="Visible" Header="239748898" IDC="true">false</Bool>

    And BOOM whatever you want gone will no longer be there. Pretty simple.

    So that pretty much sums up this section.


    Section 2: Lockring & Shortcuts.

    This is where it can start to get a little complicated. These are the x10's you will be making edits to:
    • Lockscreen_container.x10
    • Lockscreen_ring.x10
    • Locksceen_ringcontainers.x10
    • Lockscreen_shortcut.x20

    More to come!




    Some examples of what is possible are attached.
    9
    Re: [MODS][SENSE 3.0+] The M10 Code Discovery Thread

    Sense5 lockscreen clone.. :D thank Gumby for telling how to resize ring.. *I know all the guru could make it better than mine*

    vyrasegu.jpg


    Sent from my HTC One X using Tapatalk 2
    8
    Mmm. Found a new home

    [team*420]

    Sent from my Ascend2 via XDA Premium...