i need to give super user permission to the user to write(echo) into a particular file, but when I try the following its still showing permission is denied.
any leads will be helpful.
import subprocess
import os, sys
def main():
subprocess.run("adb shell cat /sy/bu/mm_subsys/devices/subsy/name", shell= False)
subprocess.run(['adb shell', 'sudo'], shell =False)
subprocess.run('adb shell "echo related > /ss/bu/mm_subsys/devices/subsy/rest_level"\n', shell= False)
if __name__ == "__main__":
main()