Color Change on SetupWizard.apk TEXT

Discussion in 'Android Hacks and Help' started by lmt1979, Oct 1, 2010.

  1. lmt1979

    lmt1979 Member

    Joined:
    Feb 18, 2010
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Greenville, NC
    Ratings:
    +0
    Just looking for a bit of help coloring the text that accompanies the SetupWizard.apk that is used when you first boot up your droid after a fresh flash. I have changed the png button colors, the droid, etc. I am thinking it is a simple hex edit in an xml where the color is defined. If anyone can help point me in the right direction would be most appreciated as it's one of the only green things left in my setup.
     
  2. kevdog

    kevdog Member

    Joined:
    Nov 14, 2009
    Messages:
    722
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Please post the apk here or provide a link and I'll take a look at it.
     
  3. lmt1979

    lmt1979 Member

    Joined:
    Feb 18, 2010
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Greenville, NC
    Ratings:
    +0
  4. kevdog

    kevdog Member

    Joined:
    Nov 14, 2009
    Messages:
    722
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Ok -- here are a few things since I don't have a screen capture of what you want to do. I've list a few relevant sections in some xml files. Also it would help if you could actually take a screen capture of what you have (perhaps using the sdk tools ddms.bat utility for screen capture) and import the image into ps or gimp and tell me the exact color of the text right now. It may look white, however it could be a slight variant and not simple #FFFFFFFF.

    Here's what I got right now:
    color.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <resources>
    <color name="error_message_foreground">#ffd7004a</color>
    <color name="agreement_background">#80000000</color>
    <color name="link_color">#ffffffff</color>
    <color name="highlight_color">#ffff6500</color>
    <color name="divider_color">#ffb6d650</color>
    </resources>

    styles.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <resources>
    <style name="setupWizardBodyTextPrimary" parent="@android:attr/textAppearanceMedium">
    <item name="android:textSize">17.0sp</item>
    <item name="android:textColor">?android:textColorPrimary</item>
    <item name="android:textColorHighlight">@color/highlight_color</item>
    <item name="android:textColorLink">@color/link_color</item>
    </style>
    <style name="setupWizardBodyTextSecondary" parent="@android:attr/textAppearanceMedium">
    <item name="android:textSize">17.0sp</item>
    <item name="android:textColor">?android:textColorSecondary</item>
    <item name="android:textColorHighlight">@color/highlight_color</item>
    <item name="android:textColorLink">@color/link_color</item>
    </style>
    <style name="setupWizardTextPrimarySmall" parent="@android:attr/textAppearanceSmall">
    <item name="android:textSize">14.0sp</item>
    <item name="android:textColor">?android:textColorPrimary</item>
    <item name="android:textColorHighlight">@color/highlight_color</item>
    <item name="android:textColorLink">@color/link_color</item>
    </style>
    <style name="setupWizardTextSecondarySmall" parent="@android:attr/textAppearanceSmall">
    <item name="android:textSize">14.0sp</item>
    <item name="android:textColor">?android:textColorSecondary</item>
    <item name="android:textColorHighlight">@color/highlight_color</item>
    <item name="android:textColorLink">@color/link_color</item>
    </style>
    <style name="setupWizardTitle">
    <item name="android:textSize">22.0sp</item>
    <item name="android:textColor">@color/title_color</item>
    </style>
    <style name="setupWizardTextPrimaryGreen">
    <item name="android:textSize">17.0sp</item>
    <item name="android:textColor">@color/title_color</item>
    </style>
    <style name="setupWizardTitleDivider">
    <item name="android:background">@color/title_color</item>
    </style>
    <style name="BrowserTheme" parent="@android:style/Theme.Black">
    <item name="android:windowNoTitle">true</item>
    <item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextView</item>
    </style>
    <style name="AutoCompleteTextView">
    <item name="android:textAppearance">?android:textAppearanceLargeInverse</item>
    <item name="android:focusable">true</item>
    <item name="android:focusableInTouchMode">true</item>
    <item name="android:clickable">true</item>
    <item name="android:completionHintView">@android:layout/simple_dropdown_item_1line</item>
    <item name="android:completionThreshold">2</item>
    <item name="android:dropDownSelector">@android:drawable/list_selector_background</item>
    <item name="android:popupBackground">@android:drawable/spinner_dropdown_background</item>
    </style>
    <style name="CustomTitle" parent="@android:style/Theme">
    <item name="android:windowTitleSize">60.0dip</item>
    </style>
    </resources>

    It would look like to me that changing one of the values within the color.xml file would suffice, and if I had to guess it would be highlight color -- but that doesn't seem to make to much sense to me, since highlight color would suggest the color when you push on the object -- maybe its link color???
     
  5. lmt1979

    lmt1979 Member

    Joined:
    Feb 18, 2010
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Greenville, NC
    Ratings:
    +0
    Here's a screenshot of some of the text

    Here is an example of the text as you use SetupWizard.apk when booting the phone the first time. Just wondering if anyone knows right off the top which section of the xml to edit to change that green color to another value. Thanks again for any help, you all are very helpful.

    http://dc262.***********/img/AAhTnbHn/s3/0.15082526893114967/DSCF1149.JPG
     
  6. kevdog

    kevdog Member

    Joined:
    Nov 14, 2009
    Messages:
    722
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    OK -- I found where the text color is specified its within /res/layout/welcome_activity.xml

    Specifically the line within this file states the following:
    <TextView android:textAppearance="?android:textAppearanceLarge" android:textSize="28.0dip" android:textColor="#ffa6c839" android:gravity="center" android:layout_gravity="center" android:id="@id/welcome_title" android:paddingTop="10.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/welcome_message" />

    As you can see the #ffa6c839 is the value you want to change.
    An easy way to do this is change this value within a Hex Editor such as HxD. Within HxD its located on line 560:
    08 00 00 1D 39 C8 A6 FF 18 00 00 00 04 00 00 00

    The value 39 C8 A6 FF is the value you need to change. Because its in hex, the values are written as GG, BB, RR, Transparency instead of the usual alpha,R,G,B. Basically you can make a quick change to this file to the color combination you want, and then drop and drag this file back into the original apk using something like winrar. No need to sign it. That should basically do it for you!!! You can use apktool, if you want, however for this simple of a task, hex editing is usually faster and less error prone.

    Hopefully that helps.

    Obviously the divider (the line below the "Welcome to Droid" statement) will need to be changed as well. The divider color is #ffb6d650. In order to change this however you will need to use a tool such as apktool because this color value contained in the resources.arsc file -- which to my knowledge can only be changed by decompiling this file, and then recompiling it, once appropriate changes are made.

    Just for the heck of it, I tried decompiling and recompiling the SetupWizard.apk you posted, however I was unsuccessful in the compilation. I have a feeling for this, is that you probably modified some files from the original. In themeing, if you are going to do any xml modification through apktool (not simple hex editing) you need to xml edit first, then change the images in the drawable folder last. I'm guessing you gave me a modified apk rather than a stock apk, but I could be wrong.
     
    #6 kevdog, Oct 3, 2010
    Last edited: Oct 3, 2010
Search tags for this page
color ffa6c839
,
color text apk
,
ffa6c839
,
htc blink colour changer apk
,
item android:color
,

setupwizard.apk

,
setupwizardtextsecondarysmall
,
text color changer apk
,
txtcolor apk
,
what is setupwizard.apk