[how-to]change status bar clock color on latest samsung released rom - Galaxy S II Android Development

Hi , I had search every where how to change clock color on status bar in latest Samsung ROM ( JB ) but non-work
Coz its code is a bit different from other ROM. So here's how
Requirement :
SystemUI.apk
A bit knowledge about decompiling
Patience
First --->
Decompile your systemUI.apk, go res/layout/tw_status_bar.xml
Then --->
Search for this code
Code:
<com.android.systemui.statusbar.policy.Clock
Then --->
You will see
Code:
android:textColor="#fffefefe
behind it.
Now you may change whatever color you want by changing the code.
Here http://html-color-codes.info/ it maybe useful for you to find the color code
Note : The last 6-digit IS the color code, whereby
the two in front it is transparency.
It count by
#FF****** ( Opaque )
#00****** (Transparent )
It is recommended not to change the first two digits except you know what you are doin :laugh:
Now --->
Recompile your apk , drag resources.arsc and tw_status_bar.xml from your newly build APK to your old SystemUI.apk
Finally --->
Push your SystemUI,apk to system/app of your phone and reboot.
DONE.
DO PRESS THE THANKS BUTTON IF I HELP YOU !!!! CHEERS

Thanks
And to center the clock you can make an 'how to' ?

do i need the framework-res.apk when decompining,ma8?
Sent from my GT-I9100 using Xparent Skyblue Tapatalk 2

can't seem to work
everytime i try to either decompile the systemUI i make the changes but when i try to compile the systemUI back to an .apk file it doesnt compile it gives me errors i tried APKtool and APK manager both which gives me the errors also when i ty to do it which out decompiling them it gives me systmUI Force Close.. idk what to do please

Mundo Hackz said:
everytime i try to either decompile the systemUI i make the changes but when i try to compile the systemUI back to an .apk file it doesnt compile it gives me errors i tried APKtool and APK manager both which gives me the errors also when i ty to do it which out decompiling them it gives me systmUI Force Close.. idk what to do please
Click to expand...
Click to collapse
I would double check what codes you are using for the colors as I tried the html code and it wouldn't compile. When i searched for an ARGB color chart I was able to re-compile
Thanks for the info JoFury

Related

[GUIDE][MOD] Transparent Background of Arc System App

Hello,
I had asked how to make the background of System App transparent a couple of weeks ago here.
But Nobody can answer the way what exactly I want to do so I finally figure out how to make the background of System App transparent~~
This is including for Phone, Contacts, Messaging, Settings, Music, Alarms, Email, Calendar, Calculator, Sync, Media Server, Clock, Media Discovery, Setup Guide.
This is not including for Timescape, TrackID, Support.. I'm still investigating and will update for this...
It's actually not make the background of System app transparent.... show the wallpaper in the background of System app.
So if you change wallpaper, the background of System app also can be changed to your wallpaper~~~
When I modified style.xml just for the transparency, it's so confusing because the other app behind of System app.
This is based on Rooted LT15i 3.0.1.A.0.145 O2 so working for 145 based Rom. But I'm not sure it's working for LT15i_3.0.A.2.181 Rom.
--------------------------------------------------------------------------------------------------------
[GUIDE HOW TO]
I add the guide which xml and png is modified so it will be helpful for someone who use the other version ROM.
It's so simple if you already know how to inherit from the other in android.
For framework-res.apk, first of all decompile framework-res.apk
Step 1 : In \res\values\style.xml
Change this :
Code:
<style name="SEMCTheme" parent="@style/Theme">
to
Code:
<style name="SEMCTheme" parent="@style/Theme.Wallpaper">
Save and close
Step 2 : In \res\drawable-hdpi-v4\semc_bg.png
Open with photoshop and make semc_bg.png transparent
Step 3 : Compile framework-res.apk
For SemcGenericUxpRes.apk, first of all decompile SemcGenericUxpRes.apk
Step 1 : In \res\values\style.xml
Change this :
Code:
<style name="SEMCTheme" parent="@android:style/Theme">
to
Code:
<style name="SEMCTheme" parent="@android:style/Theme.Wallpaper">
Save and close
Step 2 : In \res\drawable-hdpi-v4\semc_bg.png and \res\drawable-land-hdpi-v4\semc_bg.png
Open with photoshop and make semc_bg.png transparent
Step 3 : Compile SemcGenericUxpRes.apk
For FBMediaDiscovery.apk, first of all decompile FBMediaDiscovery.apk
Step 1 : In \res\values\style.xml
Change this :
Code:
<style name="MediaUpdatesTheme" parent="@android:style/Theme">
to
Code:
<style name="MediaUpdatesTheme" parent="@android:style/Theme.Wallpaper">
Save and close
Step 2 : In \res\drawable-hdpi-v4\semc_bg.png
Open with photoshop and make semc_bg.png transparent
Step 3 : Compile FBMediaDiscovery.apk
--------------------------------------------------------------------------------------------------------
Please see the attached apk files.
Framework-res.apk and SemcGenericUxpRes.apk is for System Apps and should push under /system/framework/
FBMediaDiscovery.apk is for Media Discovery in 145 based rom and should push under /system/app
Looks good, I'll test it out when I get home.
hi rleon...
...thank you so much dude, i've been waiting for this mod everything works perfectly fine....i have just one small request: could you possibly include the CRT screen off animation, or the reboot options mod?
That's what has just come to my mind, it'd be great if you could include those....if not, it's actually awesome anyway
Great~ everything works fine for you...
As I know, CRT Screen off animation and reboot option already exists in the other thread...
If you wanna just one framework-res.apk file including all things, I will try but I'm not sure~~
Please give me a time~~
Hi rleon,
Could you please give a detailed list of items / files / folders you changed or altered?
I'm trying to make the system backgrounds invisible aswell however it seems folders have different names in .181
Thanks for the hard work tho!
For framework-res.apk and SemcGenericUxpRes.apk, 181 Rom is same.
framework-res.apk and SemcGenericUxpRes.apk should be located in the same folder which is under /system/framework/ so you can push these files under /system/framework/
And FBMediaDiscovery.apk is just for 145 based Rom so it may not be there in 181 Rom.
Please check whether there is FBMediaDiscovery.apk under /system/app ro not.
If not, you cannot push this file.
Hmm just tried to install them.. however I got a bootloop.
Anything special I should do while copying the files?
I think your 181 rom is different so it cannot be applied this apks.
I just compiled for 145 based rom...
I will update how to modify style.xml later so you can modify and compile for your 181 based rom by yourself....
That would be awesome, looking forward to it
I did a noob mistake and put it on my phone (3.0.1 UK) and now i can't change my wallpaper at all =\
can anybody upload me the original files for my firmware please???
This is good! My homedock, status bar and notification is already transparent and now I just added this too. Cool!
Sent from my LT15i using XDA Premium App
Is it Build 3.0.1.A.0.145 UK?? It should be working...
Currently my rom also Build 3.0.1.A.0.145 UK......
Thanks a lot for the guide! :-D
// Edit
However there doesnt seem to be a style.xml in my version hmmm interesting ;p!
meidan95 said:
I did a noob mistake and put it on my phone (3.0.1 UK) and now i can't change my wallpaper at all =\
can anybody upload me the original files for my firmware please???
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1052067
Damorisio said:
http://forum.xda-developers.com/showthread.php?t=1052067
Click to expand...
Click to collapse
sorry if it's a stupid question but what am I need to do with this link?
where did you find the "value" folder inside the res folder, i cant find it anywhere..Trying to edit it myself so that i can retain the crt sreen off as well as the reboot option.
Can't even find the value folder much less the style.xml
Sent from my LT15i using XDA Premium App
Since I changed my rom to HK 145 rom, I applied your work to my arc. It looked good and nice and worked very well. Great job. Thank you very much.
I followed the instructions for framework-res.apk and got a bootloop.
Couldn't even decompile SemcGenericUxpRes.apk, I got error messages.
I don't suppose anyone might have any idea why?
Is it possible to have it as a solid black background?
and does this work on Xperia Play?

How to place your key pngs in framework-res.apk and make them work for other apps!!!

