[MOD][HOW TO] AOSP Signal layout on touchwiz - T-Mobile, Samsung Galaxy SIII

This will guide will show you how to replace the touchwiz signal style with that of standard android AOSP style.
Preview
{
"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"
}
I assume the reader has basic knowledge of de-compiling and recompiling APK files, if you do not know how to do this use the search feature on XDA as this is covered in a ton of post's and really isn't that hard to do with some patience.
Step 1) Decompile systemui.apk
Step 2) Navigate to
HTML:
res/layout/tw_signal_cluster_view.xml
Step 3) Delete everything here and replace it with this
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="-6.0dip">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<FrameLayout android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="-18.0dip">
<ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-23.0dip" />
</com.android.systemui.statusbar.SignalClusterView>
4) Replace desired icon's in
HTML:
res/drawable-xhdpi
this is my standard AOSP signal icon's that I use in my ROM Dandroid, get it here
5) Recompile with apktool
6) Open up the old systemui and new systemui with 7zip and copy over the meta-inf folder and androidmanifest.xml to the new systemUI
7) Push to system and enjoy
cheers
Dan

Simple and straightforward! If i ever go back to TW, I'll be sure to try this one out. Thanks!

Related

m2d skin problem on cruise 09 - iolite

Hi,
How can I fix this annoyng bug ?
My device HTC Cruise 09 -IOLITE
{
"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"
}
You need to edite your HTCHomeSettings.xml so the calander1 and 2 items do not overlap.
Here are mine, but they may not be in the right location for you.
Just use them as a guide to avoid the overlap.
Notice voicemallcallbtn settings match calendarbtn1 settings.
Code:
<Property name="IDHMWG_MISSEDCALLBTN_RECT" id="30" value="6,135,226,160" />
<Property name="IDHMWG_MISSEDCALLBTN_IMG" id="31" value="45" />
<Property name="IDHMWG_MISSEDCALLBTN_IMGPOS" id="32" value="3,140" />
<Property name="IDHMWG_MISSEDCALLBTN_TEXT_RECT" id="33" value="20,136,225,159" />
<Property name="IDHMWG_MISSEDCALLBTN_IMG_FOCUS" id="34" value="181" />
<Property name="IDHMWG_MISSEDCALLBTN_IMG_FOCUS_DN" id="35" value="182" />
<Property name="IDHMWG_CALENDARBTN1_RECT" id="40" value="6,160,228,194" />
<Property name="IDHMWG_CALENDARBTN1_IMG" id="41" value="46" />
<Property name="IDHMWG_CALENDARBTN1_IMGPOS" id="42" value="9,167" />
<Property name="IDHMWG_CALENDARBTN1_TEXT_RECT" id="43" value="35,161,213,194" />
<Property name="IDHMWG_CALENDARBTN1_TEXT_TIME_RECT" id="44" value="9,161,213,173" />
<Property name="IDHMWG_CALENDARBTN1_TEXT_SUBJECT_RECT" id="45" value="9,173,213,193" />
<Property name="IDHMWG_CALENDARBTN1_IMG_FOCUS" id="46" value="181" />
<Property name="IDHMWG_CALENDARBTN1_IMG_FOCUS_DN" id="47" value="182" />
<Property name="IDHMWG_CALENDARBTN2_RECT" id="50" value="6,194,228,228" />
<Property name="IDHMWG_CALENDARBTN2_IMG" id="51" value="46" />
<Property name="IDHMWG_CALENDARBTN2_IMGPOS" id="52" value="9,201" />
<Property name="IDHMWG_CALENDARBTN2_TEXT_RECT" id="53" value="35,195,213,228" />
<Property name="IDHMWG_CALENDARBTN2_TEXT_TIME_RECT" id="54" value="9,195,213,207" />
<Property name="IDHMWG_CALENDARBTN2_TEXT_SUBJECT_RECT" id="55" value="9,207,213,227" />
<Property name="IDHMWG_CALENDARBTN2_IMG_FOCUS" id="56" value="181" />
<Property name="IDHMWG_CALENDARBTN2_IMG_FOCUS_DN" id="57" value="182" />
<Property name="IDHMWG_VOICEMALLCALLBTN_RECT" id="60" value="6,160,228,194" />
<Property name="IDHMWG_VOICEMALLCALLBTN_IMG" id="61" value="228" />
<Property name="IDHMWG_VOICEMALLCALLBTN_IMGPOS" id="62" value="9,167" />
<Property name="IDHMWG_VOICEMALLCALLBTN_TEXT_RECT" id="63" value="35,161,213,194" />
<Property name="IDHMWG_VOICEMALLCALLBTN_IMG_FOCUS" id="64" value="181" />
<Property name="IDHMWG_VOICEMALLCALLBTN_IMG_FOCUS_DN" id="65" value="182" />

System UI

Can any one help, How to saperate overlapping Battery icon and time in SystemUI,
{
"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 in advance
I think you must decompile the .apk, edit .xml files (I don't know what exactly) and recompile the apk. :good:
Try Apktool and take a look at the XML files, if you see positions/coordinates files of battery & time, just invert them.
WrathChild08 said:
I think you must decompile the .apk, edit .xml files (I don't know what exactly) and recompile the apk. :good:
Try Apktool and take a look at the XML files, if you see positions/coordinates files of battery & time, just invert them.
Click to expand...
Click to collapse
Thanks for reply, but I dont know which xml files to edit and how.
I'll take a look.
EDIT : Can't find what XML files to edit.. So :/
Wait someone else. ^^
WRONG TOPIC!!!
Can you peeps find the Q/A topic ??
Very anoying this
Best Regards
..:: [email protected]€m!c ::..
chiragvagh said:
Thanks for reply, but I dont know which xml files to edit and how.
Click to expand...
Click to collapse
Which? res/layout/status_bar.xml
How? I don't know. Compare your xml to original one, especially that section:
Code:
<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" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
btw, you'll learn more and faster by yourself through comparing, watching other work etc. Leave questions for really hard things

[MOD][HowTo] JWR66Y DEODX Op.app & Debug LatinIme (themes) integration on dev options

[MOD][HowTo] JWR66Y DEODX Op.app & Debug LatinIme (themes) integration on dev options
{
"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"
}
This is flashable mod for JWR66Y DEODEXED to show hidden features like OP.APP and Latin Ime Debug Settings (there's themes inside!! )... on developer options
http://d-h.st/hr6
If You want to add this to Your ROM or try make for stock Odex follow these guidelines using Apktool and Notepad++ (There's a plenty of guides on XDA ):
1) Install framework-res from the ROM
2) Decompile Settings.apk from the ROM
3) Navigate to /res/xml and find/open development_prefs.xml in Notepad++
4) Put GREEN lines at the end of the file to show like this:
Code:
<CheckBoxPreference android:title="@string/disable_overlays" android:key="disable_overlays" android:summary="@string/disable_overlays_summary" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/debug_monitoring_category" android:key="debug_monitoring_category">
<CheckBoxPreference android:title="@string/strict_mode" android:key="strict_mode" android:summary="@string/strict_mode_summary" />
<CheckBoxPreference android:title="@string/show_cpu_usage" android:key="show_cpu_usage" android:summary="@string/show_cpu_usage_summary" />
<ListPreference android:persistent="false" android:entries="@array/track_frame_time_entries" android:title="@string/track_frame_time" android:key="track_frame_time" android:entryValues="@array/track_frame_time_values" />
<ListPreference android:persistent="false" android:entries="@array/enable_opengl_traces_entries" android:title="@string/enable_opengl_traces_title" android:key="enable_opengl_traces" android:entryValues="@array/enable_opengl_traces_values" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/debug_applications_category" android:key="debug_applications_category">
<CheckBoxPreference android:title="@string/immediately_destroy_activities" android:key="immediately_destroy_activities" android:summary="@string/immediately_destroy_activities_summary" />
<ListPreference android:persistent="false" android:entries="@array/app_process_limit_entries" android:title="@string/app_process_limit_title" android:key="app_process_limit" android:entryValues="@array/app_process_limit_values" />
<CheckBoxPreference android:title="@string/show_all_anrs" android:key="show_all_anrs" android:summary="@string/show_all_anrs_summary" />
<CheckBoxPreference android:title="@string/experimental_webview" android:key="experimental_webview" android:summary="@string/experimental_webview_summary" />
[B][COLOR="Lime"][COLOR="SeaGreen"] </PreferenceCategory>
<PreferenceCategory android:title="LatinImeGoogle Debug Mode" android:key="english_ime_debug_settings">
<PreferenceScreen android:title="Android keyboard Debug settings" android:key="english_ime_debug_settings">
<intent android:targetPackage="com.google.android.inputmethod.latin" android:action="android.intent.action.MAIN" android:targetClass="com.android.inputmethod.latin.DebugSettingsActivity" />
</PreferenceScreen>
</PreferenceCategory>
<PreferenceCategory android:title="App Permission Manager" android:key="app_ops_settings">
<PreferenceScreen android:title="@string/app_ops_settings" android:key="app_ops_settings">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.Settings$AppOpsSummaryActivity" />
</PreferenceScreen>
</PreferenceCategory>[/COLOR][/COLOR][/B]
</PreferenceScreen>
And recompile back properly.

Samsung Galaxy Gear Compatability

Hi there guys,
This thread is regarding the zooper widget's galaxy gear compatibility ! For the most part it works excellent.. its truly a extremely useful tool especially on a smartwatch.
Although there are some qwerks, as I said previous it does work for the most part although one of the main issues is the color picker dialog.
As you can see in the screenshot attached:
{
"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"
}
You are unable to complete your color selection.. obviously its a crucial part of making widgets.. Iv been forced to manually edit the themes on my desktop and transfer them back to the gear in order to change colors.
If anyone has any ideas ? Maybe make the view scrollable ? Or even resize the color picker to fit the confirm buttons ?
EDIT:
By simply reordering the elements, I was able to achieve:
Need to reconfigure the marigns and what not, although for the most part it works...
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="40.0dip"
android:layout_marginBottom="10.0dip"
android:orientation="horizontal" >
<org.zooper.zwlib.widget.colorpicker.ColorPickerPanelView
android:id="@id/old_color_panel"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="0.5" />
<TextView
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginLeft="10.0dip"
android:layout_marginRight="10.0dip"
android:gravity="center"
android:text="→"
android:textSize="20.0dip" />
<org.zooper.zwlib.widget.colorpicker.ColorPickerPanelView
android:id="@id/new_color_panel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="10.0dip"
android:layout_weight="0.5" />
<EditText
android:id="@id/editor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="monospace"
android:maxLength="9"
android:singleLine="true"
android:textSize="20.0dip" >
<requestFocus />
</EditText>
</LinearLayout>
<org.zooper.zwlib.widget.colorpicker.ColorPickerView android:id="@id/color_picker_view" android:tag="portrait" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layerType="software" />
</LinearLayout>

[MOD][C1904/SS][15.4.A.1.9]Network Traffic Stats + Custom Settings.apk + Autostarts

Hi, I'm new on this forums. and this is my first post.
I just wanted to share with you this little mod that i was looking for a long time (since i got this phone), but with no result.
{
"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"
}
the process to get this, is the following:
1. use apktool or any other toll for decompiling SystemUI.apk
2. Download the smali files attached to this post ( they were pulled from a moded SystemUI from other rom)
View attachment 3338310
3. place it in the route \SystemUI\smali\com\android\systemui\statusbar\policy
4. go to \SystemUI\res\layout and paste the XML called network stats.xml
View attachment network_stats.zip
5. paste the two png images in \SystemUI\res\drawable-hdpi\ they are called stat_sys_net_in.png and stat_sys_net_out.png
View attachment images.zip
6. go to \SystemUI\res\layout\status_bar.xml an edit whit this lines:
<include
layout="@layout/network_stats" />
<com.android.systemui.statusbar.policy.Traffic
android:textAppearance="@style/TextAppearance.StatusBar.Traffic"
android:gravity="left|center"
android:id="@id/traffic"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:singleLine="true" />
View attachment 3338295
7. after this, go to \SystemUI\res\values\dimens.xml and add this lines:
<dimen name="network_stats_text_size">10.0dip</dimen>
8. next, go to ids.xml in the same folder and add this lines:
<item type="id" name="network_stats">false</item>
<item type="id" name="bytes_1">false</item>
<item type="id" name="bytes_2">false</item>
<item type="id" name="traffic">false</item>
9. next, go to styles.xml and add this lines:
<style name="TextAppearance.StatusBar.NetworkStats" parent="@*android:style/TextAppearance.StatusBar">
<item name="android:textSize">@dimen/network_stats_text_size</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1.0</item>
</style>
<style name="TextAppearance.StatusBar.Traffic" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
10. compile SystemUI, Sign it an paste it to System/app/ folder in your device, whit the Settings.apk and CustomSettings.apk provided in the post, Giving the propoer permissions (rw-r--r--)
View attachment 3338335
that's all!​

Categories

Resources