• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

(Bootloader) Permission denied [SOLVED]

Search This thread

Dislekzi4

Member
Jun 19, 2020
21
3
Hi, I used Carbon ROM on XT1670, when I wanted to change ROM I ran:
Code:
fastboot -w
And i got this:

3.png


I also tried to remove them:

3.png


In TWRP I tried to do something but all I get is something similar to this:

2.png


Am I missing something? Thanks for your help.
 

Dislekzi4

Member
Jun 19, 2020
21
3
I've been reading the question and answer forum, apparently it's a problem with the encryption.

I don't have the Moto G5 right now, I can try it in a couple of hours, what other solution could I have anyway?
 

TheFixItMan

Senior Member
Jul 8, 2012
7,799
3,993
London
In twrp go to wipe
Then press the option on the right to format data
Reboot to recovery


Note this is different from wipe data from the advanced wipe menu.


The fastboot command would be
fastboot erase userdata
 

Dislekzi4

Member
Jun 19, 2020
21
3
In twrp go to wipe
Then press the option on the right to format data
Reboot to recovery


Note this is different from wipe data from the advanced wipe menu.


The fastboot command would be
fastboot erase userdata

Hello, good (and bad) news

I did and now I have MTP for TWRP.
But still CMD says "Bootloader is logical @@@ not found"

"@@@" is depending on what you are trying to flash, be it system or recovery.

I was also able to change the filesystem I did it for DATA / CACHE / SYSTEM I went from FAT and then to EXT4 again.

Insert a ROM and it flashed without problems but it starts again in fastboot, the same if I do it with ADB Sideload.

I also tried flashing Stock ROM, everything seems to be written without problem but with the first line of "Bootloader logical ... not found" and again start in fastboot.

It makes me believe that something is still encrypted.

I mean this.

5.png
 

TheFixItMan

Senior Member
Jul 8, 2012
7,799
3,993
London
Bootloader is logical not found - this is normal output

Why are you trying to change formats? You are going to have issues especially with encryption. Use twrp to format not fastboot if you are messing with formatting but make sure you know what you are doing!
 

Dislekzi4

Member
Jun 19, 2020
21
3
Bootloader is logical not found - this is normal output

Why are you trying to change formats? You are going to have issues especially with encryption. Use twrp to format not fastboot if you are messing with formatting but make sure you know what you are doing!

Ok, I'll get to the point.

I flash a rom (no apparent problem, even Stock ROM) but it only boots to fastboot or the robot with an open belly.

What exactly should I do, I will follow step by step, I really need to get it back. Thank you very much for your help.
 

Dislekzi4

Member
Jun 19, 2020
21
3
Hello again, I saw you in another post that apparently has the same problem as me, it is this:

 

TheFixItMan

Senior Member
Jul 8, 2012
7,799
3,993
London
Ok, I'll get to the point.

I flash a rom (no apparent problem, even Stock ROM) but it only boots to fastboot or the robot with an open belly.

What exactly should I do, I will follow step by step, I really need to get it back. Thank you very much for your help.

In twrp format data
That is by selecting wipe
Then the option on the right to format data
Reboot to recovery
Everything should now be mountable

Make sure you are flashing stock rom correctly

Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot

Making sure you are flashing the same or newer firmware version than already on your phone

If your phone keeps booting to recovery (android with an open stomach or twrp) then do this

Boot into twrp then connect phone to PC and in cmd/terminal type

Code:
adb shell dd if=/dev/zero of=/dev/block/platform/soc/7824900.sdhci/by-name/misc
Reboot and your device will boot normally (assuming you have a working rom)
 
  • Love
Reactions: Dislekzi4

Dislekzi4

Member
Jun 19, 2020
21
3
Hi, it work!

Thank you very much for your time and help, I am very grateful, for a moment I thought it was really a hardware problem.
 

TheFixItMan

Senior Member
Jul 8, 2012
7,799
3,993
London
I get device unauthorized. Please check the confirmation dialog on your device. and it won't let me do anything :(
Enable adb debugging on your device in dev options

Make sure you are using the latest platform tools


Unzip
Navigate your cmd window to to the platform tools directory

In cmd type
adb devices

Look on your phone and a window will pop up asking you to confirm authorisation - tick the box to allow always if you want to

Then type
adb devices

And your device is authorised
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Ok, I'll get to the point.

    I flash a rom (no apparent problem, even Stock ROM) but it only boots to fastboot or the robot with an open belly.

    What exactly should I do, I will follow step by step, I really need to get it back. Thank you very much for your help.

    In twrp format data
    That is by selecting wipe
    Then the option on the right to format data
    Reboot to recovery
    Everything should now be mountable

    Make sure you are flashing stock rom correctly

    Code:
    fastboot oem fb_mode_set
    fastboot flash partition gpt.bin
    fastboot flash bootloader bootloader.img
    fastboot flash logo logo.bin
    fastboot flash boot boot.img
    fastboot flash recovery recovery.img
    fastboot flash dsp adspso.bin
    fastboot flash oem oem.img
    fastboot flash system system.img_sparsechunk.0
    fastboot flash system system.img_sparsechunk.1
    fastboot flash system system.img_sparsechunk.2
    fastboot flash system system.img_sparsechunk.3
    fastboot flash system system.img_sparsechunk.4
    fastboot flash system system.img_sparsechunk.5
    fastboot flash system system.img_sparsechunk.6
    fastboot flash system system.img_sparsechunk.7
    fastboot flash system system.img_sparsechunk.8
    fastboot flash modem NON-HLOS.bin
    fastboot erase modemst1
    fastboot erase modemst2
    fastboot flash fsg fsg.mbn
    fastboot erase cache
    fastboot erase userdata
    fastboot oem fb_mode_clear
    fastboot reboot

    Making sure you are flashing the same or newer firmware version than already on your phone

    If your phone keeps booting to recovery (android with an open stomach or twrp) then do this

    Boot into twrp then connect phone to PC and in cmd/terminal type

    Code:
    adb shell dd if=/dev/zero of=/dev/block/platform/soc/7824900.sdhci/by-name/misc
    Reboot and your device will boot normally (assuming you have a working rom)