Suppose you want to place a png on status_bar_expanded but do not want to keep in SystemUI/res/drawable-ldpi/ as that would cause transportation issues and increase risk of stealing pngs even if you give the SystemUI.apk to anyone only for study. Or have color xmls that if stolen can spoil your Rom surprises or TUTS
Well what would you want to do,, modify some smalis and place it in your own res.apk like lidroid-res,, etc,, but that would be too bulky and big hell of a job
It would be much better only if we could place these drawable xmls,, color xmls,, drawable pngs etc in framework-res.apk,, Well that is a trick only manufacturers use generally,, Well But since the developers/modders/themers works also need to safe guard their work, heres how we can place color xmls,, drawable xmls and drawable pngs in framework-res.apk and still make it work for other apps like SysUI, etc
-=--------Let us begin simple ----=-----------------------How to safe guard status_bar_tracking background png----------------------------------------------------------
1) decompile SystemUI.apk
2) Open status_bar_tracking.xml in res/layout
3) find its background attribute ( android:background="@drawable/x" )
4) now change it to android:background="@android:drawable/x"
5) Now delete x png from drawable-ldpi (<----------skip if u facing error recompiling)
6) Now open ur framework-res.apk with winrar and place x.png in drawable-ldpi
7) pUSH BOTH
--------------------------===---------------------------------------------------Safe guard a color xml------------------------__-==------------------------------------------------------------
Suppose you have seen my last tut regarding how to make any text change its color when you put your finger on it,, now similarly you perform the work on some other text,, say the quick panel toggle text so it turns blue when toggle is on and white when off,,, etc Now your problem is that if you give your lidroid-res.apk to anyone even for study,, he/she may steal ur color folder xml regarding toggle text dynamics and release it as his own TUT,, so what do you do,, hide the color xml regarding toggle text dynamics in framework-res.apk
1) Decompile lidroid-res.apk
2) copy the <toggle text dynamics xml name>.xml to somewhere safe
3) Open the xml that has android:textColor="@color/<toggle text dynamics xml name>"
and change it to android:textColor="@android:color/<toggle text dynamics xml name>"
4) Now decompile framework-res.apk,, place <toggle text dynamics xml name>.xml in color folder and recompile properly
This way,, safeguard whatever the hell you want
Just remember,, decompile framework-res for xmls and open using and archive opener for pngs
------------------------------------------------------------Remember to press thanks if i helped you---------------------------------------------------------------------------------------:good:
Nice bro :good:
Nice idea for ROM/Theme devs...
Regards,
Ganesh

[Guide] [Mod] How to make any gingerbread or cm7/cm9 status bar transparent

