View: 5096|Reply: 0

4g-iot gpio super user

[Copy link]

1

threads

1

posts

15

credits

Novice

Rank: 1

credits
15
Published in 2019-3-19 00:57:26 | Show all floors |Read mode
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

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list