[MOD] Smooth Sense Icons v.1.0 (now with screenshots)

Search This thread

Narfx

Senior Member
Jul 23, 2010
227
13
A Coruña
Fantastic work. Although I'd like to change the battery icon (I always thought the default sense icon looked a bit out of place, compared with the rest. It's too small, and the grey color doesn't match the white in the other icons). Do I simply need to replace drawable-hdpi-v4/stat_sys_battery_*? Thx.
 

Mushhushshu

Member
May 27, 2010
37
5
Just want to say thanks, sweet icons - was looking for some like this, more of a "tweaked" sense style than something completely different - really nice work. Would agree with those who would prefer white text in the battery, this would make it perfect.
 

jercik

Member
May 4, 2010
23
7
Wrocław
Fantastic work. Although I'd like to change the battery icon (I always thought the default sense icon looked a bit out of place, compared with the rest. It's too small, and the grey color doesn't match the white in the other icons). Do I simply need to replace drawable-hdpi-v4/stat_sys_battery_*? Thx.

Yes :).

could you add the icons seperately into a zip file instead of 1 big pack? I like your icons, but I rather would like to use the superbattery mod

You can't just flash only few icons. You must flash entire framework-res.apk at once. So you need special, mixed version of framework-res.apk to have my icons and super circle battery. And if you know how to do it, you can also take my icons from update.zip's which I prepared :).

Please version for pays_foyo_sense_v1.3 :D Thank!
Attach framework-res.apk !

Done! Look in second post.

Please excuse my noobiness, but how do i install this? :(

Any help is great!

You must learn somewhere in this forum how to flash update.zip files. But firstly you phone must be rooted.
 

scoobyspin

Member
Jun 24, 2010
46
0
Thanks for these awesome icons much better then stock

+1 for the white text on battery too if you get time :)
 
Last edited:

Narfx

Senior Member
Jul 23, 2010
227
13
A Coruña

Hm, I've realized there are several digests in the zip and inside framework-res.apk. For example, in META-INF/CERT.SF:

Name: res/drawable-hdpi-v4/stat_sys_battery_59.png
SHA1-Digest: IqoMV+rpMCo8hbRJ0PVsvHd5ZVQ=

Do I have to regenerate them or simply substituting the pngs will suffice?
 
Last edited:

jercik

Member
May 4, 2010
23
7
Wrocław
Very quick question. If i have the circle battery mod installed already can I just flash this over it? Will it work?

Yes, but you will have only my icons set.

Hm, I've realized there are several digests in the zip and inside framework-res.apk. For example, in META-INF/CERT.SF:

Name: res/drawable-hdpi-v4/stat_sys_battery_59.png
SHA1-Digest: IqoMV+rpMCo8hbRJ0PVsvHd5ZVQ=

Do I have to regenerate them or simply substituting the pngs will suffice?

You can simply substitute them. Read here. After all, please share you icons :). I want to see them :).

Can you make a package for Modaco's r6 ROM? PM me if you need the framework-res...

Package for MCR v6 is already here. It is the same that works for MCR v5.
 

cerede2000

Senior Member
Jun 18, 2007
161
5
I tested the modified framework for pays froyo 1.3 but the battery indicator don't have the percentage :(
 

blackfox888

Senior Member
Mar 29, 2010
247
4
Great icons, I'm using Official Sense Froyo v1.0c. Can you fix my framework-res.apk, but I would like to keep Super Circle % battery mod. Thanks:), here is my .apk
 
Last edited:

Jiia

Senior Member
Jun 10, 2010
436
129
Oulu, Finland
I'm getting massive amounts of force closes on rooted Stock 2.1 too. The icons have changed though, just that anything else is not working. Great work though!
 

nzdcoy

Senior Member
Jul 11, 2010
165
4
Auckland
tried djdroid1.1-r1. your version worked flawlessly.

tried to further edit yours to include the battery percentage in the statusbar from stock djdroid.

almost thought I got it correct first time: then newsrob and gmail FC consistantly.

I substituted the following:

res/drawable-hdpi-v4/
stat_sys_battery_0.png
...
stat_sys_battery_100.png
stat_sys_battery_unknown.png
stat_sys_battery_charge_anim0.png
...
stat_sys_battery_charge_anim5.png

res/drawable/
stat_sys_battery_charge.xml

*I presume I needed to change the xml because there are more png's in your framework compared to standard djdroid...

