Commit 28f19fa
committed
core: Dynamically inject Tensor features for Play Store compatibility
Inject Tensor-specific features dynamically via getSystemAvailableFeatures()
to ensure Play Store and other services recognize them as system-declared
features instead of relying solely on hasSystemFeature() overrides.
This improves compatibility with Tensor-targeted GApps and allows updates
to appear correctly in Play Store.
Also expose invalidateHasSystemFeatureCache() to allow cache refresh when
spoofing state changes.
- Inject FEATURES_TENSOR into system feature list when enabled
- Keep hasSystemFeature() override for runtime checks
- Add cache invalidation support for immediate effect
Note:
Play Store may still require a reboot or process restart due to
server-side and process-level caching.1 parent b1a5832 commit 28f19fa
1 file changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
799 | 819 | | |
800 | | - | |
| 820 | + | |
801 | 821 | | |
802 | 822 | | |
803 | 823 | | |
| |||
0 commit comments