mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
fix: update status receiver only acts on DroidDeck's own install session (#1015)
* fix: the update status receiver only acts on this app's own install session Before Android 13 the receiver was exported, so any app could send a fake PENDING_USER_ACTION broadcast and have DroidDeck launch an arbitrary intent. The receiver now ignores broadcasts whose session id does not match the running install, launches only a system installer activity, and strips URI grant flags. * fix: record the install session id before committing it CodeRabbit: the status broadcast could arrive between commit() and install() returning, while session was still -1, and be dropped. The id is now reported through a callback before commit, and reset to -1 at the start of each attempt so a late broadcast from an earlier session is ignored. * fix: declare package installer confirmation query * Query current PackageInstaller confirmation action --------- Co-authored-by: ovurrsl <ovurrsl@users.noreply.github.com> Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com> Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
This commit is contained in:
3 files changed
+31
-4
No files matched your search
@@ -2,6 +2,15 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.content.pm.action.CONFIRM_INSTALL" />
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.content.pm.action.CONFIRM_PERMISSIONS" />
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
||||
Reference in new issue
Block a user