FORUMS
Remove All Ads from XDA

 View Poll Results: Hello Users...!!! Is Thread Useful.......!!!

Yes.....Good Collection of Mods.
 
179 Vote(s)
92.27%
Not useful, I dont own Samsung Device.
 
20 Vote(s)
10.31%

[Guides]Samsung Experience ¬Android Mods[Exynos]

12,498 posts
Thanks Meter: 14,879
 
Post Reply Email Thread
Announcement from yash92duster: Last Updated Post #1361
17th April 2018, 04:56 PM |#41  
a.raul's Avatar
Senior Member
Flag Mordor
Thanks Meter: 469
 
More
Let's explain how to modify framework-res.apk 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.

framework-res.apk

We decompiled framework-res.apk

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

Go to res / values ​​/ styles.xml and delete the next line, one of the 2, the one we want, since they are identical

Code:
<item name="dropdownListPreferredItemHeight">@dimen/tw_dropdown_list_item_height</item> ## Delete line
We save and close, and compile,

We have compiled the framework-res.apk, we are going to rename it so as not to get mixed up, for example framework-res_mod0_compilado.apk.

Now we have to use framework-res.apk and framework-res_mod0_compilado.apk, we open both with 7zip.

Copy the framework-res_mod0_compilado.apk the folder res and resources.arsc in framework-res.apk

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

In future modifications, just copy / paste what has been modified.
If it influences resources.arsc of course what has been modified, but, if the modification influences an * .xml,
we will just pass that * .xml in in the corresponding folder, we will avoid fix.

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

Regards y spankys
Attached Thumbnails
Click image for larger version

Name:	Captura de pantalla (1).png
Views:	3274
Size:	69.7 KB
ID:	4478967   Click image for larger version

Name:	Captura de pantalla (2).png
Views:	3228
Size:	63.8 KB
ID:	4478968   Click image for larger version

Name:	Captura de pantalla (3).png
Views:	3260
Size:	121.8 KB
ID:	4478969   Click image for larger version

Name:	Captura de pantalla (4).png
Views:	3194
Size:	55.4 KB
ID:	4478970   Click image for larger version

Name:	Captura de pantalla (5).png
Views:	3142
Size:	57.2 KB
ID:	4478972   Click image for larger version

Name:	Captura de pantalla (6).png
Views:	3090
Size:	124.0 KB
ID:	4478973  
The Following 7 Users Say Thank You to a.raul For This Useful Post: [ View ] Gift a.raul Ad-Free
 
 
18th April 2018, 05:27 PM |#42  
Senior Member
Flag /home
Thanks Meter: 2,030
 
Donate to Me
More
NETWORK TRAFFIC WITH DARK TINT

Hi guys, this guide is based on @Wuby986 and @daxgirl network traffic mod, I just updated it a little for get dark tint on white apps, even with custom color. Tested on S8+ and Note 8, IMPORTANT; ONLY FOR OREO, because I used DarkIconDispatcher for it, and that interface isn't present on Nougat or previous versions.

Original source code is on wuby's Github HERE
Modded source code is on DeluxeTeam's Github HERE

Now let's see how we can implement it, it's simple:

1- Merge attached zip to SystemUI/smali/com/android/wubydax
2- Open SystemUI/res/layout/status_bar.xml and before <include layout="@layout/system_icons" /> add this:

<com.android.wubydax.NetworkTraffic android:layout_width="wrap_content" android:layout_height="fill_parent" />

That's all

RomControl; Add this where you want :
HTML Code:
 <PreferenceScreen
        android:title="Network traffic preferences">
        <PreferenceCategory
            android:title="Network data">
            <com.wubydax.romcontrol.v2.prefs.MyListPreference
                android:title="Displayed traffic info"
                android:key="network_traffic_state"
                android:defaultValue="0"
                app:dependentValue="0"
                android:entryValues="@array/traffic_state_values"
                android:entries="@array/traffic_state_items"/>
            <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                android:title="Display data in Bytes"
                android:summaryOff="Displayed in Bits (default)"
                android:summaryOn="Displayed in Bytes"
                android:defaultValue="false"
                android:key="network_traffic_unit"
                android:dependency="network_traffic_state"/>

        </PreferenceCategory>
        <PreferenceCategory
            android:title="Arrows display preferences"
            android:dependency="network_traffic_state">
            <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                android:title="Show traffic arrows"
                android:key="network_traffic_show_arrows"
                android:defaultValue="true"
                android:summaryOff="Arrows hidden"
                android:summaryOn="Arrows shown"
                android:dependency="network_traffic_state"/>
            <com.wubydax.romcontrol.v2.prefs.MyListPreference
                android:title="Arrows position"
                android:key="network_traffic_arrows_position"
                android:dependency="network_traffic_show_arrows"
                android:defaultValue="0"
                android:entryValues="@array/arrow_position_values"
                android:entries="@array/arrow_position_entries"/>
        </PreferenceCategory>
        <PreferenceCategory
            android:title="Display options"
            android:dependency="network_traffic_state">
            <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                android:title="Autohide on low traffic"
                android:key="network_traffic_autohide"
                android:defaultValue="false"
                android:summaryOff="Displayed always"
                android:summaryOn="Autohide enabled"/>
            <com.wubydax.romcontrol.v2.prefs.MySeekBarPreference
                android:title="Autohide threshold"
                app:unitsValue="Kb"
                app:maxValue="100"
                android:key="network_traffic_threshold"
                android:defaultValue="10"
                android:dependency="network_traffic_autohide"/>
            <com.wubydax.romcontrol.v2.prefs.MyListPreference
                android:title="Font style"
                android:key="network_traffic_text_style"
                android:defaultValue="0"
                android:entries="@array/traffic_style_entries"
                android:entryValues="@array/traffic_style_entry_values"/>
            <com.wubydax.romcontrol.v2.prefs.MySeekBarPreference
                android:title="Text size scale factor"
                android:key="network_traffic_scale"
                app:maxValue="10"
                android:defaultValue="10"/>

        </PreferenceCategory>
        <PreferenceCategory
            android:title="Network traffic colors"
            android:dependency="network_traffic_state">
            <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                android:title="Separate colors for text and arrows"
                android:key="network_traffic_global_color"
                android:defaultValue="true"
                android:summaryOn="Text and arrows can be colored separately"
                android:summaryOff="Text color will apply to arrows as well"/>
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Traffic text color"
                android:key="network_traffic_color"
                android:defaultValue="#ffffff"/>
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Traffic arrows color"
                android:key="network_traffic_arrow_color"
                android:defaultValue="#ffffff"
                android:dependency="network_traffic_global_color"/>
        </PreferenceCategory>
    </PreferenceScreen>


And this on arrays.xml :
HTML Code:
    <string-array name="traffic_state_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
    </string-array>
    <string-array name="traffic_state_items">
        <item>Disable view</item>
        <item>Upload only</item>
        <item>Download only</item>
        <item>Upload and Download</item>
    </string-array>
    <string-array name="arrow_position_values">
        <item>0</item>
        <item>1</item>
    </string-array>
    <string-array name="arrow_position_entries">
        <item>To end of view</item>
        <item>To start of view</item>
    </string-array>
    <string-array name="traffic_style_entries">
        <item>Normal</item>
        <item>Bold</item>
        <item>Italic</item>
        <item>Bold italic</item>
    </string-array>
    <string-array name="traffic_style_entry_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
    </string-array>



Attached Files
File Type: zip NetworkTraffic.zip - [Click for QR Code] (9.9 KB, 858 views)
The Following 5 Users Say Thank You to AbrahamGC For This Useful Post: [ View ] Gift AbrahamGC Ad-Free
19th April 2018, 07:00 PM |#43  
Senior Member
Flag /home
Thanks Meter: 2,030
 
Donate to Me
More
ENABLE LANDSCAPE MODE ON TW (SMALI WAY)

I know we can do it modding cscfeatures, here is the way to do it via smali.
Tested on Note 8 running 8.0

1- Decompile TouchWizHome_2017.apk
2- Open smali/com/android/launcher3/LauncherFeature.smali
3- Find .method public static supportRotationSetting()Z
4- And replace it;

Code:
From:
.method public static supportRotationSetting()Z
    .locals 1

    sget-boolean v0, Lcom/android/launcher3/LauncherFeature;->sSupportRotationSetting:Z

    return v0
.end method
Code:
To:
.method public static supportRotationSetting()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method


Then on TW settings u will see this :



Hope it helps
The Following 8 Users Say Thank You to AbrahamGC For This Useful Post: [ View ] Gift AbrahamGC Ad-Free
20th April 2018, 05:41 PM |#44  
Senior Member
Flag /home
Thanks Meter: 2,030
 
Donate to Me
More
DOUBLE TAP TO SLEEP ON STATUSBAR (ROMCONTROL OPTIONAL)

This feature is on our ROMs but disabled by default.... tested on Oreo but i used on Nougat too.

1- Decompile SystemUI
2- Open smali/com/android/systemui/KnoxStateMonitor$CustomSdkMonitor.
3- Find .method public isStatusBarDoubleTapEnabled()Z

Replace from:
Code:
.method public isStatusBarDoubleTapEnabled()Z
    .locals 1

    iget-boolean v0, p0, Lcom/android/systemui/KnoxStateMonitor$CustomSdkMonitor;->mKnoxCustomDoubleTapState:Z

    return v0
.end method
To:
Code:
.method public isStatusBarDoubleTapEnabled()Z
    .locals 2

    const-string v0, "double_tap_statusbar"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v1

    return v1
.end method
The mod now is by default true (enabled), so RC is optional, here is the code :

Code:
        <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                android:title="Double tap to sleep"
                android:key="double_tap_statusbar"
                android:defaultValue="true" />
Now recompile and enjoy
The Following 13 Users Say Thank You to AbrahamGC For This Useful Post: [ View ] Gift AbrahamGC Ad-Free
21st April 2018, 02:25 PM |#45  
Senior Member
Flag /home
Thanks Meter: 2,030
 
Donate to Me
More
ENABLE LOCKSCREEN ROTATION (ROMCONTROL OPTIONAL)

This mod it's Being the same from MM, now just changed the location...

1- Decompile/baksmali SystemUI.apk
2- Open smali/com/android/systemui/Rune.smali
3- Find .method public static shouldEnableKeyguardScreenRotation(Landroid/content/ContextZ

Replace from:
Code:
.method public static shouldEnableKeyguardScreenRotation(Landroid/content/Context;)Z
    .locals 2

    const-string/jumbo v0, "lockscreen.rot_override"

    const/4 v1, 0x0

    invoke-static {v0, v1}, Landroid/os/SystemProperties;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f05000b

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getBoolean(I)Z

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method
To:
Code:
.method public static shouldEnableKeyguardScreenRotation(Landroid/content/Context;)Z
    .locals 2

    const-string v0, "agc_keyguard_rotation"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v0

    return v0
.end method
The mod is enabled by default, so RC is optional:

HTML Code:
    <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
        android:title="Lockscreen rotation"
        android:defaultValue="true"
        android:key="agc_keyguard_rotation"
        app:packageNameToKill="com.android.systemui"
        app:isSilent="true" />
Recompile and done
The Following 3 Users Say Thank You to AbrahamGC For This Useful Post: [ View ] Gift AbrahamGC Ad-Free
21st April 2018, 11:42 PM |#46  
a.raul's Avatar
Senior Member
Flag Mordor
Thanks Meter: 469
 
More
TOGGLE COLORINVERSION

This mod tries to change the piece of "monster" that we have in the switches and have access to the activation and deactivation, at least we think, no? @AbrahamGC

Download the zip attached to the post

We decompilate SystemUI.apk

Go to the drawable folder and copy/paste the *.xml attachments in the zip

Go to the drawable-xxxhdpi folder and copy/paste the *.png from the zip

Go to res/values/strings.xml and look for the line, and add ColorInversion

Code:
<string name="quick_settings_tiles_default">Wifi,....ColorInversion</string>
We search in public.xml, in my case it's

Code:
<public type="drawable" name="ic_invert_colors_disable_animation" id="0x7f0801f4" />
<public type="drawable" name="ic_invert_colors_enable_animation" id="0x7f0801f6" />

Go to ColorInversionTile.smali and look for the ids of public.xml (0x7f0801f6 and 0x7f0801f4), change id in red for the blue line...

Code:
const v1, 0x7f0801f6 ## <public type="drawable" name="ic_invert_colors_enable_animation" id="0x7f0801f6" />

    const v2, 0x7f0801f3 ## cambiar por  <public type="drawable" name="ic_invert_colors_enable_animation" id="0x7f0801f6" />

    invoke-direct {v0, p0, v1, v2}, Lcom/android/systemui/qs/tileimpl/QSTileImpl$AnimationIcon;-><init>(Lcom/android/systemui/qs/tileimpl/QSTileImpl;II)V

    iput-object v0, p0, Lcom/android/systemui/qs/tiles/ColorInversionTile;->mEnable:Lcom/android/systemui/qs/tileimpl/QSTileImpl$AnimationIcon;

    new-instance v0, Lcom/android/systemui/qs/tileimpl/QSTileImpl$AnimationIcon;

    const v1, 0x7f0801f4 ## <public type="drawable" name="ic_invert_colors_disable_animation" id="0x7f0801f4" />

    const v2, 0x7f0801f5 ## cambiar por <public type="drawable" name="ic_invert_colors_disable_animation" id="0x7f0801f4" />
Regards and...
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20180422.jpg
Views:	1150
Size:	52.1 KB
ID:	4482684   Click image for larger version

Name:	Screenshot_20180422-003509.jpg
Views:	1150
Size:	52.7 KB
ID:	4482685  
Attached Files
File Type: zip ColoInversion.zip - [Click for QR Code] (6.4 KB, 242 views)
The Following 3 Users Say Thank You to a.raul For This Useful Post: [ View ] Gift a.raul Ad-Free
23rd April 2018, 12:09 AM |#47  
Senior Member
Flag /home
Thanks Meter: 2,030
 
Donate to Me
More
COLOR SIGNAL CLUSTER WITHOUT LOSS DARK TINT

THIS GUIDE IT'S A LITTLE ADVANCED SO CHECK IT TWICE BEFORE ASK SOMETHING

Coloring things and still having dark tint it's better than use dynamic statusbar (I think that at least). I learned it from the masters wuby and dax and now in Oreo it's easiest with DarkIconDispatcher interface, so let's see how to color WiFi, WiFi arrows (separated), signal, mobile data type, mobile data arrows, roaming and airplane :

For this mod we need to have GearUtils and GearContentObserver (it's on OP) on our SystemUI.

The mod also have global/individual color option.

1- Decompile/baksmali SystemUI.apk
2- Open smali/com/android/systemui/statusbar/SignalClusterView.smali
3- Add this line under # interfaces :
.implements Lcom/android/wubydax/GearContentObserver$OnContentChangedListener;

4- Under # instance fields add all these fields :

.field private mAirplaneColor:I

.field private mAirplaneTint:I

.field private mDarkModeIconColorSingleTone:I

.field private mLightModeIconColorSingleTone:I

.field private mMobileArrowsColor:I

.field private mMobileArrowsTint:I

.field private mMobileTypeColor:I

.field private mMobileTypeTint:I

.field private mRoamingColor:I

.field private mRoamingTint:I

.field private mSignalColor:I

.field private mSignalTint:I

.field private mWifiArrowsColor:I

.field private mWifiArrowsTint:I

.field private mWifiColor:I

.field private mWifiTint:I

5- Search .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
Before return-void add this code:
Code:
	const-string v0, "dark_mode_icon_color_single_tone"

    const-string v1, "color"

    invoke-static {v0, v1}, Lcom/android/wubydax/GearUtils;->getIdentifier(Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/content/Context;->getColor(I)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mDarkModeIconColorSingleTone:I

    const-string v0, "light_mode_icon_color_single_tone"

    const-string v1, "color"

    invoke-static {v0, v1}, Lcom/android/wubydax/GearUtils;->getIdentifier(Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/content/Context;->getColor(I)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mLightModeIconColorSingleTone:I

    invoke-virtual {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->registerObserver()V

    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

6- Add these methods before # virtual methods :
Code:
.method private applyCustomColors()V
    .locals 6

    .prologue
    .line 66
    sget-object v0, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

    .line 67
    .local v0, "mode":Landroid/graphics/PorterDuff$Mode;
    iget-object v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifi:Landroid/widget/ImageView;

    iget v2, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiTint:I

    invoke-virtual {v1, v2, v0}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    .line 68
    iget-object v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiActivity:Landroid/widget/ImageView;

    iget v2, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiArrowsTint:I

    invoke-virtual {v1, v2, v0}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    .line 69
    iget-object v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mAirplane:Landroid/widget/ImageView;

    iget v2, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mAirplaneTint:I

    invoke-virtual {v1, v2, v0}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

   	iget-object v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mPhoneStates:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;

    invoke-static {v0}, Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;->-get0(Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;)Landroid/widget/ImageView;

    move-result-object v2

    sget-object v5, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

    iget v3, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mSignalTint:I

    invoke-virtual {v2, v3, v5}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    invoke-static {v0}, Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;->-get4(Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;)Landroid/widget/ImageView;

    move-result-object v2

    iget v3, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mRoamingTint:I

    invoke-virtual {v2, v3, v5}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    invoke-static {v0}, Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;->-get5(Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;)Landroid/widget/ImageView;

    move-result-object v2

    iget v3, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileTypeTint:I

    invoke-virtual {v2, v3, v5}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    invoke-static {v0}, Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;->-get1(Lcom/android/systemui/statusbar/SignalClusterView$PhoneState;)Landroid/widget/ImageView;

    move-result-object v2

    iget v3, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileArrowsTint:I

    invoke-virtual {v2, v3, v5}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method private getTintInternal(FII)I
    .registers 7

    new-instance v0, Landroid/animation/ArgbEvaluator;

    invoke-direct {v0}, Landroid/animation/ArgbEvaluator;-><init>()V

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    iget v2, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mDarkModeIconColorSingleTone:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, p1, v1, v2}, Landroid/animation/ArgbEvaluator;->evaluate(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    return v0
.end method

.method private setUpColors()V
    .locals 12

    const/4 v11, -0x1

    const-string v9, "agc_sb_use_separated_color"

    const/4 v10, 0x0

    invoke-static {v9, v10}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v1

    packed-switch v1, :pswitch_data_0

    const-string v9, "agc_sb_global_color"

    invoke-static {v9, v11}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v2

    move v8, v2

    move v7, v2

    move v0, v2

    move v6, v2

    move v4, v2

    move v3, v2

    move v5, v2

    :goto_0
    iput v8, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiColor:I

    iput v8, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiTint:I

    iput v7, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiArrowsColor:I

    iput v7, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiArrowsTint:I

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mAirplaneColor:I

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mAirplaneTint:I

    iput v6, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mSignalColor:I

    iput v6, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mSignalTint:I

    iput v4, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileTypeColor:I

    iput v4, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileTypeTint:I

    iput v3, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileArrowsColor:I

    iput v3, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileArrowsTint:I

    iput v5, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mRoamingColor:I

    iput v5, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mRoamingTint:I

    return-void

    :pswitch_0
    const-string v9, "agc_sb_wifi_color"

    invoke-static {v9, v11}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v8

    const-string v9, "agc_sb_wifi_arrows_color"

    invoke-static {v9, v11}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v7

    const-string v9, "agc_sb_airplane_color"

    invoke-static {v9, v11}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v0

    const-string v9, "agc_sb_signal_color"

    invoke-static {v9, v11}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v6

    const-string v9, "agc_sb_mbtype_color"

    invoke-static {v9, v11}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v4

    const-string v9, "agc_sb_mobile_arrows_color"

    invoke-static {v9, v11}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v3

    const-string v9, "agc_sb_roaming_color"

    invoke-static {v9, v11}, Lcom/android/wubydax/GearUtils;->getDbIntForKey(Ljava/lang/String;I)I

    move-result v5

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

7- Replace whole method onDarkChanged with this :
Code:
.method public onDarkChanged(Landroid/graphics/Rect;FI)V
    .registers 6

    iget v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiColor:I

    iget v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mLightModeIconColorSingleTone:I

    invoke-direct {p0, p2, v0, v1}, Lcom/android/systemui/statusbar/SignalClusterView;->getTintInternal(FII)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiTint:I

    .line 79
    iget v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiArrowsColor:I

    iget v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mLightModeIconColorSingleTone:I

    invoke-direct {p0, p2, v0, v1}, Lcom/android/systemui/statusbar/SignalClusterView;->getTintInternal(FII)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mWifiArrowsTint:I

    .line 80
    iget v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mAirplaneColor:I

    iget v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mLightModeIconColorSingleTone:I

    invoke-direct {p0, p2, v0, v1}, Lcom/android/systemui/statusbar/SignalClusterView;->getTintInternal(FII)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mAirplaneTint:I

    .line 81
    iget v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mSignalColor:I

    iget v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mLightModeIconColorSingleTone:I

    invoke-direct {p0, p2, v0, v1}, Lcom/android/systemui/statusbar/SignalClusterView;->getTintInternal(FII)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mSignalTint:I

    .line 82
    iget v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileTypeColor:I

    iget v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mLightModeIconColorSingleTone:I

    invoke-direct {p0, p2, v0, v1}, Lcom/android/systemui/statusbar/SignalClusterView;->getTintInternal(FII)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileTypeTint:I

    .line 83
    iget v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileArrowsColor:I

    iget v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mLightModeIconColorSingleTone:I

    invoke-direct {p0, p2, v0, v1}, Lcom/android/systemui/statusbar/SignalClusterView;->getTintInternal(FII)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mMobileArrowsTint:I

    .line 84
    iget v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mRoamingColor:I

    iget v1, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mLightModeIconColorSingleTone:I

    invoke-direct {p0, p2, v0, v1}, Lcom/android/systemui/statusbar/SignalClusterView;->getTintInternal(FII)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/statusbar/SignalClusterView;->mRoamingTint:I

    .line 85
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    .line 86
    return-void
.end method

8- For finish this mod, add these methods to the end of the smali:
Code:
.method public onContentChanged(Ljava/lang/String;)V
    .registers 3
    .param p1, "key"    # Ljava/lang/String;

    .prologue
    .line 90
    const-string v0, "agc_sb_use_separated_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_f

    .line 91
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 92
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    .line 118
    :cond_e
    :goto_e
    return-void

    .line 93
    :cond_f
    const-string v0, "agc_sb_wifi_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1e

    .line 94
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 95
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    goto :goto_e

    .line 96
    :cond_1e
    const-string v0, "agc_sb_wifi_arrows_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2d

    .line 97
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 98
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    goto :goto_e

    .line 99
    :cond_2d
    const-string v0, "agc_sb_global_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3c

    .line 100
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 101
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    goto :goto_e

    .line 102
    :cond_3c
    const-string v0, "agc_sb_signal_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4b

    .line 103
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 104
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    goto :goto_e

    .line 105
    :cond_4b
    const-string v0, "agc_sb_mbtype_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5a

    .line 106
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 107
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    goto :goto_e

    .line 108
    :cond_5a
    const-string v0, "agc_sb_mobile_arrows_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_69

    .line 109
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 110
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    goto :goto_e

    .line 111
    :cond_69
    const-string v0, "agc_sb_roaming_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_78

    .line 112
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 113
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    goto :goto_e

    .line 114
    :cond_78
    const-string v0, "agc_sb_airplane_color"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_e

    .line 115
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->setUpColors()V

    .line 116
    invoke-direct {p0}, Lcom/android/systemui/statusbar/SignalClusterView;->applyCustomColors()V

    goto :goto_e
.end method

.method registerObserver()V
    .registers 8

    .prologue
    .line 121
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 122
    .local v3, "keysList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/lang/String;>;"
    const-string v4, "agc_sb_use_separated_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 123
    const-string v4, "agc_sb_wifi_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 124
    const-string v4, "agc_sb_wifi_arrows_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 125
    const-string v4, "agc_sb_global_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 126
    const-string v4, "agc_sb_airplane_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 127
    const-string v4, "agc_sb_signal_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 128
    const-string v4, "agc_sb_mbtype_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 129
    const-string v4, "agc_sb_mobile_arrows_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 130
    const-string v4, "agc_sb_roaming_color"

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 131
    new-instance v1, Lcom/android/wubydax/GearContentObserver;

    new-instance v4, Landroid/os/Handler;

    invoke-direct {v4}, Landroid/os/Handler;-><init>()V

    invoke-direct {v1, v4, p0}, Lcom/android/wubydax/GearContentObserver;-><init>(Landroid/os/Handler;Lcom/android/wubydax/GearContentObserver$OnContentChangedListener;)V

    .line 132
    .local v1, "gearContentObserver":Lcom/android/wubydax/GearContentObserver;
    invoke-static {}, Lcom/android/systemui/SystemUIApplication;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 133
    .local v0, "contentResolver":Landroid/content/ContentResolver;
    invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_48
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_5d

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 134
    .local v2, "key":Ljava/lang/String;
    invoke-static {v2}, Landroid/provider/Settings$System;->getUriFor(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v5

    const/4 v6, 0x0

    invoke-virtual {v0, v5, v6, v1}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V

    goto :goto_48

    .line 136
    .end local v2    # "key":Ljava/lang/String;
    :cond_5d
    return-void
.end method


Done with SystemUI, now copy this preferences to RomControl

Code:
<com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                android:title="Global/Separated color"
                android:key="agc_sb_use_separated_color"
                android:defaultValue="true" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Global color"
                android:defaultValue="-1"
                app:reverseDependency="agc_sb_use_separated_color"
                hexValue="true"
                alphaSlider="false"
                android:key="agc_sb_global_color" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="WiFi"
                android:defaultValue="-1"
                android:dependency="agc_sb_use_separated_color"
                hexValue="true"
                alphaSlider="false"
                android:key="agc_sb_wifi_color" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="WiFi arrows"
                android:defaultValue="-1"
                android:dependency="agc_sb_use_separated_color"
                hexValue="true"
                alphaSlider="false"
                android:key="agc_sb_wifi_arrows_color" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Mobile data"
                android:defaultValue="-1"
                android:dependency="agc_sb_use_separated_color"
                hexValue="true"
                alphaSlider="false"
                android:key="agc_sb_mbtype_color" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Mobile data arrows"
                android:defaultValue="-1"
                android:dependency="agc_sb_use_separated_color"
                hexValue="true"
                alphaSlider="false"
                android:key="agc_sb_mobile_arrows_color" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Roaming"
                android:defaultValue="-1"
                android:dependency="agc_sb_use_separated_color"
                hexValue="true"
                alphaSlider="false"
                android:key="agc_sb_roaming_color" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Signal"
                android:defaultValue="-1"
                android:dependency="agc_sb_use_separated_color"
                hexValue="true"
                alphaSlider="false"
                android:key="agc_sb_signal_color" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Airplane"
                android:defaultValue="-1"
                android:dependency="agc_sb_use_separated_color"
                hexValue="true"
                alphaSlider="false"
                android:key="agc_sb_airplane_color" />



The Following 6 Users Say Thank You to AbrahamGC For This Useful Post: [ View ] Gift AbrahamGC Ad-Free
25th April 2018, 01:50 PM |#48  
okashi1993's Avatar
Senior Member
Flag hanoi
Thanks Meter: 76
 
More
thanks for guild but i have problem , what is rom control and i read more topic (
28th April 2018, 07:30 AM |#49  
Albe96's Avatar
Senior Member
Flag /home/albe96
Thanks Meter: 4,088
 
Donate to Me
More
SystemUI Compilation Error Fix!


Some of you may got SystemUI error compilation error on Oreo SystemUI.Like I've got while I was modding a SystemUI from S9 Ports.

This is the error-->

Recompiling "SystemUI.apk" With Original Signature, using original "AndroidManifest.xml"
in work area "_WorkArea1", using "apktool_2.3.2.jar"

With Tickle My Android 15.3.0.1
(tinyurl.com\ticklemyandroid)

----------------
Installed Framework File(s):

framework-res.apk [1.apk]

----------------
I: Using Apktool 2.3.2
I: Smaling smali folder into classes.dex...
I: Smaling smali_classes2 folder into classes2.dex...
I: Building resources...
W: ERROR: 9-patch image C:\Users\PRATIK\Downloads\TickleMyAndroid\_WorkAre a1\_working\SystemUI.apk\res\drawable-xxxhdpi\pip_dismiss_scrim.9.png malformed.
W: No marked region found along edge.
W: Found along left edge.
W: ERROR: Failure processing PNG image C:\Users\PRATIK\Downloads\TickleMyAndroid\_WorkAre a1\_working\SystemUI.apk\res\drawable-xxxhdpi\pip_dismiss_scrim.9.png
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\PRATIK\AppData\Local\Temp\brut_util_Jar_2 63024460294097589.tmp, p, --forced-package-id, 127, --min-sdk-version, 26, --target-sdk-version, 26, --version-code, 20171030, --version-name, 8.0.0, --no-version-vectors, -F, C:\Users\PRATIK\AppData\Local\Temp\APKTOOL74357570 61244629601.tmp, -0, arsc, -0, webp, -0, qmg, -0, arsc, -I, C:\Users\PRATIK\Downloads\TickleMyAndroid\_WorkAre a1\Frameworks\1.apk, -S, C:\Users\PRATIK\Downloads\TickleMyAndroid\_WorkAre a1\_working\SystemUI.apk\res, -M, C:\Users\PRATIK\Downloads\TickleMyAndroid\_WorkAre a1\_working\SystemUI.apk\AndroidManifest.xml]

----------------
Recompile Not Successful!


How To Fix-->
You Can Simply Fix By Replacing The PNG Attached.Just Replace It In Directory.And You're Good To Go!
Attached Files
File Type: zip fix.zip - [Click for QR Code] (934 Bytes, 588 views)
The Following 6 Users Say Thank You to Albe96 For This Useful Post: [ View ] Gift Albe96 Ad-Free
29th April 2018, 01:26 PM |#50  
Dovanchuc7521's Avatar
Senior Member
Flag Hung Yen
Thanks Meter: 90
 
Donate to Me
More
Center clock

Decomp SystemUI
Goto: res/layout/statusbar.xml
Edit from
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <FrameLayout android:id="@id/background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
    <ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
    <LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
        <com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
        <com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
            <TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/knoxCustomStatusBarText" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:includeFontPadding="false" />
            <include layout="@layout/system_icons" />
            <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />
        </com.android.keyguard.AlphaOptimizedLinearLayout>
    </LinearLayout>
    <ViewStub android:id="@id/emergency_cryptkeeper_text" android:layout="@layout/emergency_cryptkeeper_text" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
to

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <FrameLayout android:id="@id/background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
    <ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
    <LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
        <com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent"/>
        <com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
            <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="none" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
            <com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
                <Space android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
            <TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/knoxCustomStatusBarText" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:includeFontPadding="false" />
            <include layout="@layout/system_icons" />
        </com.android.keyguard.AlphaOptimizedLinearLayout>
    </LinearLayout>
    <ViewStub android:id="@id/emergency_cryptkeeper_text" android:layout="@layout/emergency_cryptkeeper_text" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
In keyguard_status_bar.xml search:
Code:
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_height">
Change to:
Code:
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="0.0dip" android:layout_height="0.0dip">
Recomp SystemUI
The Following 6 Users Say Thank You to Dovanchuc7521 For This Useful Post: [ View ] Gift Dovanchuc7521 Ad-Free
1st May 2018, 06:16 AM |#51  
Senior Member
Flag Mexico city
Thanks Meter: 294
 
Donate to Me
More
well followed this steps from someone in my spanish discussion rom and gave it a try at the end i got OEM unlock without waiting 7 days and thought it would be nice to share
1 download lastest fully stock firmware and flash through Odin
2 change date and time 8 days before
3check for ota and wait until it says that you're on latest version , check if ota date is set to the date you set(without rebooting)
4 reboot and check for ota again (it will take from 1 to 2 mins) go back and check if date changed
5 reboot again and enable developer option, oem unlock will be there(you may need to wait up to 1 hr for it to show)
6 flash twrp as you should normally do and install the atached zip without rebooting to system until you flash it
7 enjoy oreo BL

Thanks to @BlackMesa123 for his rmm state bypass zip
Original zip post : https://forum.xda-developers.com/sam...t3739225/page3
The Following 22 Users Say Thank You to Josevega For This Useful Post: [ View ] Gift Josevega Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes