![]() |
[Dev Tools] How to create mods
So you wanna create your own ROM, and add all the latest & greatest mods. So you scurry the popular forums looking for them, but did you learn anything? Anyone can take a modded file & add it to your ROM, but if you want to learn how to create that mod yourself, then this thread is for you.
I will adding all the mods I know how to do, I encourage all other devs to do the same! Add your mod, and I will add a link to your post in the OP. Let's help each other out! Be sure to give thanks to where you learned the mod! |
Re: [Dev Tools] How to create mods
1 Attachment(s)
How to add your custom Greeting on the HTC Setup screen (credit to amikam for showing me!)
-mod is located in /system/settings.apk.... -you have to decompile it w/ apktool....c:\apktool>apktool d settings.apk -once decompiled, goto apktool\settings\res\values\strings.xml, open w/ notepad++... you need to change both these lines (line # may vary), save, recompile the apk...c:\apktool>apktool b settings Quote:
Quote:
http://up.ppcgeeks.com/EVO3D/Users/O...0_17-55-16.jpg ... How to add % to stock battery (credit to amikam for showing me!) -mod is located in /system/framework/framework-res.apk.... -you have to decompile it w/ apktool....c:\apktool>apktool d framework-res.apk -once decompiled, goto apktool\framework-res\res\drawable-hdpi -battery icons start @ stat_sys_battery_0.png -copy/replace new icons -goto apktool\framework-res\res\drawable -copy new stat_sys_battery.xml, stat_sys_battery_charge.xml & zzz_stat_sys_battery_1.xml (personally I just use the 6 stock charging icons, and add the 0-100 % icons, then u don't need to replace stat_sys_battery_charge.xml) -compile new framework-res (apktool b framework-res) The following mods are courtesy of SteelH, thx bro! Remove the USB Debugging icon This guide is a reference for the smali code changes that must be made inside of services.jar to properly hide the USB debugging icon. You need to edit com\android\server\NotificationManagerService.smal i Search for: Code:
Code:
Remove the alarm icon http://i53.tinypic.com/2q07p0z.png This guide is a reference for the smali code changes that must be made inside of SystemUI.apk to properly hide the alarm icon. You need to edit \com\android\systemui\statusbar\policy\StatusBarPo licy.smali Search for: Code:
Code:
Remove the headset icons http://i51.tinypic.com/24nhagh.png http://i53.tinypic.com/69l646.png This guide is a reference for the smali code changes that must be made inside of SystemUI.apk to properly hide the headset icons. You need to edit \com\android\systemui\statusbar\policy\StatusBarPo licy.smali Search for: Code:
Code:
Remove the mute http://i55.tinypic.com/iz9j43.png and vibrate http://i55.tinypic.com/99mf50.png icons. This guide is a reference for the smali code changes that must be made inside of SystemUI.apk to properly hide the mute and vibrate icons. You need to edit \com\android\systemui\statusbar\policy\StatusBarPo licy.smali Search for: Code:
Code:
This MOD will hide the GPS status reticle http://i54.tinypic.com/2gt5c2x.png and http://i51.tinypic.com/344sdx4.png This was made possible by RMarkwald! This guide is a reference for the smali code change that must be made inside of SystemUI.apk to properly hide the GPS icons. You need to edit \com\android\systemui\statusbar\policy\HtcCdmaStat usBar.smali Search for: Code:
.method private updateMtGpsIcon()V Code:
.method private updateMtGpsIcon()V This MOD will hide the clock. This was made possible by freeza! This guide is a reference for the xml code changes that must be made inside of SystemUI.apk to properly hide the clock. Open status_bar.xml in res/layout and delete this line" Code:
This mod will hide the bluetooth This guide is a reference for the smali code changes that must be made inside of SystemUI.apk to properly hide the bluetooth icons You need to edit \com\android\systemui\statusbar\policy\StatusBarPo licy.smali Search for: Code:
Code:
How to make Sense ROMs show 1X/3G Properly This guide is a reference for the smali code changes that must be made inside of SystemUI.apk to properly show 1X/3G modes. You need to edit \com\android\systemui\statusbar\policy\HtcCdmaStat usBar.smali, which is located within SystemUI.apk Search and find the following code: Code:
Code:
The follow MOD is courtesy of j4n87, thx! How to remove recent apps from notification bar Successfully remove the annoying recent apps plugin in the notification bar. You need to edit SystemUI\smali\com\android\systemui\statusbar\Stat usBarFlag.smali, which is located within SystemUI.apk search & find the following code: Code:
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z Code:
sput-boolean v2, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z ... more to come! |
Re: [Dev Tools] How to create mods
reserved....
|
Re: [Dev Tools] How to create mods
This is great...I can finally learn some stuff!
Thanks OMJ! Now, I just need to find some time. |
Re: [Dev Tools] How to create mods
added a bunch of SteelH's mods....
|
Re: [Dev Tools] How to create mods
Can you add mod to properly remove the Location On icon in status bar. it can be done by changing the ping but leaves a blank space.
|
Re: [Dev Tools] How to create mods
Quote:
|
Re: [Dev Tools] How to create mods
Do you know how to properly remove the GPS Icon from stat bar?
|
Re: [Dev Tools] How to create mods
Quote:
This was made possible by RMarkwald! This guide is a reference for the smali code change that must be made inside of SystemUI.apk to properly hide the GPS icons. You need to edit \com\android\systemui\statusbar\policy\HtcCdmaStat usBar.smali Search for: Code:
.method private updateMtGpsIcon()V Code:
.method private updateMtGpsIcon()V |
Re: [Dev Tools] How to create mods
OMG! I was searching the wrong strings! You sir... Are the man!
|
All times are GMT -4. The time now is 05:53 AM. |
Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com