can someone tell me how to define the color of the background in the colors.xml of the systemUI package, instead of the romcontrol or customsettings? I have neither romcontrol or custom settings installed. Or where can i get the custom settings app? I'm using a rooted stock rom for my S7 Edge.
i enabled the System UI Tuner on the S7Edge software. the demo and status bar switches are working well but i get a fc if i hit "add tile" at quick settings. May be because Samsung has it own structur for the tiles and it is not finished for them. Then i'll just delete that option. Anyway here is the log:
In the software of S7Edge and Note 5 the tuner is already implemented. I think samsung just disabled the enable option. The option could be in the status_bar_extented_header because there is the Tuner settings icon wich should appear if the tuner is enabled. But samsung uses the tw_status_bar_extented_header, i tried to call the status_bar_extented_header but fc.
What i did is put this code where you want in secsettings
Hi
I was wondering if you knew how to add VoLTE
I've seen the strings for it
Ive even gotten it on Dr ketan for 910g Rom M6 on my 910t when I was trying add a few for my personal use
Im thinking there's some more editing that needs to be done to other files?
If you or anyone can help that would be great
Thanks in advance?
---------- Post added at 05:13 AM ---------- Previous post was at 04:35 AM ----------
Hi
I was wondering if you knew how to add VoLTE
I've seen the strings for it
Ive even gotten it on Dr ketan for 910g Rom M6 on my 910t when I was trying add a few for my personal use
Im thinking there's some more editing that needs to be done to other files?
If you or anyone can help that would be great
Thanks in advance
So i made a little emoji mod for samsung marshmallow roms for the one that hate sammy emojis . are the ios 10 emojis no black boxes and all are working. feel free to use it in your rom etc. are made for samsung keyboard
So i made a little emoji mod for samsung marshmallow roms for the one that hate sammy emojis . are the ios 10 emojis no black boxes and all are working. feel free to use it in your rom etc. are made for samsung keyboard
because sammy use old unicode xD for get all ios emojis we need to find a way out for update the unicode in sammy kb like for google kb. but for no the uggly sammy one are no more here
Explanation:
In your smali you can see the view doesn't use the object mAnimateIcon as icon. Instead it has ImageView object called mIcon. I can't see your resporces, But I guess they removed the use of animated icon and they use regular image view instead. So we set tint list and tint mode like we would for any image view.
First you will need to add <item type="id" name="network_traffic">false</item> to your ids.xml, you can call the id whatever you want just remember it
Second add the newly created id to res/layout/status_bar.xml, I have highlighted it here in blue, note it matches the id created <com.android.wubydax.NetworkTraffic android:id="@id/network_traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" />
Third we will add this id in StatusbarIconController in the method noted below - addition noted in blue, I have included some code here as an example from my file - I also increased my locals to use the new way of adding ids without decompiling and recompiling systemUI. Please also add field mNetworkTraffic:Lcom/android/wubydax/NetworkTraffic;:
Fourth in the same smali in .method private applyIconTint()V add the following (I added it just under he battery meter view section - but i have tried adding it other places and it works.
Fifth The rest of he work will be in the NetworkTraffic smali that was added from @daxgirl mod:
Add the following fields:
.field private mLightModeIconColorSingleTone:I
.field private mDarkModeIconColorSingleTone:I
.field private mDownloadTint:I
.field private mUploadTint:I
.field private mNetworkTrafficTint:I
.field private mNetworkTrafficArrowTint:I
sixth Same smali in .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSetV add the following, I included additional code to show where added:
Code:
.
.
const-string v3, "dimen"
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v4
invoke-virtual {v1, v2, v3, v4}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result v2
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
move-result v2
iput v2, p0, Lcom/android/wubydax/NetworkTraffic;->txtSizeMulti:I
.line 231
[COLOR="Blue"] const v2, 0x7f0a00ad ##make sure this agrees to your id for "dark_mode_icon_color_single_tone"
invoke-virtual {p1, v2}, Landroid/content/Context;->getColor(I)I
move-result v2
iput v2, p0, Lcom/android/wubydax/NetworkTraffic;->mDarkModeIconColorSingleTone:I
const v2, 0x7f0a00b1 ##make sure this agrees to your id for "light_mode_icon_color_single_tone"
invoke-virtual {p1, v2}, Landroid/content/Context;->getColor(I)I
move-result v2
iput v2, p0, Lcom/android/wubydax/NetworkTraffic;->mLightModeIconColorSingleTone:I[/COLOR]
seventh Add the following private method which is really a copy past from StatusbarIconController smali - however PLEASE ENSURE to change the float in the bracket to (FII) since the evaluation method in the NetworkTraffic.smali is written slighly different, also make sure path is updated in appropriate spot to Lcom/android/wubydax/NetworkTraffic
eight in .method private updateSettings()V do the following, again I have included some code to show what I did. Since you are using the same NetworkTraffic smali it will be easy to find:
Code:
if-eqz v9, :cond_95
.line 289
[COLOR="Red"]#iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mNetworkTrafficColor:I #I have found that it works without this change[/COLOR]
[COLOR="Blue"]iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mNetworkTrafficTint:I[/COLOR]
.
.
.local v8, "uploadColored":Landroid/text/SpannableString;
[COLOR="Red"]# iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mUploadColor:I[/COLOR]
[COLOR="Blue"] iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mUploadTint:I[/COLOR]
.
.
.local v2, "downloadColored":Landroid/text/SpannableString;
[COLOR="Red"]# iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mDownloadColor:I[/COLOR]
[COLOR="Blue"] iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mDownloadTint:I[/COLOR]
.
.
ninth in .method private updateTrafficDrawable()V do the following:
Note there is a bug on updating colors which will either require a systemUI restart of go from regular statusbar to light statusbar then after the tint animation the color updates - I am not an expert so not sure about this yet. Maybe an expert can help - @daxgirl I certainly hope you don't mind me messing up you mod! thanks in advance - please help with kinks?? Thanks. This was a lot of trial and error - of course with some understanding (a little...hahaha) of what i was doing
oh - also i had to make these access changes it would not work properly until i did, they are called in NetworkTraffic$1 smali:
You got it, my friend! Not only that you got how the mod works, you ALSO got how the darkening works from my three huge scary guides!! Cudos!!!!! Nicely done. I will make the source code available some time soon. This mod is based on open source protected class. To be compliant with license we need to publish source. I'll take care of it some time later this week maybe. Great job!!!
You got it, my friend! Not only that you got how the mod works, you ALSO got how the darkening works from my three huge scary guides!! Cudos!!!!! Nicely done. I will make the source code available some time soon. This mod is based on open source protected class. To be compliant with license we need to publish source. I'll take care of it some time later this week maybe. Great job!!!
First you will need to add <item type="id" name="network_traffic">false</item> to your ids.xml, you can call the id whatever you want just remember it
Second add the newly created id to res/layout/status_bar.xml, I have highlighted it here in blue, note it matches the id created <com.android.wubydax.NetworkTraffic android:id="@id/network_traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" />
Third we will add this id in StatusbarIconController in the method noted below - addition noted in blue, I have included some code here as an example from my file - I also increased my locals to use the new way of adding ids without decompiling and recompiling systemUI. Please also add field mNetworkTraffic:Lcom/android/wubydax/NetworkTraffic:
Fourth in the same smali in .method private applyIconTint()V add the following (I added it just under he battery meter view section - but i have tried adding it other places and it works.
Fifth The rest of he work will be in the NetworkTraffic smali that was added from @daxgirl mod:
Add the following fields:
.field private mLightModeIconColorSingleTone:I
.field private mDarkModeIconColorSingleTone:I
.field private mDownloadTint:I
.field private mUploadTint:I
.field private mNetworkTrafficTint:I
.field private mNetworkTrafficArrowTint:I
sixth Same smali in .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSetV add the following, I included additional code to show where added:
Code:
.
.
const-string v3, "dimen"
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v4
invoke-virtual {v1, v2, v3, v4}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result v2
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
move-result v2
iput v2, p0, Lcom/android/wubydax/NetworkTraffic;->txtSizeMulti:I
.line 231
[COLOR="Blue"] const v2, 0x7f0a00ad ##make sure this agrees to your id for "dark_mode_icon_color_single_tone"
invoke-virtual {p1, v2}, Landroid/content/Context;->getColor(I)I
move-result v2
iput v2, p0, Lcom/android/wubydax/NetworkTraffic;->mDarkModeIconColorSingleTone:I
const v2, 0x7f0a00b1 ##make sure this agrees to your id for "light_mode_icon_color_single_tone"
invoke-virtual {p1, v2}, Landroid/content/Context;->getColor(I)I
move-result v2
iput v2, p0, Lcom/android/wubydax/NetworkTraffic;->mLightModeIconColorSingleTone:I[/COLOR]
seventh Add the following private method which is really a copy past from StatusbarIconController smali - make sure path is updated in appropriate spot to Lcom/android/wubydax/NetworkTraffic
eight in .method private updateSettings()V do the following, again I have included some code to show what I did. Since you are using the same NetworkTraffic smali it will be easy to find:
Code:
if-eqz v9, :cond_95
.line 289
[COLOR="Red"]#iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mNetworkTrafficColor:I #I have found that it works without this change[/COLOR]
[COLOR="Blue"]iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mNetworkTrafficTint:I[/COLOR]
.
.
.local v8, "uploadColored":Landroid/text/SpannableString;
[COLOR="Red"]# iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mUploadColor:I[/COLOR]
[COLOR="Blue"] iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mUploadTint:I[/COLOR]
.
.
.local v2, "downloadColored":Landroid/text/SpannableString;
[COLOR="Red"]# iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mDownloadColor:I[/COLOR]
[COLOR="Blue"] iget v9, p0, Lcom/android/wubydax/NetworkTraffic;->mDownloadTint:I[/COLOR]
.
.
ninth in .method private updateTrafficDrawable()V do the following:
Note there is a bug on updating colors which will either require a systemUI restart of go from regular statusbar to light statusbar then after the tint animation the color updates - I am not an expert so not sure about this yet. Maybe an expert can help - @daxgirl I certainly hope you don't mind me messing up you mod! thanks in advance - please help with kinks?? Thanks. This was a lot of trial and error - of course with some understanding (a little...hahaha) of what i was doing
oh - also i had to make these access changes it would not work properly until i did, they are called in NetworkTraffic$2 smali:
Always a work in progress. Refer here for guides and links to various mods to help improve the Android experience.
Please feel free to contribute as well.
This thread requires basic knowledge of compiling and decompiling apk and jar files so they can be edited.
___________________________________________________
[Guide How-to] Remove Lockscreen Carrier
This removes the lockscreen carrier text.
[Guide How-to] USB Plug/Unplugged Disable Wake + Android L
This modification will prevent the phone from waking for both (or either) USB/Power unplugged or plugged in states.
Services.jar edits:
smali/com/android/server/power/PowerManagerService.smali:
All edits are in .method private updateIsPoweredLocked(I)V
Expand registers from 12 to 14 (your code may be different dependant on decompiling method)
Android L Edits Services.jar edits:
Add new code in BLUE Note: This edit will disable BOTH plugged and unplugged.
They are not separate edits as previous builds.
smali/com/android/server/power/PowerManagerService.smali:
[Guide How-to] Remove Safe Volume Warning
This removes the safe volume warning that pops up when you turn up the volume beyond a certain point.
This mod requires modifying framework.jar
Edit smali/android/media/AudioService.smali:
Changes are in .method private checkSafeMediaVolume(III)Z , new lines are in BLUE:
[Guide How-To] Native Call Recording KK 4.4.2
This enables call recording natively.
Simple CSC edit. system/csc/feature.xml edit
Add new section and must be inserted BEFORE
</FeatureSet>
</SamsungMobileFeature>
(** please note that feature.xml can be overwritten so this may not stick if using a third party software like Xposed)
We are editing the file GmsCore.apk. The apk is very difficult to de/recompile so we are just editing classes.dex file separately. Included is the smali/baksmali compiling tool. Just extract the classes.dex from GmsCore.apk and place it in the same folder as the extracted files from the tool and select decompile.bat.
This will create an output folder called classout. Once the edits are complete, you will select compile.bat and (if there are no errors) a newly created file new-classes.dex will be created. Rename this to classes.dex and insert it back into GmsCore.apk.
Edit classout/com/google/android/location/network/NetworkLocationService.smali .method static a(Landroid/content/ContextV, change if-nez to if-eqz as indicated in BLUE:
[Guide How-to] Bluetooth Scan Dialog Removal
This will remove the scan dialog popup when Bluetooth is enabled.
SecSettings.apk edit: smali/com/android/settings/Bluetooth/BluetoothScanDialog.smali
.method private initialize()V
At the end of the method, delete the line in RED:
[Guide How-to] Maximum StatusBar Brightness 4.4.2
I noticed that Samsung always make the statusbar notification areas a bit dim.
EXTRA - Also look at the link HERE
This requires decompiling SystemUI.apk. SystemUI/res/values/dimens.xml edit
Code:
Change these three lines
New values are in BLUE
<item type="dimen" name="status_bar_icon_drawing_alpha">[COLOR="Blue"]100.0%[/COLOR]</item>
<item type="dimen" name="system_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
<item type="dimen" name="notification_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
[Guide How-To] ENABLE CALL & MSG BLOCKING
This enables call and msg blocking natively.
Simple CSC edit. system/csc/feature.xml edit
Must be inserted BEFORE
</FeatureSet>
</SamsungMobileFeature>
(** please note that feature.xml can be overwritten so this may not stick if using a third party software like Xposed)
Credits @rompnit for this one as well. Android 5.1.1 guide is --> HERE __________________________________________________
[Guide How-To] CHANGE DEFAULT ANIMATION SCALES
This smali edit will change the default animation scales for increased GUI speed.
services.jar edit:
.method private constructor <init>(Landroid/content/Context;Lcom/android/server/power/PowerManagerService;Lcom/android/server/display/DisplayManagerService;Lcom/android/server/input/InputManagerService;ZZZ)V
Search down for first occurrence of 0x3f80
Make the changes in BLUE
[Guide How-To] DISABLE HOME KEY WAKE
This will prevent the Home Key from waking the phone.
android.policy.jar smali edit:
smali/com/android/interal/policy/impl/PhoneWindowManager.smali .method private isWakeKeyWhenScreenOff(I)Z
Add the new lines in BLUE
Credits @rompnit for this one too.
__________________________________________________
[Guide How-To] REMOVE ROAMING NOTIFICATION
This will remove the ongoing Roaming notification.
SecTeleservice.apk smali edit:
smali/com/android/phone/PhoneGlobals$5.smali
Search for hideDataDisconnectedRoaming (there is only one occurrence)
Delete the TWO lines in RED
Make the modification in BLUE Important note:
You will not see the .parameter if using apktool with the -b commandline decompile option. So don't use it.
Code:
.method public setScrollingCacheEnabled(Z)V
.locals 1
[COLOR="Blue"].parameter "disabled"[/COLOR]
.prologue
.line 1999
[Guide How-To] DISABLE MSL & ENABLE PRL WRITE IN ##DATA# MENU
This guide disables the need to input MSL and also enables flashing PRL's right from the ##DATA# menu.
system/csc/sales_code.dat edit:
Our stock rom has XAS in this file and it needs to changed to SPR for the new features to work. hiddenmenu.apk smali edit: smali /com/android/hiddenmenu/hdata.smali
Search for the string "MSM7630_SURF".
There are 3 occurrences but only two of them have a "SPR" right above them.
We are changing the "SPR" to "SPX" in both occurrences:
smali/com/android/hiddenmenu/HiddenmenuBroadcastReceiver.smali
Search for the FIRST occurrence of DebugMenu_Check
Delete lines in RED, change text in BLUE
Before:
Credit goes to @digiblur for this incredible mod.
(And permission to post a guide for it )
__________________________________________________
[Guide How-To] CREATE AN XPOSED PROOF FEATURES.XML FOR CSC TWEAKS
Lets face it, xposed modules always seem to overwrite my favorite CSC tweaks.
This guide will show you how to use your own custom features.xml that won't be overwritten.
framework2.jar smali edit:
smali/com/sec/android/app/CscFeature.smali
Search for and rename feature.xml to whatever you want.
There are two locations:
Code:
.field private static final FEATURE_XML:Ljava/lang/String; = "/system/csc/[COLOR="Red"]feature.xml[/COLOR]"
const-string v10, "/system/csc/[COLOR="Red"]feature.xml[/COLOR]"
Code:
.field private static final FEATURE_XML:Ljava/lang/String; = "/system/csc/[COLOR="Blue"]ultimate.xml[/COLOR]"
const-string v10, "/system/csc/[COLOR="Blue"]ultimate.xml[/COLOR]"
Now just copy your custom feature.xml to the file (EXAMPLE) ultimate.xml and place it in system/csc and it will be safe from being overwritten by third party apps/tweakers.
[Guide How-To] ENABLE LOCKSCREEN ROTATION (with a toggle in mind)
I know there is a bools edit for this but this is the smali way so you can add a toggle.
Keyguard.apk smali edit:
smali/com/android/keyguard/KeyguardViewManager.smali
Change the text indicated in BLUE from 0x0 to 0x1
__________________________________________________ [Guide How-To] Remove Knox info in About screen
Knox is removed, now remove the info from the about screen too.
SecSettings smali edit: smali\com\android\settings\DeviceInfoSettings.smali
Find and delete the following line:
Note:
Many many hours go into developing the mods and creating guides for them.
It is also considered good form to hit the :good:Thanks button rather than saying it in open forum. (it just creates unnecessary clutter)
Always a work in progress. Refer here for guides and links to various mods to help improve the Android experience.
Please feel free to contribute as well.
This thread requires basic knowledge of compiling and decompiling apk and jar files so they can be edited.
___________________________________________________
[Guide How-to] Remove Lockscreen Carrier
This removes the lockscreen carrier text.
[Guide How-to] USB Plug/Unplugged Disable Wake + Android L
This modification will prevent the phone from waking for both (or either) USB/Power unplugged or plugged in states.
Services.jar edits:
smali/com/android/server/power/PowerManagerService.smali:
All edits are in .method private updateIsPoweredLocked(I)V
Expand registers from 12 to 14 (your code may be different dependant on decompiling method)
Android L Edits Services.jar edits:
Add new code in BLUE Note: This edit will disable BOTH plugged and unplugged.
They are not separate edits as previous builds.
smali/com/android/server/power/PowerManagerService.smali:
[Guide How-to] Remove Safe Volume Warning
This removes the safe volume warning that pops up when you turn up the volume beyond a certain point.
This mod requires modifying framework.jar
Edit smali/android/media/AudioService.smali:
Changes are in .method private checkSafeMediaVolume(III)Z , new lines are in BLUE:
[Guide How-To] Native Call Recording KK 4.4.2
This enables call recording natively.
Simple CSC edit. system/csc/feature.xml edit
Add new section and must be inserted BEFORE
</FeatureSet>
</SamsungMobileFeature>
(** please note that feature.xml can be overwritten so this may not stick if using a third party software like Xposed)
We are editing the file GmsCore.apk. The apk is very difficult to de/recompile so we are just editing classes.dex file separately. Included is the smali/baksmali compiling tool. Just extract the classes.dex from GmsCore.apk and place it in the same folder as the extracted files from the tool and select decompile.bat.
This will create an output folder called classout. Once the edits are complete, you will select compile.bat and (if there are no errors) a newly created file new-classes.dex will be created. Rename this to classes.dex and insert it back into GmsCore.apk.
Edit classout/com/google/android/location/network/NetworkLocationService.smali .method static a(Landroid/content/ContextV, change if-nez to if-eqz as indicated in BLUE:
[Guide How-to] Bluetooth Scan Dialog Removal
This will remove the scan dialog popup when Bluetooth is enabled.
SecSettings.apk edit: smali/com/android/settings/Bluetooth/BluetoothScanDialog.smali
.method private initialize()V
At the end of the method, delete the line in RED:
[Guide How-to] Maximum StatusBar Brightness 4.4.2
I noticed that Samsung always make the statusbar notification areas a bit dim.
EXTRA - Also look at the link HERE
This requires decompiling SystemUI.apk. SystemUI/res/values/dimens.xml edit
Code:
Change these three lines
New values are in BLUE
<item type="dimen" name="status_bar_icon_drawing_alpha">[COLOR="Blue"]100.0%[/COLOR]</item>
<item type="dimen" name="system_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
<item type="dimen" name="notification_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
[Guide How-To] ENABLE CALL & MSG BLOCKING
This enables call and msg blocking natively.
Simple CSC edit. system/csc/feature.xml edit
Must be inserted BEFORE
</FeatureSet>
</SamsungMobileFeature>
(** please note that feature.xml can be overwritten so this may not stick if using a third party software like Xposed)
Credits @rompnit for this one as well. Android 5.1.1 guide is --> HERE __________________________________________________
[Guide How-To] CHANGE DEFAULT ANIMATION SCALES
This smali edit will change the default animation scales for increased GUI speed.
services.jar edit:
.method private constructor <init>(Landroid/content/Context;Lcom/android/server/power/PowerManagerService;Lcom/android/server/display/DisplayManagerService;Lcom/android/server/input/InputManagerService;ZZZ)V
Search down for first occurrence of 0x3f80
Make the changes in BLUE
[Guide How-To] DISABLE HOME KEY WAKE
This will prevent the Home Key from waking the phone.
android.policy.jar smali edit:
smali/com/android/interal/policy/impl/PhoneWindowManager.smali .method private isWakeKeyWhenScreenOff(I)Z
Add the new lines in BLUE
Credits @rompnit for this one too.
__________________________________________________
[Guide How-To] REMOVE ROAMING NOTIFICATION
This will remove the ongoing Roaming notification.
SecTeleservice.apk smali edit:
smali/com/android/phone/PhoneGlobals$5.smali
Search for hideDataDisconnectedRoaming (there is only one occurrence)
Delete the TWO lines in RED
Make the modification in BLUE Important note:
You will not see the .parameter if using apktool with the -b commandline decompile option. So don't use it.
Code:
.method public setScrollingCacheEnabled(Z)V
.locals 1
[COLOR="Blue"].parameter "disabled"[/COLOR]
.prologue
.line 1999
[Guide How-To] DISABLE MSL & ENABLE PRL WRITE IN ##DATA# MENU
This guide disables the need to input MSL and also enables flashing PRL's right from the ##DATA# menu.
system/csc/sales_code.dat edit:
Our stock rom has XAS in this file and it needs to changed to SPR for the new features to work. hiddenmenu.apk smali edit: smali /com/android/hiddenmenu/hdata.smali
Search for the string "MSM7630_SURF".
There are 3 occurrences but only two of them have a "SPR" right above them.
We are changing the "SPR" to "SPX" in both occurrences:
smali/com/android/hiddenmenu/HiddenmenuBroadcastReceiver.smali
Search for the FIRST occurrence of DebugMenu_Check
Delete lines in RED, change text in BLUE
Before:
Credit goes to @digiblur for this incredible mod.
(And permission to post a guide for it )
__________________________________________________
[Guide How-To] CREATE AN XPOSED PROOF FEATURES.XML FOR CSC TWEAKS
Lets face it, xposed modules always seem to overwrite my favorite CSC tweaks.
This guide will show you how to use your own custom features.xml that won't be overwritten.
framework2.jar smali edit:
smali/com/sec/android/app/CscFeature.smali
Search for and rename feature.xml to whatever you want.
There are two locations:
Code:
.field private static final FEATURE_XML:Ljava/lang/String; = "/system/csc/[COLOR="Red"]feature.xml[/COLOR]"
const-string v10, "/system/csc/[COLOR="Red"]feature.xml[/COLOR]"
Code:
.field private static final FEATURE_XML:Ljava/lang/String; = "/system/csc/[COLOR="Blue"]ultimate.xml[/COLOR]"
const-string v10, "/system/csc/[COLOR="Blue"]ultimate.xml[/COLOR]"
Now just copy your custom feature.xml to the file (EXAMPLE) ultimate.xml and place it in system/csc and it will be safe from being overwritten by third party apps/tweakers.
[Guide How-To] ENABLE LOCKSCREEN ROTATION (with a toggle in mind)
I know there is a bools edit for this but this is the smali way so you can add a toggle.
Keyguard.apk smali edit:
smali/com/android/keyguard/KeyguardViewManager.smali
Change the text indicated in BLUE from 0x0 to 0x1
__________________________________________________ [Guide How-To] Remove Knox info in About screen
Knox is removed, now remove the info from the about screen too.
SecSettings smali edit: smali\com\android\settings\DeviceInfoSettings.smali
Find and delete the following line:
Note:
Many many hours go into developing the mods and creating guides for them.
It is also considered good form to hit the :good:Thanks button rather than saying it in open forum. (it just creates unnecessary clutter)
Remove Full Battery notification
Our code is a bit different but the method still works.
Just remove the two lines that contain notifyFullBatteryNotification in the smali.
[Guide How-To] Remove Battery Full notificationAndroid L
Figured I would keep this guide with the one above since they are for battery notifications.
6th Gear Repository Everything created and supported by the 6thGear Team [Wuby986 & Daxgirl] will be located here (as well as in the organized categories where applicable)
Just like life, programming is always a work in progress.
However, removing Quickconnect & Sfind activates the Sfind shortcut in the statusbar pulldown. The next guide show us how to hide it.
[Guide How-to] Remove/Hide Sfind shortcut from StatusBar
This will hide the Sfind shortcut that appears in the statusbar when Quickpanel & Sfind are removed from the dropdown.
SystemUI.apk layouts edit:
res/layout/status_bar_expanded_header.xml
Change every 'dip' value indicated in RED
Note:
PNG image filename is tw_custom_bg.png. Give it whatever name you like.
Notice the .png file extension is not placed in the xml code.
The image file must be placed in one of the drawable folders before you recompile (res/drawable-xxhdpi).
[Guide How-to] ADD RECENT APPS TO THE PULLDOWN STATUSBAR
This will add a recent apps shortcut to the pulldown statusbar.
Download the png image file attached at the bottom of this post and insert it into SystemUI.apk/res/drawable-xxhdpi. SystemUI.apk layout edit:
res/layout/status_bar_expanded_header.xml
Insert new line in BLUE:
NOTE:
You might also need to hide the Sfind shortcut in the pulldown statusbar using the above guide.
[Guide How-to] Enable Flashlight Toggle Android L
This will allow you to enable the native flashlight toggle.
SecSettings.apk smali edit: smali\com\android\settings\NotificationPanelMenu.smali
Add new lines in BLUE to the bottom of the following method BEFORE the return-void (check to make sure they don't already exist) and make sure code matches surrounding values:
SecSettings.apk strings.xml edit: res/values/strings.xml
Check for following string in BLUE and add if it to the bottom (before </resources> if it does not already exist:
ADD NEW ICON FROM FLASHLIGHT RESOURCES AT BOTTOM OF THIS POST! SystemUI.apk smali edit:
Delete the line in RED and add the new lines in BLUE
This is a very large method. Search the method for the surrounding code and make sure the new code matches surrounding variables. smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali
Optional smali edit if you want to use custom icons for flashlight:
Add icons from zip located at the bottom of this post, compile and decompile to get new values for the two icons highlighted in BLUE below that will be in the new res/values/public.xml. smali\com\android\systemui\qs\tiles\FlashlightTile.smali