[GUIDE]How to add 3Minit Battery Mod.(A2017G)(A2017U) - ZTE Axon 7 Themes, Apps, and Mods

Decompile SystemUI_ZTE.apk
Open layout/system_icons.xml
Remove
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" 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/msim_signal_cluster_view" />
<TextView android:textSize="@dimen/mifavor_battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_icon_width" android:layout_height="@dimen/status_bar_battery_icon_height" android:layout_marginBottom="@dimen/battery_margin_bottom" />
</LinearLayout>
Replace
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" 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/msim_signal_cluster_view" />
<TextView android:textSize="@dimen/mifavor_battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_icon_width" android:layout_height="@dimen/status_bar_battery_icon_height" android:layout_marginBottom="@dimen/battery_margin_bottom" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
Open values/dimens.xml
Search
Code:
<dimen name="status_bar_battery_icon_height">14.5dip</dimen>
<dimen name="status_bar_battery_icon_width">9.5dip</dimen>
Replace
Code:
<dimen name="status_bar_battery_icon_height">0.0dip</dimen>
<dimen name="status_bar_battery_icon_width">0.0dip</dimen>
You now to need to navigate to smali/com/android/systemui/statusbar/policy folder
Copy the 3 smali files into that policy folder
3MinitBattery_smali
recompile 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
@gharrington For smalis and apk

Related

[Q][MOD]Notification Panel Toggle Resizing

I'm modding System-UI.apk file.
I'm trying port samsung notification panel to jb cm10
{
"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"
}
to
So, First target is get bigger toggles.
And i'm searching for dimension codes in layout and dimen.xml
So, i changed
Code:
<dimen name="notification_panel_header_height">48.0dip</dimen>
<dimen name="notification_panel_brightness_height">48.0dip</dimen>
<dimen name="notification_panel_widget_height">160.0dip</dimen> 48 to 160
<dimen name="notification_panel_header_and_widget">208.0dip</dimen> and equals
<dimen name="notification_panel_header_widget_and_brightness">208.0dip</dimen> same
<dimen name="notification_panel_header_and_brightness">96.0dip</dimen> same
but didn't work after also changed res/layout/system_bar_notification_panel_title.xml -
Code:
<TableLayout android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:layout_marginBottom="16.0dip" android:stretchColumns="8" android:shrinkColumns="4" -- here 2,4 to 4
android:layout_alignParentLeft="true" android:layout_alignParentBottom="true">
and then
power_widget_button.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/power_widget_button" android:background="@drawable/stat_power_background" android:focusable="true" android:clickable="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/power_widget_button_image" android:layout_width="fill_parent" android:layout_height="70.0dip" 48 to 70 dip
android:scaleType="center" android:layout_weight="1.0" />
</LinearLayout>
but didn't work which file i should edit...
i will do something like this
first get bigger toggles
and then change toggle button drawables with samsung toggles(not orginal one , create full drawable toggle like a in picture)

small tutorial color contact numbers

hello friends
I give here a mod that is simple but very nice
as were several friends who asked how he changed the color of the number decided to make this little tutorial​
1. - Decompile SecContacts.apk
2.- Go res/layout-sw359dp-xhdpi/dialpad_fragment (use Notepad + +)
3.- Change the color code that I describe below
I modify the SecContacts.apk of Wanam
HTML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:id="@id/dialpad_allorientation" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<include layout="@layout/dialpad_land" />
<LinearLayout android:orientation="vertical" android:id="@id/top" android:paddingLeft="@dimen/dialpad_horizontal_margin" android:paddingRight="@dimen/dialpad_horizontal_margin" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/digits_container" android:layout_width="360.0dip" android:layout_height="wrap_content">
<com.sec.android.app.dialertab.dialpad.EllipsisTextView android:configChanges="keyboardHidden" android:textSize="40.0sp" android:typeface="sans" android:textColor="#ffffffff"
where is the code of color # FFFFFFFF replace the one you want
Here I give you some already modified in blue, red, green and yellow
Blue
{
"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"
}
Download
Red
Download
Green
Download
Yellow
Download
greetings and blessings
:good::fingers-crossed::victory::highfive:
scamus said:
:good::fingers-crossed::victory::highfive:
Click to expand...
Click to collapse
Very good work my friend
Hemant said:
Very good work my friend
Click to expand...
Click to collapse
Very good work my friend
hello friend
thanks
very happy you like my work
sharing should be the spirit
greetings and blessings

Modifying Kii Keyboard

