diff --git a/ADB Script/readme.txt b/ADB Script/readme.txt index e0c0ec7..d1d2b62 100644 --- a/ADB Script/readme.txt +++ b/ADB Script/readme.txt @@ -14,6 +14,25 @@ You can find the latest script to run from a Windows, Linux or Mac computer on t Note: On Linux and Mac, `adb` is not included. If you do not have it installed, the script will link you to a guide to do so. 4.) Make sure the script runs correctly. If it shows an error, it may advise you on what to do. If you find an error that isn't handled correctly, please screenshot while using the -v (verbose) switch and post it on the XDA thread +## Running wirelessly (Android 11+ only): + +On Windows: +1.) Open a command prompt in the directory with the script in it +2.) Go to Settings > System > Advanced > Developer options, enable Wireless debugging and open it. Select "Pair device with pairing code" +3.) Run "tools\adb pair " and enter the PIN when prompted. The pairing dialog will close after connection +4.) Run "tools\adb connect " +5.) Run the batch script. The service will now be run. +You will need to follow these steps every time the device reboots, as usual + +On Mac/Linux: +Make sure your ADB is up to date before doing this. It will not work on an older ADB version than 30. +1.) Open a command prompt in the directory with the script in it +2.) Go to Settings > System > Advanced > Developer options, enable Wireless debugging and open it. Select "Pair device with pairing code" +3.) Run "adb pair " and enter the PIN when prompted. The pairing dialog will close after connection +4.) Run "adb connect " +5.) Run the bash script. The service will now be run. +You will need to follow these steps every time the device reboots, as usual + ## Note: As well as if your device is rebooted, the script will need to be re-run if DarQ is force stopped for whatever reason, including if the system kills the background code. This includes toggling the accessibility service (which force stops the app in the process). diff --git a/app/build.gradle b/app/build.gradle index 40f62f6..622b20c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -67,6 +67,6 @@ dependencies { implementation "com.github.topjohnwu.libsu:core:${libsuVersion}" //Xposed - provided 'de.robv.android.xposed:api:82' + compileOnly 'de.robv.android.xposed:api:82' } diff --git a/app/src/main/java/com/kieronquinn/app/darq/fragments/AppsFragment.kt b/app/src/main/java/com/kieronquinn/app/darq/fragments/AppsFragment.kt index cf317a1..d81fd9f 100644 --- a/app/src/main/java/com/kieronquinn/app/darq/fragments/AppsFragment.kt +++ b/app/src/main/java/com/kieronquinn/app/darq/fragments/AppsFragment.kt @@ -18,6 +18,7 @@ import android.widget.PopupMenu import androidx.core.widget.addTextChangedListener import androidx.fragment.app.Fragment import androidx.recyclerview.widget.LinearLayoutManager +import com.kieronquinn.app.darq.BuildConfig import com.kieronquinn.app.darq.R import com.kieronquinn.app.darq.activities.MainActivity import com.kieronquinn.app.darq.adapters.AppsAdapter @@ -133,7 +134,7 @@ class AppsFragment : Fragment() { uiScope.launch { withContext(Dispatchers.IO) { val appList = apps.filter { - (!it.isSystemApp || showSystemApps) && (searchString == null || it.appName.toString().toLowerCase(Locale.getDefault()).contains(searchString.toLowerCase(Locale.getDefault()))) + (!it.isSystemApp || showSystemApps) && (searchString == null || it.appName.toString().toLowerCase(Locale.getDefault()).contains(searchString.toLowerCase(Locale.getDefault()))) && it.packageName != BuildConfig.APPLICATION_ID } withContext(Dispatchers.Main){ callback?.invoke(appList) diff --git a/app/src/main/java/com/kieronquinn/app/darq/services/DarqBackgroundService.kt b/app/src/main/java/com/kieronquinn/app/darq/services/DarqBackgroundService.kt index 2f78764..556d82f 100644 --- a/app/src/main/java/com/kieronquinn/app/darq/services/DarqBackgroundService.kt +++ b/app/src/main/java/com/kieronquinn/app/darq/services/DarqBackgroundService.kt @@ -168,6 +168,9 @@ class DarqBackgroundService : AccessibilityService() { refreshEnabledApps("") refreshToggles() getAlarmTimes() + if(isForceDarkTheme){ + enableForceDark() + } } private fun getAlarmTimes() {