Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[RANT][NEXUS & GPE] Flashable Root Scripts Should Root And Stop There!

OP oldblue910

1st February 2014, 11:31 PM   |  #1  
oldblue910's Avatar
OP Recognized Contributor / Archivist-in-Chief
Flag Durham, NC
Thanks Meter: 2,462
 
3,506 posts
Join Date:Joined: Jan 2011
Donate to Me
More
The title pretty much says it all. It annoys the crap out of me how so many simplified root scripts can't just root the device and stop there. The system partition is not the appropriate place for anything but the absolute necessities. For people who make root scripts, I'd like to take this opportunity to remind you that, as of Android 4.3 and higher, there are exactly four files required to live on /system in order to root a device (assuming you're using SuperSU as your root app of choice, since it's the most popular by a mile):

/system/bin/.ext/.su
/system/xbin/su
/system/xbin/daemonsu
/system/etc/install-recovery.sh

That's it. No busybox, no Superuser.apk installed in /system, no deleting apps that you just assume nobody would ever want, no nothing. Those four files. That's it! How hard is this? Oh, and if an install-recovery.sh script already exists, then rename it to install-recovery-2.sh so it still runs. Don't just overwrite it because you assume nobody in their right mind would want to knowingly keep stock recovery.

When you start deleting stuff off of people's system partition, it makes the probability of failure for future OTA updates very high. This same thing holds true when you install busybox into /system/bin. Don't. Do. That. On that same note, don't install Superuser.apk on the system partition. Let people install it themselves from the Play Store. Just provide that as a step in your instructions. One less thing being added to one's system partition is a good thing. Rooting should be as minimal and non-disruptive as humanly possible. Once those four files are there and permissions are set appropriately, you have root and can do whatever you want.

Let busybox, system app deletions, stock recovery install scripts, etc. all be up to the individual user rather than you trying to impose something on them

Rant over.
Last edited by oldblue910; 1st February 2014 at 11:42 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes