It is not possible to achieve with conventional methods. There are unconventional though.
The reason you cannot disable is that its presence is regulated not via Android Framework but via underlaying Linux OS as for all the other sensors. Thus if your system has driver for this sensor - Android will think that this sensor is present.
So fingerprint sensor presence is driver dependent. The solution is easy now. If there will be no driver - there will be no sensor present. All you have to do is to disable(disconnect from the OS) driver. For that you will need
- root
- adb shell or some terminal app installed(su or something)
I am not completely sure how fingerprint driver is depicted in the system(I was doing it with other sensor) but after not very long googling and using of extrapolation I think it may be called something like fpc.
So you may want to search for this in the system drives folder - something like
/sys/bus/(platform/spi/blablabla/something)/drivers/fpc.../
In the folder there should be four files - uevent
, bind
and the ones we will need unbind
and deviceName
.
And now unbind the sensor - echo deviceName > /sys/bus/(platform/spi/blablabla/something)/drivers/fpc.../unbind
Now the system will think that there is no fingerprint sensor in the system... till the next reboot.
I was doing this on the real device and with other sensor but I think the method should be pretty much the same.
Inspiration taken from here
Hope it helps.