please help with root requisite

Hello XDA developers
i'm coding an android app which will be installed on /system/app folder and this app requires ROOT permission
the problem that superSu configuration stored in /data partition and i want to grant superuser permission to my app only at the first time and regrant automatically after phone restore (wipe data/cache)
so what is the solution and thanks
(sorry about my terrible english )

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by charley40
2 hours ago
Last post by jhane
3 hours ago
Last post by shane
2 hours ago
Last post by paucek.ian
2 hours ago
Last post by dbraun
1 hour ago
Last post by murphy.douglas
1 hour ago