Hello everyone. We found a way to unlock and root a BLU R1 HD in ota version 6.6.
Files http://forum.xda-developers.com/showpost.php?p=69387472&postcount=5
Here are the instrucction:

thanks to:
@jcadduono - wrote recowvery-app_proccess64
@mrmazak - main tester, bat script writer & fastboot steps
@Scorpius666 - mod recowvery-app_proccess64 and lsh into cow-app64-mod
@christianrodher - compiled dirtycow , cow-app64-mod & found the steps to unlock/root
@rootjunky - for files
@lopestom - twrp recovery
@brenns10 - wrote lsh
Files http://forum.xda-developers.com/showpost.php?p=69387472&postcount=5
Here are the instrucction:
none important note: my english sucks! Que viva Puerto RicoI wrote (or plagiarized a little) Five batch scripts and put them into a .tar archive.
It is attached.
***** NOTICE DURING THIS YOUR PHONE SCREEN MAY SHOW A FROZEN BOOT ANIMATION, THIS IS EXPECTED, THE ADB SHELL SHOULD STILL BE ACTIVE AND WORKING*****
** THE FREEZING IS FROM THE "/system/bin/app_process32" BEING TEMPORARILY OVER WRITTEN, ON THE NEXT REBOOT IT IS RESTORED****
WARNING UNLOCKING YOUR BOOTLOADER WILL WIPE DATA AND FACTORY RESET THE DEVICE
So backup anything you want to keep
Decompress the files and start with "1-First", and continue until "5-Fifth". (in order 1,2,3,4,5)
The separate scripts could be combined into a one click option to unlock boot loader and then install the recovery. But there is issues with the shell in a shell in a cmd passing the commands through. So in an effort to make sure nobody misses the needed manual steps i kept them separate.
PLEASE PAY ATTENTION TO THE COMMENTS IN ADB WINDOW. CAREFULLY CHECK WHAT YOU TYPE BEFORE YOU HIT ENTER. A TYPO HERE MAY BE SERIOUS.
So you will need to run the script and follow the on screen notes , There are two times you will need to manually open a second command window and enter adb shell, type commands. One time in the First batch and again in the Third. Copy and paste also doesn't work in this situation
If you are on Linux you will have to re write the commands into a sh file or do it all by hand.
If anybody wants to make improvements and can get the manual entry part to be coded, please do.
1-First.bat
Code:::Set our Window Title @title R1 HD Amazon Bootloader Unlock Step one ::Set our default parameters @echo off color 0b echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] adjust window size to the dashed lines above (press any button to continue) pause > nul adb push dirtycow /data/local/tmp/dirtycow adb push cow-app64-mod /data/local/tmp/cow-app64-mod adb push frp.bin /data/local/tmp/unlock adb shell chmod 0777 /data/local/tmp/* echo.-------------------------------------------------------------------------------------------- echo [*] done pushing next is dirtycow swapping (press any button twice) echo.-------------------------------------------------------------------------------------------- pause > nul pause > nul adb shell /data/local/tmp/dirtycow /system/bin/app_process32 /data/local/tmp/cow-app64-mod echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] once it finishes echo [*] open new command window and type echo [*] "adb shell" echo [*] then "toybox nc localhost 11112" echo [*] and u will be in root shell... u wont see any # or ... but u type commands at it shows echo [*] once you are in the shell type echo [*] "mkdir /data/local/test" echo [*] "chmod 7777 /data/local/test" echo [*] "cp /dev/block/mmcblk0p17 /data/local/test/frp" echo [*] "chmod 7777 /data/local/test/frp" echo [*] Leave that New window There and go onto start 2-Second.bat echo [*] (press any button twice) echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- pause > nul pause > nul
2-Second.bat
Code:::Set our Window Title @title R1 HD Amazon Bootloader Unlock Step Two ::Set our default parameters @echo off color 0b echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] adjust window size to the dashed lines above (press any button to continue) pause > nul echo [*] YOU SHOULD NOT BE HERE UNLESS YOU DID THE STEP BELOW echo [*] ************************************** echo [*] open new command window and type echo [*] "adb shell" echo [*] then "toybox nc localhost 11112" echo [*] and u will be in root shell... u wont see any # or ... but u type commands at it shows echo [*] once you are in the shell type echo [*] "mkdir /data/local/test" echo [*] "chmod 7777 /data/local/test" echo [*] "cp /dev/block/mmcblk0p17" echo [*] "chmod 7777 /data/local/test/frp" echo [*] ***************************************** echo [*] (press any button) echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- pause > nul echo [*] this step may take long time (up to one hour) to fully allow it to complete echo [*] I continued before it finished and was fine though echo [*] once the second "madvice=" line shows up should be ok to continue echo [*] .. echo [*] press any key twice to Start echo [*] ......To continue after second "madvice" line hit "ctrl+c" then Y then run 3-Third.bat echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- pause > nul pause > nul adb shell /data/local/tmp/dirtycow /data/local/test/frp /data/local/tmp/unlock echo [*] done dirtycow swapping next is run 3-Third.bat (press any button twice) pause > nul pause > nul
3-Third.bat
Code:::Set our Window Title @title R1 HD Amazon Bootloader Unlock Step Three ::Set our default parameters @echo off color 0b echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] adjust window size to the dashed lines above (press any button to continue) pause > nul echo [*] YOU SHOULD NOT BE HERE UNLESS YOU DID THE STEP BELOW echo [*] ************************************** echo [*] wait for minumum the second "madvice=" line shows up while running 2-Second.bat echo [*] this batch does nothing more that give you instructions to open seperate shell echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] ****** echo [*] ****** echo [*] ****** echo [*] ****** echo [*] Go Back to open shell window from step 1 echo [*] enter this command echo [*] dd if=/data/local/test/frp of=/dev/block/mmcblk0p17 echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] done writing unlock image next is run 4-Fourth.bat (press any button twice) echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- pause > nul pause > nul
4-Forth.bat
Code:::Set our Window Title @title R1 HD Amazon Bootloader Unlock Step Four ::Set our default parameters @echo off color 0b echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] adjust window size to the dashed lines above (press any button twice continue) pause > nul @echo on pause > nul adb reboot bootloader timeout 10 > nul cls @echo off echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] now that the device is in fastboot mode we are going to unlock the echo [*] bootloader. on the next screen on your phone you will see echo [*] PRESS THE VOLUME UP/DOWN BUTTONS TO SELECT YES OR NO echo [*] just press volume up to start the unlock process. echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] press any key to start the unlock pause > nul fastboot oem unlock echo [*] once the bootloader is unlocked press any key to wipe data pause > nul fastboot format userdata echo [*] Press any key to reboot the device pause > nul fastboot reboot cls echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] your bootloader is now unlocked on your BLU R1 HD Amazon device echo [*] first boot up will take around 5 to 10 minutes then you can set it up echo [*] Next is the 5-Fifth.bat to install recovery echo echo [*] echo [*] You will need to enble developers option, then enable adb to continue next script echo [*] ****************** echo [*] IF PHONE DOES NOT REBOOT HOLD POWER UNTILL IT POWERS OFF THEN AGAIN TO POWER ON echo [*] ****************** echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] Press any key to finish this script. pause > nul exit
5-Fifth.bat
Follow up with bootloader roll-back if desired.Code:::Set our Window Title @title R1 HD Amazon Bootloader Unlock Step Five ::Set our default parameters @echo off color 0b echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] adjust window size to the dashed lines above (press any button twice continue) pause > nul @echo on pause > nul adb reboot bootloader timeout 10 > nul cls @echo off echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] echo [*] echo [*] echo [*] echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] press any key to Flash recovery pause > nul fastboot flash recovery recovery.img echo [*] once the file transfer is complete hold volume up and press any key on pc echo [*] IF PHONE DOES NOT REBOOT THEN HOLD VOLUME UP AND POWER UNTILL IT DOES pause > nul fastboot reboot echo [*] on phone select recovery with volume key then select with power pause > nul cls echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] now you booted to recovery continue and make a backup if you want echo [*] you can just continue as is from here or flash the old preloader file with echo [*] recovery. There are more steps not included here if you want to do that. echo [*] echo.-------------------------------------------------------------------------------------------- echo.-------------------------------------------------------------------------------------------- echo [*] Press any key to finish this script. pause > nul exit
http://forum.xda-developers.com/r1-hd/how-to/r1hd-update-6-6-bootloader-roll-t3491096
thanks to:
@jcadduono - wrote recowvery-app_proccess64
@mrmazak - main tester, bat script writer & fastboot steps
@Scorpius666 - mod recowvery-app_proccess64 and lsh into cow-app64-mod
@christianrodher - compiled dirtycow , cow-app64-mod & found the steps to unlock/root
@rootjunky - for files
@lopestom - twrp recovery
@brenns10 - wrote lsh
Last edited: