Access GPIO from a script on Android without root

I tried mraa-pwm as a regular user without being able to change any parameters, only read.

And I also tried to chmod on the pwm0 for controlling with /sys/class/pwm/pwmchip0/pwm0, but after a reboot the permission where gone and I couldn’t write as a regular user to /sys/class/…pwm0.

Is there a way to be able as a regular user to control the GPIO(PWM) without the need to change settings as root after each reboot? I only been testing on the official Android 11 on 4C plus

I made a mistake in editing mraad.rc. I think that is why I couldn’t use mraa-pwm without root. Now it works with a fresh install of Android