Damon Kohler
Damon Kohler
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` After many hours toiling with the source, I had a brilliant idea. Although it doesn't give ASE scripts root access, you can...
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` this is a horribly insecure way to do it, but #!/sytem/bin/sh echo "#!/sytem/bin/sh mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system cp /system/build.prop...
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` [deleted comment] ```
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` [deleted comment] ```
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` As horrible as the above, but atleast does not require an echo to a su - runnable file (all kinds of problems...
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` CEnnis: thanks for the workaround, sush is working great with my bash scripts! ``` Original comment by `[email protected]` on 5 Sep 2010...
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` Given $ cat /sdcard/sl4a/scripts/my_uid.py import os print "UID=", os.getuid() $ cat /sdcard/sl4a/scripts/execsu.py import os import sys pythonexe = os.path.join(sys.prefix, "bin/python") print "before",...
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` I can't get sush to work. I downloaded the file and copied it to /system. I know above it recommends /system/xbin, but...
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` permission denied might actually mean that the file is not found. Try using the recommended path (/system/xbin) and see if that fixes...
_From @GoogleCodeExporter on May 31, 2015 11:24_ ``` How about something like: if os.getuid() != 0: cmd="su -c `cat /proc/%s/cmdline`" % os.getpid() os.execute(cmd) sys.exit() at the start of the code?...