[MOD]Add Mobile Data Toggle(And Others) To Quick Settings in Note 5

Search This thread

rik_l

New member
Feb 8, 2018
1
2
Toronto
I got bugged by always losing my tiles whenever Samsung felt like it, so cobbled together a quick Windows bat script which seems to work for me (based on data in https://www.xda-developers.com/how-...ttings-tile-toggle-on-samsung-galaxy-devices/). Can't see how to add attachments (maybe my account is too new?) so I'll post it below. Basically it queries the current tiles, adds MobileData and Hotspot if needed, then sends them back to the phone.
If you want the one line version, it's
adb.exe shell settings put secure sysui_qs_tiles "$(settings get secure sysui_qs_tiles),MobileData,Hotspot"

(not sure what happens if this is run when the tiles already exist)

And the full script, which only adds them if needed. Have tested on my Note 8, obviously take scripts posted by strangers with a grain of salt and only run it if you know what you're doing!

Edit early July 2019: looks like the June 2019 update may have broken compatibility with this. sysui_qs_tiles is always returning as null. Running the script won't hurt, but also won't help (you'll end up with "null,MobileData,Hotspot"). Still looking for a solution.
Edit late July 2019: the July 2019 update fixed it, the script works again.

@echo off

REM script to restore "MobileData" and "Hotspot" icons to cell phones
REM relies on ADB being installed
REM set the path to adb below (ANDROID_HOME / ADB_PATH)

REM enable ! - allows variables to be evaluated inside blocks
setlocal EnableDelayedExpansion

REM set the path that contains adb.exe here
set ANDROID_HOME=%localappdata%\Android\sdk\platform-tools
set ADB_PATH=%ANDROID_HOME%\adb.exe

if not exist %ADB_PATH% (
echo unable to find adb.exe in %ANDROID_HOME%
echo please set ANDROID_HOME in the file and retry
exit
)

REM count how many devices are attached
set "DEVICE_COUNT=0"
for /f "delims=" %%i in ('"%ADB_PATH% devices"') do (
set /a DEVICE_COUNT+=1
)

REM count 1 = "List of attached devices"
REM count 2 = "{GUID} device"

if %DEVICE_COUNT% lss 2 (
echo no attached device found
pause >nul
exit
)

if %DEVICE_COUNT% gtr 2 (
echo too many devices attached
pause >nul
exit
)

REM query the current active TILES
set TILES=
for /f "delims=" %%i in ('%ADB_PATH% shell settings get secure sysui_qs_tiles') do (
set TILES=%%i
)

if "%TILES%" EQU "" (
echo no current tiles found
pause >nul
exit
)

REM echo current tiles: %TILES%

REM build up the string that will contain the titles we want to add
REM doing it this way rather than adding to TILES avoids issues when TILES contains brackets
SET NEWTILES=

REM if MobileData and Hotspot not found, add them
set CHANGED=0
echo.%TILES% | findstr /C:"MobileData" 1>nul
if errorlevel 1 (
echo MobileData not found - adding it
set CHANGED=1
SET NEWTILES=!NEWTILES!,MobileData
) ELSE (
echo MobileData already found - not adding it
)

echo."%TILES%" | findstr /C:"Hotspot" 1>nul
if errorlevel 1 (
echo Hotspot not found - adding it
set CHANGED=1
SET NEWTILES=!NEWTILES!,Hotspot
) ELSE (
echo Hotspot already found - not adding it
)

REM send the new tiles to the device
if %CHANGED% EQU 1 (
%ADB_PATH% shell settings put secure sysui_qs_tiles "$(settings get secure sysui_qs_tiles),%NEWTILES%"
)

echo DONE
pause >nul
 
Last edited:

esnmalik

New member
Dec 5, 2012
1
1
Greater Toronto Area
RE: List of all possible Quick Select tiles

Here is the list of all possible Quick Select tiles that I could compile. Of course not all of these will work with all devices as they seem to differ by device and OS version.

STANDARD ANDROID TILES
AirplaneMode
AirView
AllShareCast
Aod
BlueLightFilter
Bluetooth
Brightness
Dnd
DormantMode
DrivingMode
Ebook
Flashlight
FloatingMessage
Hotspot
Location
MobileData
MultiWindow
NavigationBar
NetworkBooster
Nfc
PersonalMode
PowerSaving
QuickConnect
RotationLock
SBeam
SFinder
SideKey
SilentMode
SmartPause
SmartStay
SoundMode
Sync
Toolbox
TouchSensitivity
UltraPowerSaving
Wifi
WifiCalling
WifiHotspot
Work
WorkMode

SAMSUNG GALAXY SPECIFIC TILES (again differ by models)

custom(com.samsung.android.app.aodservice/.settings.AODTileService)
custom(com.sec.android.app.wfdbroker/.AllShareCastTile)
custom(com.samsung.android.lool/com.samsung.android.sm.battery.ui.mode.BatteryModeTile)
custom(com.samsung.android.oneconnect/.external.DeviceVisibilityTile)
custom(com.sec.android.app.soundalive/.DolbyTile)
custom(com.baloota.dumpster/.service.DumpsterTileService)
custom(com.samsung.android.app.cocktailbarservice/com.samsung.android.app.edgelighting.tile.EdgeLightingTile)
custom(com.samsung.android.kidsinstaller/.quickpanel.service.KidsTileService)
custom(com.android.settings/com.samsung.android.settings.qstile.NightThemeTiles)
custom(com.android.nfc/com.samsung.android.nfc.quicktile.NfcTile)
custom(com.android.settings/com.samsung.android.settings.qstile.PowerSavingTile)
custom(com.samsung.android.lool/com.samsung.android.sm.ui.booster.PerformanceTile)
custom(com.android.settings/com.samsung.android.settings.qstile.PersonalModeTile)
custom(com.sec.android.app.camera/.service.QrTileService)
custom(com.samsung.android.app.routines/.RoutineTile)
custom(com.android.settings/com.samsung.android.settings.qstile.SecAccountTiles)
custom(com.samsung.knox.securefolder/.switcher.SecureFolderTile)
custom(com.samsung.android.smartmirroring/.tile.SmartMirroringTile)
custom(com.sec.unifiedwfc/.ux.quicksettings.WFCQSTileService)


Hope this helps
 
  • Like
Reactions: oldman20
Here is the list of all possible Quick Select tiles that I could compile. Of course not all of these will work with all devices as they seem to differ by device and OS version.

STANDARD ANDROID TILES
AirplaneMode
AirView
AllShareCast
Aod
BlueLightFilter
Bluetooth
Brightness
Dnd
DormantMode
DrivingMode
Ebook
Flashlight
FloatingMessage
Hotspot
Location
MobileData
MultiWindow
NavigationBar
NetworkBooster
Nfc
PersonalMode
PowerSaving
QuickConnect
RotationLock
SBeam
SFinder
SideKey
SilentMode
SmartPause
SmartStay
SoundMode
Sync
Toolbox
TouchSensitivity
UltraPowerSaving
Wifi
WifiCalling
WifiHotspot
Work
WorkMode

SAMSUNG GALAXY SPECIFIC TILES (again differ by models)

custom(com.samsung.android.app.aodservice/.settings.AODTileService)
custom(com.sec.android.app.wfdbroker/.AllShareCastTile)
custom(com.samsung.android.lool/com.samsung.android.sm.battery.ui.mode.BatteryModeTile)
custom(com.samsung.android.oneconnect/.external.DeviceVisibilityTile)
custom(com.sec.android.app.soundalive/.DolbyTile)
custom(com.baloota.dumpster/.service.DumpsterTileService)
custom(com.samsung.android.app.cocktailbarservice/com.samsung.android.app.edgelighting.tile.EdgeLightingTile)
custom(com.samsung.android.kidsinstaller/.quickpanel.service.KidsTileService)
custom(com.android.settings/com.samsung.android.settings.qstile.NightThemeTiles)
custom(com.android.nfc/com.samsung.android.nfc.quicktile.NfcTile)
custom(com.android.settings/com.samsung.android.settings.qstile.PowerSavingTile)
custom(com.samsung.android.lool/com.samsung.android.sm.ui.booster.PerformanceTile)
custom(com.android.settings/com.samsung.android.settings.qstile.PersonalModeTile)
custom(com.sec.android.app.camera/.service.QrTileService)
custom(com.samsung.android.app.routines/.RoutineTile)
custom(com.android.settings/com.samsung.android.settings.qstile.SecAccountTiles)
custom(com.samsung.knox.securefolder/.switcher.SecureFolderTile)
custom(com.samsung.android.smartmirroring/.tile.SmartMirroringTile)
custom(com.sec.unifiedwfc/.ux.quicksettings.WFCQSTileService)


Hope this helps
Hi, thanks your post! But can i find the way to make Data Saver visible in quicksetting? I try add "DataSaver" with same step at first post but not working!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    Disclaimer: T-Mobile always removes this and did again with the new Nougat update. I'm not sure if any other carriers may have removed this too, but I've placed this in the general Note 5 thread just in case. Unfortunately, I've received quite a bit of short minded ridicule on this subject from people from other service providers who can't possibly imagine that another variant of the Note 5 might actually be different than theirs. So, if you're version of Note 5 has the mobile data toggle standard in quick settings then there is really no reason for you to comment on this thread with negative remarks or unhelpful things like, "I have it on mine". Hope this doesn't sound too harsh, but I ran into some real jerks on this one and really don't care to hear from any more. After all, I'm just on here to help. Any positive feedback you might have though is quite welcome. :)
    ------------------
    Hey guys! For some reason the last couple of roms I've had with T_Mobile didn't have a toggle for mobile data in the quick settings menu. Just in case others are having this issue as well I've decided to add a short tutorial on how to add that toggle and others manually, since the old method of doing this is no longer valid. In older versions of Android you had to use "SQLite Editor" to modify the Settings app in order to add this toggle, but it no longer works like that in more recent versions of Android. This method will require root, but there is also a link to a non-root method at the bottom of this post for those who need it. Anyhow...

    Here is a quick explanation of how to fix this issue on the Note 5.

    Root Method:


    1) Open up a root browser like "ES File Explorer".

    2) Navigate to the "/system/csc/" folder and tap on "others.xml" to open it with "ES Note Editor".

    3) Search for "CSCFeature_SystemUI_ConfigDefQuickSettingItem".
    (The wording of this may be slightly different on your device.)

    4) Add the term "MobileData" to the end of the list of quick settings items that are inside the brackets(). Make sure to separate it from the other items with a comma(,).
    (You can of course add other Quick Settings items in this same way too.)
    e0db67be0dce4003fed197cbb87743a4.jpg


    5) Then just reboot the device for the changes to take effect.
    7b6bfbeef69aca945ac7a7b9046f1b64.jpg


    Non-Root Method(provided by @MishaalRahman):
    https://www.xda-developers.com/how-...ttings-tile-toggle-on-samsung-galaxy-devices/

    Please be sure to hit the "Thanks" or Donate button below if this helped you out! :)
    2
    I got bugged by always losing my tiles whenever Samsung felt like it, so cobbled together a quick Windows bat script which seems to work for me (based on data in https://www.xda-developers.com/how-...ttings-tile-toggle-on-samsung-galaxy-devices/). Can't see how to add attachments (maybe my account is too new?) so I'll post it below. Basically it queries the current tiles, adds MobileData and Hotspot if needed, then sends them back to the phone.
    If you want the one line version, it's
    adb.exe shell settings put secure sysui_qs_tiles "$(settings get secure sysui_qs_tiles),MobileData,Hotspot"

    (not sure what happens if this is run when the tiles already exist)

    And the full script, which only adds them if needed. Have tested on my Note 8, obviously take scripts posted by strangers with a grain of salt and only run it if you know what you're doing!

    Edit early July 2019: looks like the June 2019 update may have broken compatibility with this. sysui_qs_tiles is always returning as null. Running the script won't hurt, but also won't help (you'll end up with "null,MobileData,Hotspot"). Still looking for a solution.
    Edit late July 2019: the July 2019 update fixed it, the script works again.

    @echo off

    REM script to restore "MobileData" and "Hotspot" icons to cell phones
    REM relies on ADB being installed
    REM set the path to adb below (ANDROID_HOME / ADB_PATH)

    REM enable ! - allows variables to be evaluated inside blocks
    setlocal EnableDelayedExpansion

    REM set the path that contains adb.exe here
    set ANDROID_HOME=%localappdata%\Android\sdk\platform-tools
    set ADB_PATH=%ANDROID_HOME%\adb.exe

    if not exist %ADB_PATH% (
    echo unable to find adb.exe in %ANDROID_HOME%
    echo please set ANDROID_HOME in the file and retry
    exit
    )

    REM count how many devices are attached
    set "DEVICE_COUNT=0"
    for /f "delims=" %%i in ('"%ADB_PATH% devices"') do (
    set /a DEVICE_COUNT+=1
    )

    REM count 1 = "List of attached devices"
    REM count 2 = "{GUID} device"

    if %DEVICE_COUNT% lss 2 (
    echo no attached device found
    pause >nul
    exit
    )

    if %DEVICE_COUNT% gtr 2 (
    echo too many devices attached
    pause >nul
    exit
    )

    REM query the current active TILES
    set TILES=
    for /f "delims=" %%i in ('%ADB_PATH% shell settings get secure sysui_qs_tiles') do (
    set TILES=%%i
    )

    if "%TILES%" EQU "" (
    echo no current tiles found
    pause >nul
    exit
    )

    REM echo current tiles: %TILES%

    REM build up the string that will contain the titles we want to add
    REM doing it this way rather than adding to TILES avoids issues when TILES contains brackets
    SET NEWTILES=

    REM if MobileData and Hotspot not found, add them
    set CHANGED=0
    echo.%TILES% | findstr /C:"MobileData" 1>nul
    if errorlevel 1 (
    echo MobileData not found - adding it
    set CHANGED=1
    SET NEWTILES=!NEWTILES!,MobileData
    ) ELSE (
    echo MobileData already found - not adding it
    )

    echo."%TILES%" | findstr /C:"Hotspot" 1>nul
    if errorlevel 1 (
    echo Hotspot not found - adding it
    set CHANGED=1
    SET NEWTILES=!NEWTILES!,Hotspot
    ) ELSE (
    echo Hotspot already found - not adding it
    )

    REM send the new tiles to the device
    if %CHANGED% EQU 1 (
    %ADB_PATH% shell settings put secure sysui_qs_tiles "$(settings get secure sysui_qs_tiles),%NEWTILES%"
    )

    echo DONE
    pause >nul
    2
    Doh! I've been slacking, sorry guys. You can do this without root, BTW, and I promised another user I would share a tutorial on it on XDA's main page, but I've been busy with other articles.

    You're fired lol
    1
    It is a csc thing[emoji23] all roms have it[emoji23]
    Not all roms have it or I wouldn't be posting this. Also, it hasn't always been a CSC thing as I mentioned in the OP. You used to have to do it like this, so some may not know.
    https://xdaforums.com/showthread.php?p=43042030
    My current rom did not have it. Many other people's roms do not have it. Some versions of the stock firmware for different devices do not have it. Maybe next time don't just assume you know everything right off the bat. ;)
    1
    Doh! I've been slacking, sorry guys. You can do this without root, BTW, and I promised another user I would share a tutorial on it on XDA's main page, but I've been busy with other articles.