sensors: get rid of com.samsung.permission.SSENSOR
authorWilli Ye <williye97@gmail.com>
Sun, 8 Sep 2019 16:23:04 +0000 (18:23 +0200)
committerJesse Chan <jc@lineageos.org>
Fri, 15 May 2020 14:06:48 +0000 (22:06 +0800)
commit834dfaa39b4b6e7cd3e3ae03a567235e6c4db976
tree9b3b458fd48ace9c1fa222cb8f27601fc0b7b34c
parent3e3dfb28a98f119eae8848bf87ccf1eed3eda745
sensors: get rid of com.samsung.permission.SSENSOR

Samsung uses a permission com.samsung.permission.SSENSOR
for Samsung-specfic sensors. Android obviously does not
have that and the default is denied when there is no
permission. As such, those sensors are inaccessible.

Thus, this change removes this permission from those sensors
so we can use them.

Android does not require special permissions for most sensors
so this change doesn't attach additional permission requirements
to those sensors.

However, note that it is possible that some sensitive sensors
introduced by Samsung in the future may use SSENSOR permission
and for privacy reasons they should be handled separately with
appropriate permission control attached.

Change-Id: Ia3033898722039b285e522e226074238508f6093
Signed-off-by: Jesse Chan <jc@lineageos.org>
hidl/sensors/Sensors.cpp