[Mods]Samsung ¬Android Mods Collection[Exynos]

Hello Users...!!! Is Thread Useful.......!!!


  • Total voters
    321
Search This thread

francitato02

Senior Member
Sep 5, 2017
62
235
CUSTOM BACKGROUND, MAIN TEXT COLOR AND STATUS TEXT COLOR, MATRIX ANIMATION IN POWER MENU - ANDROID 9 PIE

Thanks sagitt67 (sagitt67 on 4PDA) for guides Custom Backgrounds and Text Colors in PM - Android 9 Pie. Smali from ther were used (smalies were a little processed), but I don't know its profile on XDA - sorry. Also development of my friend mickles were used.

I. SystemUI.apk
1. Copy files from the downloaded SystemUI.rar archive and put in the decompiled SystemUI.apk
2. In SystemUI\res\layout\sec_global_actions_item.xml change TextView to com.android.settings.rz.Text and add in line keys
It as a result shall look so:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:id="@id/sec_global_actions_icon_label_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <ImageView android:gravity="center" android:id="@id/sec_global_actions_icon" android:layout_width="70.0dip" android:layout_height="70.0dip" android:scaleType="center" />
        <[B]com.android.settings.rz.Text[/B] android:textSize="15.0sp" android:gravity="center" android:id="@id/sec_global_actions_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:importantForAccessibility="no" android:fontFamily="roboto-regular" [B]key="primary_power_text_color"[/B] />
    </LinearLayout>
    <[B]com.android.settings.rz.Text[/B] android:textSize="13.0sp" android:gravity="center" android:id="@id/sec_global_actions_state" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="no" android:fontFamily="roboto-regular" [B]key="status_power_text_color"[/B] />
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/sec_global_actions_description" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="10.0" android:importantForAccessibility="no">
        <[B]com.android.settings.rz.Text[/B] android:textSize="13.0sp" android:gravity="center" android:id="@id/sec_global_actions_description_text" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="8.6" android:fontFamily="roboto-regular" [B]key="status_power_text_color"[/B] />
    </LinearLayout>
</LinearLayout>
3. In SystemUI\res\layout\sec_global_actions_wrapped.xml add the code (marked bold):
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
   [B] <FrameLayout android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent">
        <com.android.wubydax.CustomBg android:layout_width="fill_parent" android:layout_height="fill_parent" />
    </FrameLayout>[/B]
	[B]<mickles.app.statusbar.mLinearLayout android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" key="power_matrix_enable" value="1">
		<FrameLayout android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent">
			<com.ther.power.MatrixEffect android:layout_width="fill_parent" android:layout_height="fill_parent" />
		</FrameLayout>
	</mickles.app.statusbar.mLinearLayout>[/B]
    <LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/sec_global_actions_top" android:layout_width="fill_parent" android:layout_height="wrap_content" />
    <FrameLayout android:gravity="center" android:layout_gravity="center" android:id="@id/sec_global_actions_item_list" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginHorizontal="@dimen/sec_global_actions_list_view_margin_horizontal" />
    <FrameLayout android:gravity="center" android:layout_gravity="center" android:id="@id/sec_global_actions_item_list_land" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" />
    <LinearLayout android:layout_gravity="bottom|center" android:orientation="vertical" android:id="@id/sec_global_actions_bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginVertical="@dimen/sec_global_actions_bottom_view_margin_bottom" />
    <FrameLayout android:layout_gravity="center_horizontal" android:id="@id/sec_global_actions_confirmation" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</FrameLayout>
Switching on/switching off of Matrix is made the easiest way without editing StatusBar.smali and other smalies.
Then compile SystemUI.apk.
II Rom Control
1.
Insert the section into the right place:
Code:
<PreferenceScreen android:title="Background and Text Color Settings in Power Menu" android:summary="Choose Background and Text Color">
        <PreferenceCategory android:title="Background Settings in Power Menu" />
        <com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Enable Custom Background" android:key="enable_power_menu_custom_bg" android:defaultValue="true" android:summaryOn="Enabled" android:summaryOff="Disabled" />
        <com.wubydax.romcontrol.v2.prefs.MyListPreference android:entries="@array/custom_bg_type_entries" android:title="Background type" android:key="power_menu_custom_bg_type" android:dependency="enable_power_menu_custom_bg" android:defaultValue="2" android:entryValues="@array/custom_bg_type_values" />
        <com.wubydax.romcontrol.v2.prefs.UriSelectionPreference android:title="Select the image for a background" android:key="power_menu_bg" android:dependency="enable_power_menu_custom_bg" />
        <com.wubydax.romcontrol.v2.prefs.MyListPreference android:entries="@array/crop_entries" android:title="Select crop factor" android:key="power_menu_crop_type" android:dependency="enable_power_menu_custom_bg" android:defaultValue="0" android:entryValues="@array/crop_values" />
        <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:title="Choose Solid Color" android:key="power_menu_bg_primary_color" android:dependency="enable_power_menu_custom_bg" android:defaultValue="\#ff2f3752" />
        <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:title="Choose Second Color for Gradient" android:key="power_menu_second_gradient_color" android:dependency="enable_power_menu_custom_bg" android:defaultValue="\#ff522f52" />
        <com.wubydax.romcontrol.v2.prefs.MyListPreference android:entries="@array/gradient_entries" android:title="Gradient Orientation" android:key="power_menu_bg_gradient_orientation" android:dependency="enable_power_menu_custom_bg" android:defaultValue="0" android:entryValues="@array/gradient_values" />
        <com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Transparensy" android:key="power_menu_opacity" android:dependency="enable_power_menu_custom_bg" android:defaultValue="255" app:maxValue="255" />
        <PreferenceCategory android:title="Matrix Animation Settings in Power Menu" />
		<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Matrix Animation" android:key="power_matrix_enable" android:summaryOn="Enabled " android:summaryOff="Disabled" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:title="Text Color" android:key="power_matrix_anim_text_color" android:summary="Choose Text Color" android:dependency="power_matrix_enable" android:defaultValue="\#1eff00"  />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:title="Background Color" android:key="power_matrix_anim_bg_color" android:summary="Choose Background Color" android:dependency="power_matrix_enable" android:defaultValue="\#ff000000"  />
            <com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Transparency" android:key="power_matrix_anim_text_alpha" android:dependency="power_matrix_enable" android:defaultValue="100" app:minValue="50" app:maxValue="100" app:unitsValue=""  />
            <com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Text Size" android:key="power_matrix_anim_font_size" android:dependency="power_matrix_enable" android:defaultValue="46" app:minValue="20" app:maxValue="100" app:unitsValue=""  />
            <com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Animation frequency" android:key="power_matrix_anim_frequency" android:dependency="power_matrix_enable" android:defaultValue="16" app:minValue="1" app:maxValue="100" app:unitsValue=""  />
		<PreferenceCategory android:title="Text Color in Power Menu" />
        <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:title="Main Text Color" android:key="primary_power_text_color" android:summary="Choose Text Color" android:defaultValue="\#ffffffff" />
        <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:title="Status Text Color" android:key="status_power_text_color" android:summary="Choose Text Color" android:defaultValue="\#ffffffff" />
    </PreferenceScreen>
2. In RomControl/res/values/arrays.xml insert these (if didn't insert such arrays earlier):
Code:
<string-array name="crop_entries">
       <item>Centered adjusted</item>
        <item>Centered</item>
        <item>Fit XY</item>
    </string-array>
    <string-array name="crop_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="custom_bg_type_entries">
       <item>Image</item>
        <item>Solid color</item>
        <item>Gradient</item>
    </string-array>
    <string-array name="custom_bg_type_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="gradient_entries">
        <item>From up to down</item>
        <item>From down to up</item>
        <item>From left to right</item>
        <item>From right to left</item>
    </string-array>
    <string-array name="gradient_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
    </string-array>
At the same time Custom background and Matrix Animation don't work


hey bro, i've tried to apply this mod. it works great, but there is a strange issue. in fact at the bottom of display (with gradient, image or matrix mod) it create a gap, the same space of a navigation bar. the problem is that my base (note fe pie) hasn't that. how can i remove this gap? thanks :)
 

Attachments

  • photo5868496713591927000.jpg
    photo5868496713591927000.jpg
    28.8 KB · Views: 847

wlryss

Senior Member
Jul 1, 2012
102
103
Moscow
hey bro, i've tried to apply this mod. it works great, but there is a strange issue. in fact at the bottom of display (with gradient, image or matrix mod) it create a gap, the same space of a navigation bar. the problem is that my base (note fe pie) hasn't that. how can i remove this gap? thanks :)
Hi.. I see that you made modification of Extended Power Menu. If you attentively consider an original post about Extended Power menu from AbrahamGC, then will see that Navbar is on screenshots. I think that appearance of Navbar in Menu comes owing to substitution of files from framework.jar in SystemUI.
By the way I corrected a time delay and appearance of the white text in Custom Text of Extended Power Menu.
You need to place files from attached archive to decompiled SystemUI and change lines (with com.android.settings.rz.Text) in SystemUI\res\layout\sec_global_actions_item.xml to such view:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:id="@id/sec_global_actions_icon_label_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <ImageView android:gravity="center" android:id="@id/sec_global_actions_icon" android:layout_width="70.0dip" android:layout_height="70.0dip" android:scaleType="center" />
+!        <android.widget.ColorTextView android:textSize="15.0sp" android:gravity="center" android:id="@id/sec_global_actions_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:importantForAccessibility="no" android:fontFamily="roboto-regular" key="primary_power_text_color" />
    </LinearLayout>
+!    <android.widget.ColorTextView android:textSize="13.0sp" android:gravity="center" android:id="@id/sec_global_actions_state" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="no" android:fontFamily="roboto-regular" key="status_power_text_color" />
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/sec_global_actions_description" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="10.0" android:importantForAccessibility="no">
+!        <android.widget.ColorTextView android:textSize="13.0sp" android:gravity="center" android:id="@id/sec_global_actions_description_text" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="8.6" android:fontFamily="roboto-regular" key="status_power_text_color" />
    </LinearLayout>
</LinearLayout>
In Rom Control you don`t need to make any changes..
 

Attachments

  • SystemUI_Fix_Text_Extended_powerMenu.rar
    5.1 KB · Views: 78
Last edited:

francitato02

Senior Member
Sep 5, 2017
62
235
Hi.. I see that you made modification of Extended Power Menu. If you attentively consider an original post about Extended Power menu from AbrahamGC, then will see that Navbar is on screenshots. I think that appearance of Navbar in Menu comes owing to substitution of files from framework.jar in SystemUI.
By the way I corrected a time delay and appearance of the white text in Custom Text of Extended Power Menu.
You need to place files from attached archive to decompiled SystemUI and change lines (with com.android.settings.rz.Text) in SystemUI\res\layout\sec_global_actions_item.xml to such view:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:id="@id/sec_global_actions_icon_label_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <ImageView android:gravity="center" android:id="@id/sec_global_actions_icon" android:layout_width="70.0dip" android:layout_height="70.0dip" android:scaleType="center" />
+!        <android.widget.ColorTextView android:textSize="15.0sp" android:gravity="center" android:id="@id/sec_global_actions_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:importantForAccessibility="no" android:fontFamily="roboto-regular" key="primary_power_text_color" />
    </LinearLayout>
+!    <android.widget.ColorTextView android:textSize="13.0sp" android:gravity="center" android:id="@id/sec_global_actions_state" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="no" android:fontFamily="roboto-regular" key="status_power_text_color" />
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/sec_global_actions_description" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="10.0" android:importantForAccessibility="no">
+!        <android.widget.ColorTextView android:textSize="13.0sp" android:gravity="center" android:id="@id/sec_global_actions_description_text" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="8.6" android:fontFamily="roboto-regular" key="status_power_text_color" />
    </LinearLayout>
</LinearLayout>
In Rom Control you don`t need to make any changes..

cool! btw related to navbar gap, the most strange things is that, without this mod enabled there isn't any gap. what do you about change fill_parent to wrap_content? can it fix this problem?
 

luuphong559

Senior Member
Nov 21, 2016
86
21
Samsung Galaxy Note 10 Lite
Guide To Add Single CSC & Remove OMC_ODM

Hello Users,
As Some Requested - How To Add Single CSC To ROM
Here it is,


Steps:

#1

