[GUIDE] Build.prop mods tutorial. - T-Mobile Samsung Galaxy S II SGH-T989

Hello fellow android users, Cant find anything like this in our T989 forums so ill write one for the few of us who have not flashed build.prop mods or the crazies like me who want to know exactly whats going in my phone . This is a collection of things i know that work on 2.3.6 aosp,cm7. Tested on G1, MT3G, Vision, Supersonic, LG P999 and T-989
#Add-disable debug icon in notification panel
persist.adb.notify = 0
#Add-GPU hardware acceleration. toggle 1=on and 0=off
debug.sf.hw=1
#mod-resolution/lcd density find this line in your buildprop change (240). I like 230 the most but read of people doing 180, clear market updates if you have problems
ro.sf.lcd_density=240
#Add-lock launcher into memory works well with adw, adw ex clean scrolling and animations untested with others:
ro.HOME_APP_ADJ=1
#Add-remove boot animation
debug.sf.nobootanimation=1
#Add-remove delay after ending calls:
ro.lge.proximity.delay=25
mot.proximity.delay=25
#Add-save battery life while on wifi (SCAN INTERVAL IN MILLISECONDS)
wifi.supplicant_scan_interval=180
#Add-jpg quality 100 %:
ro.media.enc.jpeg.quality=100
#Add-fix dialing out delay:
ro.telephony.call_ring.delay=0
#Add-3/4 G optimizing High-Speed Packet Access Evolved=3g on crack LETS JUST CALL IT 4G. Hey its cool with the ITU
ro.ril.hsxpa=2
ro.ril.gprsclass=32
ro.ril.hep=1
ro.ril.hsdpa.category=28
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=268449905
ro.ril.hsupa.category=9
ro.ril.def.agps.mode=2
ro.ril.def.agps.feature=1
ro.ril.enable.sdr=1
ro.ril.enable.gea3=1
ro.ril.enable.fd.plmn.prefix=23402,23410,23411
ro.ril.disable.power.collapse=0
ro.ril.enable.a52=1
ro.ril.enable.a53=1
ro.ril.enable.dtm=1
#mod-build number shown within setting/about. add whatever after the =
ro.build.display.id=GINGERBREAD.UVKID
Anything with (ro) is a running system variable you must reboot to take affect.
Within root explorer navigate to system/build.prop make sure you toggle ro/rw in the top right corner. long press build.prop until a menu appears select open with text editor proceed to add or change variables you've selected from above. When finished save&exit. Root explorer will back up the original.
Please pm me if you have any feedback or additions to this list.
Feel free to use this in anything you want roms/mods/flash-able zips whatever. PERMISSION GIVEN cause what are we without open souce.

This is pretty cool. I am not a developer but I am impressed by the level of detail in customization... thanks for the info..
Sent from my GT-I9000 using xda premium

richiebm said:
This is pretty cool. I am not a developer but I am impressed by the level of detail in customization... thanks for the info..
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
@AllGamer, please sticky.... OP awesome breakdown

Great thread but not development. Should be stickied in general.
Sent from my Hercules with xda Premium.

Build.prop edits not development? Its just not a flashable zip like the rest supercharger script etc.
Sent from my SGH-T989 using Tapatalk

Thanks voidthedroid just trying to show people how to mod there own buildprops not just flash something, not that there is anything wrong with that. This way you can pick and choose which mod is right for you, You ultimately need to decide what you want to put in your build number segment i don't think i could make a flash-able zip do that.

lordzu said:
Thanks voidthedroid just trying to show people how to mod there own buildprops not just flash something, not that there is anything wrong with that. This way you can pick and choose which mod is right for you, You ultimately need to decide what you want to put in your build number segment i don't think i could make a flash-able zip do that.
Click to expand...
Click to collapse
Sure man keep it up, I've already added one to mine ;-)
Sent from my SGH-T989 using Tapatalk

Do we just add thes lines into build prop. Like how would i go about adding the 3g optamizing one?
Sent from my HercuBEAST!!!

Babyj303 said:
Do we just add thes lines into build prop. Like how would i go about adding the 3g speed one?
Sent from my HercuBEAST!!!
Click to expand...
Click to collapse
Open your build.prop and add the lines. Save and exit. Reboot twice.

wpf54173 said:
Open your build.prop and add the lines. Save and exit. Reboot twice.
Click to expand...
Click to collapse
WRONG.. you dont ADD the lines. You EDIT the ones that are already there. just find the corresponding line, edit it to the value you want (after the = sign, usually) then save, and reboot... root tools has a build.prop editor that works real good.

Enzopreme said:
WRONG.. you dont ADD the lines. You EDIT the ones that are already there. just find the corresponding line, edit it to the value you want (after the = sign, usually) then save, and reboot... root tools has a build.prop editor that works real good.
Click to expand...
Click to collapse
not all the build.props have all those lines in there. You can't edit anything if they're not in there.

sic_lic1o1 said:
not all the build.props have all those lines in there. You can't edit anything if they're not in there.
Click to expand...
Click to collapse
Ya cuz mine doesnt have the 3g optamizing line in it o added it in but cant yell cuz im in blackhawk shotty service anyways.
Sent from my HercuBEAST!!!

Maybe a title Chang would help [mod] diy build.prop editing that may cut out the confusion on placement
Sent from my SGH-T989 using Tapatalk

And maybe a tut on how to
Sent from my HercuBEAST!!!

Do all build prop commands work on all devices? There should be some kind of database.
Sent from my SGH-T989 using Tapatalk

aalsmadi1 said:
Do all build prop commands work on all devices? There should be some kind of database.
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
+1001
Sent from my Juggernauted HercuBEAST!!!

I feel it would be nice to see a before and after Build.prop image.
I feel comfortable changing the data, but I am not comfortable on where to place it within the many lines of information. I do understand that some are already there, but in my situation I am running the Alpha build of CM7 and there is no information for the data that I can see that matches what you have provided therefore confusing the crap out of where I might add/put those changes to mine.
I hope that all made sense.

Whatever I added I just put under the tweaks section
Sent from my Juggernauted HercuBEAST!!!

This is indeed a developement thread , it's giving build.prop modification's which help's the ROM & a few people that build roms include build.prop modification's .

i always use 167 on all my android phones and then use launcher pro to increase the columns and rows according to screen size...on my gs2 i have 6 columns and 8 rows...plenty of space for widgets...

Related

[MOD] Autobrightness Values to conserve battery life + Native SIP Integration

Auto Brightness levels modified to lower values to save battery life.
I modified my framework-res per the origional poster. All credit goes to LockeOn in the Intl S2 forums. Per his origional modification thread -
Auto Brightness values set to:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>30</item>
<item>70</item>
<item>130</item>
<item>255</item>
</integer-array>
Origional Values are:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>32</item>
<item>69</item>
<item>118</item>
<item>177</item>
<item>255</item>
</integer-array>
http://forum.xda-developers.com/showthread.php?t=1235212
Here is the link to my modified framework file on the Starburst 1.5 Rom.
http://www.megaupload.com/?d=Z70ZBBWZ
You will need to adb push this to /system/framework/framework-res.apk or use Root Explorer to rename and move to the correct location.
Per request I have integrated the Autobrightness feature and native SIP calling over wifi and 3g data connections in the framework-res.apk file. You will still be required to push android.software.sip.voip.zip file linked below in addition to the SIP modified frameworl-res.apk file. The file "android.software.sip.voip.zip" needs to be extracted and the "android.software.sip.voip.xml" gets pushed to "system\etc\permissions\", all credit for this goes to mobilegalaxy. I simply incorporated the modified framework-res.apk to take advantage of this feature.
Link to Modified SIP-Autobrightness file:
http://www.megaupload.com/?d=4S2SFMFQ
Link to thread to get the Native SIP stack support file:
http://forum.xda-developers.com/showpost.php?p=14421757&postcount=1
You will need to reboot your phone for these changes to take effect.
Does this work on other roms, or just Starburst?
If you need a little help:
So, plug in the USB. Then open CMD (get drivers if you havent already) then:
1: adb devices (to make sure mounted)
2: adb remount
3: adb push "file path of download" /system/framework/framework-res.apk
(so if you put in the platform tools folder:
adb push c:\android-sdk-windows\platform-tools\unsignedframework-res.apk /system/framework/framework-res.apk)
4: Reboot needed? Or does it take effect instant?
Seems to be working for me! Thanks!
Does this apply to us as well?
http://forum.xda-developers.com/showpost.php?p=14421757&postcount=1
If so, can you add this?
The mod will work on any rom, my framework file should only be used on Starburst.
I can update to include sip calling
Only thing I don't like is that it changed the mod on the 3g icon when I pushed this. Good work though, testing it out now.
Sent from my SPH-D710 using XDA App
That's weird, now my 3g icon is back to normal. How do I check if it is still modded?
Edit:
Okay after pushing this I rebooted and that's when my 3g icon wasn't modded anymore. I got LOS so I rebooted again and then I found my Google account was removed so I had to sign in again and then noticed my 3g icon was modded again. Does this not survive a reboot?
Sent from my SPH-D710 using XDA App
It is persistent as its changes are in the framework xml. I don't think your symptoms are related. What other mods are you running?
Sent from my SPH-D710 using xda premium
akkord64 said:
The mod will work on any rom, my framework file should only be used on Starburst.
I can update to include sip calling
Click to expand...
Click to collapse
Can't wait especially since I'm on starburst rom as well
Sent from my Epic Galaxy S2
akkord64 said:
It is persistent as its changes are in the framework xml. I don't think your symptoms are related. What other mods are you running?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
None, just starburst 1.5 and this is all I've done.
Sent from my SPH-D710 using XDA App
The Starburst ROM has a feature where the 3g icon and signal meter's change color depending on the status of Roaming and Google Sync. Is this what you are referring to?
akkord64 said:
The Starburst ROM has a feature where the 3g icon and signal meter's change color depending on the status of Roaming and Google Sync. Is this what you are referring to?
Click to expand...
Click to collapse
I was doing neither. I'm not even sure this mod is actually working....
Sent from my SPH-D710 using XDA App
I do notice a difference on my brightness levels when the light sensor kicks in. You may want to try editing your apk using the instructions from the original thread. Maybe something was lost in your application...
Someone else please confirm if you saw this behavior.
Sent from my SPH-D710 using xda premium
Ok i just pushed the framework-res with sip but i don't see it on my phone...According to the other thread, it should be under settings>call settings.
krazyflipj said:
Ok i just pushed the framework-res with sip but i don't see it on my phone...According to the other thread, it should be under settings>call settings.
Click to expand...
Click to collapse
You need to push the file on the other thread for the sip changes' but the framework has been edited to take advantage of this new feature. I will update Op with the link for reference.
Once this is completed, >Settings>Call Settings will show a sub-section for "Use Internet Call Settings", under that there is the option to add SIP providers.
Hello, Sorry about the Dumb question but i have SIP enabled but how i can use it? do i have to create an account with someone or there is some setting somewhere i can use? how can i make it funtional to make call overIP?

[MOD] Extended Notification Toggles [12.7.11]

