yashsingh1/xdaforums huggingface dataset:
[Galaxy S6 General] The Sickness:
I/O Schedulers

Wanna see if anyone can shed some light on I/O Schedulers for the S6, any S6 variant......

I have added the appropriate schedulers to source/block (IE: row-ioshed.c)....I have also modified Kconfig.iosched to add Row as well as the Makefile. I then added Row to arch/arm64/configs/IO Schedulers......

It builds just fine with zero errors. But the scheduler does not show up. Is there another place to edit for this? I have looked in my source for any possible place it could be.

Any help on this will be appreciated. Oh, and there is NO reference to this on Google that is up to date.

Apologies for asking this and not being on the "list"
[Galaxy S6 General] Repulsa:
Nice tut . But Heres another way . Decompile framework.jar /smali_classes/com/samsung/android/multiwindow/multiwindowapplicationinfos.smali . Open it with notepad++ look for .method public isSupportApp(Ljava/lang/String;)Z

(At the bottom )Look for

:cond_0

Const/4 v0 , 0x1

:cond_1

Const/4 v0 , 0x0 - Change it to 0x1

Goto :goto_0

.end method

Recompile :) Done
[Galaxy S6 General] Mentalmuso:
Have any of you encountered an issue with adb showing as offline? I am realizing the normal pop-up that appears to allow adb is not presenting itself . this isn't a PC driver issue as it happens on both windows and Linux. My guess is an apk that is responsible. Or could it be build.prop related?
[Galaxy S6 General] The Sickness:
Put your phone in recovery. Choose mount/system. Open terminal and type "adb devices"....what do you get then?
[Galaxy S6 General] edzamber:
12 app in Toolbox confirmed working !

[MENTION=4714483]daxgirl[/MENTION] guide, need only mod framework.jar/classes3.dex/com/samsung/android/toolbox/TWToolBoxFloatingViewer.smali

SecSettings2 mod is not needed

http://xdaforums.com/galaxy-s5/development/mod-icrease-toolbox-apps-samsung-fws-t2899795

?
[Galaxy S6 General] thereassaad:
I use for this Xperiacle App to enable it & i use too daxgirl app too its really awesome..
[Galaxy S6 General] störte:
Just an info

It seems that TWRP 3 does not work properly when flashing a rom. After completing it does not reboot and freezes.

Even Hard reboot brings it back to Recovery
[Galaxy S6 General] asc1977:
I wanted to flash it now but now i am a little bit afraid if it not work. Anyone tested and can report? I read also that works great from others. Often it should be only user failure
[Galaxy S6 General] störte:
I tried it 3 times. I just got an info from Manh_it to flash Flash Update-SuperSU.zip (System-mode) via TWRP

Wait for a link and try again.

With supersu 268 it seems to work
[Galaxy S6 General] Mentalmuso:
The device ID is listed with recovery next to it.
[Galaxy S6 General] asc1977:
Flashed twrp 3.0 on my 925F.

Reboot work. I am on supersu 2.67 chainfire

Flashed in twrp spacex rc2.1 boot.img file and reboot without any problems. Cant report any bad news. All work perfecr
[Galaxy S6 General] thereassaad:
Guys just found this new on S7E dump

<CscFeature_SystemUI_ConfigDefQuickSettingItem>Wifi,SilentMode,AutoRotate,Bluetooth,Toolbox,UltraPowerSaving,FloatingMessage,SideKey,NetworkBooster,PersonalMode,Location,MobileData,MultiWindow,AdaptiveDisplay,Sync,Nfc,AirView,AirplaneMode,DormantMode,WiFiHotspot,SmartStay,AllShareCast,SBeam,SmartPause,SmartScroll,AirGesture,CarMode,TouchSensitivity,VoLte,ToddlerMode,RotationLock,PowerSaving,Flashlight,SFinder</CscFeature_SystemUI_ConfigDefQuickSettingItem>

I add the toggles manually but it didn't work as i guess its need to wipe data so i don't have time for wiping now so anyone here try it ..
[Galaxy S6 General] The Sickness:
So when your not in recovery its not working? Which distro are you running?
[Galaxy S6 General] störte:
Also after clean flash a rom ?

Then i have the problem. All other works fine
[Galaxy S6 General] asc1977:
I dirty flashed rom. Works. Clean not. I think its not related if dirty or clean.
[Galaxy S6 General] The Sickness:
Deleted
[Galaxy S6 General] nguyentankiet:
When you share apktool, dont rename it, because we dont know version of them
[Galaxy S6 General] The Sickness:
Check it out....it was released yesterday. I can remove the link if you like
[Galaxy S6 General] ravian29:
I am using it in place of quick connect in status bar drop down, the major benefit of it using here is i have option to enable and disable it via (little down arrow, edit and quick connect toggle to turn on/off), see screenshots.

to get it add smalis and instead of /layout/recent.xml, change /layout/quick_settings_quick_connect_sound_path.xml and add blue code

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@id/qs_bottom_area" android:background="@drawable/qs_bottom_area_bg_drawable" android:layout_width="fill_parent" android:layout_height="@dimen/qs_bottom_area_height"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Blue"] <HorizontalScrollView android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="75.0dip">
<com.android.systemui.statusbar.policy.quicklaunch.QuickLaunchContainer android:gravity="center" android:layout_width="wrap_content" android:layout_height="75.0dip" android:layout_centerHorizontal="true" />
</HorizontalScrollView>[/COLOR]
<RelativeLayout android:id="@id/quick_connect_container" android:background="@drawable/notification_panel_theme_btn_borderless_rect" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:paddingStart="@dimen/qs_bottom_area_start_padding" android:paddingEnd="@dimen/qs_bottom_area_end_padding">

and lastly change value in /values/dimen to750.dip

<dimen name="qs_bottom_area_height">75.0dip</dimen>
[Galaxy S6 General] kep2008:
"Latest commit by iBotPeaches 4 days ago"

:confused:

https://github.com/iBotPeaches/Apktool
[Galaxy S6 General] The Sickness:
Look it works for MM...all I did was post the jar. If yall want to keep using different versions for this and that, then have at it
[Galaxy S6 General] sanoc69:
Also settings?
[Galaxy S6 General] The Sickness:
I'll put it to you like this...

It ain't what you know....

Its who you know....

This version is 2.1.1.
[Galaxy S6 General] asc1977:
You must change the color hex code in smalis i think. But please dont ask me which one [emoji28]
[Galaxy S6 General] thereassaad:
Nah still SecSettings bricked with almost all latest compiled Apktool we try compile it daily but no luck with SecSettings its still brick ??

& welcome to actions brotha , nice to see ya here , ?
[Galaxy S6 General] ravian29:
Thanks bro and Thanks you all champs for sharing such nice mods.
[Galaxy S6 General] edzamber:
Hi all,

Does someone succes to make working Do not disturb when set a start time and end time ?

Apparently Settings are FC when we try to set time...

http://xdaforums.com/showpost.php?p=66687473&postcount=9209

I try with Stock SecSettings2 but its the same, so i don't think its an Ressources Recompilation error by Apktool.
[Galaxy S6 General] tdunham:
What does logcat fatal error show?

Edit: Disregard, see following posts regarding this...
[Galaxy S6 General] thereassaad:
Once u touch SecSettings u will get that fc & another reason , i had it before its because some csc line forget which one its long time since lp ,
[Galaxy S6 General] tdunham:
Ok, confirmed here too. Even the newer apktools hose up some stuff in SecSettings still.

Restored stock resources and DND is working normally again.
[Galaxy S6 General] thereassaad:
Yep td & here the log once i use modded SecSettings its will fc look at log

---------- Post added at 04:13 PM ---------- Previous post was at 04:10 PM ----------

U mean this ? Custom text ?
[Galaxy S6 General] elxufas:
Go to Trafic View smali

line 2101 const-string v3, " #fffffffffff" this is the code you must change
[Galaxy S6 General] nguyentankiet:
Thank you[emoji4]
[Galaxy S6 General] asc1977:
But there must be two values. One for upload and one fir download because they have different colors
[Galaxy S6 General] nguyentankiet:
Yes, i will search all color code and edit them
[Galaxy S6 General] Phant0m3rr0r:
Yup...i follow the guide but not working for MM

S7 port rom for n3
[Galaxy S6 General] Setialpha:
If you want to edit SecSettings2.apk, try attached apktool (v2.1.1-2f67a3-SNAPSHOT) and the following steps once per ROM base.

apktool if <path-to>/framework-res.apk
apktool if <path-to>/twframework-res.apk

Then you can proceed as usual, eg:

apktool d <path-to>/SecSettings2.apk
modify stuffz
apktool b SecSettings2

Note: you'll need to push META-INF from <path-to-modified>/SecSettings/original into new apk file, else it won't work because of certificates. Also you need to replace the one in /system/priv-app/, updating won't work.
[Galaxy S6 General] sheard:
[MENTION=5405448]thereassaad[/MENTION] your custom text is statusbar custom text it isn't same as lockscreen as i know .but [MENTION=5679043]Phant0m3rr0r[/MENTION] ask for lockscreen it must be same as lp only some part of smali maybe changed but it must be same as 5.1.1 if u understand changes on lp then u can do it on MM too
[Galaxy S6 General] Repulsa:
I have a question regarding Bootloop on some other variants . As you can see i successfully decompile/recompile the framework-res.apk and successfully made a clean install with the rom + flash my modded framework without any bootloop on my side . How come some of other variant having a bootloop when i dont :D . Im using thressaad apktool (small) do i need to push resource.arsc (aint that remove the mods i did?!? ) or is there more? (Done copying original Meta-inf. Thanks

Edit: Would be nice if someone could post the apktool without having any issue because there's alot of them on this thread and im not sure which one is working that fine :D thanks
[Galaxy S6 General] nguyentankiet:
Try this

https://mega.nz/#!5phmyKDL!7QCTCu_3VqiQzQrn-v-fm-IZq7jxDTy-Dj0McORt9fA
[Galaxy S6 General] Phant0m3rr0r:
Yup...what i want is slightly dif..

Just for lockscreen only...
[Galaxy S6 General] asc1977:
I tried if with apktool of thereaasaad which you mentioned and it work clean install but.....

......only if you

Copy and paste like ressources or pngs from modded one in priginal one.

I postet this also some sites back.

If you paste Meta-Inf from original to modded one it works bit not for clean install
[Galaxy S6 General] SidRobo:
Remove Low Battery Warning Notification

SystemUI.apk smali edit:

open smali/com/android/systemui/power/PowerNotificationWarnings.smali

search for

.method public showLowBatteryWarning(Z)V

add new line in BLUE:

.method public showLowBatteryWarning(Z)V
.locals 8

[COLOR="Blue"]goto :goto_td[/COLOR]

.param p1, "playSound" # Z

.prologue
const/4 v0, 0x0

const/4 v4, 0x1

Add new lines in BLUE at the end of the same method:

invoke-virtual {v1, v4, v5}, Landroid/os/PowerManager$WakeLock;->acquire(J)V

goto :goto_0

[COLOR="blue"]:goto_td
return-void[/COLOR]
.end method

recompile.

original threat is [Guide How-To] Remove Battery Low notification in http://xdaforums.com/showthread.php?t=2799050
[Galaxy S6 General] ikrom:
How to Increase Lock Screen visible notifications in real time. Android 6.0.x

Credits:

[MENTION=2739548]tamirda[/MENTION] for the original post here How to Increase Lockscreen visible notifications in Android 5.x

[MENTION=1042140]tdunham[/MENTION] - Add a toggle for visible notifications --> here

​

SystemUI.apk

res/values/integers.xml

<integer name="keyguard_max_notification_count">[COLOR="Blue"]5[/COLOR]</integer>

\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali

Increase .locals by 3

Changed and new code is in BLUE

.method protected loadDimens()V
.locals [COLOR="blue"]6[/COLOR]
.
.
.
const v1, 0x7f0f0033 # <-- This is public value for [COLOR="Red"]type="integer" name="keyguard_max_notification_count"[/COLOR]

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

move-result v1

[COLOR="Blue"]const/4 v1, 0x2[/COLOR]

iput v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardMaxNotificationCount:I

[COLOR="blue"] iget-object v3, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

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

move-result-object v3

const-string v4, "lockscreen_notifications"

const/4 v5, 0x0

invoke-static {v3, v4, v5}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-eq v1, v5, :cond_td

iput v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mKeyguardMaxNotificationCount:I

:cond_td
[/COLOR]
invoke-static {}, Lcom/android/keyguard/util/KeyguardProperties;->canSetDcmLauncher()Z

move-result v1

if-eqz v1, :cond_0

const v1, 0x7f0f0035

This will require a UI restart unless you already have a settingsobserver in place:

PhoneStatusBar$SettingsObserver.smali

.method observe()V

Add new lines for key:

const-string v1, "lockscreen_notifications"

invoke-static {v1}, Landroid/provider/Settings$System;->getUriFor(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v1

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

.method public onChange(Z)V

Add new lines to refresh method:

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->loadDimens()V

ROMControl:

Add new array:

<string-array name="lockscreen_notif_entries">
<item>2 (Stock)</item>
<item>3 max shown</item>
<item>4 max shown</item>
<item>5 max shown</item>
</string-array>
<string-array name="lockscreen_notif_values">
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
</string-array>

Add new ListPreference:

<com.wubydax.romcontrol.prefs.MyListPreference
android:entries="@array/lockscreen_notif_entries"
android:title="Notifications Shown on Lockscreen"
android:key="lockscreen_notifications"
android:defaultValue="2"
android:summary="Number shown on lockscreen"
android:entryValues="@array/lockscreen_notif_values" />
[Galaxy S6 General] Diaze:
Can some1 teach me on how to remove the Grey status bar on power saving? I dont want to flash a new rom..
[Galaxy S6 General] ROBERT CM:
Look this guide..

http://xdaforums.com/showthread.php?p=66199765
[Galaxy S6 General] asc1977:
How to disable SMS to MMS automatic

By ManhIT

http://xdaforums.com/showthread.php?t=3350454
[Galaxy S6 General] asc1977:
Did you find colors? I didnt find
[Galaxy S6 General] asc1977:
added to OP
[Galaxy S6 General] bunnys7679:
Did the mod to the Internet speed on it now. Unfortunately, he does not accept the entered hex code. someone has a tip? All men a great Mens day

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S6 General] asc1977:
mod from OP works perfect if you do right
[Galaxy S6 General] senzatiOn-:
Who have a guide how add RAM BAR STATUS without xposed in recent apps ?

Have see in much mm costum rom's.

Thanks.

[MENTION=4074799]ambasadii[/MENTION] // your rom have this.
[Galaxy S6 General] AlexisXDA:
I have some problems with router wifi

When I activate that it will desactivate immediately

Do you know if there is any script that will be added in installer script as that to fix wifi?

Inviato dal mio SM-G925F utilizzando Tapatalk
[Galaxy S6 General] JonathanRAZ:
[MENTION=4596062]asc1977[/MENTION] if you do a mod on systemui it compiles and signs correctly but fc code is incorrect right? So i flashed the stock systemui but it still fc any idea? Sorry for posting this here
[Galaxy S6 General] barramas:
greetings and felicitation to all for your work.

is it possible to add picture in system ui?????

very thanks for hard works and sorry for my bad english
[Galaxy S6 General] asc1977:
I had this also sometimes after a bad mod. You can flash statusbar stock or any other but always fc. I have found out that only a clean install means wipe data helps. So i taked time and found out that if you delete runtime-permissions.xml than stock statusbar work again. The best is you do a backup before modding anything [emoji6]
[Galaxy S6 General] ikrom:
Added How to add a PhoneStatusBar$SettingsObserver.smali

Pls. check.

---------- Post added at 14:21 ---------- Previous post was at 13:38 ----------

How to colorize signals icon in the status bar ? any idea?

[IMG="http://i.piccy.info/i9/53247b9e5160c5232584ec038ebed59c/1462439766/184541/1026612/Screenshot_20160505_141121.jpg"]http://i.piccy.info/i9/53247b9e5160c5232584ec038ebed59c/1462439766/184541/1026612/Screenshot_20160505_141121.jpg[/IMG]
[Galaxy S6 General] asc1977:
that is exactly what i add also. look in my post please. i changed a little your guide because i dont use link colors and i use only one const-string v3 name means all colors the same and it dont work on the fly
[Galaxy S6 General] ikrom:
you making , too is correctly.

[Guide] How to add a SettingsObserver to your Rom - it you did ?
[Galaxy S6 General] AlexisXDA:
Is there any lines to add on updater script for fix Hotspot bug?
[Galaxy S6 General] nguyentankiet:
And add virtual home button in statusbar

<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="[COLOR="Blue"]center[/COLOR]" android:orientation="vertical" android:id="@id/home" android:paddingRight="42.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" />

you can change position with android:layout_gravity "center", "right" or "left"

you can change size (widht) with value android:layout_width
[Galaxy S6 General] thereassaad:
What about if we add them like this

"right|center|left"

?
[Galaxy S6 General] nguyentankiet:
[emoji4] [emoji4] [emoji4]
[Galaxy S6 General] asc1977:
i did it exactly like that guide. lockscreen notifications mod here from thread i also added for on the fly and work great. must i change some rom control settings?

i attached my both files so you can take a look inside
[Galaxy S6 General] ikrom:
try this View attachment 3740912
[Galaxy S6 General] asc1977:
I get it to work now. Was my misstake. I am so stupid. I work on two statusbars. Make changes in one and recompiled the other. So stupid misstake. I think i must take a break.

[emoji23] [emoji23] [emoji23] [emoji23] [emoji23] [emoji23] [emoji23] [emoji23] [emoji23] [emoji23] [emoji23]

Thx for your time to help a old men
[Galaxy S6 General] nguyentankiet:
Tryed edit smali color network, but not work. I am stupid too, wait other pro[emoji23]
[Galaxy S6 General] SidRobo:
hi [MENTION=4596062]asc1977[/MENTION] do you have any idea why this happend for me when wanted to add SettingsObserver

this is log:

but there is no problem about }
[Galaxy S6 General] asc1977:
Read firt lines of log. There is written. You made something wrong at that smali. Read guide exactly
[Galaxy S6 General] Wuby986:
last entry before } ends with , and shouldn't since it's last
[Galaxy S6 General] tdunham:
Last line of annotations has comma at end and it needs to be removed.

---------- Post added at 06:04 PM ---------- Previous post was at 06:04 PM ----------

What Wuby said. ;)
[Galaxy S6 General] asc1977:
[MENTION=5198767]ikrom[/MENTION]

please my friend, can you change your guide. itested it out and works perfect now

teke your guide from here

but add changes from here and here please

all is so very perfect. thx for your work and guides here again
[Galaxy S6 General] asc1977:
[MENTION=5198767]ikrom[/MENTION]

all colors of expanded view i get to work now, worked and learned alot on weekend with observer smalis. only thing is that the switch link_colors dont work on the fly. i have no idea why. i tried that but than systemui.apk fc by any changes and restart systemui alone and colors changed.

Switching on works perfect, but switching off dont go back to stock or theme colors. the last color keeps shown

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$SettingsObserver;->this$0:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

#invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setAllBgColor()V
invoke-static {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->access$100(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
[Galaxy S6 General] shiningarmor:
do u guys think an always on display mod like the s7 is possible?
[Galaxy S6 General] asc1977:
i tried to write a guide to show/hide signal and wifi on statusbar. here my doings but wont work. can anybody of great defs help me please. i think problem are the .locals or :cond_0 ???

adding this

invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setModsignalclusterview()V

and this

.method setModsignalclusterview()V
.locals 7

iget-object v1, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

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

move-result-object v1

const-string v2, "modsignalclusterview"

const/4 v3, 0x1

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

move-result v1

if-nez v1, :cond_0

const v3, 0x8

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v6, 0x7f0e0332 ## <public type="id" name="signal_cluster" id="0x7f0e0332" />

invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

goto/16 :goto_0

:cond_0
const v3, 0x3

iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v6, 0x7f0e0332 ## <public type="id" name="signal_cluster" id="0x7f0e0332" />

invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v4

invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

:goto_0
return-void
.end method