yashsingh1/xdaforums huggingface dataset:
[Galaxy S6 General] edzamber:
How to Add Toolbox and Multiwindows Toogles back in SystemUI

A big thanks to @tamirda

His guide is

HERE

NOTE

After do that Mod, you will need to use

DbEditor

to enable the twice Toogles

Big thanks to @daxgirl and @Wuby986

* Run DbEditor

* In SECURE TAB search for

ui

* Click on sysui_qs_tile database, then on "Change Value" and add

Wifi,Bluetooth,SilentMode,RotationLock,Location,PowerSaving,AirplaneMode,DormantMode,Flashlight,UltraPowerSaving,PersonalMode,AllShareCast,Nfc,Sync,SFinder,MobileData,WiFiHotspot,VoLte,Ebook,SmartStay,TouchSensitivity,ScreenCapture,MultiWindow,Toolbox

* Valid by OK

* You can use too a csc feature but it will onky working on Full wipe Rom installation

Edit csc/feature.xml and others.xml then paste this

<CscFeature_SystemUI_ConfigDefQuickSettingItem>Wifi,Bluetooth,SilentMode,RotationLock,Location,PowerSaving,AirplaneMode,DormantMode,Flashlight,UltraPowerSaving,PersonalMode,AllShareCast,Nfc,Sync,SFinder,MobileData,WiFiHotspot,VoLte,Ebook,SmartStay,TouchSensitivity,ScreenCapture,MultiWindow,Toolbox</CscFeature_SystemUI_ConfigDefQuickSettingItem>

Big thanks to @tdunham ​
[Galaxy S6 General] Wuby986:
why using the dbEditor app? this way you cnnot enable for users...!! they will have to do it manually!

use the Toggle apk to add toggles on first boot!
[Galaxy S6 General] edzamber:
No problem with SystemUI.

Its only when you recompil SecSettings2, ressources are not recompiled correctly if you mod something in res/values Folder, then set date or time in Do not disturb make SecSettings2 FC.
[Galaxy S6 General] Repulsa:
Did not know[emoji14] Let me try that out . Thanks.
[Galaxy S6 General] S4Ltea:
anyone help me . how to change size clock on lockscreen 6.0.1 . i edit systemui keyguard but not work tks :crying:
[Galaxy S6 General] tamirda:
[MENTION=5493353]Wuby986[/MENTION] Hi mate! Any news regarding 6thgear swipe on S7 touchwiz? Because i can't get rid of the 2-3 sec lag. How did you fix it? (I have seen the video you sent to daxgirl). Thank you!
[Galaxy S6 General] Wuby986:
ops.. sorry i forgot about it!!

well what i did was actually only change the strings.. i think were like 6 or 7 this time, but nothing more.. i didn't modded anything else for removing pictures and so on.. i am not on latest base tho.. might be different, but i wouldn't bet on it
[Galaxy S6 General] tamirda:
Weird, i did the same as you. Which version are you using? I have tried both APD3 and APC8
[Galaxy S6 General] Wuby986:
i am on pc8 as well, i can send you the apk if you wanna try it as is, for the edits i need to check.. but i think i did when someone was not managing the mod with last edits, and i didn't do "full mod" as was on LL, i only wanted to see if it worked and i just edited the string, finding out that was perfect as is
[Galaxy S6 General] tamirda:
It would be great to try :) thank you
[Galaxy S6 General] Wuby986:
https://www.dropbox.com/s/7yitmck3oven6dq/TouchWizHome_2016.apk?dl=0

Inviato dal mio SM-G935F utilizzando Tapatalk
[Galaxy S6 General] kep2008:
"CLEAR" button to Power Saving Notification.

Go to SystemUI\smali\com\android\systemui\power\PowerNotificationWarnings.smali

Find

.method private showSaverNotification()V
.locals 8

.prologue
[COLOR="Red"]const/4 v7, 0x1[/COLOR]

.line 499
iget-object v4, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mContext:Landroid/content/Context;

Make

.method private showSaverNotification()V
.locals 8

.prologue
[COLOR="Blue"]const/4 v7, 0x0[/COLOR]

.line 499
iget-object v4, p0, Lcom/android/systemui/power/PowerNotificationWarnings;->mContext:Landroid/content/Context;

View attachment 3762688 View attachment 3762689
[Galaxy S6 General] asc1977:
thx but i am right if i say we didnt need if we mod followed guide in phone

HOW TO REMOVE ONGIONG PERMANENT NOTIFICATION from the op. i can remove this too
[Galaxy S6 General] ambasadii:
[MENTION=2739548]tamirda[/MENTION]

Hi mate did you try to port old lockscreen effects to S7 SystemUI nad SecSettings ?
[Galaxy S6 General] tamirda:
Yep, it is alot of work and very problematic. Honestly, i prefer the s7 effect... but when i have more time i will sit on that more.
[Galaxy S6 General] ambasadii:
i miss only abstract tiles , S7 got any lock screen effects ? i didn't know that!

S6/S6 Edge is out off lockscreen effects
[Galaxy S6 General] asc1977:
Deleted because i didnt know about that there is a app for this in playstore. I didnt want to break policy. I am very sorry about that.
[Galaxy S6 General] tamirda:
Lol i mean the stock unlock effect like aosp... it doesn't have effects selection. But we might have to port it from Good Lock app
[Galaxy S6 General] nguyentankiet:
Please additional array of rom control, mate.

I added rom control/value/array same below, right?

<string-array name="num_vis_buttons_entries">
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
</string-array>
<string-array name="num_vis_buttons_values">
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
</string-array>
[Galaxy S6 General] asc1977:
Yes i forgot
[Galaxy S6 General] nguyentankiet:
I successed, thank mate
[Galaxy S6 General] and2:
Hi mate, i have a little problem with that mod and this is just my point of view. Look, we get the main app for free from gharrington and as a little support for this nice mod you can by the 3Minit Quicklaunch settings for just 1$. If you offer the options of the 3Minit Quicklaunch settings for free no one needs to buy the app. It feels not right for me and this is no offense mate.

Keep on your good work.

Peace out!
[Galaxy S6 General] asc1977:
I thinked also exactly the same but its easy for everybody to look in smalis and byself.

For me to get better i buyed his app today. I dont know really what i should do now
[Galaxy S6 General] and2:
Yeah it's not always easy. I think i would act like putting the enable/disable option into the RC and for the other stuff linking to the play store app.

Cheers and stay well mate!
[Galaxy S6 General] Kamy:
Really? but sharing policy is well-described
[Galaxy S6 General] asc1977:
Hmm thats really sad. I think i remove rom control part and make a link to app
[Galaxy S6 General] nguyentankiet:
[emoji22] [emoji22] [emoji22] [emoji22]
[Galaxy S6 General] daxgirl:
Was the question you asked me on rom control thread related to violating gharrington's sharing policy? Were you trying to replace his app in your rom by putting settings in rom control instead!?

---------- Post added at 07:38 PM ---------- Previous post was at 07:31 PM ----------

I have to agree. Not to mention the op came to rc thread and requested a feature without explaining that it was requested to replace functions of paid application. We, of course, cannot comply with violating another developer's sharing policy.
[Galaxy S6 General] asc1977:
Yes but i didnt know about that app but now i see this app and remove soon guide. Its not good to do
[Galaxy S6 General] daxgirl:
You led us on into cooperating with violating another developer's policy. And what's worse you did it because you don't understand what it is you did. I have posted a reply to you on my thread.
[Galaxy S6 General] asc1977:
I am sorry about. I didnt know. I remove if at home and also buyed the app for a little sorry. That was not what i want to do
[Galaxy S6 General] daxgirl:
You know argument like "I'm sorry. I was stupid" don't hold up in court???

I am considering now closing the rom control thread and removing repository from git.

This is a huge violation of trust. Using our app to hack paid features of another app is beyond unacceptable and I need to weight how much I want to be responsible for what you can do with it. As for now all work on rom control v2 is on hold until [MENTION=5493353]Wuby986[/MENTION] and I talk and decide if we want to proceed and how.

The fact that you didn't know bothers me no less. You have read the op by gharington. Or at least you were supposed to. It's your responsibility to know. You have neglected it in a way that developers cannot afford.
[Galaxy S6 General] asc1977:
I dont match with your meaning. I dont know anything about app. First if i see after i build all rom control settings. It cost me a day to do. If i have the app that are only seconds. So i deleted all immediately i know that a app exist.

I buyed now app and use it. I do all only because someone make a request to switch quicklaunch on and of so i looked into smali and see a lot of other things. I builded all for romcontrol. Now i delete it also from my romcontrol.

If you know nothing about a app with policys you are not can do something wrong. After i nnow i deleted immediately. I have done all right.

Yes and the rom control can do a lot. But that is no reason to stop thread and development. That people who want to make to break policys can do it also without your app. I see my misstake and delete it. I dont know about app before and the policy. I think so because i dont know i didnt know that i do something wrong
[Galaxy S6 General] asc1977:
[MENTION=4619873]gharrington[/MENTION]

Hi mate

I am sorry about to break your policy you see some posts back. I didnt know that there is a app for your quicklaunch feature. I only followed a request from a user to switch quicklaunch on and of in romcontrol app. So i have done and saw much more features i can add. After finishing i see and read that there is a app for that and removed now my guide. Its not my way to do that. I didnt want to break the policy. I dont take further informations about that feature before i did. So please forgive me. For a small sorry k buyed your app to support you.

Again:

I dont know about your app before i did my guide with all settings you have in your app. Sorry sorry sorry
[Galaxy S6 General] Wuby986:
first of all using apktool is HACK.. so you are doing something not legal. that' s it.. now that is worldwide accepted as "modding" on samsung apps, and samsung doesn't care as well as other oem, let' s say it's fine.. but anyone other might file for law..

so you 'd better watch out what you do before you do.. will save you time and troubles.. to other as well seen this case..

pay more attention.. is not first time you work "on the edge" ..
[Galaxy S6 General] Er. Aditya:
a little carelessness might cause xda tonight a big loss , dev's get hurt when they do everything from 1st word telling everyone its an open source and still users dont care only i mean only if you have read his op...could have saved alot of trouble and time ..
[Galaxy S6 General] ambasadii:
I see the same sh**it is back like others devs thread,you know what I mean...all I do is hacking, i feel well with this!
[Galaxy S6 General] Wuby986:
Did you had chance to try? Works as supposed for you?

Inviato dal mio SM-G935F utilizzando Tapatalk
[Galaxy S6 General] nyfl2004:
Using the latest release on May 7. I have not not tried the mod in question to confirm working or not.
[Galaxy S6 General] tamirda:
Not yet, only tomorrow when i am back from the army... will update you ;)
[Galaxy S6 General] bunnys7679:
Hi guys

Is it possible to toggle icon color change as it can be done in the background?

If so, there is a guide for it?

Thank you in advance
[Galaxy S6 General] kin201303:
hi:nyfl2004

you can set date and time for Do not disturb Mod working

please you try

edzamber said

Note too that there is no device_header.xml in MM as in your original guide...

Anyway if you find the way it will be Awesome

For SecSettings2, i use Apktool v2.1.1 [MENTION=3924617]iBotPeaches[/MENTION] and i succes to add Device info (mod in SecSettings2/res/values/strings.xml) and no FC at all. The only thing is that set date and time for Do not disturb Mod doesn't working anymore.
[Galaxy S6 General] asc1977:
Anyone know the IDs for the text

1. QuickConnect

2. Tap here to connect devices

Thx
[Galaxy S6 General] bunnys7679:
This is in SystemUI-res-values-styles.xml

<style name="TextAppearance.QS.BottomButton" parent="@style/TextAppearance.QS">

<item name="android:textSize">@dimen/qs_bottom_area_text_size</item>

<item name="android:textColor"Here</item>

<item name="android:fontFamily">sec-roboto-light</item>

</style>

<public type="style" name="TextAppearance.QS.BottomButton" id="0x7f100035" />
[Galaxy S6 General] asc1977:
[Guide] How to color Data Usage text in Expanded view

Enable Data Usage view with a CSC feature in others.xml or features.xml

<CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>TRUE</CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>

SystemUI smali edits:

smali\com\android\systemui\statusbar\phone\Notific ationPanelView.smali

Add new or changed text in BLUE.

Add new line to #instance fields.

.field private mConflictingQsExpansionGesture:Z

[COLOR="blue"].field private mDataUsageColor:I[/COLOR]

.field private mDataUsageView:Lcom/android/systemui/statusbar/phone/DataUsageView;

.field private mDataUsageViewHeight:I

Add this right before the return-void at the end of this method.

Match & replace the public value shown with yours!

.method protected onFinishInflate()V
.
.
.
.
const v1, 0x7f0e00c3 [COLOR="Red"]#<public type="id" name="data_usage_view" id="0x7f0e00c3" />[/COLOR]

invoke-virtual {p0, v1}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Lcom/android/systemui/statusbar/phone/DataUsageView;

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->setDataUsageColor()V

iget v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mDataUsageColor:I

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

return-void
.end method

Add new method to bottom of this smali.

.method setDataUsageColor()V
.locals 3

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mContext:Landroid/content/Context;

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

move-result-object v0

const-string v1, "data_usage_color"

const v2, -0xcda27c

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

iput v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mDataUsageColor:I

return-void
.end method

Rom Control Toggle

- this method will still require a UI restart or multiple observer modifications for instant change