Extended toggles for your Epic Touch 4G
Decided to bring these back in a flashable zip. 14 toggles. Controls built into Settings>Display. Completely stock other than this mod. Enjoy.
Download [EK02]
No 4G toggle, working on a re-write when time permits.
Huge thanks to lidroid.
Nice!! Anyway to incorporate the wide app drawer and 5 icon launcher dock? I would love to incorporate this into my Calk 1.5a running on my phone right now. Appreciate the support
So what roms will this work on?
Sent from my SPH-D710 using xda premium
Good stuff; sort of looks a little "Cyanogen-ish!
ewalk4866 said:
So what roms will this work on?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Any ROM you want. It will remove any theming done to SystemUI though.
xlGmanlx said:
Nice!! Anyway to incorporate the wide app drawer and 5 icon launcher dock? I would love to incorporate this into my Calk 1.5a running on my phone right now. Appreciate the support
Click to expand...
Click to collapse
Different beast. I think there are already a few TouchWiz launcher mods that incorporate this. However, I will look into it cause it interests me as well and it's much more fun doing it yourself =P
Hmmm....it does sound interesting. What files in those are actually changed? Is it swappable like theming is? I hate to trouble you for a zip if i can crack open my own files and just make the changes etc.
barnacles10 said:
Different beast. I think there are already a few TouchWiz launcher mods that incorporate this. However, I will look into it cause it interests me as well and it's much more fun doing it yourself =P
Click to expand...
Click to collapse
This will also remove the 1x3G mod.. I assume?
xlGmanlx said:
Hmmm....it does sound interesting. What files in those are actually changed? Is it swappable like theming is? I hate to trouble you for a zip if i can crack open my own files and just make the changes etc.
Click to expand...
Click to collapse
Files in this mod? The three attached are all changed. I can try to get a zip up later. You can use an app such as root explorer as well, if you don't know adb, to put these in their place.
strongsteve said:
This will also remove the 1x3G mod.. I assume?
Click to expand...
Click to collapse
That is in systemui, yeah? Never looked into that one. If so, then yes, it will. However, I wouldn't mind adding that.
:shakes fist as sprint:
xlGmanlx said:
Hmmm....it does sound interesting. What files in those are actually changed? Is it swappable like theming is? I hate to trouble you for a zip if i can crack open my own files and just make the changes etc.
Click to expand...
Click to collapse
Gman.. I am not sure if you are still on one of my odexed roms..
I think I will do the smali edits to add back in 1x3G, odex, swap out images, and make flashable for my blue.
---------- Post added at 12:58 AM ---------- Previous post was at 12:57 AM ----------
barnacles10 said:
Files in this mod? The three attached are all changed. I can try to get a zip up later. You can use an app such as root explorer as well, if you don't know adb, to put these in their place.
That is in systemui, yeah? Never looked into that one. If so, then yes, it will. However, I wouldn't mind adding that.
:shakes fist as sprint:
Click to expand...
Click to collapse
Cool.. then I will wait for you to do the smali edits
as in i don't think every file in those are being modified so i was wondering if i could use a program like ninjamorph to open up those files and swap out applicable files. That is the extent of my "development" knowledge and its trivial, but less work to burden a dev with. Plus if its something "basic" like that, then no need to wait for theme's to incorporate the changes as i can do all that in one shot myself as the new stuff drops etc.
Basically i want to know if i can frankenstein this mod into my current ROM on my own or is it above my skill set haha
barnacles10 said:
Files in this mod? The three attached are all changed. I can try to get a zip up later. You can use an app such as root explorer as well, if you don't know adb, to put these in their place.
That is in systemui, yeah? Never looked into that one. If so, then yes, it will. However, I wouldn't mind adding that.
:shakes fist as sprint:
Click to expand...
Click to collapse
xlGmanlx said:
as in i don't think every file in those are being modified so i was wondering if i could use a program like ninjamorph to open up those files and swap out applicable files. That is the extent of my "development" knowledge and its trivial, but less work to burden a dev with. Plus if its something "basic" like that, then no need to wait for theme's to incorporate the changes as i can do all that in one shot myself as the new stuff drops etc.
Basically i want to know if i can frankenstein this mod into my current ROM on my own or is it above my skill set haha
Click to expand...
Click to collapse
Well the only way to do that would to bring over the classes which would cancel any java mods anyway. You could try dragging your theme over to systemUI, I can't guarantee it will work perfectly though. Worth a try
Updated OP with a 1x/3g compatible systemui
No worries, i am sure this will be incorporated across the board pretty soon anyways, just wanted to get bleeding edge. I sent Calk a PM to see if he had seen it, but patience is a virtue. Thanks again!
barnacles10 said:
Well the only way to do that would to bring over the classes which would cancel any java mods anyway. You could try dragging your theme over to systemUI, I can't guarantee it will work perfectly though. Worth a try
Click to expand...
Click to collapse
Looking at the OP, I take it this doesn't have screen rotation in the options.
maybe the "orientation" option?
Bobbywatts said:
Looking at the OP, I take it this doesn't have screen rotation in the options.
Click to expand...
Click to collapse
Thanks been waiting for this. This version does have working 4g icon and 3g signals in the staus bar.
---------- Post added at 08:42 PM ---------- Previous post was at 08:40 PM ----------
It's Auto Rotation
Man, this mod works great. Even fixed the stock volume toggle being slightly lowered after changing lcd density. Is there a chance you can change the lockscreen toggle to actually lock the device and turn off the screen(or I guess make a separate toggle)?
Can someone help me install using root explorer this is my first time using that app and I really wanna use.it
Awesome! I've been dying for this. I wish I could thank you more than once
---------- Post added at 03:29 AM ---------- Previous post was at 03:28 AM ----------
jxb25 said:
Can someone help me install using root explorer this is my first time using that app and I really wanna use.it
Click to expand...
Click to collapse
Just put the files on your SD card. Hold down the file > Copy, then go to the directories stated in OP, Hit the Mount R/W button, and paste. And then reboot
So, does this add toggles in addition to the stock ones? Will my 4G toggle and the other stock ones remain after these are added? Thanks.

