Connect to RS232 from Android - No permission dialog or shell command -
objective
i'm developing custom app internal use on rooted android mini-pc. goal (between others... so...many...others...) able turn on , off tv using serial port embeeded on tv. i'm using ftdi uart rs232 serial usb cable it.
status
the application working right now, using android library (serial-driver) can communicate tv, problem device asks permissions every install (and sometimes, weirdly, again on same device), needs improved.
issue
since device doesn't have mouse or keyboard default, when happens has click buttons, , since device hidden behind screen, can annoying.
my 2 bits
this problem, feel, can solved 2 methods, still haven't been able make them work.
- since device rooted, might able modify unknown (to me) parameter allows me bypass permission request. have tried make intent filter usb device, , rewrite interface controlls behaviour, both without success. there way make android version more lenient permissions?
- i use other reasons supersu inside app, can use full width of might shell power. using i've been trying send commands manually device (/dev/bus/usb/00x/00y), haven't worked. theory it's beacuse of permissions of device path, doing unhealthy chmod 777 cannot have them working.
so, that's problem right now. hope here can me.
additional data
- running: custom android 4.4.2 (cannot changed)
- needs doable solely within apk (but can use shell commands)
- we don't have manufacturer signature install system app
- we can use 1 app, cannot have 1 move 1 /sys/apps, , don't know if app can itself.
- using busybox stty -f /dev/.../ returns "operation not permitted"
Comments
Post a Comment