Motorhead1991
Android Expert
Some phones will reject it due to signature verification.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Some phones will reject it due to signature verification.
Use proper keys to sign it, or disable signature verification from within the custom recovery. Problem solved.
If a user had a custom recovery, they could find other ways to root , or they are rooted already (I.E. not a Samsung/Fastboot user)
And devices like Samsungs won't take keys other than manufacturer keys. I know from experience as I tried the AOSP signkeys to no avail.
dd if=/sdcard/customrecovery.img of=/dev/block/mmcblk0p21
cat /sdcard/customrecovery.img > /dev/block/mmcblk0p21
We can start another thread about this sonwe can stop crapping up Stayboogy's thread.
Does this work on Any device?
mount("yaffs2", "MTD", "system", "/system");
delete("/system/bin/su","/system/xbin/su");
package_extract_dir("system", "/system");
set_perm(0, 0, 06755, "/system/xbin/su");
unmount("/system");
[B]mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/system");[/B]
delete("/system/bin/su","/system/xbin/su");
package_extract_dir("system", "/system");
set_perm(0, 0, 06755, "/system/xbin/su");
unmount("/system");
[B]mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/system");[/B]
delete("/system/bin/su","/system/xbin/su");
package_extract_dir("system", "/system");
set_perm(0, 0, 06755, "/system/xbin/su");
[B]symlink("/system/xbin/su", "/system/bin/su");[/B]
unmount("/system");
All you have to do is write out the updater-script to be universal when flashing across other devices ;-). Less attitude, more logic bro.
There is nothing new about your rooting method. Its been around for ages, and is a very logical concept across practically any device. Take a look at my script above and visualize its setup via folders, subfolders, and files. ;-). I wouldn't really say you are the original.... At best, a good contributor to your community.Code:ui_print("****************************************"); ui_print("* Created by Modding.MyMind *"); ui_print("****************************************"); ui_print("* Rooting your Device *"); ui_print("****************************************"); ui_print(""); show_progress(1.000000, 0); ui_print("Mounting filesystems..."); run_program("/sbin/busybox", "mount", "/system"); run_program("/sbin/busybox", "mount", "/data"); set_progress(0.100000); # Delete old files that may interfere. ui_print("Preparing install..."); delete("/data/dalvik-cache/system@app@Superuser.apk@classes.dex","/system/bin/su","/system/xbin/su","/system/app/Superuser.apk","/system/app/Superuser.odex","/data/app/Superuser.apk","/system/xbin/daemonsu","/system/bin/.ext/.su","/system/etc/install-recovery.sh","/system/etc/init.d/99SuperSUDaemon","/system/etc/.has_su_daemon","/system/etc/.installed_su_daemon","/system/app/SuperUser.apk","/system/app/SuperUser.odex","/system/app/superuser.apk","/system/app/superuser.odex","/system/app/Supersu.apk","/system/app/Supersu.odex","/system/app/SuperSU.apk","/system/app/SuperSU.odex","/system/app/supersu.apk","/system/app/supersu.odex"); set_progress(0.200000); ui_print("Extracting files..."); package_extract_dir("system", "/system"); package_extract_dir("data", "/data"); set_progress(0.300000); ui_print("Setting SU permissions..."); set_perm(0, 0, 06755, "/system/bin/su"); set_perm(0, 0, 06755, "/system/bin/.ext/.su"); set_perm(0, 0, 06755, "/system/xbin/otasurvival.sh"); set_progress(0.400000); ui_print("Symlinking SU Binary for Root..."); symlink("/system/bin/su", "/system/xbin/su"); set_progress(0.500000); ui_print("Setting SuperSU permissions..."); set_perm(0, 0, 0644, "/system/app/Superuser.apk"); set_perm(1000, 1000, 0755, "/data/data/eu.chainfire.supersu"); set_perm_recursive(1000, 1000, 0755, 0755, "/data/data/eu.chainfire.supersu/lib"); set_perm_recursive(1000, 1000, 0771, 0600, "/data/data/eu.chainfire.supersu/cache"); set_perm_recursive(1000, 1000, 0771, 0771, "/data/data/eu.chainfire.supersu/cache/com.android.renderscript.cache"); set_perm_recursive(1000, 1000, 0771, 0771, "/data/data/eu.chainfire.supersu/requests"); set_perm_recursive(1000, 1000, 0771, 0771, "/data/data/eu.chainfire.supersu/logs"); set_perm_recursive(1000, 1000, 0771, 0771, "/data/data/eu.chainfire.supersu/files"); set_perm_recursive(1000, 1000, 0771, 0660, "/data/data/eu.chainfire.supersu/shared_prefs"); set_progress(0.600000); set_progress(0.800000); # Unmounting filesystems... ui_print("Unmounting filesystems..."); run_program("/sbin/busybox", "umount", "/system"); run_program("/sbin/busybox", "umount", "/data"); set_progress(0.900000); ui_print(""); set_progress(1.000000); ui_print("****************************************"); ui_print("* Install Complete! *"); ui_print("****************************************");
again with your idiocy
busybox mount command doesn't work, and anyone who ever reads a recovery log when the command is used will see it fails.
and yes, this root method is original to me, it didn't come from anyone else i assure you.
my mount command is what makes it work for this device, because busybox mount did not and would not produce root on stock recovery 100% of the time. plain and simple. know why? of course you don't, but i do.
learn the edify commands that actually do work in recovery to mount, which you'll only learn from reading source code--and guess what? busybox isn't one of them. the fact that you post something using busybox, which is virtually useless 90% of the time anyway on most every device, shows me even more you're just a regurgitator of useless, incorrect, and misguided info... the reason busybox might appear to work in recovery, even when it doesn't, is because generally /system is mounted by default in most custom recoveries, and therefore doesn't have to be mounted again. and if system was unmounted, unless busybox has been installed into the ramdisk of said recovery--which i've never seen ever, or unless busybox is cp'd to the temp directory by the said package and chown'd and chmod'd, it won't work. busybox. what freakin joke.
don't come here with your nonsense fanboy and try to stir folks up.
you posted garbage in a good thread, someone reminded you of this, and you got butt hurt. best to just quit while you're behind.
you don't know jack,
and shouldn't post your uneducated nonsense here...
rewriting updater-script WON'T make this work on other devices--know why? sure you don't, but i do...
update-binary is api specific, must be changed according to device and build, as well as pass verification when the updater-script does
and signatures do matter, and are now often manufacturer specific and not the usual generic google release keys.
you have shown yourself to be as completely full of false information as i've seen 75 to 80% of the rest of the android community to be.
no need for you to argue with motorhead or me, cause you're highly disadvantaged in knowledge of the subject...
the reason busybox might appear to work in recovery, even when it doesn't, is because generally /system is mounted by default in most custom recoveries, and therefore doesn't have to be mounted again. and if system was unmounted, unless busybox has been installed into the ramdisk of said recovery--which i've never seen ever, or unless busybox is cp'd to the temp directory by the said package and chown'd and chmod'd, it won't work. busybox. what freakin joke.
the reason busybox might appear to work in recovery, even when it doesn't, is because generally /system is mounted by default in most custom recoveries, and therefore doesn't have to be mounted again. and if system was unmounted, unless busybox has been installed into the ramdisk of said recovery--which i've never seen ever, or unless busybox is cp'd to the temp directory by the said package and chown'd and chmod'd, it won't work. busybox. what freakin joke.
TWRP and CWM function differently. CWM packs a bunch of functional binaries in, TWRP opereates around busybox.
I will have to agree though, I've used busybox mount on a number of things, but it only reliably works on CWM/TWRP and not stock recovery.
I can't find the download link