First Do This,
* Download Template Zip
* Download Your Country Stock Firmware
* Extract the CSC Folder Using Any Kitchen Tools
* Now Look Inside The Template Zip And Check For What Files/Folders I've Added Exactly
* Get The Same Files From Stock Firmware From /System/CSC/
* Get HWRDB and SIPDB Folders - Get These From Stock /System/CSC Folder or /System/
(These 2 Folders Needed For Samsung Keyboard Languages To Work)
Now Add All The New Files To The Template Zip


#2

Now Do This,
* Flash Your Custom ROM ( Don't Reboot Device)
* Flash Your New Single CSC Zip
( Zip Will Remove Old CSC/OMC/ODM Folders If Found Inside /system/ )

Enjoy :)
Where is link Kitchen tools?
Tks
I'm noob :confused:
 

Steve Giordano

Senior Member
Jan 24, 2012
213
103
Palermo
FIX FOR SHARE EXTERNAL ON FACEBOOK WITH DISABLED SIGNATURES (PIE VERSION)

Few changes from Oreo to make it working...

Needs deodex services.jar (You can run it on odex system, no problem)

Just follow the guide on the zip, in 2 min is done :good:


Where is this code???
Code:
- Delete the stock method .method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
 

francitato02

Senior Member
Sep 5, 2017
62
235
you need to add
from
<com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:defaultValue="#00000000"
to
<com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:defaultValue="\#00000000"

hey bro, i've tried and even with it, rc still crash. i've tried to look into log, but it show error in rc smali. Any idea?
 

youmbi

Senior Member
Jun 16, 2018
62
5
Good afternoon

I hope everything is understandable ...

First of all to thank all the people of XDA who little by little, contribute and contribute, so that we all go a little better in this "hobby"

Also, of course, @AbrahamGC, you are a great chaval and you have a promising future in this ...

Say that I use to decompile and compile, the following tool, or in some case CMD. Thank @BDFreak

https://xdaforums.com/showthread.php?t=2639400

With apktool 2.3.2, now, before 2.3.1 both valid, Thank @iBotPeaches

https://xdaforums.com/showthread.php?t=1755243


Let's start explaining how to modify SystemUI.apk, Secsettings.apk, framework-res.apk and the * .jar of Samsung Oreo

I want to explain my procedure, which is the one that is not giving me any problem of any kind, it may be that other DEV, do it differently.


SystemUI.apk

We will have 2 copies of SystemUI.apk, each one with a different name so as not to get mixed up,
for example SystemUI_origen.apk and another with a different name, for example SystemUI_mod0.apk.

We open both with 7zip

In SystemUI_mod0.apk we open the animator folder, and in SystemUI_origen.apk animator-v21,
we copy paste from animator-v21, in animator.

In SystemUI_mod0.apk we open the color folder, and in SystemUI_origen.apk color-v11 and color-v23,
copy paste color-v11 and color-v23, in color.

In SystemUI_mod0.apk we open the drawable folder, and in SystemUI_origen.apk drawable-v21 and drawable-v23,
We copy paste from drawable-v21 and drawable-v23, in drawable.

In SystemUI_mod0.apk we open the folder layout, and in SystemUI_origen.apk layout-v11, layout-v21 and layout-v26,
copy paste from layout-v11, layout-v21 and layout-v26, in layout.

We have prepared SystemUI_mod0.apk to decompile, decompile.

We will see that the names of some folders have been renamed eliminating the term -v ...

In the zip that I leave added in the post, there is the file pip_dismiss_scrim.9.png, this we will change it for the one that is in
drawable-xxxhdpi (decompiled) which is the name of the drawable-xxxhdpi-v4 folder in the apk without decompiling.

We have compiled the SystemUI_mod0.apk, we are going to rename it so as not to get mixed up, for example SystemUI_mod0_compilado.apk.

Now we have to use SystemUI_mod0.apk and SystemUI_mod0_compilado.apk, we open both with 7zip

Copy from the SystemUI_mod0_compilado.apk the folder res, classes.dex, classes2.dex and resources.arsc in SystemUI_mod0.apk
In addition to the zip where pip_dismiss_scrim.9.png is located, it is copied / pasted into drawable-xxxhdpi-v4.

With this we will have prepared the SystemUI.apk prepared for future modifications and we will not have any problem in decompilation and compilation.

In all the modifications, I at least copy and paste all the above, the folder res, classes.dex, classes2.dex and resources.arsc
and if there is any addition in the assets folder by modification, I open the folder and add what that modification implies.

I leave descriptive images of the steps, for better understanding.

Regards
Hi guys thank so much for this thread
How about android pie 9.0 I use same process but always face error
Thank for help
 

youmbi

Senior Member
Jun 16, 2018
62
5
* How to Modify framework-res.apk For Pie:​
I use TickleMyAndroid - v15.1.0 For PIE ANd it works perfectly, later versions gave issue for res apk


Locate to
Res/values/Styles.xml

Delete The Following Duplicate Entries
framework-res.apk\res\values\styles.xml:2509: error: Resource entry Theme.DeviceDefault already has bag item dropdownListPreferredItemHeight.
framework-res.apk\res\values\styles.xml:2508: Originally defined here.
<item name="dropdownListPreferredItemHeight">@dimen/tw_dropdown_list_item_height</item>



framework-res.apk\res\values\styles.xml:1250: error: Resource entry Theme.Holo already has bag item textEditSuggestionItemLayout.
framework-res.apk\res\values\styles.xml:1249: Originally defined here.
<item name="textEditSuggestionItemLayout">@layout/text_edit_suggestion_item</item>


framework-res.apk\res\values\styles.xml:1326: error: Resource entry Theme.Holo already has bag item preferenceFrameLayoutStyle.
framework-res.apk\res\values\styles.xml:1325: Originally defined here.
<item name="preferenceFrameLayoutStyle">@style/Widget.Holo.PreferenceFrameLayout</item>



framework-res.apk\res\values\styles.xml:1335: error: Resource entry Theme.Holo already has bag item textEditSuggestionContainerLayout.
framework-res.apk\res\values\styles.xml:1334: Originally defined here.
<item name="textEditSuggestionContainerLayout">@layout/text_edit_suggestion_container</item>



framework-res.apk\res\values\styles.xml:1337: error: Resource entry Theme.Holo already has bag item textEditSuggestionHighlightStyle.
framework-res.apk\res\values\styles.xml:1336: Originally defined here.
<item name="textEditSuggestionHighlightStyle">@style/TextAppearance.Holo.SuggestionHighlight</item>



framework-res.apk\res\values\styles.xml:3707: error: Resource entry TextAppearance.DeviceDefault.Widget.ActionBar.Title already has bag item fontFamily.
framework-res.apk\res\values\styles.xml:3706: Originally defined here.
<style name="TextAppearance.DeviceDefault.Widget.ActionBar.Title" parent="@style/TextAppearance.Material.Widget.ActionBar.Title">
<item name="textSize">@dimen/sem_text_size_title_material_toolbar</item>
<item name="textStyle">normal</item>
<item name="textColor">@color/tw_text_color_title_material_toolbar_dark</item>
<item name="textAllCaps">false</item>
<item name="fontFamily">@string/config_headlineFontFamilyMedium</item>
<item name="fontFamily">sec-roboto-light</item> << - Delete This Line - >>
</style>



framework-res.apk\res\values\styles.xml:3992: error: Resource entry TextAppearance.Material.Notification.Title already has bag item fontFamily.
framework-res.apk\res\values\styles.xml:3991: Originally defined here.
<style name="TextAppearance.Material.Notification.Title" parent="@style/TextAppearance.Material.Notification">
<item name="textSize">@dimen/notification_title_text_size</item>
<item name="textColor">@color/notification_primary_text_color_light</item>
<item name="fontFamily">sans-serif-medium</item>
<item name="fontFamily">sec-roboto-regular</item> << - Delete This Line - >>
</style>


Guide by yash92duster

Hello
Thanks so much for this tutorial
I whant to know how about android pie secsetting.apk how to mod?
Thanks ?
 

a.raul

Senior Member
Apr 21, 2014
375
510
Mordor
Hi guys thank so much for this thread
How about android pie 9.0 I use same process but always face error
Thank for help

That post has become obsolete for Pie.

Go to this link and download the program, thank the work is easy.

https://xdaforums.com/showpost.php?p=79030030&postcount=842

Needless to say that in order to decompile and compile you need to install the framework-res.apk, the program gives you that option.

Decompile the SystemUI.apk, enter your modifications and recompile without signature (option 1)

Open with Winrar SystemUI.apk recompiled and the source SystemUI, and enter the META-INF and SEC-INF folders,
in Winrar you must have compression method in option Do not compress.

