New answers tagged

0

Use init's write command in /init.rc or any other .rc file. You may also create your own: # /system/etc/init/custom.rc on property:sys.boot_completed=1 write /proc/sys/kernel/hostname MyDroid Set permissions and reboot device. ~# chown 0.0 /system/etc/init/custom.rc ~# chmod 0644 /system/etc/init/custom.rc ~# chcon u:object_r:system_file:s0 /system/...


0

Another script that uses adb shell input to send characters can be found here: https://github.com/gcb/AdbPaste This is a Python script that can be cloned from github, or also directly downloaded and run: $ wget https://github.com/gcb/AdbPaste/raw/master/AdbPaste.py $ chmod a+x AdbPaste.py $ ./AdbPaste.py "some text to paste"


Top 50 recent answers are included