I need to check before installing my application if there is any on the root device and, if yes, prohibit the installation of the application. Can this be implemented in any way?
- The moral questionable task is with you. - VladD pm
- In my opinion a very correct task. Man wants to protect the fruits of his labor. Hope to succeed. - DimXenon
- I think that @Barmaley can help in this matter. He is a guru in the field of development for Androyd and probably already successfully solved the task of protecting his applications. - DimXenon
|
2 answers
Check before installation and prohibit it you can not
As a solution, you can do the following: when you first start the application, check if there is root on the device
- there is. close the application
- not. working in normal mode
How to check for root is written here
- Such a root check will give a result of no more than 50% since there are other applications that provide root access (not just Superuser.apk) - Vladyslav Matviienko
- I will say even more, the phone can be rebuilt after your application is installed. I would just do it - I used any analytics (flurry.com, google analitics and the like) and looked, and how many were there. Perhaps you do not need to do anything. - KoVadim
|
Everything is correct, you can still check for the presence of root rights with these programs http://101android.ru/kak-proverit-rut-prava/
- check, apparently, from your application, by code - pavlofff
|