<com.wubydax.romcontrol.prefs.ColorPickerPreference android:title="Data Useage Color" android:key="data_usage_color" android:summary="Choose color" android:defaultValue="\#ffffffff" alphaSlider="true" hexValue="true" />

Build on base of a mod from [MENTION=1042140]tdunham[/MENTION] here
[Galaxy S6 General] asc1977:
Thx but i didnt search style. I search the ID
[Galaxy S6 General] starbucks2010:
Do you use Audax rom? If yes, I have the same issue but I think Pier found the solution if my memory serves me well.
[Galaxy S6 General] tamirda:
LOL i am using my own rom...

But I just made Edit panel to keep 5 Toggles in a row so there won't be a layout problem.

If you have solution for do not disturb, let me know

thanks
[Galaxy S6 General] tdunham:
[MENTION=4596062]asc1977[/MENTION]

So I see now we're stealing code from other people's roms just so you can post a guide. It is not right. Daxgirl was right but you are not.
[Galaxy S6 General] asc1977:
I steal no codes. Today i searched for that data use id and make this mod. Whats wrong with you?

And btw from which rom? I have my own and dont have to steal something. Or you mean i download a rom and look in that romcontrol and codes to get guides. I laugh about that. How kid are you?
[Galaxy S6 General] starbucks2010:
Actually the reply was for edzamber but he quoted you so I reply to both of you without intention. I will ask Pier about that fix and let you know.
[Galaxy S6 General] edzamber:
Many Thanks :)

I'm using my own Rom too [emoji6]
[Galaxy S6 General] daxgirl:
I was wondering why do you create a class member for color integer in your mod? Wouldn't be easier to pass a view as parameter to the method which fetches the color from database? It seems weird to hold the integer as class member, and it's just used for one little view. Can you explain?
[Galaxy S6 General] starbucks2010:
The problem is in SecSettings2.apk but I need to decompile it and check.
[Galaxy S6 General] edzamber:
Here is mine modded one + frameworks [emoji4]

https://mega.nz/#!q98S3ZJA!g5Zydg4ydvmfKFA4dEN6vlTYG6sB4Hg5GnoKUXJEWzI

Here is Original SecSettings2

https://mega.nz/#!iktFBYQL!fQwCp4VAT6XVq6fhYeSCBXiDaET-67Q0SqCUIr8JiNI

Here is my SecSettings2 recompil Log

http://xdaforums.com/showthread.php?p=66750088
[Galaxy S6 General] thereassaad:
Hi guys ,

I need a bit ur help i was trying to got batterybar animation mod on my ui but its always giving me restarting ui

Here what i did

In res/value/attrs.xml

I add this

<attr name="viewLocation" format="integer" />

& here in status_bar.xml

<com.android.systemui.statusbar.policy.BatteryBarController android:visibility="gone" android:layout_width="fill_parent" android:layout_height="1.0dip" systemui:viewLocation="1" />

& here is the smali in /policy

https://mega.nz/#!nppXWbAQ!Gi3VFg5ZVm0PeWjjQ6cyx3vgCrQ-VhryQPyOGqs76p8

& here my logcat

https://mega.nz/#!OthFjaiA!xspl1-goah2u3xt1LBYzGV38L_LuIqSr_wQ1M3zS3hA

Thank u for any tip/hint , ?? to solve my issue

Thank u ,,
[Galaxy S6 General] Wuby986:
logcat says it is not able to find the class Prefs
[Galaxy S6 General] thereassaad:
Thank u so much sir , appreciate ur help my friend ,,
[Galaxy S6 General] Wuby986:
Shouldn't it be a stock one? I mean should alwys be there

Inviato dal mio SM-G935F utilizzando Tapatalk
[Galaxy S6 General] thereassaad:
When i was trying to add it without using prefs.smali editable so with ur hint i added it there the new smali for this mod then its done & fixed thank u again my friend
[Galaxy S6 General] asc1977:
You know that i am learning and i look how other mods work and try to do it for new. For me the best is that it works and not how. Thats the reason
[Galaxy S6 General] daxgirl:
That's not the question. The question is that you have objects which will exist for as long as view exists. Because you made it class variable. My question was why?
[Galaxy S6 General] asc1977:
Why you ask me thise things anna? I didnt copy a existing guide if that is that what you want to know. I take a example at a existing guide and changed it that it works with the id of datausage. Thats all. Why or why not i cant explain and you know that i cant. Why you want to blame me? Stop this games here.

If i missunderstand your question ignore tgis text above and all is ok. I take example at this guide

http://xdaforums.com/showthread.php?p=66763176

Its not stolen or anything its only the same way but for a other id or color
[Galaxy S6 General] stangdriver44:
Guide for Battery Bar