I have attached the framework-res.apk (signed) with my changes. does anyone know what I did wrong?
 

Attachments

  • framework-res.apk
    5.3 MB · Views: 14

Narfx

Senior Member
Jul 23, 2010
227
13
A Coruña
Ok, I've modified the mod for Official Froyo HTC Sense ROM 1.0c to use this battery indicator (which IMO looks much better). Now it looks like this:

android.jpg


But I have one question. The steps I did were:

- Unzip the original mod
- Use apktool to decompress framework-res.apk
- Remove original drawable-hdpi-v4/stat_sys_battery_charge_*png
- Remove original drawable/stat_sys_battery_charge.xml
- Replace them with the corresponding files in the blue battery mod
- Add some useless .pngs to complete the 33 stat_sys_battery_charge_anim* images (the blue theme has ~22)
- Reference these new pngs in public.xml
- Use apktool to generate the new framework-res.apk
- Build zip, flash it

The question is about the bolded steps. Is there a way to regenerate public.xml so that I don't need to add some useless png files to complete the original 33 images? If I don't do these two steps, apktool complains and does not regenerate the apk.
 
Last edited:

jercik

Member
May 4, 2010
23
7
Wrocław
Ok, I've modified the mod for Official Froyo HTC Sense ROM 1.0c to use this battery indicator (which IMO looks much better). Now it looks like this:

android.jpg


But I have one question. The steps I did were:

- Unzip the original mod
- Use apktool to decompress framework-res.apk
- Remove original drawable-hdpi-v4/stat_sys_battery_charge_*png
- Remove original drawable/stat_sys_battery_charge.xml
- Replace them with the corresponding files in the blue battery mod
- Add some useless .pngs to complete the 33 stat_sys_battery_charge_anim* images (the blue theme has ~22)
- Reference these new pngs in public.xml
- Use apktool to generate the new framework-res.apk
- Build zip, flash it

The question is about the bolded steps. Is there a way to regenerate public.xml so that I don't need to add some useless png files to complete the original 33 images? If I don't do these two steps, apktool complains and does not regenerate the apk.

You can edit public.xml end remove corresponding lines, but id's for other lines must be edited to "fill holes".
E.g.: This:
Code:
<public type="drawable" name="stat_sys_battery_charge_anim31" id="0x10803f0" />
<public type="drawable" name="stat_sys_battery_charge_anim32" id="0x10803f1" />
<public type="drawable" name="stat_sys_battery_charge_anim33" id="0x10803f2" />
<public type="drawable" name="stat_sys_download_anim6" id="0x10803f3" />
<public type="drawable" name="stat_sys_download_anim7" id="0x10803f4" />
<public type="drawable" name="stat_sys_download_anim8" id="0x10803f5" />

you must replace with this:

Code:
<public type="drawable" name="stat_sys_download_anim6" [B]id="0x10803f0"[/B] />
<public type="drawable" name="stat_sys_download_anim7" [B]id="0x10803f1"[/B] />
<public type="drawable" name="stat_sys_download_anim8" [B]id="0x10803f2[/B]" />

I hope you understood me :).
 

Narfx

Senior Member
Jul 23, 2010
227
13
A Coruña
I hope you understood me :).
Yeah, and that's exactly what I didn't want to hear :p. There are around 300 lines below stat_sys_battery_charge_anim33, so updating them by hand is a PITA.

I suppose I could program a perl or awk script to decrease the numbers from that point... For now I'll stick with extra images.

Thanks :)

