Is it possible to get root access for only one application? the idea behind is to i did't want to open permission dialog for accessing some feature of application like storage permission like vise.
is it possible via running command Runtime, but i am not sure this is working or not for android 14 OS device.
Process root = Runtime.getRuntime().exec("su");
Also getting FACTORY_TEST permission from google document but this will not help me.
As You Have Marked Code
Process root = Runtime.getRuntime().exec("su");
This code will also work in android-14 but it is not a good way.
Instead You can use the libsu by topjohnwu (magisk-official)
Here you can find it topjohnwu/libsu
It will work like a charm on every android
Hope it Helps.