[App][SourceCode][Project][forDevs][Android 5.+] Samsung Toolbox Controller

Search This thread

daxgirl

Senior Member
Jun 30, 2012
4,047
9,169
Jerusalem
Thread under construction!!!

Since the release of s6/s6 edge it seemed like samsung completely removed the Toolbox service fro their firmware.

Fortunately, it can still be unlocked via the old trick in /system/etc/floating_feature.xml

Who discovered the original way of unlocking it (about half a year ago), we do not know, but would like to give proper credit. The person who published that it could be unlocked using this way on s6/edge is @Albe95 and we thank him for that.

Unfortunately, with the toolbox settings being completely removed (the entire activity) from SecSettings.apk we were left with toolbox that could be partially controlled either from directly editing the settings storage db or using an app addon that was developed by @xperiacle once the s5 came out.

We have built an app that will allow the users of your rom to have full stock control of the toolbox service as if it were part of the original firmware.

The app is open cource project and it's a code project. You can pull the git repository and compile it from source using Android Studio. You can also use the app as it is, but you might want to make changes (will be shown further) in android manifest which are easier applied while working with source code.

Features:
1. App does not exist in launcher. It can be accessed by dragging the toolbox (after long click) to the "EDIT" section that appears in the left upper corner. It can also be accessed by long pressing the toggle for toolbox in SystemUI quickSettings tiles. You can add it to the Settings of your rom or to your custom settings apk by specifying the main activity (ToolboxSettings.class) in your intent

2. App includes all 5 samsung default features for toolbox (S Finder, Quick Connect, Torch, Screen Write and Magnifier)

3. App includes section for sorting items in toolbox

4. For now the app allows the user to choose up to 12 items to be added to toolbox. This assumes you make an edit to the framework.jar of your rom (needs a deodexed rom). You can find the edit in this guide I made last year. You do not need to perform the SecSettings edit as you do not have secSettings activity for toolbox on s6/edge. Or if you use it on other device with toolbox enabled, you also need not edit the settings, since you will be allowed to add up to 12 apps using our app. But you must edit the framework to allow the toolbox size to grow accordingly to the ammount of apps. Otherwise it will be cut. On stock DPI more than 12 items result in out of screen bounds toolbox view, so it's not recommended and therefore limited by default to 12.

5. No toolbox list changes or sorting changes are applied before clicking "SAVE" button on the ActionBar. A toast is accompanying each selection/deselection, informing the user of their current number of selected items. Once 12 items have been selected, a toast appears warning that no more apps can be selected.

Demonstration:
https://youtu.be/R-R1CTtT-kY

Instructions:

1. The app may be pulled from this github repository and compiled from source

2. You can install the app both as data opr as system app. Root is not required for using an app per say

3. Root is required in order to enable toolbox on devices that don't have it by stock. To enable it on devices other than s5:

Navigate to /system/etc/floating_feature.xml

Scroll down untill you see the following line:
Code:
<SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>[COLOR="red"]FALSE[/COLOR]</SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>

and change it to:
Code:
<SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>[COLOR="blue"]TRUE[/COLOR]</SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>

Download a SQLite editor from Google Play and open Settings.Storage.System database. Find a key called notification_panel_active_app_list_for_reset and notification_panel_active_app_list. Open those keys for edit and at the end of each value string add
Code:
Toolbox;

Reboot yourt device. You should now have the toggle for toolbox in SystemUI tiles. You can activate the toolbox from there.

Once you have this app installed, you can access it by 2 ways without making any more edits:
1. Long press the toolbox toggle in systemui drop menu
2. Long press the toolbox icon on the screen and wait till the panel will appear on top of the screen. Drag the toolbox to the upper left corner panel which has "EDIT" on it.

How does it work with system/framework features?

1. We do exactly what the settings do on s5, we write directly into the appropritate keys of storage database. Framework and settings and systemui with toolbox enabled devices have built in settings ovservers to registers the changes we make.

2. We use same set of custom actions for our main activity as samsung does:

In android manifest for the app you can see:
Code:
<activity
            android:name=".ToolboxSettings"
            android:label="@string/app_name"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                [COLOR="Blue"]<action android:name="com.samsung.TOOLBOX_LIST" />   <-- necessary to work on s6/s6edge
                <action android:name="com.samsung.TOOLBOX_MENU" />   <-- necessary to work on s6/s6edge[/COLOR]
                [COLOR="SeaGreen"]<action android:name="android.settings.TOOLBOX_LIST" />   <-- necessary to work on s5, note3, note4
                <action android:name="android.settings.TOOLBOX_MENU" />   <-- necessary to work on s5, note3, note4[/COLOR]
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

if you wish for your app to appear in launcher app drawer, you must add the following to the manifest:
Code:
<activity
            android:name=".ToolboxSettings"
            android:label="@string/app_name"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="com.samsung.TOOLBOX_LIST" />
                <action android:name="com.samsung.TOOLBOX_MENU" />
                <action android:name="android.settings.TOOLBOX_LIST" />
                <action android:name="android.settings.TOOLBOX_MENU" />
                <category android:name="android.intent.category.DEFAULT"/>
               [COLOR="Blue"][B] <category android:name="android.intent.category.LAUNCHER" />[/B][/COLOR]
            </intent-filter>
        </activity>