How to make any gingerbread or cm7/cm9 status bar transparent
Check my signature for all my statusbars including pre-made stock cm7/cm9 and Aosp statusbars and guides​
There's three ways to make the statusbar bar Transparent and I'll post them all
One way works with any gingerbread rom (deodex & rooted) and one with cyanogen 7
I have not tried it on ics or jelly bean but you can try (for people who stumble across this thread who are not galaxy y users)
Please dont ask for support unless you are using a custom rom on galaxy y
Any other phones please goto your own phone forum for support
You also need a launcher that is capable of transparency
Adw works but you need to disable wallpaper hack in settings
holo launcher works
any other launcher if it doesn't work look in it's settings & try & disable wallpaper hack or manage internally
Method one for non cm (Stock Deodex Rom)
You need apk tool installed - if you don't know how to use it see my guide here
http://forum.xda-developers.com/showthread.php?t=2206938
Once you have decompiled SystemUI.apk using apk tool goto res/layout Open status_bar.xml in notepad
Find the following line
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:focusable="true" android:descendantFocusability="afterDescendants"
Notice the part highlighted in red android:background is normally a hexadecimal value or it could be a drawable value
either way change the red part to the following
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" [COLOR="Red"]android:background="@drawable/nameofpng" [/COLOR]android:focusable="true" android:descendantFocusability="afterDescendants"
Notice that android:background is now a drawable value
Change nameofpng to the name of your transparent background image (just the name - do not include the file extension .png)
place this image with the same name as the drawable value in res/drawable-ldpi
(of course other devices might be in mdpi or hdpi)
Recompile and sign apk
Put in a flashable zip and flash with system mounted
You can download and use the pngs in the attachment (for ldpi like galaxy y) or create your own
To create a transparent status bar image just take a non Transparent one and edit it in a photo application to make it Transparent (make sure image dimensions stay the same and is for your phone resolution)
Method two for cm7
Note you will need apk tool installed and notepad++ installed
Download the patcher tool by Z25 in attachment
Unzip the contents to a folder
Place your SystemUI.apk and framework-res.apk in files_to_patch
Run patcher.bat
Select status bar tweaks and enable only transparent status bar
Edit the smali file as described in the text file that pops up
Select option build and sign
Select option to create zip files
You now have a zip file called patch.zip
unzip this and take out the SystemUI.apk - we will save this for later
Now we have to either make our own transparent theme or you can download a theme from the playstore for theme chooser that already contains status bar transparency
If you are downloading a theme from the playstore skip the part "To create your own theme" and go straight to the part "final steps"
To create your own theme
Goto uot kitchen http://uot.dakra.lt/kitchen
Take cyanbread.apk from the app folder of your cm7 rom & place on pc (or any other Theme Chooser Theme you wish to make transparent)
Rename it to what you want to call theme
Upload it to kitchen (under cm7 theme in file upload)
In status bar tweaks set background transparency to around 70% Transparent and any other settings you need like carrier or footer - don't forget to generate preview once done
Make sure you have selected ldpi in statusbar tweak settings and ldpi/mdpi for theme chooser preview in file upload (other devices may vary) and in file upload change update binary to galaxy
Then goto summary section
If everything is green create the theme
If not make sure you have clicked generate preview on status bar tweaks
Kitchen will then create theme for you
Download the zip file from kitchen and unzip it
Take out your theme apk
Final Steps
Sign both your theme apk and SystemUI.apk that you saved from earlier with a platform key using zipsigner (playstore)
Put both apks in a flashable zip and flash in cwm with system mounted
(note if you are using a theme from the playstore just do this for SystemUI.apk)
Once the phone has booted goto
ADWLauncher
System Preference
Disable Wallpaper Hack (untick the box)
Your status bar is now transparent
Method three for cm9
Once you have decompiled SystemUI.apk with apktool
Goto smali/com/android/systemui/statusbar/StatusBar.smali
Find the following line
Code:
invoke-direct/range {v11 .. v16}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
Above this line change
Code:
const/16 v16, 0x4
To the following
Code:
const/16 v16, -0x3
Now in notepad++ open the following
res/values/drawables.xml
Find the following line
Code:
<item type="drawable" name="status_bar_background">#ff000000</item>
Change the hex value to the hex value of the colour/transparency you want
For example
Completely transparent:
Code:
<item type="drawable" name="status_bar_background">#00FFFFFF</item>
70% transparent
Code:
<item type="drawable" name="status_bar_background">#b3000000</item>
50% transparent:
Code:
<item type="drawable" name="status_bar_background">#7f000000</item>
Recompile
Sign with a platform key using zipsigner (playstore)
Put in a flashable zip and flash in cwm with system mounted
What is the name for the png to put in drawable-ldpi?
Re: [Guide] [Mod] How to make any gingerbread or cm7 status bar transparent
remo1995 said:
What is the name for the png to put in drawable-ldpi?
Click to expand...
Click to collapse
You can rename it to ur own like
Jst open statusbar.xml in layout folder and on 2nd line u will find an attribute android;background change the file u want to add next to drawable/xx folder and put that file in ur drawable ldpi folder
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Reporting from incomplete blue theme
Status-paused
framework-working
remo1995 said:
What is the name for the png to put in drawable-ldpi?
Click to expand...
Click to collapse
Name it the name of the @drawable value
In my example it's nameofpng
Re: [Guide] [Mod] How to make any gingerbread or cm7 status bar transparent
Great guide :thumbup:
Sent from my GT-S5360 using xda app-developers app
Thank you, but when I go to recompile the file gives me error
remo1995 said:
Thank you, but when I go to recompile the file gives me error
Click to expand...
Click to collapse
what rom are you using?
decompile then recompile the apk without making any changes - if it compiles correctly you know you have edited the xml file wrong or not placed the corresponding png in the drawable folder
if it still gives errors without you making changes then either you are using apk tool wrong or the apk has other errors from the orig source
marcussmith2626 said:
what rom are you using?
decompile then recompile the apk without making any changes - if it compiles correctly you know you have edited the xml file wrong or not placed the corresponding png in the drawable folder
if it still gives errors without you making changes then either you are using apk tool wrong or the apk has other errors from the orig source
Click to expand...
Click to collapse
I use the cod rom and I'm trying to change the systemUI of marinalin85, the bar s3 style android 4.2.2
remo1995 said:
I use the cod rom and I'm trying to change the systemUI of marinalin85, the bar s3 style android 4.2.2
Click to expand...
Click to collapse
No reason why it shouldn't work - make sure you have loaded SystemUI.apk and framework-res.apk into apktool using the apktool if command
Make sure all your apk tool commands are correct I'll post a guide on it soon
marcussmith2626 said:
No reason why it shouldn't work - make sure you have loaded SystemUI.apk and framework-res.apk into apktool using the apktool if command
Make sure all your apk tool commands are correct I'll post a guide on it soon
Click to expand...
Click to collapse
to compile and decompile it does! the file does not work gives me forced closure! I made you those passages
Apk tool guide added see http://forum.xda-developers.com/showthread.php?t=2206938
remo1995 said:
to compile and decompile it does! the file does not work gives me forced closure! I made you those passages
Click to expand...
Click to collapse
Follow my apk tool guide I just posted - I can assure you if you follow all my guides correctly and Fully you will not get force closes - I have made many status bars using this method
Decompile my SystemUI.apk from my status bar thread so you can compare the line for the statusbar background in status_bar.xml with yours
If you get errors when you decompile the apk it means the apk was wrongly compiled to begin with and apk tool can't decompile it correctly - you will need to correct any errors that are in the original apk before you can recompile
how can i make launcher compatible with transparency like TW launcher?
Sent from my GT-S5360 using Tapatalk 2
iMaker said:
how can i make launcher compatible with transparency like TW launcher?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Some launchers do not support transparency
if it doesn't work and there is no option to disable wallpaper hack or manage internally in the launcher settings or something similar you will need to use a different launcher if you want transparency
even in go launcher it still wont have transparency
Sent from my GT-S5360 using Tapatalk 2
iMaker said:
even in go launcher it still wont have transparency
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
I don't think go launcher supports transparency
launchers that definitely do are
holo launcher
adw launcher (disable wallpaper hack in settings)
Added a zip of the full and semi transparent png images for people to use themselves with the guide
off topic question sir, how did you move the jellybean clock and date above toggle bar?
joelquerty said:
off topic question sir, how did you move the jellybean clock and date above toggle bar?
Click to expand...
Click to collapse
By placing <com.android.systemui.statusbar.policy.DigitalClock with the corresponding ids and smali files under the relative layout in status_bar_expanded.xml above the line for toggles
marcussmith2626 said:
By placing <com.android.systemui.statusbar.policy.DigitalClock with the corresponding ids and smali files under the relative layout in status_bar_expanded.xml above the line for toggles
Click to expand...
Click to collapse
can you plzz give me the link of tutorial. i searched in google and xda but i could'nt find it... thank you

