Skip to content

Commit

Permalink
Xposed Dex for One UI 2.5 with changes: Immersive Apps, Hide NoSIM ic…
Browse files Browse the repository at this point in the history
…on, Hide Tasks Button, Hide Taskbar Separators, Taskbar Fixes and Hide Battery Percentage options.
  • Loading branch information
root committed Sep 14, 2020
1 parent 10ec1c6 commit c33d969
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 317 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# XposedDex One UI 2.5
Samsung Dex modifications through Xposed

1. Make Apps Immersive,
Will remove window titlebar for maximized applications.

2. Hide NoSIM Icon,
Removes the NoSIM icon from statusbar.

3. Fix Samsung Browser,
Enables secret mode (as it's disabled if Magisk installed) and disable always visible scroll bar (looks ugly under dark mode).

4. Hide Tasks Button,
Remove the tasks button on the taskbar.

5. Hide Taskbar Separators,
Removes empty gaps (separators) from taskbar.

6. Taskbar Fixes,
Add small space above app docks running marker.

7. Hide Battery Percentage,
Removes the battery percentage from statusbar.

NOTE: All changes require a restart.

IMPORTANT: Requires Magisk and edXposed installed on your tablet.
Only tested with One UI 2.5, Android 10, Build T865XXU4BTI1 so latest release for Tab S6

# XposedDex One UI 2.1
Samsung Dex modifications through Xposed

Expand Down
Binary file modified bin/com.pijulius.xposeddex.apk
Binary file not shown.
22 changes: 8 additions & 14 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,21 @@
<string name="app_description">Xposed Samsung Dex</string>

<string name="settings_samsung_dex">Samsung Dex</string>
<string name="settings_immersive_apps">Immersive Apps</string>
<string name="settings_immersive_apps_sum">Apps for which to remove window titlebar when maximized.</string>
<string name="settings_fix_keyboard">Fix Keyboard</string>
<string name="settings_fix_keyboard_sum">Enables floating mode for non qwerty keyboard layouts too.</string>
<string name="settings_make_apps_immersive">Make Apps Immersive</string>
<string name="settings_make_apps_immersive_sum">Will remove window titlebar for maximized applications.</string>
<string name="settings_fix_sbrowser">Fix Samsung Browser</string>
<string name="settings_fix_sbrowser_sum">Enables secret mode and disable always visible scroll bar.</string>
<string name="settings_fix_weather">Fix Weather</string>
<string name="settings_fix_weather_sum">Keep displaying weather icon in the statusbar.</string>

<string name="settings_samsung_dex_taskbar">Dex Taskbar</string>
<string name="settings_fix_taskbar">Fix Taskbar</string>
<string name="settings_fix_taskbar_sum">Disable setting black backgrounds for statusbar and taskbar buttons on maximized applications.</string>
<string name="settings_hide_dex_logo">Hide Dex Logo</string>
<string name="settings_hide_dex_logo_sum">Removes the Dex logo from the taskbar.</string>
<string name="settings_fix_taskbar">Taskbar Fixes</string>
<string name="settings_fix_taskbar_sum">Add small space above app docks running marker.</string>
<string name="settings_hide_tasks_button">Hide Tasks Button</string>
<string name="settings_hide_tasks_button_sum">Removes the Tasks button from the taskbar.</string>
<string name="settings_hide_nosim_icon">Hide NoSIM Icon</string>
<string name="settings_hide_nosim_icon_sum">Removes the NoSIM icon from statusbar.</string>
<string name="settings_hide_statusbar_separators">Hide StatusBar Separators</string>
<string name="settings_hide_statusbar_separators_sum">Removes empty gaps from statusbar to make it more compact.</string>
<string name="settings_hide_app_overflow_buttons">Hide App Overflow Buttons</string>
<string name="settings_hide_app_overflow_buttons_sum">Removes left and right arrows when to many apps are open.</string>
<string name="settings_hide_battery_percentage">Hide Battery Percentage</string>
<string name="settings_hide_battery_percentage_sum">Removes the battery percentage from statusbar.</string>
<string name="settings_hide_taskbar_separators">Hide Taskbar Separators</string>
<string name="settings_hide_taskbar_separators_sum">Removes empty gaps (separators) from taskbar.</string>

</resources>
47 changes: 13 additions & 34 deletions res/xml/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,12 @@
<PreferenceCategory
android:title="@string/settings_samsung_dex">

<MultiSelectListPreference
android:name="@string/settings_immersive_apps"
android:summary="@string/settings_immersive_apps_sum"
android:title="@string/settings_immersive_apps"
android:key="immersiveApps"
android:dialogTitle="@string/settings_immersive_apps" />

<CheckBoxPreference
android:name="@string/settings_fix_keyboard"
android:summary="@string/settings_fix_keyboard_sum"
android:name="@string/settings_make_apps_immersive"
android:summary="@string/settings_make_apps_immersive_sum"
android:defaultValue="true"
android:title="@string/settings_fix_keyboard"
android:key="fixKeyboard" />
android:title="@string/settings_make_apps_immersive"
android:key="makeAppsImmersive" />

<CheckBoxPreference
android:name="@string/settings_fix_sbrowser"
Expand All @@ -26,13 +19,6 @@
android:title="@string/settings_fix_sbrowser"
android:key="fixSBrowser" />

<CheckBoxPreference
android:name="@string/settings_fix_weather"
android:summary="@string/settings_fix_weather_sum"
android:defaultValue="true"
android:title="@string/settings_fix_weather"
android:key="fixWeather" />

</PreferenceCategory>

<PreferenceCategory
Expand All @@ -45,13 +31,6 @@
android:title="@string/settings_fix_taskbar"
android:key="fixTaskbar" />

<CheckBoxPreference
android:name="@string/settings_hide_dex_logo"
android:summary="@string/settings_hide_dex_logo_sum"
android:defaultValue="true"
android:title="@string/settings_hide_dex_logo"
android:key="hideDexLogo" />

<CheckBoxPreference
android:name="@string/settings_hide_tasks_button"
android:summary="@string/settings_hide_tasks_button_sum"
Expand All @@ -67,18 +46,18 @@
android:key="hideNoSIMIcon" />

<CheckBoxPreference
android:name="@string/settings_hide_app_overflow_buttons"
android:summary="@string/settings_hide_app_overflow_buttons_sum"
android:name="@string/settings_hide_battery_percentage"
android:summary="@string/settings_hide_battery_percentage_sum"
android:defaultValue="true"
android:title="@string/settings_hide_app_overflow_buttons"
android:key="hideAppOverflowButtons" />
android:title="@string/settings_hide_battery_percentage"
android:key="hideBatteryPercentage" />

<CheckBoxPreference
android:name="@string/settings_hide_statusbar_separators"
android:summary="@string/settings_hide_statusbar_separators_sum"
android:defaultValue="false"
android:title="@string/settings_hide_statusbar_separators"
android:key="hideStatusBarSeparators" />
android:name="@string/settings_hide_taskbar_separators"
android:summary="@string/settings_hide_taskbar_separators_sum"
android:defaultValue="true"
android:title="@string/settings_hide_taskbar_separators"
android:key="hideTaskbarSeparators" />

</PreferenceCategory>

Expand Down
38 changes: 1 addition & 37 deletions src/com/pijulius/xposeddex/SettingsActivity.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
package com.pijulius.xposeddex;

import java.io.File;
import java.util.HashSet;
import java.util.List;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.content.pm.ResolveInfo;
import android.os.AsyncTask;
import android.os.Bundle;
import android.preference.MultiSelectListPreference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;

Expand Down Expand Up @@ -41,45 +36,14 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

addPreferencesFromResource(R.xml.settings);

MultiSelectListPreference immersiveApps =
(MultiSelectListPreference) findPreference("immersiveApps");

Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);

List<ResolveInfo> pkgAppsList =
getActivity().getPackageManager().queryIntentActivities(mainIntent, 0);

String[] allApps = new String[pkgAppsList.size()];
String[] allPackages = new String[pkgAppsList.size()];

int i = 0;
for (ResolveInfo ri : pkgAppsList) {
if (ri.activityInfo == null)
continue;

allApps[i] = ri.activityInfo.loadLabel(
getActivity().getPackageManager()).toString();
allPackages[i] = ri.activityInfo.packageName;

i++;
}

immersiveApps.setEntries(allApps);
immersiveApps.setEntryValues(allPackages);
}
}

@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
Editor editor = protectedPreferences.edit();

if ("immersiveApps".equals(key))
editor.putStringSet(key, sharedPreferences.getStringSet(key, new HashSet<String>()));
else
editor.putBoolean(key, sharedPreferences.getBoolean(key, true));

editor.putBoolean(key, sharedPreferences.getBoolean(key, true));
editor.apply();

AsyncTask.execute(new Runnable() {
Expand Down
Loading

0 comments on commit c33d969

Please sign in to comment.