diff options
author | 2024-10-24 16:03:34 +0100 | |
---|---|---|
committer | 2024-11-05 09:06:23 +0000 | |
commit | 8c98628524b27f26b51ce8df09b6471b1978b43c (patch) | |
tree | 3443952224d9aef8faba82dfc7d1bb33249bea09 /data | |
parent | 0b497fae7f4813e1e830f9199cad0e828a19052a (diff) |
Introduce VendorVibrationSession
Introduce Vibrator APIs to start vendor vibration sessions.
Vendor sessions will play vibration requests without resetting the
vibrator hardware state, allowing the vendor to customize the behaviour
between vibrations.
Vibration sessions can be ended by the client app or by the vibrator
service, allowing higher priority vibrations (e.g. ringtone, alarms) to
take control of the vibrator and play as usual.
Bug: 345414356
Test: FrameworksVibratorServicesTests
Flag: android.os.vibrator.vendor_vibration_effects
Change-Id: Id749cc240201bf398526c2416d5767a364b86cbf
Diffstat (limited to 'data')
-rw-r--r-- | data/etc/privapp-permissions-platform.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 56e55df3f27c..7ced809d2a3a 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -402,6 +402,9 @@ applications that come with the platform <permission name="android.permission.SHOW_CUSTOMIZED_RESOLVER"/> <!-- Permission required for access VIBRATOR_STATE. --> <permission name="android.permission.ACCESS_VIBRATOR_STATE"/> + <!-- Permission required for vendor vibration effects and sessions. --> + <permission name="android.permission.VIBRATE_VENDOR_EFFECTS"/> + <permission name="android.permission.START_VIBRATION_SESSIONS"/> <!-- Permission required for UsageStatsTest CTS test. --> <permission name="android.permission.MANAGE_NOTIFICATIONS"/> <!-- Permission required for CompanionDeviceManager CTS test. --> |