I tried to modify this keyboard .. I already modified what i want except one thing > Row numbers in arabic language
It look like that
{
"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"
}
And i want it like That
I Searched a lot in the xml files and found this one and i think it is the file i should modify but i don't know how ?
HTML:
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:latin="http://schemas.android.com/apk/res/com.zl.inputmethod.latin">
<Key latin:moreKeys="!text/more_keys_for_symbols_1" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_1" latin:keyLabel="!text/keylabel_for_symbols_1" />
<Key latin:moreKeys="!text/more_keys_for_symbols_2" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_2" latin:keyLabel="!text/keylabel_for_symbols_2" />
<Key latin:moreKeys="!text/more_keys_for_symbols_3" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_3" latin:keyLabel="!text/keylabel_for_symbols_3" />
<Key latin:moreKeys="!text/more_keys_for_symbols_4" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_4" latin:keyLabel="!text/keylabel_for_symbols_4" />
<Key latin:moreKeys="!text/more_keys_for_symbols_5" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_5" latin:keyLabel="!text/keylabel_for_symbols_5" />
<Key latin:moreKeys="!text/more_keys_for_symbols_6" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_6" latin:keyLabel="!text/keylabel_for_symbols_6" />
<Key latin:moreKeys="!text/more_keys_for_symbols_7" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_7" latin:keyLabel="!text/keylabel_for_symbols_7" />
<Key latin:moreKeys="!text/more_keys_for_symbols_8" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_8" latin:keyLabel="!text/keylabel_for_symbols_8" />
<Key latin:moreKeys="!text/more_keys_for_symbols_9" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_9" latin:keyLabel="!text/keylabel_for_symbols_9" />
<Key latin:moreKeys="!text/more_keys_for_symbols_0" latin:additionalMoreKeys="!text/additional_more_keys_for_symbols_0" latin:keyLabel="!text/keylabel_for_symbols_0" />
</merge>
I want to know what does this text mean ( !text/keylabel_for_symbols_1 )
Any ideas ? or which file i should modify ?​
UP

CM7 SystemUI Edit

Hey Guys,
I'm trying to make a CM7 based S5 ROM. This is my first time and I have a problem. I'm trying to move clear button to there.
{
"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"
}
Here is a part of status_bar_expanded.xml
Code:
<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="46.0dip" android:weightSum="100.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/ongoingTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:id="@id/latestTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
[COLOR="Red"]<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffdae4e8" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<Button android:textSize="16.0sp" android:textColor="#ffffffff" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="@dimen/status_bar_expanded_clear_button_width" android:layout_height="fill_parent" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" style="@style/StatusBar.ClearButton" />
</RelativeLayout>[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:layout_gravity="right|center" android:id="@id/compact_clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/StatusBar.ClearButton" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
I tried to add red codes but when I add <RelativeLayout>, I get force close.

[GUIDE]How to add quicklauncher in recents app (A2017G)(A2017U)

decompile SystemUI_ZTE.apk
open layout/mifaver_recent_button.xml
remove
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/clearall" android:layout_width="wrap_content" android:layout_height="@dimen/mifavor_recent_app_bottom_bar_height"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/sys_delete" />
<TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:ellipsize="end" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/recent_app_clearall" android:singleLine="true" android:paddingStart="@dimen/mifavor_recent_app_start_padding" />
</LinearLayout>
Replace
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/clearall" android:layout_width="wrap_content" android:layout_height="@dimen/mifavor_recent_app_bottom_bar_height"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/sys_delete" />
<TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:ellipsize="end" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/recent_app_clearall" android:singleLine="true" android:paddingStart="@dimen/mifavor_recent_app_start_padding" />
</LinearLayout>
<HorizontalScrollView android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="75.0dip">
<com.android.systemui.statusbar.policy.quicklaunch.QuickLaunchContainer android:gravity="center" android:layout_width="wrap_content" android:layout_height="75.0dip" android:layout_centerHorizontal="true" />
</HorizontalScrollView>
</LinearLayout>
open values/dimens.xml
search
Code:
<dimen name="mifavor_recent_app_bottom_bar_height">67.0dip</dimen>
Replace
Code:
<dimen name="mifavor_recent_app_bottom_bar_height">95.0dip</dimen>
download smalis and replace them so as path in zip file
recompile 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
@gharrington For smalis
@josete_197601 For your help with the code
Did you add 3minit also? I just know we had a working verso OK n before the update and it's no m0te...would love to have 3minit again

Categories

Resources