mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
chore(shortcuts): target Android 14 like DroidDeck so Play Protect does not block the companion (#2774)
This commit is contained in:
1 parent
b1a7d9b2d0
commit
51ec4a3029
3 files changed
+11
-4
No files matched your search
@@ -9,9 +9,9 @@ android {
|
||||
defaultConfig {
|
||||
applicationId 'com.droiddeck.shortcuts'
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName '1'
|
||||
targetSdkVersion 34
|
||||
versionCode 2
|
||||
versionName '2'
|
||||
}
|
||||
|
||||
sourceSets.main.java.srcDir('src/protocol/java')
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="com.droiddeck.shortcuts.RELAY" />
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
android:icon="@android:drawable/sym_def_app_icon"
|
||||
|
||||
@@ -71,7 +71,8 @@ public class ShortcutsService extends AccessibilityService {
|
||||
filter.addAction(Intent.ACTION_PACKAGE_ADDED);
|
||||
filter.addAction(Intent.ACTION_PACKAGE_REPLACED);
|
||||
filter.addDataScheme("package");
|
||||
registerReceiver(packages, filter);
|
||||
if (Build.VERSION.SDK_INT >= 33) registerReceiver(packages, filter, Context.RECEIVER_NOT_EXPORTED);
|
||||
else registerReceiver(packages, filter);
|
||||
receiving = true;
|
||||
bindAll();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user