[Android Apps and Games] daxgirl:
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 [MENTION=5403589]Albe95[/MENTION] 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 [MENTION=4948919]xperiacle[/MENTION] 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:

<SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>[COLOR="red"]FALSE[/COLOR]</SEC_FLOATING_FEATURE_SETTINGS_DEFAULT_TOOLBOX>

and change it to:

<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

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:

<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:

<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