• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Unlock Bootloader in Lenovo Moto G5

Search This thread

Suman117

Senior Member
Apr 18, 2015
117
73
Kolkata
moto_g5_g5_plus_leak_twitter_1486732640779.jpg





Downloads



Steps To Unlock Bootloader


  1. First, enable the Developer option in your setting Go to Settings>About Phone> tap in Built Number multiple times un till the toast You are a developer now appears.
  2. Now Go to Developer option it will appear in Settings and find and enable OEM Unlock by sliding the button. A warning will appear just Confirm that.
  3. Turn Off Your smartphone.
  4. Press Volume Button and Power button simultaneously and hold it for few seconds. This will boot your device into fast boot mode.
  5. Now Open the ADB Tool Folder and Go to SDK> Platform Tools and right click pressing the Shift Key on your Keyboard and select Open Command here.
  6. Connect your device via USB cable ( good quality cable suggested for uninterrupted use).
  7. Type the command adb device you will see a serial number in the comment prompt screen if not then you missed some step.
  8. Now go to website Click here. Read the information given if you wish and click on Next button to proceed next step.
  9. You the Page will ask you to sign incomplete the process by signing with you Motorolla account or Google Account.
  10. Now go the Command Prompt and type fastboot oem get_unlock_data.
  11. Now a new serial code will appear in your command prompt screen you have to copy the entire code.
  12. Now open this link and paste the code in the tool. then select the entire code and paste that code in point 6 on Moto require Unlock Tool Website.
  13. Now Click on the I Agree Button a Get Unlock Code will appear on the screen.
  14. Click on the Button.
  15. An Unlock Code will appear.
  16. Now again go to the Command Prompt screen and type fast oem unlock ************. “*****” will replace your unique key.
A warning screen will appear in command just retype the same command and hit enter.


Done!!!
 
Last edited:

plewis1981

Senior Member
Aug 14, 2013
197
79
Nottingham
When I type adb device I the following,
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Minimal ADB and Fastboot>adb device
Android Debug Bridge version 1.0.36
Revision 0e9850346394-android

-a - directs adb to listen on all interfaces for a c
onnection
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <specific device> - directs command to the device or emulator with
the given
serial number or qualifier. Overrides ANDROID_S
ERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT

environment variable is used, which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this command with no additional arguments

will disconnect from all connected TCP/IP devic
es.

device commands:
adb push <local>... <remote>
- copy files/dirs to device
adb pull [-a] <remote>... <local>
- copy files/dirs from device
(-a preserves file timestamp and mode)
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
adb shell [-e escape] [-n] [-Tt] [-x] [command]
- run remote shell command (interactive shell if
no command given)
(-e: choose escape character, or "none"; defaul
t '~')
(-n: don't read from stdin)
(-T: disable PTY allocation)
(-t: force PTY allocation)
(-x: disable remote exit codes and stdout/stder
r separation)
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the followin
g format:
<serial> " " <local> " " <remote> "\n"
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb forward --no-rebind <local> <remote>
- same as 'adb forward <local> <remote>' but fail
s
if <local> is already forwarded
adb forward --remove <local> - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb reverse --list - list all reverse socket connections from device

adb reverse <remote> <local> - reverse socket connections
reverse specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
adb reverse --no-rebind <remote> <local>
- same as 'adb reverse <remote> <local>' but fail
s
if <remote> is already reversed.
adb reverse --remove <remote>
- remove a specific reversed socket connection
adb reverse --remove-all - remove all reversed socket connections from dev
ice
adb jdwp - list PIDs of processes hosting a JDWP transport

adb install [-lrtsdg] <file>
- push this package file to the device and instal
l it
(-l: forward lock application)
(-r: replace existing application)
(-t: allow test packages)
(-s: install application on sdcard)
(-d: allow version code downgrade (debuggable p
ackages only))
(-g: grant all runtime permissions)
adb install-multiple [-lrtsdpg] <file...>
- push this package file to the device and instal
l it
(-l: forward lock application)
(-r: replace existing application)
(-t: allow test packages)
(-s: install application on sdcard)
(-d: allow version code downgrade (debuggable p
ackages only))
(-p: partial application install)
(-g: grant all runtime permissions)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport [<path>] - return all information from the device that sho
uld be included in a zipped bug report.
If <path> is a file, the bug report will be sav
ed as that file.
If <path> is a directory, the bug report will b
e saved in that directory with the name provided by the device.
If <path> is omitted, the bug report will be sa
ved in the current directory with the name provided by the device.
NOTE: if the device does not support zipped bug
reports, the bug report will be output on stdout.
adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all]
[-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>
.
If no -f option is supplied then the data is wr
itten
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks
themselves
in the archive; the default is noapk.)
(-obb|-noobb enable/disable backup of any insta
lled apk expansion
(aka .obb) files associated with each applic
ation; the default
is noobb.)
(-shared|-noshared enable/disable backup of the
device's
shared storage / SD card contents; the defau
lt is noshared.)
(-all means to back up all installed applicatio
ns)
(-system|-nosystem toggles whether -all automat
ically includes
system applications; the default is to inclu
de system apps)
(<packages...> is the list of applications to b
e backed up. If
the -all or -shared flags are passed, then t
he package
list is optional. Applications explicitly g
iven on the
command line will be included even if -nosys
tem would
ordinarily cause them to be omitted.)

adb restore <file> - restore device contents from the <file> backup
archive

adb disable-verity - disable dm-verity checking on USERDEBUG builds
adb enable-verity - re-enable dm-verity checking on USERDEBUG build
s
adb keygen <file> - generate adb public/private key. The private ke
y is stored in <file>,
and the public key is stored in <file>.pub. Any
existing files
are overwritten.
adb help - show this help message
adb version - show version num

scripting:
adb wait-for[-<transport>]-<state>
- wait for device to be in the given state:
device, recovery, sideload, or bootloader
Transport is: usb, local or any [default=any]
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb remount - remounts the /system, /vendor (if present) and
/oem (if present) partitions on the device read-write
adb reboot [bootloader|recovery]
- reboots the device, optionally into the bootloa
der or recovery program.
adb reboot sideload - reboots the device into the sideload mode in re
covery program (adb root required).
adb reboot sideload-auto-reboot
- reboots into the sideload mode, then reboots au
tomatically after the sideload regardless of the result.
adb sideload <file> - sideloads the given package
adb root - restarts the adbd daemon with root permissions
adb unroot - restarts the adbd daemon without root permissio
ns
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port

networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:

- If <directory> is not specified, /system, /vendor (if present), /oem (if pre
sent) and /data partitions will be updated.

- If it is "system", "vendor", "oem" or "data", only the corresponding partiti
on
is updated.

internal debugging:
adb reconnect Kick current connection from host side and make
it reconnect.
adb reconnect device Kick current connection from device side and ma
ke it reconnect.
environment variables:
ADB_TRACE - Print debug information. A comma separated list
of the following values
1 or all, adb, sockets, packets, rwx, usb, sync
, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes prior
ity over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these de
bug tags are printed.

C:\Program Files (x86)\Minimal ADB and Fastboot>

and if i type the get unlock data command i get waiting for any device, does anyone know what the problem could be as i have the drivers installed from the Motorola site

sorry about the big post

EDIT, PROBLEM FOUND MY DRIVERS ARE NOT INSTALLED PROPERLY
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,833
4,027
London
When I type adb device I the following,
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Minimal ADB and Fastboot>adb device
Android Debug Bridge version 1.0.36
Revision 0e9850346394-android

-a - directs adb to listen on all interfaces for a c
onnection
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <specific device> - directs command to the device or emulator with
the given
serial number or qualifier. Overrides ANDROID_S
ERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT

environment variable is used, which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this command with no additional arguments

will disconnect from all connected TCP/IP devic
es.

device commands:
adb push <local>... <remote>
- copy files/dirs to device
adb pull [-a] <remote>... <local>
- copy files/dirs from device
(-a preserves file timestamp and mode)
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
adb shell [-e escape] [-n] [-Tt] [-x] [command]
- run remote shell command (interactive shell if
no command given)
(-e: choose escape character, or "none"; defaul
t '~')
(-n: don't read from stdin)
(-T: disable PTY allocation)
(-t: force PTY allocation)
(-x: disable remote exit codes and stdout/stder
r separation)
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the followin
g format:
<serial> " " <local> " " <remote> "\n"
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb forward --no-rebind <local> <remote>
- same as 'adb forward <local> <remote>' but fail
s
if <local> is already forwarded
adb forward --remove <local> - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb reverse --list - list all reverse socket connections from device

adb reverse <remote> <local> - reverse socket connections
reverse specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
adb reverse --no-rebind <remote> <local>
- same as 'adb reverse <remote> <local>' but fail
s
if <remote> is already reversed.
adb reverse --remove <remote>
- remove a specific reversed socket connection
adb reverse --remove-all - remove all reversed socket connections from dev
ice
adb jdwp - list PIDs of processes hosting a JDWP transport

adb install [-lrtsdg] <file>
- push this package file to the device and instal
l it
(-l: forward lock application)
(-r: replace existing application)
(-t: allow test packages)
(-s: install application on sdcard)
(-d: allow version code downgrade (debuggable p
ackages only))
(-g: grant all runtime permissions)
adb install-multiple [-lrtsdpg] <file...>
- push this package file to the device and instal
l it
(-l: forward lock application)
(-r: replace existing application)
(-t: allow test packages)
(-s: install application on sdcard)
(-d: allow version code downgrade (debuggable p
ackages only))
(-p: partial application install)
(-g: grant all runtime permissions)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport [<path>] - return all information from the device that sho
uld be included in a zipped bug report.
If <path> is a file, the bug report will be sav
ed as that file.
If <path> is a directory, the bug report will b
e saved in that directory with the name provided by the device.
If <path> is omitted, the bug report will be sa
ved in the current directory with the name provided by the device.
NOTE: if the device does not support zipped bug
reports, the bug report will be output on stdout.
adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all]
[-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>
.
If no -f option is supplied then the data is wr
itten
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks
themselves
in the archive; the default is noapk.)
(-obb|-noobb enable/disable backup of any insta
lled apk expansion
(aka .obb) files associated with each applic
ation; the default
is noobb.)
(-shared|-noshared enable/disable backup of the
device's
shared storage / SD card contents; the defau
lt is noshared.)
(-all means to back up all installed applicatio
ns)
(-system|-nosystem toggles whether -all automat
ically includes
system applications; the default is to inclu
de system apps)
(<packages...> is the list of applications to b
e backed up. If
the -all or -shared flags are passed, then t
he package
list is optional. Applications explicitly g
iven on the
command line will be included even if -nosys
tem would
ordinarily cause them to be omitted.)

adb restore <file> - restore device contents from the <file> backup
archive

adb disable-verity - disable dm-verity checking on USERDEBUG builds
adb enable-verity - re-enable dm-verity checking on USERDEBUG build
s
adb keygen <file> - generate adb public/private key. The private ke
y is stored in <file>,
and the public key is stored in <file>.pub. Any
existing files
are overwritten.
adb help - show this help message
adb version - show version num

scripting:
adb wait-for[-<transport>]-<state>
- wait for device to be in the given state:
device, recovery, sideload, or bootloader
Transport is: usb, local or any [default=any]
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb remount - remounts the /system, /vendor (if present) and
/oem (if present) partitions on the device read-write
adb reboot [bootloader|recovery]
- reboots the device, optionally into the bootloa
der or recovery program.
adb reboot sideload - reboots the device into the sideload mode in re
covery program (adb root required).
adb reboot sideload-auto-reboot
- reboots into the sideload mode, then reboots au
tomatically after the sideload regardless of the result.
adb sideload <file> - sideloads the given package
adb root - restarts the adbd daemon with root permissions
adb unroot - restarts the adbd daemon without root permissio
ns
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port

networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:

- If <directory> is not specified, /system, /vendor (if present), /oem (if pre
sent) and /data partitions will be updated.

- If it is "system", "vendor", "oem" or "data", only the corresponding partiti
on
is updated.

internal debugging:
adb reconnect Kick current connection from host side and make
it reconnect.
adb reconnect device Kick current connection from device side and ma
ke it reconnect.
environment variables:
ADB_TRACE - Print debug information. A comma separated list
of the following values
1 or all, adb, sockets, packets, rwx, usb, sync
, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes prior
ity over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these de
bug tags are printed.

C:\Program Files (x86)\Minimal ADB and Fastboot>

and if i type the get unlock data command i get waiting for any device, does anyone know what the problem could be as i have the drivers installed from the Motorola site

sorry about the big post

EDIT, PROBLEM FOUND MY DRIVERS ARE NOT INSTALLED PROPERLY



You got that because you typed the command wrong

You typed adb device
It should be adb devices

You missed the s
 
  • Like
Reactions: plewis1981

punkrockfan

Senior Member
Aug 23, 2012
223
7
with windows 10 x64 adb devices always gives me a bunch of red error lines of wrong commands,


last motorola was an razr i and from that time i remember motorola and windows 10 never have been good friends, still that or what to do?(
 

TheFixItMan

Senior Member
Jul 8, 2012
7,833
4,027
London
with windows 10 x64 adb devices always gives me a bunch of red error lines of wrong commands,


last motorola was an razr i and from that time i remember motorola and windows 10 never have been good friends, still that or what to do?(

Works perfectly fine for me
Here is my adb/fastboot folder
https://forum.xda-developers.com/attachment.php?attachmentid=4238479&d=1502448621


I suggest adding the folder to the windows environmental variables then you can run the adb command from any window you launch CMD/terminal from & you won't have to navigate to the adb folder

Note if you using the power shell in Windows 10 with fastboot you may have to type ./fastboot
 
  • Like
Reactions: punkrockfan

No_Signal

Senior Member
Feb 28, 2014
83
19
Got my G5 today and tried to unlock its bootloader. Motorola USB drivers installed, adbdriver and latest windows ADB Tools extracted.
Following this guide (maybe a mod could correct the wrong "adb devices" command in the first post) running adb devices in my adb folder via CMD I get
Code:
List of devices attached
* daemon not running. starting it now at tcp:5037 *
*daemon started successfully *

followed by two two emty lines as output. Repeating the command adb devices the same, just two emty lines.

Serial Number can also be found when entering fastboot screen on the phone itself anyway, no? That's where I see it between
Code:
Product/Variant: cedric XT1676 16GB P5
Serial Number: AA12345678XX
CPU: MSM8937

According Motorola serial number and that step is not even needed.

Running the fastboot oem get_unlock_data command "the returned string will be used to retrieve your unlock key". This is how this string is supposed to look like:
Code:
$ fastboot oem get_unlock_data
 (bootloader) 0A40040192024205#4C4D3556313230
 (bootloader) 30373731363031303332323239#BD00
 (bootloader) 8A672BA4746C2CE02328A2AC0C39F95
 (bootloader) 1A3E5#1F53280002000000000000000
 (bootloader) 0000000

instead I get like this (using dummy code from above):
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
...
(bootloader) 0A40040192024205#   (16 characters as above, fine)
(bootloader) 30373731363031303332323239111111111111#   (40 characters instead of [B]27 up to and incl # +4 more = 31[/B])
(bootloader) 8A672BA4746C2CE02328A2AC0C39F9511111111#    (same here, 40 characters is my output instead of [B]31[/B])
(bootloader) 1A3E51F532800020000000000000000      (32 characters instead of [B]31[/B])
OKAY   [     0,107s]
finished.  total time:  0,108s

Put it into the Unlock Data Scrub, just in case, but get a "your device does not qualify for bootloader unlocking".
No SIM Card(s) have been inserted yet nor did any connection to the internet took place.
Anyone got an idea what's wrong?
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,833
4,027
London
Got my G5 today and tried to unlock its bootloader. Motorola USB drivers installed, adbdriver and latest windows ADB Tools extracted.
Following this guide (maybe a mod could correct the wrong "adb devices" command in the first post) running adb devices in my adb folder via CMD I get
Code:
List of devices attached
* daemon not running. starting it now at tcp:5037 *
*daemon started successfully *

followed by two two emty lines as output. Repeating the command adb devices the same, just two emty lines.

Serial Number can also be found when entering fastboot screen on the phone itself anyway, no? That's where I see it between
Code:
Product/Variant: cedric XT1676 16GB P5
Serial Number: AA12345678XX
CPU: MSM8937

According Motorola serial number and that step is not even needed.

Running the fastboot oem get_unlock_data command "the returned string will be used to retrieve your unlock key". This is how this string is supposed to look like:
Code:
$ fastboot oem get_unlock_data
 (bootloader) 0A40040192024205#4C4D3556313230
 (bootloader) 30373731363031303332323239#BD00
 (bootloader) 8A672BA4746C2CE02328A2AC0C39F95
 (bootloader) 1A3E5#1F53280002000000000000000
 (bootloader) 0000000

instead I get like this (using dummy code from above):
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
...
(bootloader) 0A40040192024205#   (16 characters as above, fine)
(bootloader) 30373731363031303332323239111111111111#   (40 characters instead of [B]27 up to and incl # +4 more = 31[/B])
(bootloader) 8A672BA4746C2CE02328A2AC0C39F9511111111#    (same here, 40 characters is my output instead of [B]31[/B])
(bootloader) 1A3E5#1F5328000200000000000000#      (32 characters instead of [B]31[/B])
OKAY   [     0,107s]
finished.  total time:  0,108s

Put it into the Unlock Data Scrub, just in case, but get a "your device does not qualify for bootloader unlocking".
Anyone got an idea what's wrong?

All the outputs look correct to me

Either

1 - you haven't entered the code correctly - copy it into a text editor first & tidy up any spaces before copying it to website

2 - you are using a amazon variant which cannot be unlocked

There is a typo it should be adb devices
Follow the instructions on the Motorola boot loader unlock site especially the part how to copy & past codes from terminal window as some codes you need to remove the line brakes so

123
456
789

Becomes 123456789 and of course you need to remove the (bootloader) parts too so it's just the code on a single line
 
Last edited:
  • Like
Reactions: No_Signal

No_Signal

Senior Member
Feb 28, 2014
83
19
All the outputs look correct to me

Either

1 - you haven't entered the code correctly - copy it into a text editor first & tidy up any spaces before copying it to website

2 - you are using a amazon variant which cannot be unlocked

There is a typo it should be adb devices
Follow the instructions on the Motorola boot loader unlock site especially the part how to copy & past codes from terminal window as some codes you need to remove the line brakes so

123
456
789

Becomes 123456789 and of course you need to remove the (bootloader) parts too so it's just the code on a single line

Had to correct the last line I wrote in my post at first, those 32 characters don't have any # in it.
I'm wondering why I have more characters than the number in Motorola's example - this can't be wrong? Also four lines instead of five.

I made sure controlling it several times that the code is correct, manually and by using also Data Scrub, just in case.

The phone itself is a retail one, also says so under Android -> Phone status -> Software Channel -> reteu.
Wouldn't want to start the phone/use it with all that google crap on it. AFWall+ with Googles IP Range is just a workaround.
A Replicant ROM will be great for the future.
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,833
4,027
London
Had to correct the last line I wrote in my post at first, those 32 characters don't have any # in it.
I'm wondering why I have more characters than the number in Motorola's example - this can't be wrong? Also four lines instead of five.

I made sure controlling it several times that the code is correct, manually and by using also Data Scrub, just in case.

The phone itself is a retail one, also says so under Android -> Phone status -> Software Channel -> reteu.
Wouldn't want to start the phone/use it with all that google crap on it. AFWall+ with Googles IP Range is just a workaround.
A Replicant ROM will be great for the future.

I also assume you have installed the Motorola drivers & have enabled usb debugging and are using the adb & fastboot from the Android sdk which you have installed from
https://developer.android.com/studio/index.html

I can't offer anymore advice
 

No-New-Phone

Senior Member
Jan 15, 2011
199
53
Xiaomi Poco F1
@Suman117
Thank you for your guide. But would you mind correcting your first post, so other users don't run into the same disturbances I did?

I suggest to change the order of the steps, just after Step 2: before turning the smartphone off, go ahead with Step 5, 6 and 7. Step 7 should read "adb devices", not "adb device", as some other readers have mentioned already. First, this is useful to grant adb authoration (at the phones display). Second, when the phone is in fastboot mode, the command is "fastboot devices", not "adb devices".
So basically: New Step 2a: Type "adb devices" and grant permission.
Correction for step 7: "fastboot devices"
  1. First, enable the Developer option in your setting Go to Settings>About Phone> tap in Built Number multiple times un till the toast You are a developer now appears.
  2. Now Go to Developer option it will appear in Settings and find and enable OEM Unlock by sliding the button. A warning will appear just Confirm that.
  3. Turn Off Your smartphone.
  4. Press Volume Button and Power button simultaneously and hold it for few seconds. This will boot your device into fast boot mode.
  5. Now Open the ADB Tool Folder and Go to SDK> Platform Tools and right click pressing the Shift Key on your Keyboard and select Open Command here.
  6. Connect your device via USB cable ( good quality cable suggested for uninterrupted use).
  7. Type the command adb device you will see a serial number in the comment prompt screen if not then you missed some step.
  8. Now go to website Click here. Read the information given if you wish and click on Next button to proceed next step.
  9. You the Page will ask you to sign incomplete the process by signing with you Motorolla account or Google Account.
  10. Now go the Command Prompt and type fastboot oem get_unlock_data.
  11. Now a new serial code will appear in your command prompt screen you have to copy the entire code.
  12. Now open this link and paste the code in the tool. then select the entire code and paste that code in point 6 on Moto require Unlock Tool Website.
  13. Now Click on the I Agree Button a Get Unlock Code will appear on the screen.
  14. Click on the Button.
  15. An Unlock Code will appear.
  16. Now again go to the Command Prompt screen and type fast oem unlock ************. “*****” will replace your unique key.
A warning screen will appear in command just retype the same command and hit enter.

Done!!!

Thank you!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    moto_g5_g5_plus_leak_twitter_1486732640779.jpg





    Downloads



    Steps To Unlock Bootloader


    1. First, enable the Developer option in your setting Go to Settings>About Phone> tap in Built Number multiple times un till the toast You are a developer now appears.
    2. Now Go to Developer option it will appear in Settings and find and enable OEM Unlock by sliding the button. A warning will appear just Confirm that.
    3. Turn Off Your smartphone.
    4. Press Volume Button and Power button simultaneously and hold it for few seconds. This will boot your device into fast boot mode.
    5. Now Open the ADB Tool Folder and Go to SDK> Platform Tools and right click pressing the Shift Key on your Keyboard and select Open Command here.
    6. Connect your device via USB cable ( good quality cable suggested for uninterrupted use).
    7. Type the command adb device you will see a serial number in the comment prompt screen if not then you missed some step.
    8. Now go to website Click here. Read the information given if you wish and click on Next button to proceed next step.
    9. You the Page will ask you to sign incomplete the process by signing with you Motorolla account or Google Account.
    10. Now go the Command Prompt and type fastboot oem get_unlock_data.
    11. Now a new serial code will appear in your command prompt screen you have to copy the entire code.
    12. Now open this link and paste the code in the tool. then select the entire code and paste that code in point 6 on Moto require Unlock Tool Website.
    13. Now Click on the I Agree Button a Get Unlock Code will appear on the screen.
    14. Click on the Button.
    15. An Unlock Code will appear.
    16. Now again go to the Command Prompt screen and type fast oem unlock ************. “*****” will replace your unique key.
    A warning screen will appear in command just retype the same command and hit enter.


    Done!!!
    1
    what should I do if the message with the unlock code never reached to my mail?


    Check junk mail
    Resend code
    Start again
    Use different email from another provider
    1
    When I type adb device I the following,
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Program Files (x86)\Minimal ADB and Fastboot>adb device
    Android Debug Bridge version 1.0.36
    Revision 0e9850346394-android

    -a - directs adb to listen on all interfaces for a c
    onnection
    -d - directs command to the only connected USB devic
    e
    returns an error if more than one USB device is
    present.
    -e - directs command to the only running emulator.
    returns an error if more than one emulator is r
    unning.
    -s <specific device> - directs command to the device or emulator with
    the given
    serial number or qualifier. Overrides ANDROID_S
    ERIAL
    environment variable.
    -p <product name or path> - simple product name like 'sooner', or
    a relative/absolute path to a product
    out directory like 'out/target/product/sooner'.

    If -p is not specified, the ANDROID_PRODUCT_OUT

    environment variable is used, which must
    be an absolute path.
    -H - Name of adb server host (default: localhost)
    -P - Port of adb server (default: 5037)
    devices [-l] - list all connected devices
    ('-l' will also list device qualifiers)
    connect <host>[:<port>] - connect to a device via TCP/IP
    Port 5555 is used by default if no port number
    is specified.
    disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
    Port 5555 is used by default if no port number
    is specified.
    Using this command with no additional arguments

    will disconnect from all connected TCP/IP devic
    es.

    device commands:
    adb push <local>... <remote>
    - copy files/dirs to device
    adb pull [-a] <remote>... <local>
    - copy files/dirs from device
    (-a preserves file timestamp and mode)
    adb sync [ <directory> ] - copy host->device only if changed
    (-l means list but don't copy)
    adb shell [-e escape] [-n] [-Tt] [-x] [command]
    - run remote shell command (interactive shell if
    no command given)
    (-e: choose escape character, or "none"; defaul
    t '~')
    (-n: don't read from stdin)
    (-T: disable PTY allocation)
    (-t: force PTY allocation)
    (-x: disable remote exit codes and stdout/stder
    r separation)
    adb emu <command> - run emulator console command
    adb logcat [ <filter-spec> ] - View device log
    adb forward --list - list all forward socket connections.
    the format is a list of lines with the followin
    g format:
    <serial> " " <local> " " <remote> "\n"
    adb forward <local> <remote> - forward socket connections
    forward specs are one of:
    tcp:<port>
    localabstract:<unix domain socket name>
    localreserved:<unix domain socket name>
    localfilesystem:<unix domain socket name>
    dev:<character device name>
    jdwp:<process pid> (remote only)
    adb forward --no-rebind <local> <remote>
    - same as 'adb forward <local> <remote>' but fail
    s
    if <local> is already forwarded
    adb forward --remove <local> - remove a specific forward socket connection
    adb forward --remove-all - remove all forward socket connections
    adb reverse --list - list all reverse socket connections from device

    adb reverse <remote> <local> - reverse socket connections
    reverse specs are one of:
    tcp:<port>
    localabstract:<unix domain socket name>
    localreserved:<unix domain socket name>
    localfilesystem:<unix domain socket name>
    adb reverse --no-rebind <remote> <local>
    - same as 'adb reverse <remote> <local>' but fail
    s
    if <remote> is already reversed.
    adb reverse --remove <remote>
    - remove a specific reversed socket connection
    adb reverse --remove-all - remove all reversed socket connections from dev
    ice
    adb jdwp - list PIDs of processes hosting a JDWP transport

    adb install [-lrtsdg] <file>
    - push this package file to the device and instal
    l it
    (-l: forward lock application)
    (-r: replace existing application)
    (-t: allow test packages)
    (-s: install application on sdcard)
    (-d: allow version code downgrade (debuggable p
    ackages only))
    (-g: grant all runtime permissions)
    adb install-multiple [-lrtsdpg] <file...>
    - push this package file to the device and instal
    l it
    (-l: forward lock application)
    (-r: replace existing application)
    (-t: allow test packages)
    (-s: install application on sdcard)
    (-d: allow version code downgrade (debuggable p
    ackages only))
    (-p: partial application install)
    (-g: grant all runtime permissions)
    adb uninstall [-k] <package> - remove this app package from the device
    ('-k' means keep the data and cache directories
    )
    adb bugreport [<path>] - return all information from the device that sho
    uld be included in a zipped bug report.
    If <path> is a file, the bug report will be sav
    ed as that file.
    If <path> is a directory, the bug report will b
    e saved in that directory with the name provided by the device.
    If <path> is omitted, the bug report will be sa
    ved in the current directory with the name provided by the device.
    NOTE: if the device does not support zipped bug
    reports, the bug report will be output on stdout.
    adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all]
    [-system|-nosystem] [<packages...>]
    - write an archive of the device's data to <file>
    .
    If no -f option is supplied then the data is wr
    itten
    to "backup.ab" in the current directory.
    (-apk|-noapk enable/disable backup of the .apks
    themselves
    in the archive; the default is noapk.)
    (-obb|-noobb enable/disable backup of any insta
    lled apk expansion
    (aka .obb) files associated with each applic
    ation; the default
    is noobb.)
    (-shared|-noshared enable/disable backup of the
    device's
    shared storage / SD card contents; the defau
    lt is noshared.)
    (-all means to back up all installed applicatio
    ns)
    (-system|-nosystem toggles whether -all automat
    ically includes
    system applications; the default is to inclu
    de system apps)
    (<packages...> is the list of applications to b
    e backed up. If
    the -all or -shared flags are passed, then t
    he package
    list is optional. Applications explicitly g
    iven on the
    command line will be included even if -nosys
    tem would
    ordinarily cause them to be omitted.)

    adb restore <file> - restore device contents from the <file> backup
    archive

    adb disable-verity - disable dm-verity checking on USERDEBUG builds
    adb enable-verity - re-enable dm-verity checking on USERDEBUG build
    s
    adb keygen <file> - generate adb public/private key. The private ke
    y is stored in <file>,
    and the public key is stored in <file>.pub. Any
    existing files
    are overwritten.
    adb help - show this help message
    adb version - show version num

    scripting:
    adb wait-for[-<transport>]-<state>
    - wait for device to be in the given state:
    device, recovery, sideload, or bootloader
    Transport is: usb, local or any [default=any]
    adb start-server - ensure that there is a server running
    adb kill-server - kill the server if it is running
    adb get-state - prints: offline | bootloader | device
    adb get-serialno - prints: <serial-number>
    adb get-devpath - prints: <device-path>
    adb remount - remounts the /system, /vendor (if present) and
    /oem (if present) partitions on the device read-write
    adb reboot [bootloader|recovery]
    - reboots the device, optionally into the bootloa
    der or recovery program.
    adb reboot sideload - reboots the device into the sideload mode in re
    covery program (adb root required).
    adb reboot sideload-auto-reboot
    - reboots into the sideload mode, then reboots au
    tomatically after the sideload regardless of the result.
    adb sideload <file> - sideloads the given package
    adb root - restarts the adbd daemon with root permissions
    adb unroot - restarts the adbd daemon without root permissio
    ns
    adb usb - restarts the adbd daemon listening on USB
    adb tcpip <port> - restarts the adbd daemon listening on TCP on th
    e specified port

    networking:
    adb ppp <tty> [parameters] - Run PPP over USB.
    Note: you should not automatically start a PPP connection.
    <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
    [parameters] - Eg. defaultroute debug dump local notty usepeerdns

    adb sync notes: adb sync [ <directory> ]
    <localdir> can be interpreted in several ways:

    - If <directory> is not specified, /system, /vendor (if present), /oem (if pre
    sent) and /data partitions will be updated.

    - If it is "system", "vendor", "oem" or "data", only the corresponding partiti
    on
    is updated.

    internal debugging:
    adb reconnect Kick current connection from host side and make
    it reconnect.
    adb reconnect device Kick current connection from device side and ma
    ke it reconnect.
    environment variables:
    ADB_TRACE - Print debug information. A comma separated list
    of the following values
    1 or all, adb, sockets, packets, rwx, usb, sync
    , sysdeps, transport, jdwp
    ANDROID_SERIAL - The serial number to connect to. -s takes prior
    ity over this if given.
    ANDROID_LOG_TAGS - When used with the logcat option, only these de
    bug tags are printed.

    C:\Program Files (x86)\Minimal ADB and Fastboot>

    and if i type the get unlock data command i get waiting for any device, does anyone know what the problem could be as i have the drivers installed from the Motorola site

    sorry about the big post

    EDIT, PROBLEM FOUND MY DRIVERS ARE NOT INSTALLED PROPERLY



    You got that because you typed the command wrong

    You typed adb device
    It should be adb devices

    You missed the s
    1
    with windows 10 x64 adb devices always gives me a bunch of red error lines of wrong commands,


    last motorola was an razr i and from that time i remember motorola and windows 10 never have been good friends, still that or what to do?(

    Works perfectly fine for me
    Here is my adb/fastboot folder
    https://forum.xda-developers.com/attachment.php?attachmentid=4238479&d=1502448621


    I suggest adding the folder to the windows environmental variables then you can run the adb command from any window you launch CMD/terminal from & you won't have to navigate to the adb folder

    Note if you using the power shell in Windows 10 with fastboot you may have to type ./fastboot
    1
    yep powershell was the issue, running cmd works fine, thx

    If you want to use powershell add the folder to the environmental values in Windows (control panel system environmental values)

    And start the commands with a ./ if it says unknown batch operation