Since Battery Bar has been brought up I figured I would try and contribute here with a simple guide for adding Battery Bar to your rom!!

[GUIDE] Add Battery Bar to ROM​

Download the attached file

SystemUI

decompile SystemUI.apk and make the following edits

values/attrs.xml

add line above/before this </resources>

<attr name="viewLocation" format="integer" />

layout/status_bar.xml

add to the bottom right above/before this </com.android.systemui.statusbar.phone.PhoneStatusBarView>

<com.android.systemui.statusbar.policy.BatteryBarController android:visibility="gone" android:layout_width="fill_parent" android:layout_height="1.0dip" systemui:viewLocation="1" />

add attached smali and then recompile.

SystemUI is done

Now to add controls

decompile your Rom Control app

add to the xml file these line

statusbarui.pref.xml

<PreferenceScreen android:title="Battery Bar" android:summary="Display Line on top for battery">
<com.ozop.romcontrol.prefs.MyListPreference android:entries="@array/battery_bar_entries" android:title="Battery Bar" android:key="battery_bar" android:summary="%s" android:defaultValue="1" android:entryValues="@array/battery_bar_values" />
<SwitchPreference android:title="Battery bar animation" android:key="battery_bar_animate" android:defaultValue="true" android:summaryOn="Charging animation enabled" android:summaryOff="Animation disabled" />
<com.ozop.romcontrol.prefs.MyListPreference android:entries="@array/battery_bar_style_entries" android:title="Battery bar style" android:key="battery_bar_style" android:summary="%s" android:defaultValue="1" android:entryValues="@array/battery_bar_style_values" />
<com.ozop.romcontrol.prefs.MyListPreference android:entries="@array/battery_bar_thickness_entries" android:title="Thickness of battery bar" android:key="battery_bar_thickness" android:summary="%s" android:defaultValue="2" android:entryValues="@array/battery_bar_thickness_values" />
<com.ozop.romcontrol.prefs.ColorPickerPreference android:title="Battery Bar Color" android:key="battery_bar_color" android:summary="Choose color of battery bar" android:defaultValue="-1" hexValue="true" alphaSlider="true" />
</PreferenceScreen>

values/arrays.xml

add these lines

<string-array name="battery_bar_entries">
<item>Hide</item>
<item>Show</item>
</string-array>
<string-array name="battery_bar_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="battery_bar_style_entries">
<item>Regular</item>
<item>Center-mirrored</item>
</string-array>
<string-array name="battery_bar_style_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="battery_bar_thickness_entries">
<item>1 dp</item>
<item>2 dp</item>
<item>3 dp</item>
<item>4 dp</item>
</string-array>
<string-array name="battery_bar_thickness_values">
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>

recompile and push both apk's to your system and enjoy!!!
[Galaxy S6 General] asc1977:
Hey mate

Thx for new guide. One question. How did you changed your wifi icon? On s6 there are not anymore the icons as qmg or png in systemui
[Galaxy S6 General] nguyentankiet:
S6 s7 icon is .pio format

You can delete it and replace by .png format. But you need high quality image png and resize with your phone
[Galaxy S6 General] ryan42680:
hi guys,

anyway to get ram usage/free on notification panel ?
[Galaxy S6 General] SidRobo:
how is it possible to change the place of notifications in statusbar?:confused:

like this:
[Galaxy S6 General] daxgirl:
Lol, really?

The question is a valid question to someone who created a mod. You are an op of a mod thread. You make mods and fix other people mods? I asked you a question related to the mod you make. Legitimate question, mind you. Why create a class member to hold the integer. Maybe other people who make mods also use that. I dunno. I didn't ask them. I asked you. You made this mod. So you know why it's made like this, right?

So, no need to get rude. If you can't answer the question, that's OK. Not everyone can probably. I would think that someone who manages guide thread WOULD know. But hey, I can be wrong.

But since we are talking about it... why is this thread here?

The unified thread for TouchWiz mods and guides has all the same mods and so much more. You end up lurking here and there anyway. So why hold this thread if you have a much more organized and professional thread for modding TouchWiz which INCLUDES mods for s6 and s6 edge.

And please don't be rude to me. I have spent hours trying to help you on various threads. You want to play games, play them with someone your own league.

If you don't know why the method is built the way it is, you didn't build it.

You copied a guide for a different feature from another thread. That's not modding. And not developing. That's spoonfeeding. At least have the decency to give credits to [MENTION=1042140]tdunham[/MENTION] and link to the guide you used to "build" this mod.

Hint, the link is in the post I am quoting in this message.

Peace out...