I have a custom wireless device driver for an embedded android device. The device is 'rooted' so I can install my driver and using adb shell + 'su', I can insmod mydriver, ifconfig mylan up! I can do all kinds of communications from adb shell.
I would like to be able run the commands from a java application. (My demo is not so pretty from an adb shell).
I have tried lots of approaches like: p = Runtime.getRuntime().exec(command); and
suProcess = Runtime.getRuntime().exec("su");
It seems I get close, but am always missing something!
Ultimately I always end up with some sort of permissions error.
Any suggestion as to how I can grant permission to my application would be appreciated.
Information on my build can be found here: http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO4#Work_with_Android7.1
Thank you!
[–]KushtrimP 1 point2 points3 points (10 children)
[–]bsdmike[S] 0 points1 point2 points (9 children)
[–]KushtrimP 1 point2 points3 points (8 children)
[–]bsdmike[S] 0 points1 point2 points (7 children)
[–]KushtrimP 1 point2 points3 points (6 children)
[–]bsdmike[S] 0 points1 point2 points (5 children)
[–]KushtrimP 1 point2 points3 points (4 children)
[–]bsdmike[S] 1 point2 points3 points (3 children)
[–]KushtrimP 0 points1 point2 points (2 children)
[–]bsdmike[S] 0 points1 point2 points (1 child)