In this guide , I will tell "How to add Colorpicker" in Settings.
Tested this on 4.2 and 4.4
REQUIREMENTS :
1. Brain
2. Apktool
3. Notepad ++
4. Knowledge on How to Decompile/Recompile the apk
Lets start ,
1. Decompile your Settings.apk and merge the file (given below).
2. Now open strings.xml and add these lines above </resources>.
PHP:
<string name="dialog_color_picker">Color Picker</string>
<string name="press_color_to_apply">Press on color below to apply</string>
<string name="arrow_right">→</string>
<string name="arrow_down">↓</string>
<string name="hex">Hex:</string>
<string name="hex_hint">\#ff000000</string>
<string name="set">Set</string>
3. Now open ids.xml and add these lines above </resources>.
PHP:
<item type="id" name="hex">false</item>
<item type="id" name="enter">false</item>
<item type="id" name="white_panel">false</item>
<item type="id" name="black_panel">false</item>
<item type="id" name="cyan_panel">false</item>
<item type="id" name="red_panel">false</item>
<item type="id" name="green_panel">false</item>
<item type="id" name="yellow_panel">false</item>
<item type="id" name="old_color_panel">false</item>
<item type="id" name="new_color_panel">false</item>
<item type="id" name="reset">false</item>
<item type="id" name="color_picker_view">false</item>
<item type="id" name="ics_color">false</item>
<item type="id" name="color_panel_view">false</item>
4. Now Recompile your Settings.apk , Sign it and then again Decompile it.
5. Now go to smali/net/margaritov/preference/colorpicker and open the "ColorPickerDialog.smali". Then replace the id with the id present in public.xml of your Settings.apk
0x7f0400bb
PHP:
<public type="layout" name="dialog_color_picker"
0x7f0b09ba
PHP:
<public type="string" name="dialog_color_picker"
0x7f08028a
PHP:
<public type="id" name="color_picker_view"
0x7f080288
PHP:
<public type="id" name="old_color_panel"
0x7f080289
PHP:
<public type="id" name="new_color_panel"
Do this with other same id
0x7f080282
PHP:
<public type="id" name="white_panel"
0x7f080283
PHP:
<public type="id" name="black_panel"
0x7f080284
PHP:
<public type="id" name="cyan_panel"
0x7f080285
PHP:
<public type="id" name="red_panel"
0x7f080286
PHP:
<public type="id" name="green_panel"
0x7f080287
PHP:
<public type="id" name="yellow_panel"
0x7f080280
PHP:
<public type="id" name="hex"
0x7f080281
PHP:
<public type="id" name="enter"
Important Information :
• If you are having colorpicker , but its having old ui and want to use this then first follow the guide and then go to that option layout xml and change the path of the colorpicker to the line given below.
PHP:
net.margaritov.preference.colorpicker.ColorPickerPreference
Special Thanks To :
1. Cyanogenmod
2. XDA
Screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks bro..
Anyone tried on LL?
My English is poor, thanks for sharing, I ask how to modify the default color? White, black,Cyan,Red,Green...
Hamidreza2010 said:
Anyone tried on LL?
Click to expand...
Click to collapse
Yep. Works fine
05Gurpreet said:
In this guide , I will tell "How to add Colorpicker" in Settings.
Tested this on 4.2 and 4.4
REQUIREMENTS :
1. Brain
2. Apktool
3. Notepad ++
4. Knowledge on How to Decompile/Recompile the apk
Lets start ,
1. Decompile your Settings.apk and merge the file (given below).
2. Now open strings.xml and add these lines above </resources>.
PHP:
<string name="dialog_color_picker">Color Picker</string>
<string name="press_color_to_apply">Press on color below to apply</string>
<string name="arrow_right">→</string>
<string name="arrow_down">↓</string>
<string name="hex">Hex:</string>
<string name="hex_hint">\#ff000000</string>
<string name="set">Set</string>
3. Now open ids.xml and add these lines above </resources>.
PHP:
<item type="id" name="hex">false</item>
<item type="id" name="enter">false</item>
<item type="id" name="white_panel">false</item>
<item type="id" name="black_panel">false</item>
<item type="id" name="cyan_panel">false</item>
<item type="id" name="red_panel">false</item>
<item type="id" name="green_panel">false</item>
<item type="id" name="yellow_panel">false</item>
<item type="id" name="old_color_panel">false</item>
<item type="id" name="new_color_panel">false</item>
<item type="id" name="reset">false</item>
<item type="id" name="color_picker_view">false</item>
<item type="id" name="ics_color">false</item>
<item type="id" name="color_panel_view">false</item>
4. Now Recompile your Settings.apk , Sign it and then again Decompile it.
5. Now go to smali/net/margaritov/preference/colorpicker and open the "ColorPickerDialog.smali". Then replace the id with the id present in public.xml of your Settings.apk
0x7f0400bb
PHP:
<public type="layout" name="dialog_color_picker"
0x7f0b09ba
PHP:
<public type="string" name="dialog_color_picker"
0x7f08028a
PHP:
<public type="id" name="color_picker_view"
0x7f080288
PHP:
<public type="id" name="old_color_panel"
0x7f080289
PHP:
<public type="id" name="new_color_panel"
Do this with other same id
0x7f080282
PHP:
<public type="id" name="white_panel"
0x7f080283
PHP:
<public type="id" name="black_panel"
0x7f080284
PHP:
<public type="id" name="cyan_panel"
0x7f080285
PHP:
<public type="id" name="red_panel"
0x7f080286
PHP:
<public type="id" name="green_panel"
0x7f080287
PHP:
<public type="id" name="yellow_panel"
0x7f080280
PHP:
<public type="id" name="hex"
0x7f080281
PHP:
<public type="id" name="enter"
Important Information :
• If you are having colorpicker , but its having old ui and want to use this then first follow the guide and then go to that option layout xml and change the path of the colorpicker to the line given below.
PHP:
net.margaritov.preference.colorpicker.ColorPickerPreference
Special Thanks To :
1. Cyanogenmod
2. XDA
Click to expand...
Click to collapse
Bro..credit goes to Sergey Margaritov for creating this colorpicker ans anyways Thanks for sharing
ARGHA_DAS said:
Bro..credit goes to Sergey Margaritov for creating this colorpicker ans anyways Thanks for sharing
Click to expand...
Click to collapse
Why you quoting the whole OP my friend?
ARGHA_DAS said:
Bro..credit goes to Sergey Margaritov for creating this colorpicker ans anyways Thanks for sharing
Click to expand...
Click to collapse
Ok , will definitely give full credits to Sergey Sir. I have extracted this from cyanogenmod ROM.
I got fc on settings when I click to modify color .-.
Tnx bro working on LL 5.1.1 Xperia
05Gurpreet said:
Important Information :
• If you are having colorpicker , but its having old ui and want to use this then first follow the guide and then go to that option layout xml and change the path of the colorpicker to the line given below.
PHP:
net.margaritov.preference.colorpicker.ColorPickerPreference
Click to expand...
Click to collapse
where is that option layout xml file???
is it color_picker_item.xml?
if yes how to change it???
I didn't found this one in my public.xml,
Code:
<public type="layout" name="dialog_color_picker"
Is that okay?
Related
I am trying to make my own ADW theme. Everything is set up correctly and I'm using Eclipse.
The problem I have is that I don't know how I should edit the xmls in /res/drawable without getting force close in Emulator when trying it out.
i.e. I edit home_arrows_left.xml from:
Code:
<?xml version="1.0" encoding="utf-8"?><level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="0" android:drawable="@drawable/dot_big" />
<item android:maxLevel="1" android:drawable="@drawable/dot_big" />
<item android:maxLevel="2" android:drawable="@drawable/dot_big" />
<item android:maxLevel="3" android:drawable="@drawable/dot_big" />
<item android:maxLevel="4" android:drawable="@drawable/dot_big" />
<item android:maxLevel="5" android:drawable="@drawable/dot_big" />
<item android:maxLevel="6" android:drawable="@drawable/dot_big" />
</level-list>
to:
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="0">dot</item>
<item android:maxLevel="1">dot</item>
<item android:maxLevel="2">dot</item>
<item android:maxLevel="3">dot</item>
<item android:maxLevel="4">dot</item>
<item android:maxLevel="5">dot</item>
<item android:maxLevel="6">dot</item>
</level-list>
And I create a file in drawable called dot.png
If I export+install with adb and select as ADW theme in emulator I get ADW force close when pressing home button.
I'm not a pro with XML but I could spend some time to learn more if someone just tells me what I need to know to create ADW themes.
Maybe I could use some tool to validate the XML?
The only problem I have is to edit the XML in the right way.
Zalastax said:
I am trying to make my own ADW theme. Everything is set up correctly and I'm using Eclipse.
The problem I have is that I don't know how I should edit the xmls in /res/drawable without getting force close in Emulator when trying it out.
i.e. I edit home_arrows_left.xml from:
Code:
<?xml version="1.0" encoding="utf-8"?><level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="0" android:drawable="@drawable/dot_big" />
<item android:maxLevel="1" android:drawable="@drawable/dot_big" />
<item android:maxLevel="2" android:drawable="@drawable/dot_big" />
<item android:maxLevel="3" android:drawable="@drawable/dot_big" />
<item android:maxLevel="4" android:drawable="@drawable/dot_big" />
<item android:maxLevel="5" android:drawable="@drawable/dot_big" />
<item android:maxLevel="6" android:drawable="@drawable/dot_big" />
</level-list>
to:
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="0">dot</item>
<item android:maxLevel="1">dot</item>
<item android:maxLevel="2">dot</item>
<item android:maxLevel="3">dot</item>
<item android:maxLevel="4">dot</item>
<item android:maxLevel="5">dot</item>
<item android:maxLevel="6">dot</item>
</level-list>
And I create a file in drawable called dot.png
If I export+install with adb and select as ADW theme in emulator I get ADW force close when pressing home button.
I'm not a pro with XML but I could spend some time to learn more if someone just tells me what I need to know to create ADW themes.
Maybe I could use some tool to validate the XML?
The only problem I have is to edit the XML in the right way.
Click to expand...
Click to collapse
Just change all of the
Code:
android:drawable="@drawable/dot_big"
to
Code:
android:drawable="@drawable/dot"
And create a dot.png
Thank you for the help!
I have one more question.
How do I refer to images in drawable-hdpi/drawable-mdpi/drawable-ldpi depending on if they are hdpi/mdpi/ldpi?
I have tried to open some APK's but you can't see what's written in the XML files. Maybe someone could contribute with the source of an ADWTheme that have different images based on dpi?
You have to decompile an APK in order to view XML files as plain text. I suggest apkmanager 4.8 (I tried 4.9 and it wasn't compiling apks right for me.)
Once extracted, the tool will allow you to extract the contents of .apk's, and decompile them so you can edit the xml files. You will have to recompile and sign the .apk file once you decompile and edit it.
I extracted an apk from my device and turned it into a zip. I have viewed some XML's via AXMLPrinter2.jar but If I look what's written in android:drawable it says android:drawable="@7F020007". Thats not a path or a file so when it compiles the path changes. I shall see if the same thing happens with the program you told me about tomorrow.
Do you need to make different images for different dpi levels?
Hi All
I've edited framework-res.apk using the apktool,, I also edited the public xml
Here is the id part (Not all of it),, the last lines are the ones I added
Code:
<public type="id" name="zzzzz_tw_cursor_handle_select_all" id="0x0102017e" />
<public type="id" name="zzzzz_tw_cursor_handle_spliter_select_all" id="0x0102017f" />
<public type="id" name="zzzzz_tw_cursor_handle_copy" id="0x01020180" />
<public type="id" name="zzzzz_tw_cursor_handle_spliter_copy" id="0x01020181" />
<public type="id" name="zzzzz_tw_cursor_handle_cut" id="0x01020182" />
<public type="id" name="zzzzz_tw_cursor_handle_spliter_cut" id="0x01020183" />
<public type="id" name="zzzzz_tw_cursor_handle_paste" id="0x01020184" />
<public type="id" name="zzzzz_tw_cursor_handle_spliter_paste" id="0x01020185" />
<public type="id" name="zzzzz_tw_cursor_handle_search" id="0x01020186" />
<public type="id" name="zzzzz_tw_cursor_handle_spliter_search" id="0x01020187" />
<public type="id" name="zzzzz_tw_cursor_handle_share" id="0x01020188" />
<public type="id" name="zzzzz_tw_cursor_handle_spliter_share" id="0x01020189" />
<public type="id" name="zzzzz_tw_cursor_handle_clip_board" id="0x0102018a" />
<public type="id" name="clip_board" id="0x0102018b" />
<public type="id" name="parentPanel" id="0x0102018c" />
<public type="id" name="topPanel" id="0x0102018d" />
<public type="id" name="title_template" id="0x0102018e" />
<public type="id" name="alertTitle" id="0x0102018f" />
<public type="id" name="titleDivider" id="0x01020190" />
<public type="id" name="contentPanel" id="0x01020191" />
<public type="id" name="scrollView" id="0x01020192" />
<public type="id" name="customPanel" id="0x01020193" />
<public type="id" name="buttonPanel" id="0x01020194" />
<public type="id" name="leftSpacer" id="0x01020195" />
<public type="id" name="rightSpacer" id="0x01020196" />
<public type="id" name="progress_percent" id="0x01020197" />
<public type="id" name="progress_number" id="0x01020198" />
<public type="id" name="alwaysUse" id="0x01020199" />
<public type="id" name="clearDefaultHint" id="0x0102019a" />
<public type="id" name="perm_icon" id="0x0102019b" />
<public type="id" name="permission_group" id="0x0102019c" />
<public type="id" name="permission_list" id="0x0102019d" />
<public type="id" name="no_permissions" id="0x0102019e" />
<public type="id" name="dangerous_perms_list" id="0x0102019f" />
<public type="id" name="show_more" id="0x010201a0" />
<public type="id" name="show_more_text" id="0x010201a1" />
<public type="id" name="show_more_icon" id="0x010201a2" />
<public type="id" name="non_dangerous_perms_list" id="0x010201a3" />
<public type="id" name="padding" id="0x010201a4" />
<public type="id" name="subtitle" id="0x010201a5" />
<public type="id" name="level_percent" id="0x010201a6" />
<public type="id" name="image" id="0x010201a7" />
<public type="id" name="characterPicker" id="0x010201a8" />
<public type="id" name="cancel" id="0x010201a9" />
<public type="id" name="banner" id="0x010201aa" />
<public type="id" name="photo" id="0x010201ab" />
<public type="id" name="aggregate_badge" id="0x010201ac" />
<public type="id" name="name" id="0x010201ad" />
<public type="id" name="phonetic_name" id="0x010201ae" />
<public type="id" name="status" id="0x010201af" />
<public type="id" name="status_date" id="0x010201b0" />
<public type="id" name="presence" id="0x010201b1" />
<public type="id" name="star" id="0x010201b2" />
<public type="id" name="parent" id="0x010201b3" />
<public type="id" name="month" id="0x010201b4" />
<public type="id" name="day" id="0x010201b5" />
<public type="id" name="year" id="0x010201b6" />
<public type="id" name="datePicker" id="0x010201b7" />
<public type="id" name="appIcon" id="0x010201b8" />
<public type="id" name="progress_text" id="0x010201b9" />
<public type="id" name="description" id="0x010201ba" />
<public type="id" name="progress_bar" id="0x010201bb" />
<public type="id" name="paused_text" id="0x010201bc" />
<public type="id" name="expanded_menu" id="0x010201bd" />
<public type="id" name="header_text" id="0x010201be" />
<public type="id" name="grant_credentials_permission_message_header" id="0x010201bf" />
<public type="id" name="packages_list" id="0x010201c0" />
<public type="id" name="permission_icon" id="0x010201c1" />
<public type="id" name="account_type" id="0x010201c2" />
<public type="id" name="account_name" id="0x010201c3" />
<public type="id" name="authtoken_type" id="0x010201c4" />
<public type="id" name="grant_credentials_permission_message_footer" id="0x010201c5" />
<public type="id" name="buttons" id="0x010201c6" />
<public type="id" name="allow_button" id="0x010201c7" />
<public type="id" name="deny_button" id="0x010201c8" />
<public type="id" name="switch_old" id="0x010201c9" />
<public type="id" name="old_app_icon" id="0x010201ca" />
<public type="id" name="old_app_action" id="0x010201cb" />
<public type="id" name="old_app_description" id="0x010201cc" />
<public type="id" name="switch_new" id="0x010201cd" />
<public type="id" name="new_app_icon" id="0x010201ce" />
<public type="id" name="new_app_action" id="0x010201cf" />
<public type="id" name="new_app_description" id="0x010201d0" />
<public type="id" name="icon_menu" id="0x010201d1" />
<public type="id" name="fullscreenArea" id="0x010201d2" />
<public type="id" name="inputExtractAccessories" id="0x010201d3" />
<public type="id" name="inputExtractAction" id="0x010201d4" />
<public type="id" name="value" id="0x010201d5" />
<public type="id" name="label" id="0x010201d6" />
<public type="id" name="emergencyCall" id="0x010201d7" />
<public type="id" name="topHeader" id="0x010201d8" />
<public type="id" name="spacerTop" id="0x010201d9" />
<public type="id" name="instructions" id="0x010201da" />
<public type="id" name="login" id="0x010201db" />
<public type="id" name="password" id="0x010201dc" />
<public type="id" name="ok" id="0x010201dd" />
<public type="id" name="headerSimOk1" id="0x010201de" />
<public type="id" name="headerSimOk2" id="0x010201df" />
<public type="id" name="headerSimBad1" id="0x010201e0" />
<public type="id" name="headerSimBad2" id="0x010201e1" />
<public type="id" name="batteryInfo" id="0x010201e2" />
<public type="id" name="batteryInfoIcon" id="0x010201e3" />
<public type="id" name="batteryInfoText" id="0x010201e4" />
<public type="id" name="batteryInfoSpacer" id="0x010201e5" />
<public type="id" name="nextAlarmInfo" id="0x010201e6" />
<public type="id" name="nextAlarmText" id="0x010201e7" />
<public type="id" name="nextAlarmSpacer" id="0x010201e8" />
<public type="id" name="screenLockedInfo" id="0x010201e9" />
<public type="id" name="lockInstructions" id="0x010201ea" />
<public type="id" name="emergencyCallButton" id="0x010201eb" />
<public type="id" name="enter_password_label" id="0x010201ec" />
<public type="id" name="passwordEntry" id="0x010201ed" />
<public type="id" name="spacerBottom" id="0x010201ee" />
<public type="id" name="headerText" id="0x010201ef" />
<public type="id" name="carrier" id="0x010201f0" />
<public type="id" name="pinDisplayGroup" id="0x010201f1" />
<public type="id" name="pinDisplay" id="0x010201f2" />
<public type="id" name="backspace" id="0x010201f3" />
<public type="id" name="topDisplayGroup" id="0x010201f4" />
<public type="id" name="lockinfoText" id="0x010201f5" />
<public type="id" name="keyPad" id="0x010201f6" />
<public type="id" name="root" id="0x010201f7" />
<public type="id" name="emergencyCallText" id="0x010201f8" />
<public type="id" name="timeDisplay" id="0x010201f9" />
<public type="id" name="am_pm" id="0x010201fa" />
<public type="id" name="status1" id="0x010201fb" />
<public type="id" name="status2" id="0x010201fc" />
<public type="id" name="screenLocked" id="0x010201fd" />
<public type="id" name="tab_selector" id="0x010201fe" />
<public type="id" name="statusSep" id="0x010201ff" />
<public type="id" name="footerNormal" id="0x01020200" />
<public type="id" name="emergencyCallAlone" id="0x01020201" />
<public type="id" name="footerForgotPattern" id="0x01020202" />
<public type="id" name="forgotPattern" id="0x01020203" />
<public type="id" name="emergencyCallTogether" id="0x01020204" />
<public type="id" name="lockPattern" id="0x01020205" />
<public type="id" name="divider" id="0x01020206" />
<public type="id" name="replace_app_icon" id="0x01020207" />
<public type="id" name="replace_message" id="0x01020208" />
<public type="id" name="original_app_icon" id="0x01020209" />
<public type="id" name="original_message" id="0x0102020a" />
<public type="id" name="shortcut" id="0x0102020b" />
<public type="id" name="radio" id="0x0102020c" />
<public type="id" name="prev" id="0x0102020d" />
<public type="id" name="rew" id="0x0102020e" />
<public type="id" name="pause" id="0x0102020f" />
<public type="id" name="ffwd" id="0x01020210" />
<public type="id" name="next" id="0x01020211" />
<public type="id" name="time_current" id="0x01020212" />
<public type="id" name="mediacontroller_progress" id="0x01020213" />
<public type="id" name="index" id="0x01020214" />
<public type="id" name="check" id="0x01020215" />
<public type="id" name="increment" id="0x01020216" />
<public type="id" name="timepicker_input" id="0x01020217" />
<public type="id" name="decrement" id="0x01020218" />
<public type="id" name="package_icon" id="0x01020219" />
<public type="id" name="package_label" id="0x0102021a" />
<public type="id" name="keyguard" id="0x0102021b" />
<public type="id" name="off" id="0x0102021c" />
<public type="id" name="silent" id="0x0102021d" />
<public type="id" name="radio_power" id="0x0102021e" />
<public type="id" name="edittext_container" id="0x0102021f" />
<public type="id" name="body" id="0x01020220" />
<public type="id" name="no_applications_message" id="0x01020221" />
<public type="id" name="zzz_button_job_manager" id="0x01020222" />
<public type="id" name="zzz_recent_app_icon_row" id="0x01020223" />
<public type="id" name="button0" id="0x01020224" />
<public type="id" name="button4" id="0x01020225" />
<public type="id" name="button5" id="0x01020226" />
<public type="id" name="zzz_button_job_manager_second " id="0x01020227" />
<public type="id" name="buttons_holder" id="0x01020228" />
<public type="id" name="recover_button" id="0x01020229" />
<public type="id" name="cancel_button" id="0x0102022a" />
<public type="id" name="right_container" id="0x0102022b" />
<public type="id" name="progress_circular" id="0x0102022c" />
<public type="id" name="progress_horizontal" id="0x0102022d" />
<public type="id" name="search_bar" id="0x0102022e" />
<public type="id" name="search_plate" id="0x0102022f" />
<public type="id" name="search_badge" id="0x01020230" />
<public type="id" name="search_edit_frame" id="0x01020231" />
<public type="id" name="search_app_icon" id="0x01020232" />
<public type="id" name="search_src_text" id="0x01020233" />
<public type="id" name="search_go_btn" id="0x01020234" />
<public type="id" name="search_voice_btn" id="0x01020235" />
<public type="id" name="seekbar" id="0x01020236" />
<public type="id" name="select_dialog_listview" id="0x01020237" />
<public type="id" name="hour" id="0x01020238" />
<public type="id" name="minute" id="0x01020239" />
<public type="id" name="amPm" id="0x0102023a" />
<public type="id" name="timePicker" id="0x0102023b" />
<public type="id" name="one" id="0x0102023c" />
<public type="id" name="two" id="0x0102023d" />
<public type="id" name="three" id="0x0102023e" />
<public type="id" name="four" id="0x0102023f" />
<public type="id" name="five" id="0x01020240" />
<public type="id" name="six" id="0x01020241" />
<public type="id" name="seven" id="0x01020242" />
<public type="id" name="eight" id="0x01020243" />
<public type="id" name="nine" id="0x01020244" />
<public type="id" name="zero" id="0x01020245" />
<public type="id" name="main" id="0x01020246" />
<public type="id" name="mount_button" id="0x01020247" />
<public type="id" name="unmount_button" id="0x01020248" />
<public type="id" name="other_stream_icon" id="0x01020249" />
<public type="id" name="additional_message" id="0x0102024a" />
<public type="id" name="ringer_stream_icon" id="0x0102024b" />
<public type="id" name="level" id="0x0102024c" />
<public type="id" name="zoom_fit_page" id="0x0102024d" />
<public type="id" name="zoom_page_overview" id="0x0102024e" />
<public type="id" name="zoomControls" id="0x0102024f" />
<public type="id" name="zoomOut" id="0x01020250" />
<public type="id" name="zoomIn" id="0x01020251" />
<public type="id" name="zoomMagnify" id="0x01020252" />
<public type="id" name="zzz_batteryalertingpopup" id="0x01020253" />
<public type="id" name="zzz_UnlockClock" id="0x01020254" />
<public type="id" name="zzz_datetime01" id="0x01020255" />
<public type="id" name="zzz_datetimeframe01" id="0x01020256" />
<public type="id" name="zzz_date01" id="0x01020257" />
<public type="id" name="zzz_week01" id="0x01020258" />
<public type="id" name="zzz_datetimeframe02" id="0x01020259" />
<public type="id" name="zzz_hour01" id="0x0102025a" />
<public type="id" name="zzz_hour02" id="0x0102025b" />
<public type="id" name="zzz_colon01" id="0x0102025c" />
<public type="id" name="zzz_minute01" id="0x0102025d" />
<public type="id" name="zzz_minute02" id="0x0102025e" />
<public type="id" name="zzz_datetimeframe03" id="0x0102025f" />
<public type="id" name="zzz_ampm01" id="0x01020260" />
<public type="id" name="zzz_citylayout" id="0x01020261" />
<public type="id" name="zzz_city02" id="0x01020262" />
<public type="id" name="zzz_city01" id="0x01020263" />
<public type="id" name="zzz_datetime02" id="0x01020264" />
<public type="id" name="zzz_datelayout" id="0x01020265" />
<public type="id" name="zzz_date_city02" id="0x01020266" />
<public type="id" name="zzz_date_city01" id="0x01020267" />
<public type="id" name="zzz_timecity02" id="0x01020268" />
<public type="id" name="zzz_hour01_city2" id="0x01020269" />
<public type="id" name="zzz_hour02_city2" id="0x0102026a" />
<public type="id" name="zzz_colon01_city2" id="0x0102026b" />
<public type="id" name="zzz_minute01_city2" id="0x0102026c" />
<public type="id" name="zzz_minute02_city2" id="0x0102026d" />
<public type="id" name="zzz_ampm_city2" id="0x0102026e" />
<public type="id" name="zzz_timecity01" id="0x0102026f" />
<public type="id" name="zzz_hour01_city1" id="0x01020270" />
<public type="id" name="zzz_hour02_city1" id="0x01020271" />
<public type="id" name="zzz_colon01_city1" id="0x01020272" />
<public type="id" name="zzz_minute01_city1" id="0x01020273" />
<public type="id" name="zzz_minute02_city1" id="0x01020274" />
<public type="id" name="zzz_ampm_city1" id="0x01020275" />
<public type="id" name="zzz_lockscreen_wallpaper01" id="0x01020276" />
<public type="id" name="zzz_background01" id="0x01020277" />
<public type="id" name="zzz_sweepglassfull01" id="0x01020278" />
<public type="id" name="zzz_simlockmsg1" id="0x01020279" />
<public type="id" name="zzz_simlockmsg2" id="0x0102027a" />
<public type="id" name="zzz_simlockmsg3" id="0x0102027b" />
<public type="id" name="emergencyCallButton2" id="0x0102027c" />
<public type="id" name="zzz_sweepglass" id="0x0102027d" />
<public type="id" name="zzz_sweepglasseffect" id="0x0102027e" />
<public type="id" name="zzz_sweepglasstext02" id="0x0102027f" />
<public type="id" name="zzz_sweepglasstext01" id="0x01020280" />
<public type="id" name="zzz_MusicMovingBox" id="0x01020281" />
<public type="id" name="zzz_CDHandle" id="0x01020282" />
<public type="id" name="zzz_CDImage" id="0x01020283" />
<public type="id" name="zzz_UpDownAllow" id="0x01020284" />
<public type="id" name="zzz_MusicControlBox" id="0x01020285" />
<public type="id" name="zzz_MusicBoxAlbumImage" id="0x01020286" />
<public type="id" name="zzz_MusicBoxWithouAlbumImage" id="0x01020287" />
<public type="id" name="zzz_MusicBoxReword" id="0x01020288" />
<public type="id" name="zzz_MusicBoxPause" id="0x01020289" />
<public type="id" name="zzz_MusicBoxForward" id="0x0102028a" />
<public type="id" name="zzz_MusicBoxTitleInBox" id="0x0102028b" />
<public type="id" name="NotificationMainLayout" id="0x0102028c" />
<public type="id" name="MessageLayout" id="0x0102028d" />
<public type="id" name="MessageLayoutImage" id="0x0102028e" />
<public type="id" name="MessageLayoutText" id="0x0102028f" />
<public type="id" name="MessageLayoutTime" id="0x01020290" />
<public type="id" name="EmailLayout" id="0x01020291" />
<public type="id" name="EmailLayoutView" id="0x01020292" />
<public type="id" name="EmailLayoutText" id="0x01020293" />
<public type="id" name="EmailLayoutTime" id="0x01020294" />
<public type="id" name="CallLayout" id="0x01020295" />
<public type="id" name="CallLayoutImageView" id="0x01020296" />
<public type="id" name="CallLayoutText" id="0x01020297" />
<public type="id" name="CallLayoutTime" id="0x01020298" />
<public type="id" name="zzz_puzzlelockfullbg" id="0x01020299" />
<public type="id" name="zzz_puzzlenoticalllayout" id="0x0102029a" />
<public type="id" name="zzz_puzzlenoticalltext" id="0x0102029b" />
<public type="id" name="zzz_puzzlenotimaillayout" id="0x0102029c" />
<public type="id" name="zzz_puzzlenotimailtext" id="0x0102029d" />
<public type="id" name="zzz_puzzlematchlayout" id="0x0102029e" />
<public type="id" name="zzz_puzzlematch" id="0x0102029f" />
<public type="id" name="buttonPanelContainer" id="0x010202a0" />
<public type="id" name="WebSelectPrev" id="0x010202a1" />
<public type="id" name="WebSelectNext" id="0x010202a2" />
<public type="id" name="buttonPanelDone" id="0x010202a3" />
<public type="id" name="WebSelectDone" id="0x010202a4" />
<public type="id" name="selectContentPanelOut" id="0x010202a5" />
<public type="id" name="selectContentPanel" id="0x010202a6" />
<public type="id" name="webselect_dialog_listview" id="0x010202a7" />
<public type="id" name="zzzzz_tw_menu_animation" id="0x010202a8" />
<public type="id" name="mode_normal" id="0x010202a9" />
<public type="id" name="zzz_puzzlelockpuzzlebg" id="0x010202b0" />
<public type="id" name="zzz_puzzlenotivvmlayout" id="0x010202b1" />
<public type="id" name="zzz_puzzlenotivvmtext" id="0x010202b2" />
<public type="id" name="zzz_puzzlenotiUnlocklayout" id="0x010202b3" />
<public type="id" name="unlock_missedevent_layout" id="0x010202b4" />
<public type="id" name="unlock_missedevent_icon" id="0x010202b5" />
<public type="id" name="unlock_missedevent_text" id="0x010202b6" />
<public type="id" name="unlock_missedevent_count" id="0x010202b7" />
<public type="id" name="unlock_missedevent_layout2" id="0x010202b8" />
<public type="id" name="unlock_missednoticall_layout" id="0x010202b9" />
<public type="id" name="unlock_missednoticall_text" id="0x010202ba" />
<public type="id" name="unlock_missednoticall_count" id="0x010202bb" />
<public type="id" name="unlock_missednotimail_layout" id="0x010202bc" />
<public type="id" name="unlock_missednotimail_text" id="0x010202bd" />
<public type="id" name="unlock_missednotimail_count" id="0x010202be" />
<public type="id" name="unlock_lock_button" id="0x010202bf" />
<public type="id" name="unlock_arrow" id="0x010202c0" />
<public type="id" name="unlock_event_arrow" id="0x010202c1" />
<public type="id" name="missed_call_arrow" id="0x010202c2" />
<public type="id" name="event_arrow" id="0x010202c3" />
<public type="id" name="missed_txt_arrow" id="0x010202c4" />
<public type="id" name="rotary" id="0x010202c5" />
<public type="id" name="musicControlPlay" id="0x010202c6" />
<public type="id" name="musicControlPause" id="0x010202c7" />
<public type="id" name="musicControlPrevious" id="0x010202c8" />
<public type="id" name="musicControlNext" id="0x010202c9" />
<public type="id" name="tab_selector2" id="0x010202ca" />
<public type="id" name="gestures" id="0x010202cb" />
<public type="id" name="albumArt" id="0x010202cc" />
<public type="id" name="musicNowPlaying" id="0x010202cd" />
<public type="id" name="customMsg" id="0x010202ce" />
<public type="id" name="line1" id="0x010202cf" />
<public type="id" name="duration" id="0x010202d0" />
<public type="id" name="info" id="0x010202d1" />
<public type="id" name="album" id="0x010202d2" />
<public type="id" name="timeroot" id="0x010202d3" />
<public type="id" name="common_root" id="0x010202d4" />
<public type="id" name="wave_view" id="0x010202d5" />
<public type="id" name="timeDisplayBackground" id="0x010202d6" />
<public type="id" name="timeDisplayForeground" id="0x010202d7" />
<public type="id" name="alarm_status" id="0x010202d8" />
<public type="id" name="propertyOf" id="0x010202d9" />
<public type="id" name="glasslock_root" id="0x010202da" />
<public type="id" name="glasslock_panel" id="0x010202db" />
<public type="id" name="glasslock_wallpaper" id="0x010202dc" />
<public type="id" name="glasslock_top" id="0x010202dd" />
<public type="id" name="glasslock_middle" id="0x010202de" />
<public type="id" name="glasslock_bottom" id="0x010202df" />
<public type="id" name="zzz_date_month" id="0x010202e0" />
<public type="id" name="musicwidget_root" id="0x010202e1" />
<public type="id" name="MusicInfoText" id="0x010202e2" />
<public type="id" name="MaxMusicController" id="0x010202e3" />
<public type="id" name="MinMusicControllerHandle" id="0x010202e4" />
<public type="id" name="BoxInMaxMusicController" id="0x010202e5" />
<public type="id" name="AlbumArtWithImage" id="0x010202e6" />
<public type="id" name="lockscreenwallpaper_root" id="0x010202e7" />
<public type="id" name="lockscreenwallpaper_image" id="0x010202e8" />
<public type="id" name="lockscreen_clock" id="0x010202e9" />
<public type="id" name="MusicInfoBox" id="0x010202ea" />
<public type="id" name="MusicInfoTextInMax" id="0x010202eb" />
<public type="id" name="MusicInfoTextInMin" id="0x010202ec" />
<public type="id" name="missedeventwidget_root" id="0x010202ed" />
<public type="id" name="glasslock_shadow" id="0x010202ee" />
<public type="id" name="mMissedEventHandle" id="0x010202ef" />
<public type="id" name="MusicInfoLine" id="0x010202f0" />
<public type="id" name="temp_clockspace" id="0x010202f1" />
<public type="id" name="zzz_pmam" id="0x010202f2" />
And I get this error after recompiling:
Code:
[*] "C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res"
recompiling "C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res"...
W: Could not find sources
I: Building resources...
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1482: error: Public entry identifier 0x10202f0 entry index is larger than available symbols (index 752, total symbols 749).
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1482: error: Public symbol id/MusicInfoLine declared here is not defined.
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1480: error: Public entry identifier 0x10202ee entry index is larger than available symbols (index 750, total symbols 749).
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1480: error: Public symbol id/glasslock_shadow declared here is not defined.
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1481: error: Public entry identifier 0x10202ef entry index is larger than available symbols (index 751, total symbols 749).
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1481: error: Public symbol id/mMissedEventHandle declared here is not defined.
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1479: error: Public entry identifier 0x10202ed entry index is larger than available symbols (index 749, total symbols 749).
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1479: error: Public symbol id/missedeventwidget_root declared here is not defined.
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1483: error: Public entry identifier 0x10202f1 entry index is larger than available symbols (index 753, total symbols 749).
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1483: error: Public symbol id/temp_clockspace declared here is not defined.
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1484: error: Public entry identifier 0x10202f2 entry index is larger than available symbols (index 754, total symbols 749).
C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res\values\public.xml:1484: error: Public symbol id/zzz_pmam declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\3BDALL~1\AppData\Local\Temp\APKTOOL4471871705766127985.tmp, -x, -S, C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res, -M, C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\3BDALL~1\AppData\Local\Temp\APKTOOL4471871705766127985.tmp, -x, -S, C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\res, -M, C:\Users\3BDALLA 3GAB\Desktop\Translation\AutoAPKTool1.0.7\AutoAPKTool1.0.7\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
Any Idea,, Please I need help as fast as possible
Thanks
What did you modify?
The ID's have to match.
If you changed some ID's, they have to match EVERYWHERE where they appear
Darkyy said:
What did you modify?
The ID's have to match.
If you changed some ID's, they have to match EVERYWHERE where they appear
Click to expand...
Click to collapse
Thanks for your reply
I didn't change the ids,, I just added some few lines in the ids section in public.xml
I made sure that the id is greater than the previous by one,, but I got errors on the last 6 lines as you can see in the thread,,
Any idea?
Thanks Darky,,
Fixed it now,, I recognized that I skipped some ids at:
<public type="id" name="mode_normal" id="0x010202a9" />
<public type="id" name="zzz_puzzlelockpuzzlebg" id="0x010202b0" />
Click to expand...
Click to collapse
hi, i just play around bit with apktool and try to edit some SEMC apks's-
at the moment im editing SemcAlbum.
So far its quiet clear, and with google i can search me many informations. i hav eno problem with editing Gridsize etc.
but i have some problem now. maybe someone can give me a hint.
as you can see on the pics, i was able to modify the background of the top bars and also of the main window.
one o fmy problems is, i have no idea why the darker grey part isnt same color like upper part. i try to get one color. i edited the pngs all same color, and i also edited some lines in /res/values/colors.xml and styles.xml
but im not sure, it looks like there is some shadow over the darker grey part. maybe someone has an idea what line i have to modify?
thats my colors.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="online_services_background_color">#ffc1c2c1</color>
<color name="default_background_color">#ff000000</color>
<color name="background_image_color">#ffc1c2c1</color>
<color name="default_highlight_color">#ff09afed</color>
<color name="default_selected_color">#ff00ccff</color>
<color name="fullscreen_actionlayer_color">#d9000000</color>
<color name="marker_badge_text_color">#aa000000</color>
<color name="album_color_band">#fffa5f1b</color>
<color name="dashboard_info_background_color">#aa000000</color>
</resources>
the styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Album" parent="@*android:style/Theme.DeviceDefault">
<item name="android:colorBackground">@color/default_background_color</item>
<item name="android:windowBackground">@color/default_background_color</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowFullscreen">true</item>
<item name="android:colorBackgroundCacheHint">@color/default_background_color</item>
<item name="android:actionBarStyle">@style/Album.ActionBar</item>
<item name="android:displayOptions"></item>
<item name="android:windowActionBarOverlay">true</item>
<item name="android:actionBarTabStyle">@style/Album.ActionBarTabStyle</item>
<item name="android:actionBarTabTextStyle">@style/Album.ActionBarTabTextStyle</item>
<item name="com.sonyericsson.uxp:directionality">leftToRight</item>
</style>
<style name="Album.ActionBar" parent="@*android:style/Widget.DeviceDefault.ActionBar.Solid">
<item name="android:background">@drawable/semc_ab_solid_dark_holo</item>
<item name="android:displayOptions">showHome</item>
<item name="android:backgroundStacked">@drawable/semc_ab_stacked_solid_dark_holo</item>
</style>
<style name="Album.TextAppearance.Small.Primary" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textColor">#ff292929</item>
</style>
<style name="Album.TextAppearance.Small.Secondary" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textColor">#ff292929</item>
</style>
<style name="Album.TextAppearance.ListInfo.Small" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textColor">#ff292929</item>
</style>
<style name="Album.TextAppearance.Micro" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textSize">12.0sp</item>
</style>
<style name="Album.TextAppearance.Micro.Secondary" parent="@style/Album.TextAppearance.Micro">
<item name="android:textColor">#ff292929</item>
</style>
<style name="Album.ActionBarTabTextStyle" parent="@*android:style/Widget.DeviceDefault.ActionBar.TabText">
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff292929</item>
<item name="android:textAllCaps">false</item>
</style>
<style name="Album.ActionBarTabStyle" parent="@*android:style/Widget.DeviceDefault.ActionBar.TabView">
<item name="android:background">@drawable/actionbar_tabselector</item>
</style>
<style name="Album.ButtonBar" parent="@*android:style/ButtonBar" />
<style name="Album.TextAppearance.DividerLabelTitleStyle" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">?android:textColorPrimary</item>
</style>
<style name="Album.TextAppearance.DividerLabelItemCountStyle" parent="@*android:style/TextAppearance.DeviceDefault.Small">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">?android:textColorSecondary</item>
</style>
<style name="Album.TextAppearance.CommentsLikesCountStyle" parent="@*android:style/TextAppearance.DeviceDefault.Medium" />
</resources>
my second problem:
on the left picture you see the red marked Text, i was able to edit it, before it was a light text.
and my question about textcolor is, is it possible to edit the still white text?
i looked in the .xml files, but yet have no idea how i can fix. maybe its not possible to fix it inside SemcAlbum.apk?
Summary:
id like to modify all lighttext to darktext
id like to have all Background in one grey color (lightgrey)
maybe someone has an idea?
You'll need to find and modify the xml that calls for "ab_solid_light_holo.9" which is in framework-res.apk. That's if there is an xml calling for the image.
The colors will be controlled most likely through res/colors/ or res/styles.xml you just need to find the right value. They are probably being pulled from framework-res also.
They are probably quite easy to trace back.
Start by opening all xmls in SemcAlbum with notepad++ and search for "ab_solid_light_holo" in all opened xmls. if you dont get a hit it's probably being called through styles.
Go to styles.xml in SemcAlbum and have a read though the names and values, theyre normally self explanatory.
I'd help you more but i'm a bit busy.:good:
thanks, but i not have such lines in .xml files
lets see my steps, i edited every png/9.png same color (light grey, code c1c2c1)
i found out i have pngs with filename semc_ab_solid_dark_holo.9 > edited to c1c2c1 colorcode
thats what i see in colors.xml
Code:
<color name="online_services_background_color">#ffc1c2c1</color>
[U]<color name="default_background_color">#ffc1c2c1</color>
<color name="background_image_color">#ffc1c2c1</color>[/U]
<color name="default_highlight_color">#ff09afed</color>
<color name="default_selected_color">#ff00ccff</color>
<color name="fullscreen_actionlayer_color">#d9000000</color>
<color name="marker_badge_text_color">#aa000000</color>
<color name="album_color_band">#fffa5f1b</color>
<color name="dashboard_info_background_color">#aa000000</color>
i edited <color name="default_background_color">#ffc1c2c1</color>
<color name="background_image_color">#ffc1c2c1</color>
in my styles.xml i have this
Code:
<resources>
<style name="Theme.Album" parent="@*android:style/Theme.DeviceDefault">
[U]<item name="android:colorBackground">@color/default_background_color</item>
<item name="android:windowBackground">@color/default_background_color</item>[/U]
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowFullscreen">true</item>
<item name="android:colorBackgroundCacheHint">@color/default_background_color</item>
<item name="android:actionBarStyle">@style/Album.ActionBar</item>
<item name="android:displayOptions"></item>
<item name="android:windowActionBarOverlay">true</item>
<item name="android:actionBarTabStyle">@style/Album.ActionBarTabStyle</item>
<item name="android:actionBarTabTextStyle">@style/Album.ActionBarTabTextStyle</item>
<item name="com.sonyericsson.uxp:directionality">leftToRight</item>
</style>
<style name="Album.ActionBar" parent="@*android:style/Widget.DeviceDefault.ActionBar.Solid">
[U] <item name="android:background">@drawable/semc_ab_solid_dark_holo</item>[/U]
<item name="android:displayOptions">showHome</item>
[U]<item name="android:backgroundStacked">@drawable/semc_ab_stacked_solid_dark_holo</item>[/U]
you see, the AlbumActionBar has background defined with drawable/semc_ab_solid_dark_holo and it works, i edited the pngs, and the action is lightgrey c1c2c1
but the ThemeAlbum has background defined with color/default_background_color
color/default_background_color is defined in the colors.xml, right? in the colors.xml i have <color name="default_background_color">#ffc1c2c1</color>
but still, its a darker grey, like on the pictures
hm whats with this line in the styles.xml?
<color name="default_background_color">#ffc1c2c1</color>
<color name="background_image_color">#ffc1c2c1</color>
whats the difference between these two? :silly:
My apologies mate i read it wrong last night. I thought you wanted the top the same color as the bottom.
Are the backgrounds not normally controlled by the Semc theme?
SemcAlbum- styles.xml
Code:
<style name="Theme.Album" parent="@*android:style/Theme.DeviceDefault">
framework-res- styles.xml
Code:
<style name="Theme.DeviceDefault"
<item name="windowBackground">@com.sonyericsson.uxp:drawable/semc_bg</item>
SemcGenericUxpRes- semc_bg.xml
Code:
<bitmap android:src="@drawable/[COLOR="Red"]semc_bg_tile[/COLOR]" android:tileMode="repeat"
semc_bg_tile usually changes with the Sony themes. Have you tried changing the theme to see if the album background changes?
I dont use Sony apps so i cant try myself.
I am trying to do so via this method:
Code:
style="@style/SpinnerTextViewStyle"
And I have this in one of the style.xml files created by default when I created the project.
Code:
<style name="SpinnerTextViewStyle">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#0000aa</item>
<item name="android:textSize">16dp</item>
<item name="android:background">#ffffff</item>
<item name="android:padding">5dp</item>
</style>
This
Code:
<item name="android:background">#ffffff</item>
seems to work in the textview part but
Code:
<item name="android:textColor">#0000aa</item>
is totally ignored.
There must be some way of doing this!
Hi all.. i'm back again for share guide about add preference into stock Settings.apk
This guide is work for JB 4.1+
Feature:
PreferenceScreen
SeekBarPreference
ColorPickerPreference
MyListPreference
SwitchPreference
CheckBoxPreference
MyEditTextPreference
FilePreference
and many more..
Requirement:
- Understanding about APK compile/decompile
- APKTool
- Notepad++ (PC)
How:
1. Decompile Settings.apk
2. Copy smali and res folder from guide
3. Open AndroidManifest.xml
Find:
Code:
<uses-permission android:name="android.permission.REBOOT"/>
Add below:
Code:
<uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
Scroll to end of line, add this above </application>
Code:
<activity android:label="@string/zen_control_title" android:name="com.android.settings.bamzzz.ZenControl" />
4. Open res/xml/dashboard_categories.xml (Lollipop) or res/xml/settings_headers.xml (JB)
Add this below "<dashboard-category android:id="@id/system_section" ..." or what do you want
Lollipop:
Code:
<dashboard-tile android:icon="@drawable/ic_settings_zencontrol" android:id="@id/zen_control" android:title="@string/zen_control_title" android:fragment="com.android.settings.bamzzz.ZenControl" />
JB:
Code:
<header android:icon="@drawable/ic_settings_zencontrol" android:id="@id/zen_control" android:title="@string/zen_control_title" android:fragment="com.android.settings.bamzzz.ZenControl" />
5. Open res/values/attrs.xml and add this:
Code:
<attr name="colorPrimary" format="color" />
<attr name="colorPrimaryDark" format="color" />
<attr name="colorAccent" format="color" />
<declare-styleable name="ThumbnailListPreference">
<attr name="drawableArray" format="reference" />
<attr name="entryList" format="reference" />
<attr name="entryValuesList" format="reference" />
<attr name="entryDefault" format="string" />
</declare-styleable>
6. Open res/values/colors.xml and add this:
Code:
<color name="colorAccent">#ffff4081</color>
<color name="colorPrimary">#ff3f51b5</color>
<color name="colorPrimaryDark">#ff303f9f</color>
7. Open res/values/dimens.xml and add this:
Code:
<dimen name="button_size">30.0dip</dimen>
8. Open res/values/ids.xml and add this:
Code:
<item type="id" name="zen_control">false</item>
<item type="id" name="appIcon">false</item>
<item type="id" name="linearLayout">false</item>
<item type="id" name="appName">false</item>
<item type="id" name="appPackage">false</item>
<item type="id" name="imageView">false</item>
<item type="id" name="color_picker_view">false</item>
<item type="id" name="text_hex_wrapper">false</item>
<item type="id" name="hex_val">false</item>
<item type="id" name="old_color_panel">false</item>
<item type="id" name="new_color_panel">false</item>
<item type="id" name="fileSwitch">false</item>
<item type="id" name="searchApp">false</item>
<item type="id" name="appsList">false</item>
<item type="id" name="progressBar">false</item>
<item type="id" name="iconForApp">false</item>
<item type="id" name="seekBarPrefUnitsRight">false</item>
<item type="id" name="seekBarPrefValue">false</item>
<item type="id" name="seekBarPrefUnitsLeft">false</item>
<item type="id" name="seekBarPrefBarContainer">false</item>
<item type="id" name="seekBarPrefSeekBar">false</item>
<item type="id" name="thumbnailRadioButton">false</item>
<item type="id" name="thumbnailImage">false</item>
<item type="id" name="thumbnailText">false</item>
<item type="id" name="thumbnailListView">false</item>
<item type="id" name="thumbnailIcon">false</item>
9. Open res/values/strings.xml and add this:
Code:
<string name="zen_control_title">Zen Control™</string> <!-- Rename if do you want -->
<string name="ok">OK</string>
<string name="app_reboot_required_title">App Reboot Required</string>
<string name="app_reboot_required_message">%1$s reboot is required for the changes to take effect.\n\nReboot now?</string>
<string name="dialog_color_picker">Color Picker</string>
<string name="press_color_to_apply">Press on Color to apply</string>
10. Open smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
Find "0x1020018" and replace with public id from framework-res type="id" name="widget_frame"
11. Open smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
Find "0x1020010" and replace with public id from framework-res type="id" name="summary"
12. Open res/xml/zen_prefs.xml, add/edit your preference here...
13. Done
Attention: Don't rename smali and/or folder structure without my permission..!!!
Keep oprek. Salam bootloop.
Thanks to:
[email protected]
[email protected]
Guide by [email protected]
fb.me/bamz4ever
Reserved
Ask um,
java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to read from null array
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3019)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3050)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2425)
at android.app.ActivityThread.access$900(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5294)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
Check arrays.xml.. array null
missing 0x1020010 tutor no.11
bamzzz said:
11. Open smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
Find "0x1020010" and replace with public id from framework-res type="id" name="summary"
Click to expand...
Click to collapse
i cant find that tutor sir
please help
No undefined array sir ?
shining.surya said:
i cant find that tutor sir
please help
Click to expand...
Click to collapse
i am also not able to find
@bamzzz @venkat kamesh
added missed
Code:
<public type="id" name="widget_frame" id="0x7f0f02e1" />
to public.xml
and missed
Code:
<item type="id" name="widget_frame">false</item>
to ids.xml
recompiled settings.apk to get public id´s
decompiled again and wanted to change id´s in smali.
But there is no value 0x1020010 in smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
moonryder said:
@bamzzz @venkat kamesh
added missed
Code:
<public type="id" name="widget_frame" id="0x7f0f02e1" />
to public.xml
and missed
Code:
<item type="id" name="widget_frame">false</item>
to ids.xml
recompiled settings.apk to get public id´s
decompiled again and wanted to change id´s in smali.
But there is no value 0x1020010 in smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali
Click to expand...
Click to collapse
Bro adding id was not a matter
In layout xml or any xml. Where id is defined
Just change @iD to @+id this will add the required id to ids.xml also creates public id
Coming to 0x10xxxxx these public ids will be with framework-res.apk.
Good luck bro
venkat kamesh said:
Bro adding id was not a matter
In layout xml or any xml. Where id is defined
Just change @iD to @+id this will add the required id to ids.xml also creates public id
Coming to 0x10xxxxx these public ids will be with framework-res.apk.
Good luck bro
Click to expand...
Click to collapse
hi bro,
thx for the tipp with the +id
I looked in the framework-res and saw that there has nothing to be changed in the smali cuz the id´s are the same.
But there is no value 0x1020010 in smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali - so i can´t check/change the id!
And without that value this mod did not work! (also the one from @venkat kamesh) - pity
moonryder said:
hi bro,
thx for the tipp with the +id
I looked in the framework-res and saw that there has nothing to be changed in the smali cuz the id´s are the same.
But there is no value 0x1020010 in smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali - so i can´t check/change the id!
And without that value this mod did not work! (also the one from @venkat kamesh) - pity
Click to expand...
Click to collapse
Haha this guide was not from me
I haven't tested it either bro
See @Bloodlvst solved this
Hope he may help you bro
venkat kamesh said:
Haha this guide was not from me
I haven't tested it either bro
See @Bloodlvst solved this
Hope he may help you bro
Click to expand...
Click to collapse
@moonryder - the ID shouldn't need changing. What's the error you get and what android version?
Bloodlvst said:
@moonryder - the ID shouldn't need changing. What's the error you get and what android version?
Click to expand...
Click to collapse
hi,
i will try to explain it the third time:
i followed the tut by bamzzz. All went fine until i wanted to change the values in "smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali" (look at step 11 of bamzzz´s tutorial).
--> there is NO value 0x1020010 so i could not change it (public id)
so i tried it without step 11, followed the tut of venkat kamesh to hide battery in statusbar (tutorial from here).
Compiling and flashing went fine, but it didn´t work.
pushing the button, the battery icon won´t disapper.
So i think the issue must be in the smali mentioned above.
i am on LP 5.1.1
moonryder said:
hi,
i will try to explain it the third time:
i followed the tut by bamzzz. All went fine until i wanted to change the values in "smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali" (look at step 11 of bamzzz´s tutorial).
--> there is NO value 0x1020010 so i could not change it (public id)
so i tried it without step 11, followed the tut of venkat kamesh to hide battery in statusbar (tutorial from here).
Compiling and flashing went fine, but it didn´t work.
pushing the button, the battery icon won´t disapper.
So i think the issue must be in the smali mentioned above.
Click to expand...
Click to collapse
Step 11 just had a typo for the filename. If you look at the Guide.txt in the zip file, it will give you the right file name. But in either case those values wouldn't affect if the battery will hide or not
moonryder said:
hi,
i will try to explain it the third time:
i followed the tut by bamzzz. All went fine until i wanted to change the values in "smali/com/android/settings/bamzzz/prefs/ColorPickerPreference.smali" (look at step 11 of bamzzz´s tutorial).
--> there is NO value 0x1020010 so i could not change it (public id)
so i tried it without step 11, followed the tut of venkat kamesh to hide battery in statusbar (tutorial from here).
Compiling and flashing went fine, but it didn´t work.
pushing the button, the battery icon won´t disapper.
So i think the issue must be in the smali mentioned above.
i am on LP 5.1.1
Click to expand...
Click to collapse
why not a logcat
that show the problem
get a logcat bro
venkat kamesh said:
why not a logcat
that show the problem
get a logcat bro
Click to expand...
Click to collapse
there is no logcat to post cuz recompiling works without any error.
But the mod does not work
moonryder said:
there is no logcat to post cuz recompiling works without any error.
But the mod does not work
Click to expand...
Click to collapse
hmmm
i am not supposed you about build logcat
you should know more about logcat bro
look at this
http://forum.xda-developers.com/showthread.php?t=1726238
go on
get a logcat
that probably show the problem and then its easy to fix
venkat kamesh said:
hmmm
i am not supposed you about build logcat
you should know more about logcat bro
look at this
http://forum.xda-developers.com/showthread.php?t=1726238
go on
get a logcat
that probably show the problem and then its easy to fix
Click to expand...
Click to collapse
sorry bro,
i missunderstood.
log is attached
moonryder said:
sorry bro,
i missunderstood.
log is attached
Click to expand...
Click to collapse
Bro this is not exact log
When you create logcat
You should click on fc part
Example
Go to settings which you get fc
Start logcat. Open part of settings you get fc and after that fc. Stop log by unplug and send me bro
That shows what was wrong
venkat kamesh said:
Bro this is not exact log
When you create logcat
You should click on fc part
Example
Go to settings which you get fc
Start logcat. Open part of settings you get fc and after that fc. Stop log by unplug and send me bro
That shows what was wrong
Click to expand...
Click to collapse
i did it like you said