glasses: list all installed launchable apps on phone (Android 11+ queries)
- Add <intent MAIN+LAUNCHER> to <queries> so queryIntentActivities on the glasses side returns third-party apps (free.zona etc), not only system / RayNeo system apps. Without this entry Android 11+ package visibility filter strips apps whose package is not explicitly named. - Pass MATCH_ALL | GET_RESOLVED_FILTER to queryIntentActivities as a belt-and-suspenders measure (no visible effect with queries above, but safe on Android 12+ where the platform may still filter). - Default VmGlassesController state is NoAppSelected instead of Starting, so we don't show 'Подготавливаем очки...' on first launch when no LaunchAppCommand has been received yet. - DriveShizukuState leaves Running state alone on re-check (don't drop a running guest back to ShizukuMissing just because Shizuku was re-polled).
This commit is contained in:
@@ -24,14 +24,22 @@
|
||||
android:name="android.hardware.type.embedded"
|
||||
android:required="true" />
|
||||
|
||||
<!-- Android 11+ package visibility: Shizuku API выполняет context.bindService на сервис
|
||||
внутри пакета moe.shizuku.privileged.api; без явного queries bindService возвращает
|
||||
false и binder к нам никогда не приедет. -->
|
||||
<!-- Android 11+ package visibility:
|
||||
- Shizuku API выполняет context.bindService на сервис внутри пакета
|
||||
moe.shizuku.privileged.api; без явного queries bindService возвращает false
|
||||
и binder к нам никогда не приедет.
|
||||
- queryIntentActivities(MAIN+LAUNCHER) без intent-queries возвращает только
|
||||
системные/RayNeo приложения; для всех сторонних (free.zona и т.п.)
|
||||
нужен явный <intent> с ACTION_MAIN + CATEGORY_LAUNCHER. -->
|
||||
<queries>
|
||||
<package android:name="moe.shizuku.privileged.api" />
|
||||
<intent>
|
||||
<action android:name="rikka.shizuku.intent.action.REQUEST_BINDER" />
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
<application
|
||||
|
||||
Reference in New Issue
Block a user