XDA:DevDB Information
Samsung Toolbox Controller, App for Samsung devices only (see above for details)

Contributors
daxgirl, wuby986

Version Information
Status: Stable
Current Stable Version: v1.0
Stable Release Date: 2015-08-13

Created 2015-08-13
Last Updated 2015-08-12
 
Last edited:

daxgirl

Senior Member
Jun 30, 2012
4,047
9,169
Jerusalem
Precompiled apps

Soooo... here are some compiled apks in little variety of themes and variations:

Stock (device default) light (no category launcher):
Download here
Screenshot_2015-08-15-04-18-38.png
Screenshot_2015-08-15-04-18-47.png


Stock (device default) dark:
Download here
Screenshot_2015-08-15-03-28-39.png
Screenshot_2015-08-15-03-28-44.png


Basic Material Dark:
Download here
Screenshot_2015-08-15-03-31-36.png
Screenshot_2015-08-15-03-31-43.png


Material Light (blue/red):
Doanload here
Screenshot_2015-08-15-03-50-17.png


Material Dark (teal/orange):
Download here
Screenshot_2015-08-15-03-46-39.png
Screenshot_2015-08-15-03-47-00.png
 
Last edited:

thereassaad

Recognized Contributor
Aug 22, 2013
7,620
9,713
Bierut
You're most welcome!
Did you manage to compile from source?

Sent from my awesome g920f powered by 6thGear


Thanks alot dax ,
Not yet as im out & when i connect to pc to sure will do i just see op & github source from my phone & later tonight will compile it , [emoji106]

Sent from my SM-G925F using Tapatalk
 
  • Like
Reactions: daxgirl

razr2312

Senior Member
Feb 16, 2013
58
8
San Pedro Sula

Compiled and already made the translation to my native lang...works exactly like stock, well no quite, it works better thanks a lot :good:

@Martillero que bueno que tienes habilidades para compilar ami me gustaria mucho jeje y ya tienes el apk compilado se puede instalar en cualquier samsung con lollipop para que lo subas y me lo pases te lo agradeceria mucho.:fingers-crossed::victory:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 37
    Thread under construction!!!

    Since the release of s6/s6 edge it seemed like samsung completely removed the Toolbox service fro their firmware.

    Fortunately, it can still be unlocked via the old trick in /system/etc/floating_feature.xml

    Who discovered the original way of unlocking it (about half a year ago), we do not know, but would like to give proper credit. The person who published that it could be unlocked using this way on s6/edge is @Albe95 and we thank him for that.

    Unfortunately, with the toolbox settings being completely removed (the entire activity) from SecSettings.apk we were left with toolbox that could be partially controlled either from directly editing the settings storage db or using an app addon that was developed by @xperiacle once the s5 came out.

    We have built an app that will allow the users of your rom to have full stock control of the toolbox service as if it were part of the original firmware.

    The app is open cource project and it's a code project. You can pull the git repository and compile it from source using Android Studio. You can also use the app as it is, but you might want to make changes (will be shown further) in android manifest which are easier applied while working with source code.

    Features:
    1. App does not exist in launcher. It can be accessed by dragging the toolbox (after long click) to the "EDIT" section that appears in the left upper corner. It can also be accessed by long pressing the toggle for toolbox in SystemUI quickSettings tiles. You can add it to the Settings of your rom or to your custom settings apk by specifying the main activity (ToolboxSettings.class) in your intent

    2. App includes all 5 samsung default features for toolbox (S Finder, Quick Connect, Torch, Screen Write and Magnifier)

    3. App includes section for sorting items in toolbox

    4. For now the app allows the user to choose up to 12 items to be added to toolbox. This assumes you make an edit to the framework.jar of your rom (needs a deodexed rom). You can find the edit in this guide I made last year. You do not need to perform the SecSettings edit as you do not have secSettings activity for toolbox on s6/edge. Or if you use it on other device with toolbox enabled, you also need not edit the settings, since you will be allowed to add up to 12 apps using our app. But you must edit the framework to allow the toolbox size to grow accordingly to the ammount of apps. Otherwise it will be cut. On stock DPI more than 12 items result in out of screen bounds toolbox view, so it's not recommended and therefore limited by default to 12.

    5. No toolbox list changes or sorting changes are applied before clicking "SAVE" button on the ActionBar. A toast is accompanying each selection/deselection, informing the user of their current number of selected items. Once 12 items have been selected, a toast appears warning that no more apps can be selected.

    Demonstration:
    https://youtu.be/R-R1CTtT-kY

    Instructions:

    1. The app may be pulled from this github repository and compiled from source

    2. You can install the app both as data opr as system app. Root is not required for using an app per say

    3. Root is required in order to enable toolbox on devices that don't have it by stock. To enable it on devices other than s5:

    Navigate to /system/etc/floating_feature.xml

    Scroll down untill you see the following line:
    Code:
    <SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>[COLOR="red"]FALSE[/COLOR]</SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>

    and change it to:
    Code:
    <SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>[COLOR="blue"]TRUE[/COLOR]</SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>

    Download a SQLite editor from Google Play and open Settings.Storage.System database. Find a key called notification_panel_active_app_list_for_reset and notification_panel_active_app_list. Open those keys for edit and at the end of each value string add
    Code:
    Toolbox;

    Reboot yourt device. You should now have the toggle for toolbox in SystemUI tiles. You can activate the toolbox from there.

    Once you have this app installed, you can access it by 2 ways without making any more edits:
    1. Long press the toolbox toggle in systemui drop menu
    2. Long press the toolbox icon on the screen and wait till the panel will appear on top of the screen. Drag the toolbox to the upper left corner panel which has "EDIT" on it.

    How does it work with system/framework features?

    1. We do exactly what the settings do on s5, we write directly into the appropritate keys of storage database. Framework and settings and systemui with toolbox enabled devices have built in settings ovservers to registers the changes we make.

    2. We use same set of custom actions for our main activity as samsung does:

    In android manifest for the app you can see:
    Code:
    <activity
                android:name=".ToolboxSettings"
                android:label="@string/app_name"
                >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    [COLOR="Blue"]<action android:name="com.samsung.TOOLBOX_LIST" />   <-- necessary to work on s6/s6edge
                    <action android:name="com.samsung.TOOLBOX_MENU" />   <-- necessary to work on s6/s6edge[/COLOR]
                    [COLOR="SeaGreen"]<action android:name="android.settings.TOOLBOX_LIST" />   <-- necessary to work on s5, note3, note4
                    <action android:name="android.settings.TOOLBOX_MENU" />   <-- necessary to work on s5, note3, note4[/COLOR]
                    <category android:name="android.intent.category.DEFAULT" />
                </intent-filter>
            </activity>

    if you wish for your app to appear in launcher app drawer, you must add the following to the manifest:
    Code:
    <activity
                android:name=".ToolboxSettings"
                android:label="@string/app_name"
                >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <action android:name="com.samsung.TOOLBOX_LIST" />
                    <action android:name="com.samsung.TOOLBOX_MENU" />
                    <action android:name="android.settings.TOOLBOX_LIST" />
                    <action android:name="android.settings.TOOLBOX_MENU" />
                    <category android:name="android.intent.category.DEFAULT"/>
                   [COLOR="Blue"][B] <category android:name="android.intent.category.LAUNCHER" />[/B][/COLOR]
                </intent-filter>
            </activity>

    XDA:DevDB Information
    Samsung Toolbox Controller, App for Samsung devices only (see above for details)

    Contributors
    daxgirl, wuby986

    Version Information
    Status: Stable
    Current Stable Version: v1.0
    Stable Release Date: 2015-08-13

    Created 2015-08-13
    Last Updated 2015-08-12
    16
    Precompiled apps

    Soooo... here are some compiled apks in little variety of themes and variations:

    Stock (device default) light (no category launcher):
    Download here
    Screenshot_2015-08-15-04-18-38.png
    Screenshot_2015-08-15-04-18-47.png


    Stock (device default) dark:
    Download here
    Screenshot_2015-08-15-03-28-39.png
    Screenshot_2015-08-15-03-28-44.png


    Basic Material Dark:
    Download here
    Screenshot_2015-08-15-03-31-36.png
    Screenshot_2015-08-15-03-31-43.png


    Material Light (blue/red):
    Doanload here
    Screenshot_2015-08-15-03-50-17.png


    Material Dark (teal/orange):
    Download here
    Screenshot_2015-08-15-03-46-39.png
    Screenshot_2015-08-15-03-47-00.png
    7
    Build update

    The sources have been updated on the repository. Update includes:
    1. Ram optimization
    2. Fixing issue of Phone not showing on apps list
    3. Moved checkboxed to the left (start) side of the layout, so to allow using fast scroller indicator without selector issues
    4. Clicking SORT saves changes automatically
    5. Clicking SAVE from sort activity closes it
    6. Scrolling speed and list building optimizations
    7. Larger heap size for devices with many installed apps
    8. Changed main theme
    9. Updated build tools and compile sdk. Target sdk is still 22 so changes to database can be made from data app as well. Min sdk remains 21.
    10. Added RTL support built in.
    11. Probably forgot something...

    Please feel free to ask me or @Wuby986 any questions regarding latest build. For now it's a stable v2.0, but not final pending your remarks.


    Source repository is here.
    Screenshot_20160528-202449.png

    Screenshot_20160528-202456.png

    Screenshot_20160528-202503.png

    Screenshot_20160528-202646.png

    Screenshot_20160528-202654.png


    Thank you to @DaOldMan for initial testing and feedback!
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone