[Moto Maxx Original Android Development] fgl27:
I don't think this will be done, you are the first person that i see asking for it.

CM and other ROM have a bunch of tings that are unnecessary to a particularly person but not to all.

I use a custom script that i make and adapt to it ROM, i use it to remove the things i don't wanna don't use, i think you should do the some.

the files of SU are very complicated to find and erase because it does a backup of it self, there is a file 99-supersu.sh in the folder addon.d that i do that backup.

It backup this files:

app/Superuser.apk

app/SuperSU/SuperSU.apk

xbin/su

xbin/sugote

xbin/sugote-mksh

xbin/daemonsu

xbin/supolicy

xbin/otasurvival.sh

lib/libsupol.so

lib64/libsupol.so

bin/.ext/.su

etc/init.d/99SuperSUDaemon

etc/install-recovery.sh

etc/.installed_su_daemon

i remove this of the list:

bin/log (don't delete this doesn't seems to be a su file)

may exist other SU files that i dont know and may one of those files be need by something else, so backup before you try it...

I never did it, but in theory if you remove that list + that 99-supersu.sh in addon.d folder, you will be "out of root" :)

You can use my script as base just change/remove the part's in red to add the lines to delete SU files my is:

ui_print(" ");
show_progress(2,0);
run_program("/sbin/busybox", "mount", "/system");
ui_print("-----------------------------------------------");
ui_print(" ");
ui_print(" Cleaner for CM12.1");
ui_print(" ");
ui_print("-----------------------------------------------");
ui_print(" ");
run_program("/sbin/busybox", "sleep", "3");
[COLOR="Red"]ui_print(" Removing BasicDreams");
delete_recursive("/system/app/BasicDreams");
ui_print(" Removing Browser");
delete_recursive("/system/app/Browser");
ui_print(" Removing Calendar");
delete_recursive("/system/app/Calendar");
ui_print(" Removing Camera2");
delete_recursive("/system/app/Camera2");
ui_print(" Removing Email");
delete_recursive("/system/app/Email");
run_program("/sbin/busybox", "sleep", "1");
ui_print(" Removing Exchange2");
delete_recursive("/system/app/Exchange2");
ui_print(" Removing Galaxy4");
delete_recursive("/system/app/Galaxy4");
ui_print(" Removing Gallery2");
delete_recursive("/system/app/Gallery2");
ui_print(" Removing HoloSpiralWallpaper");
delete_recursive("/system/app/HoloSpiralWallpaper");
ui_print(" Removing LiveWallpapers");
run_program("/sbin/busybox", "sleep", "1");
delete_recursive("/system/app/LiveWallpapers");
ui_print(" Removing LiveWallpapersPicker");
delete_recursive("/system/app/LiveWallpapersPicker");
delete_recursive("/system/app/LockClock");
ui_print(" Removing LockClock");
ui_print(" Removing NoiseField");
delete_recursive("/system/app/NoiseField");
ui_print(" Removing PhaseBeam");
delete_recursive("/system/app/PhaseBeam");
ui_print(" Removing PhotoTable");
delete_recursive("/system/app/PhotoTable");
run_program("/sbin/busybox", "sleep", "1");
ui_print(" Removing PrintSpooler");
delete_recursive("/system/app/PrintSpooler");
ui_print(" Removing Stk - sim Toolkit");
delete_recursive("/system/app/Stk");
ui_print(" Removing Terminal");
delete_recursive("/system/app/Terminal");
ui_print(" Removing VisualizationWallpapers");
delete_recursive("/system/app/VisualizationWallpapers");
ui_print(" Removing CellBroadcastReceiver");
delete_recursive("/system/priv-app/CellBroadcastReceiver");
ui_print(" Removing ThemeChooser");
run_program("/sbin/busybox", "sleep", "1");
delete_recursive("/system/priv-app/ThemeChooser");
ui_print(" Removing ThemesProvider");
delete_recursive("/system/priv-app/ThemesProvider");
ui_print(" Removing SoundRecorder");
delete_recursive("/system/app/SoundRecorder");
ui_print(" Removing PhotoPhase");
delete_recursive("/system/app/PhotoPhase");
ui_print(" Removing AudioFX");
delete_recursive("/system/priv-app/AudioFX");
ui_print(" Removing CMFileManager");
delete_recursive("/system/app/CMFileManager");
run_program("/sbin/busybox", "sleep", "1");
ui_print(" Removing CMWallpapers");
delete_recursive("/system/app/CMWallpapers");
ui_print(" Removing Eleven");
delete_recursive("/system/app/Eleven");
ui_print(" ");[/COLOR]
unmount("/system");
ui_print("-----------------------------------------------");
ui_print(" ");
ui_print(" Cleaner finished, all files removed");
ui_print(" Bye...");
ui_print(" ");
ui_print("-----------------------------------------------");
run_program("/sbin/busybox", "sleep", "2");

Open the updater-script (in folder \META-INF\com\google\android) in the zip using notepad++ remove the red part and put yours line

to delete a folder you use

delete_recursive("/system/app/foldername");

to delete a file

delete("/system/etc/permissions/file.name");

of course the completed path will be different for it file.

this lines are not mandatory... you can remove:

this is use to stop the process and give you time to read what is be display on the screen the number 3 is 3 seconds change it to more or less seconds

run_program("/sbin/busybox", "sleep", "3");

if this stop is not use the flashing of the file only takes 1 second and if you put some message the person can't read in time.

and this is just to display a message on the screen change the red to change the on screen message.

ui_print(" Removing CMWallpapers");

after you are successful to make the script and remove SU, after it ROM update is just need run the zip after the ROM zip, and will remove everything.

:good: