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 ashton45
1 hour ago
Last post by pprohaska
3 hours ago
Last post by lueilwitz.maci
51 minutes ago
Last post by kennith12
46 minutes ago
Last post by beth01
36 minutes ago
Last post by treichel
4 hours ago
Last post by ardith.kautzer
4 hours ago
Storage full?
Started by brobel
Last post by daniel.alvera
15 minutes ago
Last post by kfeeney
3 hours ago