|
Hi , I try to project 4g-iot on android 6 .
I routed by kingroot .
Than I start try control gpio with adb
echo "-w=53:0 0 1 0 1 0 0" > /sys/devices/virtual/misc/mtgpio/pin
echo "-w=53:0 0 0 0 1 0 0" > /sys/devices/virtual/misc/mtgpio/pin
this commands r works in super user mode (root).
everything is OK.
Next i start to try this bash command as super user with termux apk on Vysor
that passed too.
Is there a way to use it in normal mode instead of super user mode .
I try android apk like as
Process p = Runtime.getRuntime().exec("su");
DataOutputStream dos = new DataOutputStream(p.getOutputStream());dos.writeBytes("echo \"-w=53:0 0 1 0 1 0 0\" > /sys/devices/virtual/misc/mtgpio/pin");thats not work.
Do you have any suggestion ?
echo "-w=53:0 0 0 0 1 0 0" > pinecho "-wdir 53 1" > pinand like as commands not work
|
|