- Edited
Can you explain why this class is necessary according to you?
And where did you get this class? It is a bit strange. The method (void) clearBluetoothCache mentions that it requires root permission, but that is not correct. It is allowed for system apps.
And when using it in a system app, why use an external pm shell command and not an internal java method like clearApplicationUserData()?
But most of all: Please explain why and when this bluetooth cache clearing should be used, according to you?