And it's already
 
  • Like
Reactions: youmbi

youmbi

Senior Member
Jun 16, 2018
62
5
That post has become obsolete for Pie.

Go to this link and download the program, thank the work is easy.

https://xdaforums.com/showpost.php?p=79030030&postcount=842

Needless to say that in order to decompile and compile you need to install the framework-res.apk, the program gives you that option.

Decompile the SystemUI.apk, enter your modifications and recompile without signature (option 1)

Open with Winrar SystemUI.apk recompiled and the source SystemUI, and enter the META-INF and SEC-INF folders,
in Winrar you must have compression method in option Do not compress.

And it's already
Thanks so much
The process is same for secsetting.apk and frameworkres.apk?
Best Regards
 

a.raul

Senior Member
Apr 21, 2014
375
510
Mordor
Thanks so much
The process is same for secsetting.apk and frameworkres.apk?
Best Regards

For the SecSettings.apk as with SystemUI.apk, META-INF and SEC-INF folders, and in addition to the source SecSettings.apk you add the res / raw folder, with the same procedure in Winrar.

For framework-res.apk, you will have two problems in recompilation, the cause of one of them is in apktool.yml, and the second in styles.xml, I leave the files as you should leave them, to be able to recompile with Advanced ApkTool. As in the rest, you do the same procedure with META-INF and SEC-INF folders.

Edito: The file apktool.yml, I had to rename it to apktool.yml.xml so that the señoritos de xda let it upload it. It seems that it is not valid, add in a box as it would be ...

!!brut.androlib.meta.MetaInfo
apkFileName: framework-res.apk
compressionType: false
doNotCompress:
- arsc
- png
- ogg
isFrameworkApk: true
packageInfo:
forcedPackageId: '1'
renameManifestPackage: null
sdkInfo:
minSdkVersion: '28'
targetSdkVersion: '28'
sharedLibrary: false
sparseResources: false
unknownFiles:
SEC-INF/buildConfirm.crt: '8'
SEC-INF/buildinfo.xml: '8'
usesFramework: null
version: 2.4.0
versionInfo:
versionCode: '28'
versionName: '9'
 

Attachments

  • styles_mod.xml
    597.4 KB · Views: 65
  • styles_origen.xml
    598 KB · Views: 34
  • apktool.yml.xml
    467 bytes · Views: 58
Last edited:

brezzz

Senior Member
Dec 21, 2010
336
33
Hi

I am wanting to edit a stock s7 edge systemUI.apk, I have it de-compiled but need help with the mods and any help would be appreciated. I am looking for:

Minimum 5 toggles instead of 6
Remove brightness slider from pull-down
Remove "emergency information" from power menu
Add "reboot to recovery" to power menu
Implement physical back button long press to kill

Would anybody be able to help me achieve all of this please? It would really be appreciated.

Many Thanks

Brezzz
 

Voytec83

Senior Member
Apr 25, 2017
451
628
Koszalin
hey bro, i've tried to apply this mod. it works great, but there is a strange issue. in fact at the bottom of display (with gradient, image or matrix mod) it create a gap, the same space of a navigation bar. the problem is that my base (note fe pie) hasn't that. how can i remove this gap? thanks :)

Try to add navigation_bar_height=0 in res/values/dimens.xml or apply as an overlay for framework-res.apk
 

Shariq3422

Senior Member
Feb 11, 2019
304
109
Faisalabad
OnePlus 7 Pro
QUICK-REPLY ON SECURE LOCKSCREEN (WITH/WITHOUT ROMCONTROL)

Hi guys, simple but useful mod, if u want to have ur phone locked but still replying on your notifications...

First way / Always possible :

- Open StatusBar.smali
- Replace setLockScreenAllowRemoteInput method with this:



- Done

Second way / RC toggle : (Off by default)

- Open StatusBar.smali
- Replace setLockScreenAllowRemoteInput method with this:



- Done

RC :
<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Allow reply with phone locked" android:defaultValue="false" android:key="agc_secure_reply" app:packageNameToKill="com.android.systemui" app:isSilent="true" />



Enjoy it :good:
Where does this statusbar.smali file will be found??

Sent from my SM-G930F using XDA Labs
 

Top Liked Posts