How do you disable the crt animations on Calk's rom?

Hey all, the crt animations are just plain buggy. Is there any way to permanently disable and remove it when running calks rom?
I know how to disable it via settings and display settings under turn off all animations but I want all animations minus the crt?
Thanks in advance you all.
Sent from my SPH-D710 using Tapatalk
Try downloading Spare Parts from Market and set transition animation to fast and leave window animation normal
Sent from my SPH-D710 using xda premium
I tried this method and it worked but now I just flashed a all in one theme for hotspot fix and rotational lag and it is showing crt again. Does anyone have a permanent disable or fix for this? To me the crt is extremely buggy and inefficient to use as it wastes my time. The wake is already slow as is I don't need to wait for the extra delay.
Sent from my SPH-D710 using Tapatalk
If you know how to decompile your framwork-res.apk file with apktool, you can disable.
Change "<bool name="config_animateScreenLights">false</bool>" to "<bool name="config_animateScreenLights">true</bool>"
Don't do that if you don't know how or haven't done a backup though. You'll get bootloop if you mess it up.
Hi - Any other way than spare parts to disable this? I'm not familier with the APK tool. I can look into if I need be, but if there is a more straight forward way.....
Spare parts isn't currently changing anything for me.
EpicAOSP ROM, AIO Mod
i beleive the most recent 2 new ROM versions have it disabled by default. but there is a zip somewhere in E4GT forums that allos you to disable. i'd do a search for that if you dont want to flash a new ROM.
do people really like it that much that it has to be included on every ROM? I was always kind of indifferent to it
Im with the OP. I cannot stand the CRT annimation. It was cool at first. For the first week or so, but now its just old. I don't get why all roms include it now. Is there a .ZIP that could be flashed or any other methods to remove (that dont risk bootloading)
PimpDaddyInc said:
Im with the OP. I cannot stand the CRT annimation. It was cool at first. For the first week or so, but now its just old. I don't get why all roms include it now. Is there a .ZIP that could be flashed or any other methods to remove (that dont risk bootloading)
Click to expand...
Click to collapse
The action is in the one of the xml files within your framework-res.apk. Now there seems to be work arounds but to to fix it you have to decompile the file and change the setting. Its honestly not a big deal to do and you may learn something along the way.
I believe these developers do a lot for us and certain small things like this we should all try and learn so we can help ourselves and not have to bother them.. IMHO
bralkan said:
Hi - Any other way than spare parts to disable this? I'm not familier with the APK tool. I can look into if I need be, but if there is a more straight forward way.....
Spare parts isn't currently changing anything for me.
EpicAOSP ROM, AIO Mod
Click to expand...
Click to collapse
Go to this link: http://forum.xda-developers.com/showthread.php?t=1307635
It explains how to decompile/recompile. Note that you will be working on framework.apk and not on systemui.apk
Then do as $roid said and
Change "<bool name="config_animateScreenLights">false</bool>" to "<bool name="config_animateScreenLights">true</bool>"
meatwadathf said:
Go to this link: http://forum.xda-developers.com/showthread.php?t=1307635
It explains how to decompile/recompile. Note that you will be working on framework.apk and not on systemui.apk
Then do as $roid said and
Change "<bool name="config_animateScreenLights">false</bool>" to "<bool name="config_animateScreenLights">true</bool>"
Click to expand...
Click to collapse
Still got to use APK tool for this though and honestly its not that hard...
CRT is the shiznit !
I love my counter rotational transponder !
Sent from my tofu plasma converter.

Transparent Status Bar--Instructions for DIY

