android - Private Content Provider shared among my apps only -


i've googled enough, couldn't find case. want write custom content provider shared/accessible specific apps.

i've scenario:

  • have multiple apps on google play. a, b , c.
  • want write content provider, z accessed a, b , c. i'm thinking publish content provider 'z' own apk.
  • when z installed on device; a, b , c can access z. if z not installed, first app direct google play install z.

now question is:

is possible @ write such content provider @ all, shared among specific apps? android:exported="false" makes inaccessible other external app. android:granturipermissions="true" doesn't work when android:exported set false, , setting android:exported true makes public accessible.

please feel free share other solutions too, if seem more appropriate requirements of sharing info among multiple apps.

android:granturipermissions="true" doesn't work when android:exported set false

yes, does.

however, android:granturipermissions may not relevant use case, particularly if z own standalone app. z have 1 calling a/b/c using intent flag_grant* flag, , guessing not fit plan.

if, suspect, a/b/c need access z independently of z telling them can accessed , granting uri-specific permissions, standard approach use custom signature-level <permission>. defend export provider , defend permission using android:permission in <provider>. theory app suite can hold permission, because app suite signed signing key , therefore have signature match.

(i "in theory" because there issues approach)


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -