yashsingh1/xdaforums huggingface dataset:
[BLU R1 HD Guides, News, & Discussion] bullet25:
Yes, fastboot gives errors when trying to use FASTBOOT OEM UNLOCK that the toggle isn't set to yes and when trying FASTBOOT BOOT or FASTBOOT FLASH it errors that the bootloader is locked. Plus I don't think Google allows android devices to be shipped with an unlocked bootloader.
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
[MENTION=5355478]ColtonDRG[/MENTION] if the boot image is damaged it should refuse OTA update. That's how it worked on my Studio X+

[MENTION=3471223]bullet25[/MENTION] I'll be seeing if MrMazak can send his TWRP backup for me to restore from.
[BLU R1 HD Guides, News, & Discussion] triggerlord:
I said "besides fastboot" in my reply... :eek:

I meant, does the bootloader actually stop us from booting whatever we want?
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Guys, Reddit acknowledged out achievement:

https://m.reddit.com/r/Android/comments/4ug5qd/blu_r1_hd_has_been_rooted/

Next stop, XDA front page... Or at least we hope
[BLU R1 HD Guides, News, & Discussion] bullet25:
Sorry but that is THE reason we know its locked.

Technically yes, but for some reason SPFT is able to bypass or stop the bootloader from checking the modified partition.

Also most likly without an unlocked bootloader we wouldn't be able to make a CM14 at any point because the custom ROMs, from my understanding, would have to use a modified version of the stock boot.img and that would only be android 6.0 based. At the same time I belive it would also never allow us to get an official CM because the OTA updater in CM wouldn't be able to work.

---------- Post added at 02:52 PM ---------- Previous post was at 02:46 PM ----------

Also up there for the TWRP too.

https://www.reddit.com/r/Android/comments/4ugbsp/the_60_amazon_phone_the_blu_r1_hd_gets_twrp_and/
[BLU R1 HD Guides, News, & Discussion] ariesgodofwar:
It is already there: http://www.xda-developers.com/
[BLU R1 HD Guides, News, & Discussion] triggerlord:
Well, obviously it is locked. You didn't need to explain that to me. :D

I was asking if it even checks for changes. (SuperSU modifies the stock boot.img BTW.)
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
I'm literally crying right now. This made my month.
[BLU R1 HD Guides, News, & Discussion] mrzood:
I'm willing to TWRP restore a non-prime backup to my 16GB prime version.
[BLU R1 HD Guides, News, & Discussion] Varxxyy:
Force removed them. Constant error message of the package has crashed

---------- Post added at 08:52 PM ---------- Previous post was at 08:42 PM ----------

Would that work? Let's get some thoughts before we have brick.
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
If the partition maps are the same it should work fine. We know recovery and boot are, but we don't kniw about system or the other stuff. I can test this to confirm it is safe to do as I have a backup. [MENTION=2538428]mrzood[/MENTION], upload the backup whenever you're ready. Preferred you put it all in a .zip so I can extract it and it's all there.

Of course anyone else can test if they want to, but do it at your own risk. We don't know what the outcome is gonna be.

EDIT: Oops, mentioned the wrong person
[BLU R1 HD Guides, News, & Discussion] mrzood:
I also have a Prime version so I can't supply a zip of a non-prime version :)

If anyone needs a place to upload a zip let me know.
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Once again I read a post wrong. I took it as you saying you had a non prime version and we're willing to make a backup.

My apologies, it's been a long day ?
[BLU R1 HD Guides, News, & Discussion] Sorakun_skyboy:
No LTE

Hmmmmm. I have the Prime version of the phone. And I can't seem to ever connect to LTE. I'm not sure what is going on, I see HSPA and HSPA+ (briefly), and I am definitely within the coverage zone (Madison, WI), but I never have seen LTE connect, and I'm having terrible speeds.

Any help? At&t support was useless, other than allegedly confirming that the SIM is correct and should be fine. Suggested I go into APN and everything was present except for an option to check "fota", and still no luck. Getting pretty annoyed. They also said since it's "not an AT&T phone you won't get LTE speeds", which from this thread makes it sound like is entirely incorrect :P haha

Thanks
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Just found a file called fstab for the R1. I now have all partition mounts for this thing. Build.prop files can be edited to use these partitions. ROMs are now possible. https://mega.nz/#!l0sDzTKI!P1-gNtt_wkDVUtI80LsSRageqdXECOA4TqHYkMwk6lU

Go into Engineering Mode and enable all LTE bands you can enable and reboot, see if that works. You can get into that from an apk called MobileUncle Tools. If that doesn't work, unfortunately I don't know what to tell you other than to check the coverage map to see if LTE is supported in your area. The R1 may have weaker antennas than the previous LTE phones you've had if you had LTE before.
[BLU R1 HD Guides, News, & Discussion] r3faat1:
Thanks a lot for the great work guys. Will give it a go as soon as I get home.
[BLU R1 HD Guides, News, & Discussion] Gizmosis350k:
Im going to ask a question please humour me.

What is best way to perform a backup of /any/ MTK device <.< for flashing on SPFT
[BLU R1 HD Guides, News, & Discussion] Varxxyy:
Now we need a stock version of the Blu R1 HD to create a custom ROM to remove ads.
[BLU R1 HD Guides, News, & Discussion] ctastad:
Just a heads up, the link to more detailed instructions seems to be broken. I'm assuming this is what you were referring to.

http://xdaforums.com/r1-hd/how-to/blu-r1-hd-t3418354/post67891724#post67891724
[BLU R1 HD Guides, News, & Discussion] raven.warsong:
I flashes twrp recovery then flashed SuperSU.zip va twrp and the os hung at splash screen.

I just did a restore on backup

How Do I get root? Do I flash it va recovery?
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Make sure you're flashing the latest 2.76 SuperSU.

For that we need a complete scatter file, which we do not think we have. We can only confirm boot and recovery partitions are addressed correctly in bullet's scatter. We tried taking a system image but we can't confirm it is complete. And then there's all the other partitions as well...
[BLU R1 HD Guides, News, & Discussion] :
No, that just freezes the app, which it automatically unfreezes itself after rebooting.
[BLU R1 HD Guides, News, & Discussion] ss2man44:
I'm making an image of the phone's entire emmc chip from recovery with

dd if=/dev/block/mmcblk0 of=/external_sd/mmcblk0.img bs=4096

From there it can be examined on a desktop installation of Linux. I'm not 100% sure this will work, but it's how I'd do it on a regular machine.
[BLU R1 HD Guides, News, & Discussion] emc2cube:
Actually as soon as you remove some packages from the system, or modify the boot.img (SuperSu does it) the OTA package refuse to install.

It seems that a few modifications (removing checksum check for amazon packages) would allow to install it from TWRP.

BUT it will try to patch the boot.img that was modified by SuperSu and that will likely brick the device.

Looking at the OTA content, I think the vanilla phone have a different OTA, can anyone get the download url for this one?
[BLU R1 HD Guides, News, & Discussion] ss2man44:
Here's the output I obtained from running gdisk -l on the dump I made:

> gdisk -l mmcblk0.img
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk mmcblk0.img: 30785536 sectors, 14.7 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 00000000-0000-0000-0000-000000000000
Partition table holds up to 23 entries
First usable sector is 1024, last usable sector is 30784511
Partitions will be aligned on 1024-sector boundaries
Total free space is 0 sectors (0 bytes)

Number Start (sector) End (sector) Size Code Name
1 1024 7167 3.0 MiB 0700 proinfo
2 7168 17407 5.0 MiB 0700 nvram
3 17408 37887 10.0 MiB 0700 protect1
4 37888 58367 10.0 MiB 0700 protect2
5 58368 59391 512.0 KiB 0700 lk
6 59392 60415 512.0 KiB 0700 para
7 60416 93183 16.0 MiB 0700 boot
8 93184 125951 16.0 MiB 0700 recovery
9 125952 142335 8.0 MiB 0700 logo
10 142336 162815 10.0 MiB 0700 expdb
11 162816 163839 512.0 KiB 0700 seccfg
12 163840 167935 2.0 MiB 0700 oemkeystore
13 167936 180223 6.0 MiB 0700 secro
14 180224 196607 8.0 MiB 0700 keystore
15 196608 206847 5.0 MiB 0700 tee1
16 206848 217087 5.0 MiB 0700 tee2
17 217088 219135 1024.0 KiB 0700 frp
18 219136 284671 32.0 MiB 0700 nvdata
19 284672 360447 37.0 MiB 0700 metadata
20 360448 5832703 2.6 GiB 0700 system
21 5832704 6651903 400.0 MiB 0700 cache
22 6651904 30751743 11.5 GiB 0700 userdata
23 30751744 30784511 16.0 MiB 0700 flashinfo

Maybe it will be useful in creating a proper scatter file. Note that this was from the Amazon ad-supported 16GB model.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
check that out :)

(bootloader) max-download-size: 0x8000000

(bootloader) partition-size:flashinfo: 1000000

(bootloader) partition-type:flashinfo: raw data

(bootloader) partition-size:userdata: 32000000

(bootloader) partition-type:userdata: ext4

(bootloader) partition-size:cache: 19000000

(bootloader) partition-type:cache: ext4

(bootloader) partition-size:system: a7000000

(bootloader) partition-type:system: ext4

(bootloader) partition-size:metadata: 2500000

(bootloader) partition-type:metadata: raw data

(bootloader) partition-size:nvdata: 2000000

(bootloader) partition-type:nvdata: ext4

(bootloader) partition-size:frp: 100000

(bootloader) partition-type:frp: raw data

(bootloader) partition-size:tee2: 500000

(bootloader) partition-type:tee2: raw data

(bootloader) partition-size:tee1: 500000

(bootloader) partition-type:tee1: raw data

(bootloader) partition-size:keystore: 800000

(bootloader) partition-type:keystore: raw data

(bootloader) partition-size:secro: 600000

(bootloader) partition-type:secro: raw data

(bootloader) partition-size:oemkeystore: 200000

(bootloader) partition-type:oemkeystore: raw data

(bootloader) partition-size:seccfg: 80000

(bootloader) partition-type:seccfg: raw data

(bootloader) partition-size:expdb: a00000

(bootloader) partition-type:expdb: raw data

(bootloader) partition-size:logo: 800000

(bootloader) partition-type:logo: raw data

(bootloader) partition-size:recovery: 1000000

(bootloader) partition-type:recovery: raw data

(bootloader) partition-size:boot: 1000000

(bootloader) partition-type:boot: raw data

(bootloader) partition-size:para: 80000

(bootloader) partition-type:para: raw data

(bootloader) partition-size:lk: 80000

(bootloader) partition-type:lk: raw data

(bootloader) partition-size:protect2: a00000

(bootloader) partition-type:protect2: ext4

(bootloader) partition-size:protect1: a00000

(bootloader) partition-type:protect1: ext4

(bootloader) partition-size:nvram: 500000

(bootloader) partition-type:nvram: raw data

(bootloader) partition-size:proinfo: 300000

(bootloader) partition-type:proinfo: raw data

(bootloader) partition-size:preloader: 40000

(bootloader) partition-type:preloader: raw data

(bootloader) off-mode-charge: 1

(bootloader) warranty: no

(bootloader) unlocked: yes

(bootloader) secure: no

(bootloader) kernel: lk

(bootloader) product: P6601

(bootloader) version-preloader: 0.1.00

(bootloader) version: 0.5

all: Done!!
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Now we have to convert it to SP Flash Tools compatible.
[BLU R1 HD Guides, News, & Discussion] :
OK. I've removed ALL Amazon bloatware, as well as some Google bloatware, and I've replaced all the System UI sounds.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
I am working on a script the will unlock bootloader like i have above. Now that we have root this is possible :)
[BLU R1 HD Guides, News, & Discussion] choder:
I was able to use titanium backup pro to remove everything and didn't need to factory reset.
[BLU R1 HD Guides, News, & Discussion] calm_depression:
Well how did you get an ad free lockscreen without reset? If anyone else could help I would appreciate it

Also what band do I have to Enable via the mtk app, and is their any downside to doing that
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
Need a tester are you game? Blu-R1-HD-amazon-bootloader-unlock.zip just run the bat file for windows only at this point :) if people want mac and linux i can do that also
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Is this recovery flashable or something in SPFT?
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
run the bat script its simple just follow the directions
[BLU R1 HD Guides, News, & Discussion] choder:
I just use titanium backup pro to remove everything. Then I just Rebooted. That's a picture of my lock screen. I did not have to do a factory reset.
[BLU R1 HD Guides, News, & Discussion] triggerlord:
Dude, your site is legit. Do you mind if I link it to people asking for the files needed to root? (I'll make sure to tell them the bootloader unlock is untested.)

He means it doesn't show the "Just ask" background if you factory reset. It shows your wallpaper.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
yeah thats cool with me. well its tested on my device but thats it. the script i cant test because i am already unlocked
[BLU R1 HD Guides, News, & Discussion] ss2man44:
Couldn't SP Flash Tool be used to flash the frp partition directly instead of having to root first? Then TWRP can be installed with fastboot and SuperSU with TWRP, etc...
[BLU R1 HD Guides, News, & Discussion] emc2cube:
If you have the mac version I'm interested.

edit: actually looking at the .bat script is enough, I will give it a try tonight!
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
i think that may work also try it just edit the scatter
[BLU R1 HD Guides, News, & Discussion] triggerlord:
I'm about to test it. (Going to make another backup in TWRP first.) How will I be able to tell if it unlocked my bootloader?
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
please report back thanks
[BLU R1 HD Guides, News, & Discussion] lordmorphous:
I would like the linux version

Edit: nevermind...I followed the commands in the windows script manually and made it work. Thanks.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
edit the scatter to this and you can do it in sp flsah tool also if some one unlocks the bootloader this way i would really like them to fastboot boot TWRP then pull a stock recovery image please

if you dont know how i could remote in and get it :)

- partition_index: SYS18

partition_name: frp

file_name: unlock.img

is_download: true

type: NORMAL_ROM

linear_start_addr: 0x6a00000

physical_start_addr: 0x6a00000

partition_size: 0x100000

region: EMMC_USER

storage: HW_STORAGE_EMMC

boundary_check: true

is_reserved: false

operation_type: INVISIBLE

reserve: 0x00

---------- Post added at 06:59 PM ---------- Previous post was at 06:58 PM ----------

not yet
[BLU R1 HD Guides, News, & Discussion] ss2man44:
Yep, modifying the scatter and flashing your unlock.img through SP Flash Tool worked fine to unlock my bootloader.

Here's the relevant portion of the scatter:

- partition_index: SYS18
partition_name: frp
file_name: frp.img
is_download: true
type: NORMAL_ROM
linear_start_addr: 0x6a00000
physical_start_addr: 0x6a00000
partition_size: 0x100000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: INVISIBLE
reserve: 0x00

On a related note, I've determined that the scatter provided in the original zip is correct except for the userdata size.

EDIT: Oops, didn't see your edit. I appreciate the help though! I've already flashed TWRP to root, so I can't get you a stock recovery image, unfortunately.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
please can you pull stock recovery image for me
[BLU R1 HD Guides, News, & Discussion] ss2man44:
Sorry, I already flashed TWRP from before :(

We ought to start suggesting people use this method so they don't immediately overwrite their recovery.
[BLU R1 HD Guides, News, & Discussion] brockwitting:
I still have a factory fresh Prime R1 HD. Let me know if you want me to do anything.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
yes thats awesome i need the stock recovery image also I just uploaded a full sp flash tool with fixed scatter the unlock.img in it HERE
[BLU R1 HD Guides, News, & Discussion] triggerlord:
TWRP really does take forever to backup. Lol. I'm testing the .bat version in a moment when it's done. But nobody has answered my question yet, how will I be able to tell if it worked?

Wait. Which version should I try? Lol.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
with the script it will walk you through all the steps really easy :) you will now
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Just ran the batch file. Still no option in developer options menu for OEM unlock. Will reboot to fastboot to see if it changed anyway.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
it did run fastboot getvar all
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Yes, it did unlock! Amazing script! How does it work anyway?
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
magic lol you can look at it with a text editor like notepad ++ os we have one confirmation for the scipt thats awesome
[BLU R1 HD Guides, News, & Discussion] ss2man44:
I haven't been following this thread until today. Has anyone emailed Blu about the kernel source for the R1 HD?

That's all we need to put together a device tree and build AOSP, right?
[BLU R1 HD Guides, News, & Discussion] emc2cube:
Worked by doing it manually on mac.

(bootloader)	unlocked: yes
[BLU R1 HD Guides, News, & Discussion] calm_depression:
ok so im pretty confused, i did all of the steps backed up everything in twrp. and now when i try to enter recovery (twrp) again i get no command with a screen of a android with a red triangle. what did i do wrong, apologies for the dumb question
[BLU R1 HD Guides, News, & Discussion] jasonmerc:
Either that or we can do one of those easy MTK ports where you take a pre-existing MT6735 ROM and replace and change around a few files to get it to work. Although I can't find any CM13 builds for MT6735, so we may need a kernel source.

I'll call them about it tomorrow.
[BLU R1 HD Guides, News, & Discussion] lopestom:
https://www.androidfilehost.com/?w=files&flid=84555
[BLU R1 HD Guides, News, & Discussion] triggerlord:
OMG, TWRP is still backing up. xD
[BLU R1 HD Guides, News, & Discussion] bullet25:
I'm setting up an Index Thread. Would you two mind making either a new post or thread with the step by steps for these process so I can link it in there? Thanks
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
i am making a youtube video right now about this root method and it will be up really soon . then you can follow along :)

---------- Post added at 07:30 PM ---------- Previous post was at 07:29 PM ----------

thanks needed that :)

---------- Post added at 07:31 PM ---------- Previous post was at 07:30 PM ----------

thanks needed that :) but do you have v6.1 also
[BLU R1 HD Guides, News, & Discussion] emc2cube:
Instructions on how to do it with adb are here: http://xdaforums.com/showpost.php?p=67892852&postcount=567

(ES File explorer was not able to detect the systemless install of SuperSu, anyway this app is now bloated with useless things)
[BLU R1 HD Guides, News, & Discussion] bullet25:
NICE!

It just worked with mine too.

[MENTION=4246643]Tomsgt[/MENTION], Would it be safe to link to this right now in an index thread or do you need to edit it more?
[BLU R1 HD Guides, News, & Discussion] ss2man44:
We could do that, but being able to build AOSP is by far the better option, especially in the long run if we ever hope to have Nougat.
[BLU R1 HD Guides, News, & Discussion] calm_depression:
just to double check you installed http://xdaforums.com/xposed/material-design-xposed-installer-t3137758 this for xposed right, anything else? also i realized the reason i found twrp missing was because i restarted the phone before flashing super su (systemless btw not sure if its the right one)
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
thanks needed that :) but do you have v6.1 also

---------- Post added at 07:41 PM ---------- Previous post was at 07:40 PM ----------

its safe but the script is the best method and i will work on a linux and mac version soon :) working on some videos first

---------- Post added at 07:44 PM ---------- Previous post was at 07:41 PM ----------

Warning if you use Sp flash tool to unlock the bootloader and you already flashed TWRP you will get stuck in a bootloop after running command fastboot oem unlock

the fix is to run command fastboot format userdata after fastboot oem unlock then the device will boot again
[BLU R1 HD Guides, News, & Discussion] ss2man44:
Yeah, I should've mentioned that I had to manually format userdata. It's a harmless problem though because you can still access fastboot if you reboot.
[BLU R1 HD Guides, News, & Discussion] :
Sure thing
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
yeah i will make something up soon for the bootloader unlock script. but i have to finish my video first lol root tutorial video that is
[BLU R1 HD Guides, News, & Discussion] triggerlord:
Looks like it worked! :D
[BLU R1 HD Guides, News, & Discussion] ss2man44:
I can upload a flashable system.img without the Amazon apps and ads, but I have a slow upload speed and it'll take me all night.
[BLU R1 HD Guides, News, & Discussion] bullet25:
Guys I started an Index thread. Please let me know If I am missing anything in it. I probably am.

http://xdaforums.com/r1-hd/how-to/index-blu-r1-hd-amazon-oem-variants-t3426087

Just tag me or something when you do so I know to update the Index.
[BLU R1 HD Guides, News, & Discussion] triggerlord:
Unlocking the bootloader brought the ads back. Does anyone know what amazon apks to remove?

Edit: NVM, I fixed it.
[BLU R1 HD Guides, News, & Discussion] bullet25:
Well this has been a very productive 24 hours.

Working TWRP, Root, and Bootloader Unlock!

Congrats everybody!

EDIT: Also was there a post about disabling the OTA updates or no? if not does anybody have the steps to disable them?
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
yeah working on a good method for that maybe a custom image
[BLU R1 HD Guides, News, & Discussion] :
http://xdaforums.com/r1-hd/how-to/guide-installing-xposed-stock-rom-t3426100 Here we go.
[BLU R1 HD Guides, News, & Discussion] bullet25:
XDA is like broke for me or something right now, I can't reply to people. [MENTION=5355478]ColtonDRG[/MENTION], Thanks, added into Index.
[BLU R1 HD Guides, News, & Discussion] emc2cube:
Yes here : http://xdaforums.com/showpost.php?p=67899740&postcount=591

I also added this to the debloating post too http://xdaforums.com/r1-hd/how-to/blu-r1-hd-t3418354/post67892852#post67892852
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
here bootloader unlock script

http://xdaforums.com/r1-hd/development/r1-hd-amazon-bootloader-unlock-method-t3426104
[BLU R1 HD Guides, News, & Discussion] ase1590:
Hello, I cant seem to find V 1628 of SP Flash tool, can someone point me in the right direction?
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
http://rootjunkysdl.com/files/?dir=Blu R1 HD Amazon

[YOUTUBE]KMobKWfZbJg[/YOUTUBE]
[BLU R1 HD Guides, News, & Discussion] Oscar_david:
That's weird. ES root worked fine for me. I kinda agree with you about it being bloated. But I have yet to find another app I like better, and I've tried a bunch over the years.
[BLU R1 HD Guides, News, & Discussion] calm_depression:
so i got xposed working, minminguard latest alpha amplify youtube adaway all working fine, any chance we get a module that could "fix" the lockscreen. Also anyone need to me test anything xposed
[BLU R1 HD Guides, News, & Discussion] bullet25:
Hey look, I can quote people again...

Added to the index.

Also who has control of the subforum? I noticed the device info thing isn't in the upper left of the base page like other devices. If I can I'd like to/have somebody update that.
[BLU R1 HD Guides, News, & Discussion] Tomsgt:
you are going to need to add a video tutorial page to the index i think :)