Disclaimer: I do not have any formal training with anything I'm covering here and it's entirely possible….dare I say probable…that I may state something incorrectly either partially or wholly (hopefully I’m not that far off). So this is just how I've come to understand things from my own self study as well as staring smali for countless hours (although I have to say the more I learn, the more I learn I don't know ). Hopefully there’s another beginning android hobbyist that finds this useful and/or inspires him to try some new things.
**These instructions apply to Mac and Linux only, due to the fact we're working with aosp source and building in windows is not supported at this time**
Enabling Translucency
I approached this a little different than I’m used to seeing in terms of a mod. Normally we start off by decompiling an apk and go from there. Since this is for an aosp rom, we have easy access to the source code and can make changes there. Now, I don’t proclaim to know java. I have very, very little programming experience, and even that is limited to an introductory C++ class I just took. But even without knowing java, you’ll have a much easier time reading java source code than you will smali. So, yes, you need to sync with aosp to use this guide. It's not hard, and there's good instructions HERE. As an aside, my personal opinion is that anyone that a true-blue xda'er should have aosp syned...even if you have no intention of building roms. It's like an android encyclopedia. I've learned A TON just from poking around/reading though some parts. I probably comprehend < 10%, but it's easily been one of the most beneficial things I've done to further my understanding.​
So now you have the source code. What we need to change is the PixelFormat for the statusbar. In froyo and gingerbread this was done in StatusBarService. It’s been changed a little in ics, although the edits remain in SystemUI. The two files I changed were StatusBar and PhoneStatusBar.
Starting in the root of your aosp working directory, the absolute path of the first file I edited is
Code:
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java
Open this in a good text editor. The PixelFormat parameter is specified in the getStatusBarHeight function. In the version I edited it is easily found on lne 124. Just search for “PixelFormat” and you’ll find it. (ignore the search return that’s part of the import statement at the beginning of the file) As soon as you get there you’ll see the problem. PixelFormat.OPAQUE. Replace OPAQUE with TRANSLUCENT. Save
Next you make similar edit in PhoneStatusBar.java. From the same directory that StatusBar.java is in, go to the phone directory and open PhoneStatusBar.java in your text editor. Now this file is much, much longer to read through. Rather than doing that (of course you can if you want) just performa search for that same text again “PixelFormat” You’ll get several returns, some of them will already have TRANSLUCENT set.
BUT...Don’t get carried away and change all the OPAQUE values. One of the search returns will be part of the function getRecentsLayoutParams (starts on line 378). The portion of code that you might be temted to change checks the PixelFormat by way of a boolean test
Code:
(opaque ? PixelFormat.OPAQUE : PixelFormat.TRANSLUCENT)
I left this alone.Edit: After reading the entire code a little bit more, I think we could change it to
Code:
PixelFormat.TRANSLUCENT
without any ill effects, although I'm not sure what, if any, additional benefit we'd see. I have not tried.​
The exact places I did change OPAQUE to TRANSLUCENT were in lines 311, and 481. That’s it for the code portion. Make sure to save your changes. Now go back to the res directory and we need to edit some xml files.
From the root of the SystemUI directory, open res/values/colors.xml. Find the entry for “status_bar_background” and change it’s value to whatever you want. In mine I’ve set it to “a6000000” which black but 35% translucent. The first 2 characters control the opacity on a scale from 0-255 where 0 is completely transparent and 255 is fully opaque. That value is then stated in hexadecimal format; e.g. 0=00, 255=ff.
*if you also want a translucent bottom menu bar, it is set in res/layout/navigation_bar.xml. Change the hex value of android:background=”ff000000” to your desired value for opacity.*
Now you should have all the edits in place for a translucent statusbar. All that’s left is to compile the apk. Before you compile SystemUI, you need to have ran the extract-files script. Only needs to be done once. Connect your phone to the computer(making sure that usb debugging is turned on) then in terminal, starting from the root of your aosp working directory:
Code:
cd device/samsung/maguro/
./extract-files.sh
Let the script finish. It will create a new vendor directory in the root of your working directory and copy several files from your phone.
Now cd back to the root of your working directory and run
Code:
. build/envsetup.sh
Note the period and space before build. This is an important step which initialized the build environment. Several new commands will be available now such as "mm" "mmm" "croot" amongst others. Type "help" (without the quotes) for a full list of the new commands available.
Next step to build your SystemUI is to run lunch. Just type "lunch" and press enter:
Code:
pendo:master pendo$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. full_stingray-userdebug
5. full_wingray-userdebug
6. full_crespo-userdebug
7. full_crespo4g-userdebug
8. full_maguro-userdebug
9. full_toro-userdebug
10. full_panda-eng
Which would you like? [full-eng]
It will list the available builds. Number 8 should be for maguro-user debug. Select it and press enter. And lastly, type
Code:
make SystemUI
It will take several minutes to build, especially the first time. But once it’s done, your new SystemUI will be in out/target/product/maguro/system/app/SystemUI.apk.
Here is a SystemUI that I built that has a translucent statusbar. It also has a circle battery mod I recently made in ics blue. This was built on 4.0.3 sources.
Here's a flashable zip:
TransStatusbar-SmoothCircleMod_4.0.3.maguro-signed.zip
Smali edits
OK...here's some instructions as a smali edit. Things to keep in mind here....smali is, for me at least, challenging to follow and fully comprehend what you are looking at. Also, this set of instructions is based off of working on a SystemUI for 4.0.3. My goal here is to give precise enough steps so that the right edits are made, while also trying to be "universal" in that this will hopefully work on other SystemUI's going forward. If we discover that tweaks need to be made, I'll edit this list.
Pixel format is stored as a integer constant. To review, here are some values of interest for this thread. (blue text is value)
OPAQUE(no alpha bit): -0x1
RGB_565(also no alpha): 0x4
TRANSLUCENT(many alpha bits) -0x3
First file to edit is StatusBar.smali. Open in your preferred text editor and search for this text:
Code:
Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
Go to the line above it and change the last value from -0x1 to -0x3.
Next open PhoneStatusBar.smali. Search for this text:
Code:
const v4, 0x4800068
replace the 2 lines underneath with this:
Code:
const/4 v5, -0x3
move v2, v1
Next search for this text:
Code:
Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPixelFormat:I
Once again we're going to edit the line above and change the last value to -0x3.
You can see the pattern of changing -0x1 to -0x3. However, you may notice that it's a 0x4 that your're replacing. You won't ever be replacing anything vastly different. So when following these instructions if you find that you're replacing something other than -0x1 or a 0x4, that should raise a red flag that it might not be the right thing to edit. *The first edit in PhoneStatusBar is a little different than the others and I think there is more than one way to do that, but this is how I did.
You may notice that I haven't listed the entire line for the search criteria ....this is because there may be differences with the local variables associated. Your file may be assigning the pixel format to local variable v8 and the next guys v9. *The first search in PhoneStatusBar I did give the whole line.
That's it for smali edits. Now you still have the res directory edits. With an aosp based rom, you need to change the hex value for status_bar_background in drawables.xml. Also, you now have translucency available for the softkey area.....it's background is set via hex color in res/layout/navigation_bar.xml.
I've been wanting a smooth circle battery mod! Only problem is, on Roman's AOKP rom flashing it makes the statusbar and virtual buttons disappear Happens with the other circle battery mod as well :/
Same here, soft buttons and status bar dissapear
Sent from my Galaxy Nexus using xda premium
This may just be me, but I got the battery only circle mod going on Romano's rom with the apex 4 kernel. Didn't work with the other kernel I was on.
awesome instructions im going to download asop on my linux pc tonight and have at the systemui on boxing day or something. ive got the softkeys themed but thats as far as i can get without a ton of fc's when decompiling and editing xml's and some pngs, so hopefully this will help me learn a bit more.
thanks for the awesome write up!
edit: i get the same problem as the above people when flashing this on the rom in my sig
pendo, thanks so much for this. its very educational and I appreciate the time you took to help all of us.
my question is...
in the cyanogenmod source instead of stating "opaque" or "translucent" it shows PixelFormat.RGB_565 which (I think) means it's 16bit and opaque. do you think it would have to then be changed to ARGB_8888, or something different? here's the link to the info I found: http://developer.android.com/reference/android/graphics/Bitmap.Config.html
I'm just unsure how to apply this info.
thanks man, love your work, glad to see you here!
Sent from my Galaxy Nexus using xda premium
I used apktool to decompile the systemui.apk. I found the status bar files. But they are smali. When I edit them with notepad+ I cannot find the PixelFormat line. Sucks.
Sent from my Galaxy Nexus using XDA App
joshnichols189 said:
I've been wanting a smooth circle battery mod! Only problem is, on Roman's AOKP rom flashing it makes the statusbar and virtual buttons disappear Happens with the other circle battery mod as well :/
Click to expand...
Click to collapse
My bad, I left out one VERY IMPORTANT detail. Whether or not you build your own or use the one I compiled it is a deodexed SystemUI.apk. If you previously had an odexed SystemUI then you MUST delete SystemUI.odex
I have been told that my apk works with this 4.0.3 IML74K rom.
gn00my said:
Same here, soft buttons and status bar dissapear
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Please see above note.
Also, these instructions as well as the provided apk DO NOT have Paul's softkey mod. I'm hesitant to say this, but I am tinkering a bit trying to replicate the edits in source form. I know I posted a SystemUI that had those edits for 4.0.2 but I did them as smali edits. I wish to add them to the source code which would make it much easier for updates. But I have no progress report on that. The *main* purpose of this thread was informational. I wanted to offer some help for someone to either do it themselves, or help someone who has the capacity/desire to update the apk as needed.
EkostonS said:
awesome instructions im going to download asop on my linux pc tonight and have at the systemui on boxing day or something. ive got the softkeys themed but thats as far as i can get without a ton of fc's when decompiling and editing xml's and some pngs, so hopefully this will help me learn a bit more.
thanks for the awesome write up!
edit: i get the same problem as the above people when flashing this on the rom in my sig
Click to expand...
Click to collapse
This is built purely from aosp sources, not CM. I would not expect what I compiled to work on anything other than aosp 4.0.3. However, the information in the first post should help you make a translucent statusbar if the CM9 source code is available somewhere.
allofusjw said:
pendo, thanks so much for this. its very educational and I appreciate the time you took to help all of us.
my question is...
in the cyanogenmod source instead of stating "opaque" or "translucent" it shows PixelFormat.RGB_565 which (I think) means it's 16bit and opaque. do you think it would have to then be changed to ARGB_8888, or something different? here's the link to the info I found: http://developer.android.com/reference/android/graphics/Bitmap.Config.html
I'm just unsure how to apply this info.
thanks man, love your work, glad to see you here!
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Yes, I actually had some information regarding that in the first draft I had made, however I was getting concerned with the length as it was so I trimmed it down a bit.
Yes, RGB_565 is 16bit opaque. You should just change it to TRANSLUCENT. I've done this before, but in smali. One thing that I haven't figured out is why it's called RGBA vs ARGB. The hex values are done in ARGB. Go figure.
Also, here's some info that will help when trying to do this edit backwards, aka decompiling with apktool Obviously when aapt compiles it doesn't store the code as TRANSLUCENT....but here's some of the values that it does store of what you'll most commonly see:
TRANSLUCENT = -0x3
OPAQUE = 0x1
RGBA_8888 = 0x1
RGBX_8888 = 0x2
RGB_565 = 0x4
fatsix said:
I used apktool to decompile the systemui.apk. I found the status bar files. But they are smali. When I edit them with notepad+ I cannot find the PixelFormat line. Sucks.
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
No....you cannot edit with Notepad.
my bad, I missed the "+"
Make your search for "mPixelFormat" and you should get better results. But it isn't as straight forward in smali. I'm still getting better at, but it is definitely more difficult to decipher what's happening in smali. Something that I've done to help is to compare source code with decompiled smali (making sure it's the same file).
I decompiled the classes.dex before with something else. Was easier to edit. Can't remember which or find the directions. Java - jar I think.
Sent from my Galaxy Nexus using XDA App
pendo said:
The *main* purpose of this thread was informational. I wanted to offer some help for someone to either do it themselves, or help someone who has the capacity/desire to update the apk as needed.
-Yes, I actually had some information regarding that in the first draft I had made, however I was getting concerned with the length as it was so I trimmed it down a bit.
-Yes, RGB_565 is 16bit opaque. You should just change it to TRANSLUCENT. I've done this before, but in smali. One thing that I haven't figured out is why it's called RGBA vs ARGB. The hex values are done in ARGB. Go figure.
Click to expand...
Click to collapse
-mission accomplished!
-isn't that how things always work out?
great, thank you very much! i hate having to reapply my theme edits with every rom flash. this is very helpful.
one more question...
will this edit "stick" in my local cyanogenmod workspace after a repo sync, or, would that require setting up my own github repo to view changes to cm framework vs my edited framework? please don't feel obligated to give an in depth explanation if that's what this question requires. I'd just like to know if my thinking is on the right path. thank you!
Sent from my Galaxy Nexus using xda premium
ahh that would make sense, but cm is built off asop and your last transparancy mod worked on cm9
Would anyone please show a pic with the final result? I am most interested in this mod once i get my GNex by new year.
Here you go mind of small but not a problem at all.
Sent from my Galaxy Nexus using xda premium
Neat trick. Many thanks!
did you noticed dialer status bar isn't black?..How can l fix taht?Thanks!
fatsix said:
I decompiled the classes.dex before with something else. Was easier to edit. Can't remember which or find the directions. Java - jar I think.
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
If you're including the need to download aosp source, you would be correct. But the mod itself I feel is easier in source, solely based on the fact that it's easier to read. Sure, if you're familiar with the edit and have done it before you can decompile and search for whatever key terms you wish and then make the "-0x3" edits. But by viewing the source, it's pretty obvious on where/how to make the edits.
allofusjw said:
-mission accomplished!
-isn't that how things always work out?
great, thank you very much! i hate having to reapply my theme edits with every rom flash. this is very helpful.
one more question...
will this edit "stick" in my local cyanogenmod workspace after a repo sync, or, would that require setting up my own github repo to view changes to cm framework vs my edited framework? please don't feel obligated to give an in depth explanation if that's what this question requires. I'd just like to know if my thinking is on the right path. thank you!
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
It should, or at least it does with aosp and repo. Unless the package is updated.....(I think...)
EkostonS said:
ahh that would make sense, but cm is built off asop and your last transparancy mod worked on cm9
Click to expand...
Click to collapse
Yes, CM is based off aosp but I can assure you there are some significant differences...at least for gingerbread. I would anticipate there are less differences between CM9 and ics at this stage of the game. I didn't know that my last one worked on CM9.....my guess is that whatever changed in 4.0.3 hasn't made it's way into CM9's source.
manager77 said:
did you noticed dialer status bar isn't black?..How can l fix taht?Thanks!
Click to expand...
Click to collapse
No, I didn't notice anything....I have no way to view what I built! Lol...
Well, I'm not exactly sure off the top of my head. Does anyone know if my previous SystemUI had a translucent statusbar? I should be able to figure it out pretty easily if it was...
Thanks for the info. You really got me interested in this stuff!
For Windows users (like me), I believe somebody posted a VMWare images ready to do these kind of things.
Might give it a try when I'm back from holiday.
Sent from my Galaxy Nexus using xda premium

[GUIDE][CDMA] How to Change your Carrier name in Notifications and unlock screen!!

MODERATOR- Please move to correct sub-forum, it originally started as question but was solved and i turned it into a guide. Thanks.
Well... i had been trying to figure out how to change the carrier name in the notification bar for a few days and with some luck and some good tips from XDA Members and from antEris for pointing me in the right direction... here is a guide to help others who may want to change theirs as well!
**CAUTION- You will need to re-enter your google account info. This will wipe your contacts, and sync settings, so make sure you re-sync once complete!!**
Requirements:
Must have ROOT
FOR CDMA Devices ONLY! Will NOT work on GSM
Untested on all others. (if you test it on r800a, or any other one, let me know so i can update this.)
Things you will need:
1. Ninjamorph (Market)
2. HxD (google it, its free)
3. USB Cable
Method 1:
Steps:
1. Using Ninjamorph, select "New Project"
2. Navigate to system/framework
3. Select the framework-res.apk
4. Exit to home
5. Connect phone to PC
6. Browse to AndroidThemes/workspace/framework-resapk/res/xml on your sdcard.
7. COPY eri.xml to the desktop.
8. Now open the HxD application on your PC.
9. Drag the eri.xml into the big gray area.
10. You will now see a bunch of code, scroll till you see "Verizon Wireless"
11. Highlight Verizon Wireless, starting from the last letter going back to the "V" in Verizon.
12. Now you can type in what you want, UP TO 16 characters. If your custom banner is less than 16 characters, use the SPACEBAR and hit it for a total of 16 characters including how many your custom banner is. (i.e... XperianceIT is 11 characters, so i hit space bar 5 times)
13. Once thats done go ahead and exit HxD, it will ask if you want to save, say yes.
14. Now place the new eri.xml back on to the root of your sd card.
15. Disconnect Phone from PC
16. Open Ninjamorph
17. Select "Existing Project".
18. Browse to the ORIGINAL eri.xml and select it.
19. Now browse to the eri.xml you placed on the sdcard after modifying it.
20. Hit yes, a few times here, it will now take you back to the Ninjamorph main screen.
21. Select "Finish Project".
You will now be prompted for a few things, like if you want Ninjamorph to optimize it since its a .apk, I chose NO, not sure what will happen if you choose yes. Once thats done, reboot and enjoy!!
Method 2:
COMING SOON!
dont forget to thank/donate to me if you like this and it helps you out!
I'm not 100% sure on this,but as I recall,build.prop changes are undone after each reboot. You cant see changes until you reboot,but it gets reset,so you cant do it.
But google for it and you will find an answer
Fokezy said:
I'm not 100% sure on this,but as I recall,build.prop changes are undone after each reboot. You cant see changes until you reboot,but it gets reset,so you cant do it.
But google for it and you will find an answer
Click to expand...
Click to collapse
That's not true. If it was we wouldn't be changing dpi, model etc via build.Prop
Sent from my R800i using Tapatalk
XperianceIT said:
Ok here is a question for ya guys... is there a way to modify the build.prop to change the word "Verizon Wireless" on my status bar to say something different? I did it once on my Optimus S which was fully unlocked and rooted. My Play is rooted but BL locked. I have tried a few times using ROM Toolbox's build.prop editor and it saves the words i put in, but nothing changes on status bar even after reboot. What i did on my Optimus was every word that said "Sprint" i changed to say "gROM 2.2" and it worked, but i cant get it to work on my Play.
Click to expand...
Click to collapse
You mean in the notification drop down? I believe that information is stored in the framework not in the build.prop.
Sent from my R800i using Tapatalk
Yes in the drop down. I know for Optimus S it was in build.prop, but it could be different for Verizon Xperia Play.
The text for the carrier label is in an XML file in the framework-res.apk.
Its under /system/framework/framework-res.apk
Then you'll need to edit eri.xml inside the apk on your computer, then push it back to your phone
You can find more specific instructions Googling "how to edit eri.xml"
Or you might try conap's app to do it all for you, not sure if it will work as its intended for use with aosp roms but heck, Verizon's rom kinda looks aosp. Worth a try anyway.
http://forum.xda-developers.com/showthread.php?t=960099
Hope this helps.
Sent from my R800x using xda premium
Oh dude, im so walking to my laptop right now to try it!
**UPDATE: The Conaps App didnt work, resulted in having to do a nandroid recovery.
Got it! Took over an hour of playing and several crashes, 2 bootloops, and 2 nandroid recoveries later! But its friggin done!
See Original Post for full guide!!
Screenshots attached!
Sent from my R800x using XDA App
Has anyone on Three UK managed to get this to work?? It's hard to find the right lines of code when you're looking for "3".
Sent from my R800i using Tapatalk
kupo5131 said:
Has anyone on Three UK managed to get this to work?? It's hard to find the right lines of code when you're looking for "3".
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
Oh wow, i didnt think of that.... let me take a look at the ERI.XML i have and see if maybe i can reference where my banner name is, maybe that will help.
I attached a screenshot of my eri.xml with some notes, let me know if this works, so i can update the guide for your guys phones as well.
XperianceIT said:
Oh wow, i didnt think of that.... let me take a look at the ERI.XML i have and see if maybe i can reference where my banner name is, maybe that will help.
I attached a screenshot of my eri.xml with some notes, let me know if this works, so i can update the guide for your guys phones as well.
Click to expand...
Click to collapse
Thanks for the quick reply but I don't see any attachments
Sent from my R800i using Tapatalk
kupo5131 said:
Thanks for the quick reply but I don't see any attachments
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
Thats very odd.... i know it was there i even looked at it! Here it is again though...
That's what I have... No sign of a 3 :what:
Edit: I've played with the eri.xml file (changed a few values) and nothing at all changed. I have a feeling I need to find a different file to edit.
If i find out anymore information I'll let you know.
Sent from my R800i using Tapatalk
That is weird! I cant imagine it would be any different for your guys' phones. Is it possible for you to pull the eri.xml and send it to me. I don't think I will be able to test it on my phone. But Id like to look at it.
Edit: I wonder if yours can be changed in build.prop. are you running a custom rom?
XperianceIT
sent from my Xplay R800X, using XDA App!
Here is my eri.xml I'm running stock rom 42, rooted and bootloader locked. Using a Ice Cream Sandwich theme from the theme forums.
http://db.tt/uQpsalgf
Thanks for all the help so far.
Sent from my R800i using Tapatalk
Ok, I will check it out after work. Also, you might want to try changing it by editing your build.prop file, I know it doesn't work with mine but it might on yours. This can be done easily by using I rom tool box then click performance, then select build.prop editor. Yours might be a little harder cause of the "3". But I will copy the one I did on my old phine using this method to show which lines to edit, when I get off work.
EDIT- I couldn't download/view your eri.xml when I click the link I get an error.
XperianceIT
sent from my Xplay R800X, using XDA App!
kupo5131 said:
Here is my eri.xml I'm running stock rom 42, rooted and bootloader locked. Using a Ice Cream Sandwich theme from the theme forums.
http://db.tt/uQpsalgf
Thanks for all the help so far.
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
I couldnt download your XML, i get an error when i try. Also, what are you using to view the xml on your phone? I love the way that one looks, does it allow you to edit it as well?
Will this work on unlocked devices?
I zipped the xml so hopefully it will download this time.
http://db.tt/s5L0mENb
The app I used is called HEX Editor, it's free on the market!
I looked at the build.prop editor but I can't find anything referring to "3". This MAY be useful information to you but when my phone first starts and is searching for a signal is displays "3 UK" then when it has the signal it displays "3"
Sent from my R800i using Tapatalk
TheCraig said:
Will this work on unlocked devices?
Click to expand...
Click to collapse
I unfortunately do not have a unlocked device so i havent been able to try it. Honestly, i would just make a nandroid backup, and then try see if it works, if not then, restore nandroid, THEN i would try doing it using the build.prop method. (which i havent made a do it yourself tutorial) but you can try using ROMTool Box, it has a built in build.prop editor, you would just find your carrier name in the .prop file and replace it whith whatever you want. This method allows for more character input, but it didnt work with my phone, so im not sure if its a Stock ROM vs. Custom ROM or if its CDMA vs. GMS thing. It worked on my old Sprint Optimus S w/ Custom ROM. If you try it and get it to work, let me know which method you used, so i can update the OP for compatibility.
kupo5131 said:
I zipped the xml so hopefully it will download this time.
http://db.tt/s5L0mENb
The app I used is called HEX Editor, it's free on the market!
I looked at the build.prop editor but I can't find anything referring to "3". This MAY be useful information to you but when my phone first starts and is searching for a signal is displays "3 UK" then when it has the signal it displays "3"
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
That is useful, it gives me more line info to try and look for. Whats going to make it hard, is i wont have any way to test it myself, in order to narrow down what the value is we need to change, but i will look it over and see if anything stands out in comparison to mine. Can you send me a screen shot of the notification drawer pulled down? I want to see how it looks. Cause thats where the name will be not up in the bar by the clock and signal meter. (I ask, cause mine never said anything different while searching for signal as opposed to finding signal on the bar, or in notification pull down.)

Categories

Resources