Jump to content


Photo

Change the default android blue colour to light grey?

- - - - -

  • Please log in to reply
35 replies to this topic

#1
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G
Is this possible?

- Ross

Edited by PCTechRoss, 31 May 2013 - 02:01 PM.

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#2
kieranswhite

kieranswhite

    Diehard

  • Members
  • PipPipPipPip
  • 443 posts
  • Gender:Male
  • Devices:Huawei Acend g300
  • Twitter:@@kieran9969
You have decompiled the APK havent you? (just asking)

it should be quite easy once the apks are decompiled. i think you either change some smali files or you edit some PNG's to make the status bar transparent and i thought you just swapped the battery PNG's for the new ones?

if i am mistaken please correct me. Maybe a more experienced dev could help you. there are probably loads of guides on apk and the like for this.

  • 0

#3
kyan31

kyan31

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,889 posts
  • Gender:Male

You have decompiled the APK havent you? (just asking)

it should be quite easy once the apks are decompiled. i think you either change some smali files or you edit some PNG's to make the status bar transparent and i thought you just swapped the battery PNG's for the new ones?

if i am mistaken please correct me. Maybe a more experienced dev could help you. there are probably loads of guides on apk and the like for this.


You don't need to do any of these, all you do is edit some xml's.

edit the status_bar.xml to center the clock, located in res/layout. You can also make the statusbar transparent in this same xml, change #ff to something else. Use a HEX calculator to find out the correct value.

To add battery mods, you need to manually add 101 battery pngs to drawable-hdpi and modify a certain xml that displays these png's. I can't remember exactly, but i believe Tillaz posted a quick tutorial on one of the other threads.

  • 0

e2199c4dbb.png823c51b6b0.pngc3f6e04cdb.pngbc36a18046.pngead60d1912.pnge46a22ae54.png

 

Phones: Samsung Galaxy S4 Qualcomm & Huawei Ascend G300

PC: AMD FX 8350 8 CORE 4.2Ghz CPU, 16GB 1600Mhz Kingston HyperX RAM, Gigabyte R9 270X Winforce Edition GPU

Like my work? Hit that +1 button as a thank you! Want to support me? You could consider donating!  :)

Subscribe to my YT Channel: https://www.youtube.com/user/thekyan31


#4
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

You don't need to do any of these, all you do is edit some xml's.

edit the status_bar.xml to center the clock, located in res/layout. You can also make the statusbar transparent in this same xml, change #ff to something else. Use a HEX calculator to find out the correct value.

To add battery mods, you need to manually add 101 battery pngs to drawable-hdpi and modify a certain xml that displays these png's. I can't remember exactly, but i believe Tillaz posted a quick tutorial on one of the other threads.


Do you know what program I could use to decompile?

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#5
kieranswhite

kieranswhite

    Diehard

  • Members
  • PipPipPipPip
  • 443 posts
  • Gender:Male
  • Devices:Huawei Acend g300
  • Twitter:@@kieran9969
apk tool look at this thread :P

http://forum.xda-dev...d.php?t=1989533

  • 0

#6
kyan31

kyan31

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,889 posts
  • Gender:Male

Do you know what program I could use to decompile?


APK Tool of course

http://www.solidfile...m/d/9aec446131/

  • 0

e2199c4dbb.png823c51b6b0.pngc3f6e04cdb.pngbc36a18046.pngead60d1912.pnge46a22ae54.png

 

Phones: Samsung Galaxy S4 Qualcomm & Huawei Ascend G300

PC: AMD FX 8350 8 CORE 4.2Ghz CPU, 16GB 1600Mhz Kingston HyperX RAM, Gigabyte R9 270X Winforce Edition GPU

Like my work? Hit that +1 button as a thank you! Want to support me? You could consider donating!  :)

Subscribe to my YT Channel: https://www.youtube.com/user/thekyan31


#7
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

APK Tool of course

http://www.solidfile...m/d/9aec446131/


What is the g300 a HDPI or MDPI?

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#8
kyan31

kyan31

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,889 posts
  • Gender:Male

What is the g300 a HDPI or MDPI?


HDPI

  • 0

e2199c4dbb.png823c51b6b0.pngc3f6e04cdb.pngbc36a18046.pngead60d1912.pnge46a22ae54.png

 

Phones: Samsung Galaxy S4 Qualcomm & Huawei Ascend G300

PC: AMD FX 8350 8 CORE 4.2Ghz CPU, 16GB 1600Mhz Kingston HyperX RAM, Gigabyte R9 270X Winforce Edition GPU

Like my work? Hit that +1 button as a thank you! Want to support me? You could consider donating!  :)

Subscribe to my YT Channel: https://www.youtube.com/user/thekyan31


#9
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X

Do you know what program I could use to decompile?


lol, whats wrong with the "apk manager" i posted for you yesterday ?, its has an easy to use interface for de-compiling and recompiling apk
http://www.modaco.co...p/#entry2127312

Posted Image

  • 0

#10
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

lol, whats wrong with the "apk manager" i posted for you yesterday ?, its has an easy to use interface for de-compiling and recompiling apk
http://www.modaco.co...p/#entry2127312

Posted Image


I decompiled, edited all the xmls then recompiled and none of it worked *facepalm* I hate this!!

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#11
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X

I decompiled, edited all the xmls then recompiled and none of it worked *facepalm* I hate this!!


ha, you will get the hang of it... we all start out the same ;)


so, what exactly happened ?

did it successfully compile ?

did you choose yes then yes again when prompted about system app ? (you always choose yes)

Posted Image




did you delete everything in the "keep" folder ? (except the META-INF folder) then press any button

Posted Image

  • 1

#12
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

ha, you will get the hang of it... we all start out the same ;)


so, what exactly happened ?

did it successfully compile ?

did you choose yes then yes again when prompted about system app ? (you always choose yes)

Posted Image




did you delete everything in the "keep" folder ? (except the META-INF folder) then press any button

Posted Image


The system UI works on my phone its just you cant see the bat percent, clock wasn't centered and.. it was transparent although it was blurry and frozen kinda :/

Bugs me so much, havent been able to use my phone all day trying these :/

Edited by PCTechRoss, 25 May 2013 - 09:26 PM.

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#13
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X

The system UI works on my phone its just you cant see the bat percent, clock wasn't centered and.. it was transparent although it was blurry and frozen kinda :/

Bugs me so much, havent been able to use my phone all day trying these :/


send me the systemUI and i will take a look

  • 0

#14
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

send me the systemUI and i will take a look


The modded or stock?

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#15
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X

The modded or stock?


modded one that's not working properly

  • 0

#16
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

modded one that's not working properly


http://www.solidfile...m/d/8921f2c55f/

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#17
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X
what is your systemUI displaying for the battery, nothing ? or stock images?

  • 0

#18
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

what is your systemUI displaying for the battery, nothing ? or stock images?


it looks like the battery but for some reason it's squished in with the clock so you cant see very well, its also blurry

Files i edited

stat_sys_battery.xml
stat_sys_battery_charge.xml
status_bar.xml

Edited by PCTechRoss, 25 May 2013 - 09:54 PM.

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#19
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X

it looks like the battery but for some reason it's squished in with the clock so you cant see very well, its also blurry

Files i edited

stat_sys_battery.xml
stat_sys_battery_charge.xml
status_bar.xml


about the center clock, try doing this

directly above

        <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />




add this

      </LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">



so it should look like this below

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="13.0sp" android:id="@id/level" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" style="android:style/TextAppearance.StatusBar.Icon" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>



i think your images are just too big (width) as the code and everything else is fine regarding the battery mod,

  • 0

#20
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

about the center clock, try doing this

directly above

 <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />




add this

 </LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">



so it should look like this below

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="13.0sp" android:id="@id/level" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" style="android:style/TextAppearance.StatusBar.Icon" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>



i think your images are just too big (width) as the code and everything else is fine regarding the battery mod,


Thanks, ill test that in a second, do you know the location of the status bar png files so I can make it transparent?

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users