Skip to content

Commit

Permalink
1.3.2 Revert "Rewrite root support and add superuser"
Browse files Browse the repository at this point in the history
   * superuser support was a mistake.

This reverts commit 6fabf33.

Conflicts:
	EasyRecovery.bat
	EasyRecovery.sh
  • Loading branch information
Rabih Salamey committed Jan 2, 2015
1 parent bbabc7e commit e6ddef5
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 50 deletions.
23 changes: 5 additions & 18 deletions EasyRecovery.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cls
color 0A
echo.
set Version=
set Version=v1.3.1
set Version=v1.3.2
echo.
echo Easy Recovery for Peregine variants
echo %Version%
Expand Down Expand Up @@ -332,19 +332,6 @@ echo please use the volume down button and select recovery and press volume up
echo.
echo.
pause
goto :ROOTSELECTION

:ROOTSELECTION
echo 1) Root and install superuser
echo 2) Root and Install supersu
echo 3) No root. (quit)
set rootm=""
set /p rootm=Please type a number [1-3] and press enter
echo.
echo.
if "%menu%"=="1" set ROOTS=superuser
if "%menu%"=="2" set ROOTS=supersu
if "%menu%"=="3" goto :EOF
goto :ROOT

:ROOT
Expand All @@ -353,16 +340,16 @@ echo.
echo.
echo.
echo.
echo Pushing Recovery Root Script
echo Pushing Recovery Script
echo.
%AdbExe% push Files/root/%ROOTS%/%ROOTS%.zip /storage/sdcard0/%ROOTS%.zip
%AdbExe% push Files/root/%ROOTS%/command /cache/recovery/command
%AdbExe% push Files/root/superuser.zip /storage/sdcard0/supersu.zip
%AdbExe% push Files/root/command /cache/recovery/command
%AdbExe% shell killall recovery
echo.
echo Running automated recovery commands
echo.
@ping 127.0.0.1 -n 3 -w 1000 > nul
echo Enjoy root :) Press enter to continue.
echo Choose yes and enjoy root :)
pause
%AbdExe% reboot
goto :BOOTMENU
Expand Down
59 changes: 28 additions & 31 deletions EasyRecovery.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,10 @@ CLS='printf "\033c"'
# End section, thanks Firon (LEGACY)!

f_ROOT () {
unset ROOTSN
case $ROOTSN in
1) ROOTS=superuser ;;
2) ROOTS=supersu ;;
3) exit ;;
*) echo "\"$ROOTSN\" is not valid"
esac
echo "Choose a root program"
echo "Menu:"
echo
echo "1) Root and Install Superuser"
echo "2) Root and Install SuperSU"
echo "3) Do not root (quit)"
echo
echo
read ROOTSN
sleep 2
$CLS
sleep 1
sleep 3
echo "Pushing Recovery Script"
echo " ... "
sleep 1
echo " ..................... "
sleep 2
echo " ........................ "
sleep 1
$ADB push Files/root/$ROOTS/$ROOTS.zip /storage/sdcard0/$ROOTS.zip
$ADB push Files/root/supersu.zip /storage/sdcard0/supersu.zip
$ADB push Files/root/command /cache/recovery/command
$ADB shell killall recovery
sleep 3
Expand Down Expand Up @@ -80,7 +57,7 @@ $CLS
echo
echo
echo "Please press the volume down key to scroll to recovery and the volume up key to select."
echo
echo
echo "Press enter to continue when the recovery menu appears"; read line
f_ROOT
}
Expand Down Expand Up @@ -207,12 +184,11 @@ echo "Type Y/N"
echo
read choice
done
$CLS
f_EMPTY
f_UNLOCK
f_BOOTMENU
}


f_LOGO () {
echo
echo
Expand Down Expand Up @@ -390,16 +366,21 @@ echo
echo
echo
VERSION=
VERSION="v1.3. 1"
VERSION="v1.3.2"
echo " Easy Recovery for Peregine variants"
echo " $VERSION "
echo " By somcom3x"
echo
echo " Press enter to continue"
echo
echo
echo
echo
$CLS
echo
echo
echo
echo
echo " You need to enable usb debugging first"
echo " Go to settings - applications - development"
echo
Expand Down Expand Up @@ -431,13 +412,29 @@ echo
echo
echo
echo
echo " Your device model is: $MYDEVICE"
echo " Your device model is: $MYDEVICE"
echo
echo " If this is incorrect please exit this program"
echo " Press enter to continue"; read line
$CLS
f_BOOTMENU

f_LOGO() {
echo
echo
echo " So you want to get rid of the contract on bootup?"
echo "Press enter to continue."
pause
echo
echo
echo "Press enter to continue"; read line
$CLS
echo
echo
$FASTBOOT flash logo Files/logo/peregrine_logo_mod.bin
echo "flashing logo"
sleep 6
echo " Enjoy!"
pause
sleep 5
f_BOOTMENU
}
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion Files/root/superuser/command

This file was deleted.

Binary file removed Files/root/superuser/superuser.zip
Binary file not shown.

0 comments on commit e6ddef5

Please sign in to comment.