[Android Q&A, Help & Troubleshooting] droidvoider:
Here's the tool I promised that executes root commands

Android 6.01 dirtycow root -- passing the hump now​

This tool executes command line commands as root + install_recovery context AND/OR root + system_server context.

~This is freddierice's farm-root modified, which incidentally is the tool I've spawned the Android DD Dcow Image Writer tool from as well.

thanks again freddie and Delgoth has been supporting me at least 1 pm per day for months now thanks for your continued help Delgoth good sir

Instructions

See Readme on github as well as the sources and Makefile.

There are instructions with the binary only zips called instructions.txt "i think"

basic

1. copy in files you need for any copy, dd, pm install and etc to the /data/local/tmp/ directory

2. edit cmd_list.txt ... I want to know if this is hard for new developers, let me know guys.

file descriptions < >

<context symbol> |<command all in one line as it would be typed>|~/data/local/tmp/FILE.ZIP~/cache/recovery/FILE.ZIP~

the delimiters are necessary. -$ or -# | /path/command args1 arg2|~/data/local/tmp/YOURFILE~/cache/recovery/YOURFILE~

install_recovery context cmd_list.txt examples: i don't know if these work, I think they do but maybe it is system_server -$

-# |/system/bin/setenforce 0|

-# |/system/bin/mount -o rw,remount,rw /system|

system_server context cmd_list.txt examples:

the following command requires /data/local/tmp/Superuser.apk ... i.e. you adb push Superuser.apk /data/local/tmp/ before (add it to the Makefile) or whatever

-$ /system/bin/pm install -r /cache/recovery/Superuser.apk|/data/local/tmp/Superuser.apk|/cache/recovery/Superuser.apk

I haven't gained root yet this is the tool I built for us to play with. Please let me know if anything is broken, if you need help changing to a brand new context.. Especially let me know if you get su binaries installed along with Superuser.apk.. I will build a post boot tool and then we are done.

autoremove can be appended to the end of farm to remove the exploit binaries after the tool completes (useful when changing the sources and included in the Makefile)

/data/local/tmp/farm autoremove

sources, no binaries

https://github.com/droidvoider/Android_6.01_dcow_root_console

but pointed instructions for disabling packages are in the zips

BINARIES - NO SOURCES

Linux

https://drive.google.com/open?id=0B-fnF5v-xg6OYmdreVNJOGlLWUE

Windows (i didn't test that batch file.. edit the batch file it's just a "batch" of commands)

https://drive.google.com/open?id=0B-fnF5v-xg6OYmdreVNJOGlLWUE

Scope:

dirtycow 5195 is patched November 2016.. If you are running Android 6.01 you may be able to flash the October 2016 kernel to your phone to bypass the patch

1. First make sure you have the AP file from your firmware.. (specifically boot.img and recovery.img which are included in the AP file)

2. Backup your device.

3. Use Odin to flash PJ1 boot.img / recovery.img to your phone

https://drive.google.com/open?id=0B-fnF5v-xg6OR1VWRTItWFVOTVE

4. Constantly check your phone, if it is getting hot or losing a lot of battery fast you need to stop... restore it and forget this

5. as long as it's all good see the instructions included with the tool

Thoughts:

I think this tool is amazing. We need more contexts so we can disable more things, do more things. But I believe that anything you want to achieve you can with this tool including building a root installer tool. The questions are which context do you need to install, and of course what exactly are you installing, where exactly are you installing it to. If you look at the code we are setting flash recovery context ourselves now, so the code is complete but we need to add more contexts as we need them, if we need them.

I am able to work on this stuff more and more each day so soon I will be back up to full speed on my hobbies. let me know if you kick butt so i can jot down the names