[GUIDE] 4x5 Rosie for Sense 4 ICS

mikeyxda

Inactive Recognized Developer
Jul 2, 2010
3,761
14,262
0
Florida - Gulf Coast
www.ddisoftware.com
Finally got the time to hack some files to make 4x5 Sense rosie available on the Evo 4G LTE. This post is like most guides: assumes some knowledge of apktool, hex editing, and other programming "skills". Note that this post is designed for 720p displays so the numbers like the cell gaps might have to be modified if your phone is other than 720 x 1280 resolution, but the basics should still work. Also, as of this time, there are no M10 editing tools that work with Sense 4 so if some become available, obviously the best method of changing the M10 files will change (you won't have to use a hex editor). That said, the basics will still guide you through what you need to do in order to get 4x5 rosie working on your Sense 4 ROM.

First, let's edit the relevant m10 files

Once you've decompiled Rosie.apk from your ROM, we will edit these m10 files with a hex editor. We only need to change 3 bytes in one file and one byte in the second m10 file:

First, open \assets\Port\rosie_screen.m10 in your hex editor. I use XVI32. Search for "cell on Y" without the quotes. Note that you must use a unicode search (because there are zeroes between each character). Either that, or search for the hex string that is displayed in the window below instead. There should only be one occurrence. When you get there, we want to change the "4" that follows that and the "80" associated with the cell gap. We'll change the "4" to a "5" and the cell gap from "80" to "70". You can only reduce the cell gap slightly because many multi-cell widgets take up not only multiple rows, but also assume a certain size for the cell gap. Taking the value from 80 to 70 seems to be the best compromise for fitting all the icons (and text) and not overlapping 2-row widgets. Here's a screen shot showing the two values that got changed. When done editing, save the changes to the rosie_screen.m10 file.



After you've edited \assets\Port\rosie_screen.m10 as above, go to \assets\Land\rosie_screen.m10 and do the edits as above but only do the first edit: changing the 4 to a 5. In landscape mode, there's already only a 10 pixel gap between cells and you really can't reduce it. Landscape rosie at 4x5 is a compromise at best, but it does work without changing the gap... although with a bit of unavoidable overlap.

m10 editing done, now let's edit the XML files

Open \res\values\integers.xml and we'll change the bottom line from a 4 to a 5. It should look like this after edited:

Code:
<integer name="config_folderCellCountY">5</integer>
Open \res\values-normal-port-xhdpi\integers.xml and changeone 4 to a 5. This is how the line look after edited:

Code:
<integer name="config_cellLayoutCellCountY">5</integer>
Open \res\values-normal-port-xhdpi\dimens.xml and change one 80 to a 26. This is how the two lines look after edited:
Code:
<dimen name="workspace_height_gap">26.0px</dimen>
Open \res\values-normal-land-xhdpi\integers.xml and change one 4 to 5 near the top. This is how the line looks after edited:

Code:
<integer name="config_cellLayoutCellCountY">5</integer>
Open \res\values-normal-land-xhdpi\dimens.xml and change one 155 to 122 near the top/middle. This is how the line looks after edited:

Code:
<dimen name="workspace_cell_height">122.0px</dimen>
That's it. Recompile with the modified m10 and xml files and you should have a working 4x5 rosie for Sense 4. Note that the "xhdpi" folder is what is used on 720p phones like the Evo 4G LTE and One X. If your phone uses quarter-HQ (QHD), the files you'll want to edit will be the same XML files but in a different folder (like hdpi instead of xhdpi).

Mike
 

Attachments

Last edited:

lowetax

Senior Member
Aug 31, 2010
5,937
1,425
0
Jersey Shore (NJ)
almost :)

this is what i got following the op
(perhaps because i selected Sense 4 instead of ICS in apk changer)

in the op, the 3rd xml file edit,
dev mentions two, but only one edit and line is listed



 
Last edited:

YoungCorruptionV2.0

Senior Member
Sep 27, 2011
1,900
557
0
Its nice to see a dev share their work that they figured out :victory: Big props on beings a nice dude :) you sir will be the first person i donate to when i get back from vagas
 

michael.stollaire

Senior Member
Sep 5, 2010
283
62
0
North Hollywood
www.ehiinsm.com
Finally got the time to hack some files to make 4x5 Sense rosie available on the Evo 4G LTE. This post is like most guides: assumes some knowledge of apktool, hex editing, and other programming "skills". Note that this post is designed for 720p displays so the numbers like the cell gaps might have to be modified if your phone is other than 720 x 1280 resolution, but the basics should still work. Also, as of this time, there are no M10 editing tools that work with Sense 4 so if some become available, obviously the best method of changing the M10 files will change (you won't have to use a hex editor). That said, the basics will still guide you through what you need to do in order to get 4x5 rosie working on your Sense 4 ROM.

First, let's edit the relevant m10 files

Once you've decompiled Rosie.apk from your ROM, we will edit these m10 files with a hex editor. We only need to change 3 bytes in one file and one byte in the second m10 file:

First, open \assets\Port\rosie_screen.m10 in your hex editor. I use XVI32. Search for "cell on Y" without the quotes. Note that you must use a unicode search (because there are zeroes between each character). Either that, or search for the hex string that is displayed in the window below instead. There should only be one occurrence. When you get there, we want to change the "4" that follows that and the "80" associated with the cell gap. We'll change the "4" to a "5" and the cell gap from "80" to "70". You can only reduce the cell gap slightly because many multi-cell widgets take up not only multiple rows, but also assume a certain size for the cell gap. Taking the value from 80 to 70 seems to be the best compromise for fitting all the icons (and text) and not overlapping 2-row widgets. Here's a screen shot showing the two values that got changed. When done editing, save the changes to the rosie_screen.m10 file.



After you've edited \assets\Port\rosie_screen.m10 as above, go to \assets\Land\rosie_screen.m10 and do the edits as above but only do the first edit: changing the 4 to a 5. In landscape mode, there's already only a 10 pixel gap between cells and you really can't reduce it. Landscape rosie at 4x5 is a compromise at best, but it does work without changing the gap... although with a bit of unavoidable overlap.

m10 editing done, now let's edit the XML files

Open \res\values\integers.xml and we'll change the bottom line from a 4 to a 5. It should look like this after edited:

Code:
<integer name="config_folderCellCountY">5</integer>
Open \res\values-normal-port-xhdpi\integers.xml and changeone 4 to a 5. This is how the line look after edited:

Code:
<integer name="config_cellLayoutCellCountY">5</integer>
Open \res\values-normal-port-xhdpi\dimens.xml and change one 80 to a 26. This is how the two lines look after edited:
Code:
<dimen name="workspace_height_gap">26.0px</dimen>
Open \res\values-normal-land-xhdpi\integers.xml and change one 4 to 5 near the top. This is how the line looks after edited:

Code:
<integer name="config_cellLayoutCellCountY">5</integer>
Open \res\values-normal-land-xhdpi\dimens.xml and change one 155 to 122 near the top/middle. This is how the line looks after edited:

Code:
<dimen name="workspace_cell_height">122.0px</dimen>
That's it. Recompile with the modified m10 and xml files and you should have a working 4x5 rosie for Sense 4. Note that the "xhdpi" folder is what is used on 720p phones like the Evo 4G LTE and One X. If your phone uses quarter-HQ (QHD), the files you'll want to edit will be the same XML files but in a different folder (like hdpi instead of xhdpi).

Mike
Is it possible to create a flashable version or automated version of this mod? Thanks!

~ Mike
 
  • Like
Reactions: Stalte

lowetax

Senior Member
Aug 31, 2010
5,937
1,425
0
Jersey Shore (NJ)
Is it possible to create a flashable version or automated version of this mod? Thanks!

~ Mike
you mean you're not using his ROM ? tsk tsk :)
4x5 with/without 360 is available in Mean ROM

this is from private betatest i'm running (not Mean ROM)
following the op guide,
i got 4x5 working on it -
thanks for posting and sharing this info, op.

 
Last edited:

il Duce

Inactive Recognized Developer / Retired Forum Mode
Feb 25, 2009
16,728
16,454
0
Twin Cities, MN
@mikeyxda -

Now that m10 tools is out and working via VTS, this method is no longer needed. I just modded rosie for superLTE ROM base and it worked better and easier than this.

Essentially the "correct" way to do this now would be the way that jeffsanace originally discoved on the evo3D with some tweaking.

In rosie screen m10 you change the Y cells to 5, you had the spacing at 70 which is not correct, he and I discovered today that it is 100 for the LTE (after some testing)

Also the only edits needed in values are in integers near the bottom, change cell folder Y from 4 to 5, and then in values-normal-port-xhdpi near the top do the same thing. nothing at all in dimensions or other folders.

that's it, easy peasy, spacing is correct and all that jazz.

If you want the apk feel free to pull that from our svn, otherwise our write a more professional tutorial later on, thanks for breaking ground, hope you enjoy the new method and no spacing issues :)
 
  • Like
Reactions: husker91

lowetax

Senior Member
Aug 31, 2010
5,937
1,425
0
Jersey Shore (NJ)
@mikeyxda -

Now that m10 tools is out and working via VTS, this method is no longer needed. I just modded rosie for superLTE ROM base and it worked better and easier than this.

Essentially the "correct" way to do this now would be the way that jeffsanace originally discoved on the evo3D with some tweaking.

In rosie screen m10 you change the Y cells to 5, you had the spacing at 70 which is not correct, he and I discovered today that it is 100 for the LTE (after some testing)

Also the only edits needed in values are in integers near the bottom, change cell folder Y from 4 to 5, and then in values-normal-port-xhdpi near the top do the same thing. nothing at all in dimensions or other folders.

that's it, easy peasy, spacing is correct and all that jazz.

If you want the apk feel free to pull that from our svn, otherwise our write a more professional tutorial later on, thanks for breaking ground, hope you enjoy the new method and no spacing issues :)
ok duce. sometime this week please show me how easy peasy it is for this noob, if you would. thanks.

Sent from my SPH-L710 using xda premium
 

il Duce

Inactive Recognized Developer / Retired Forum Mode
Feb 25, 2009
16,728
16,454
0
Twin Cities, MN
ok duce. sometime this week please show me how easy peasy it is for this noob, if you would. thanks.

Sent from my SPH-L710 using xda premium
lol, I just did. jk,

First go get VTS (virtuous ten studio) then hit me up on gtalk (or PM me your gtalk) and I'll walk you thru it. I might put up a tut, jeff might put up a tut, since really this is HIS mod. But not all right away and stuff, we be busy :)
 
  • Like
Reactions: shubhamchamaria