[Q] change the background Toggle the status bar notifications

Hi
Very please help
The rom 4.1.2 I could using winrar for simple to change png to another png
Now I'm on 4.4.2 (DittoNote 5.2).
I want to change the png (tw_quick_panel_quick_setting_button_bg_normal.9 ???)
I think it is png a background toogles
I change my png i using winrar but nothing changes.
It is still the old png and no new png.
For what is this happening?
png's ending with 9 are not ordinary png's, they are 9-patch png's and in order to edit them you must DECOMPILE the APK, edit and then RECOMPILE. Anyway, simple adding with winRAR is nota good idea if you don't do ZIPALIGN because it slows down the reading of images....
Ah, and why post a question in app section, isn't Q&A more logical choice?
So I should do this in the Q & A - my mistake.
Ok thanks for the information.
delanik - this is just an example:
I'm trying to change the png in Note 5.2 Ditto 4.4.2
Is the file is tw_quick_panel_quick_setting_button_bg_normal.9 is background switches?
I exchange tw_quick_panel_quick_setting_button_bg_normal.9 another png
with another theme rom Note 2 but nothing has changed.
As I said - pngs with 9 at the end CAN'T be edited without recompiling. Use APKTOOL to decompile APK, then edit, then RECOMPILE. Then from recmpiled APK, copy PNGs (or whole res\drawable folder) to original APK.
If it doesn't change (and it should even when you don't do recompile - it should show BAD image) then you are not editing correct image.
Thank you very much dalanik
I SystemUi decompile framework-res.apk and now the rom DN4 v2.
It will be very difficult for me because there is a lot of files QMG
There is no custom QMG files (icons, button ....) in other roms or themes
to replace them in my rom DN4 v2

[question] about theme create

After reading those guides:
http://forum.xda-developers.com/android/themes/guide-getting-started-theming-cm12-t3006339
http://forum.xda-developers.com/android/themes/guide-t2978121
i managed to import and .apk theme to virtuous studio,enable java as variable,exported framework from my device to desktop
and finally managed to recompile the .apk
the only thing i managed to do was,to change the wallpaper..
my question is :
how can i change the colors of other app?
lets say systemui.apk to change the color of enabled WIFI
http://prntscr.com/612nui <-- make this green for example
ok i will decompile systemui.apk ,mod it and recompile it but this will work only for me...what about others?
how can i change other's apk colors through my theme apk???

Categories

Resources