(edit) Wait a moment, I could just change the numbers of the last 12 files to fill the gaps. Ok, I'm officially stupid :D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Smooth Sense Icons v.1.0 by Jercik

    I love original HTC Sense look and feel, but I also love percentage battery. So I made percentage battery which looks like original one :). But after that, I realized that some other sense icons could be better. E.g.: sync icon - it is not animated, but I think it should be! So I decided to make theme/icon set for Sense ROMs, which will look like original, but will be extended by new smoother animations and new icons :).



    Here is complete list of changes:

    - battery % with 100 power levels
    new:
    batterywithpercentage.gif
    old:
    batteryorg.gif


    - smooth battery charging animation
    new:
    charge33.gif
    old:
    chargeorg.gif


    - animated synchronization icon
    new:
    statnotifysync.gif
    old:
    statnotifysyncorg.png


    - 2 additional frames on gps acquiring animation
    new:
    gps.gif
    old:
    gpsorg.gif


    - new download animation
    new:
    downloadi.gif
    old:
    downloadorg.gif


    - new upload animation
    new:
    upload.gif
    old:
    uploadorg.gif


    - new ADB icon (which before looks like warning icon) Only on Android 2.2 ROM's
    new:
    statsysadb.png
    old:
    statsysadb.png


    - new error icon (which before looks like warning icon)
    new:
    statnotifyerror.png
    old:
    statsysadb.png


    - new notify sd card icon (which before looks like sd card prepare icon)
    new:
    statnotifysdcard.png
    old:
    statnotifysdcardorg.png




    Download version of update.zip for your ROM:

    "Official" Froyo HTC Sense ROM 1.0c - smooth-sense-1.0-1.0c.zip
    DJDroid1.1-R1 - smooth-sense-1.0-DJDroid1.1-R1.zip
    MoDaCo Custom ROM v5 and v6 - smooth-sense-1.0-MRCv5.zip
    Pays Desire Sense v1.1 and Pays Desire Sense v1.2 - smooth-sense-1.0-pays_froyo_sense_v1.2.zip
    DeVillain 1.0 - smooth-sense-1.0-DeVillain.zip - Be careful! Not tested. If it works - tell me!
    LeeDrOiD v1.4 and LeeDrOiD v1.5 - smooth-sense-1.0-LeeDrOid_V1.4.zip
    Pays Desire Sense v2.3 - smooth-sense-1.0-pays_sense_v2.3-fixed.zip - Be careful! Not tested. If it works - tell me!
    more in second post...



    If you want special version for your ROM - send me framework-res.apk.
    7
    You can edit public.xml end remove corresponding lines, but id's for other lines must be edited to "fill holes".

    Don't do that! :) I think I should explain the purpose of public.xml file in the project wiki, because many people are confused. Note that you don't need this file when you build an apk from sources and apktool building mechanisms are very similar, so guess what: you could remove this file from decoded application and apktool will rebuild it without any problems. I had a reason why to generate public.xml - it's a feature, not a bug! ;-)

    Well, the reason is: there may be references to resources in the application code. If resources ids will change after build, then code will reference different resources than in original apk. public.xml file gives us sureness that resources will get same ids after build - it's the only one reason to use this file. And you want to manually modify these ids ;-)

    Adding or removing new resources is somewhat tricky. Yeah, I should write about that in the wiki.

    • You could remove any line from public.xml (even making a "hole" in the ids) at any moment, but you must be sure, that resource isn't referenced in the code.
    • There is never much sense in modifying ids in public.xml, because then modified lines lose their purpose.
    • If you want to add new resources, e.g. drawables and use them in the XML files - you don't have to change anything in the public.xml file.
    • If you want to add new resources and use them in your code, then you have to add them into public.xml, because you need to reference them somehow. Or you could use Resources.getIdentifier() method, but this is ugly.
    • And now the most tricky part: if you want to remove some resources, you have to remove info about them from public.xml as well. So first you have to be sure that they aren't referenced in the code. But there is also this "hole" problem, so:
      • If these resources are at the end of ids stack, then there is no problem.
      • If resources are near the end of ids stack and you are sure, that all resources after them aren't referenced in the code as well, then you could just remove them all. Actually you have did virtually the same, cause after modifying ids you made these lines totally useless, you broke them, so you could just remove them.
      • If you want to remove some resources, but add same or greater quantity of new ones (of the same type), then there is no problem - new resources will automatically fill in "holes" in ids. You don't have to add them to public.xml .
      • If none of above conditions are met, then you have holes and you have to fill them by something. But you don't have to add "useless .pngs" - just add:
        Code:
        <item type="drawable" name="DUMMY1" />
        <item type="drawable" name="DUMMY2" />
        <item type="drawable" name="DUMMY3" />
        ...
        Like above, you don't have to add these resources to the public.xml .

    Ufff... that's all :)
    1
    Thanks a lot for the info. The I can simply delete all the lines added by jercik for the new resources :) (I assume there is no code involved in framework-res.apk).
    1
    How to do use

    Pls talk to me how to do use this icon. I don't know.
    Thanks
    1
    hi friends...i had bought the desire recently so i'm pretty noob with the android world,i had a diamond before,but now i wanna install this great mod on my device...but i don't why...now i have the stock rom 2.29.405.2 and i wanna know if is compatible with this version, is also required the root to install the mod???
    thanks for your answer
    no one can answer to me??:eek: