Skip to content

Commit

Permalink
wiki: Add OEM unlock toggle mention to fastboot_sony
Browse files Browse the repository at this point in the history
And hide it for all fastboot_sony devices released prior to 2018.

Co-authored-by: LuK1337 <[email protected]>
Change-Id: I3148fb95f953e6b9c490d6a036243e373ebd443a
  • Loading branch information
lohithbb and luk1337 committed Aug 5, 2024
1 parent 217369d commit fabdb42
Show file tree
Hide file tree
Showing 24 changed files with 32 additions and 6 deletions.
1 change: 1 addition & 0 deletions _data/devices/castor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ maintainers: []
models: [SGP521, SGP541, SGP551]
name: Xperia Tablet Z2 LTE
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [A-GPS, Accelerometer, Compass, Dual front speakers, FM radio, GLONASS, GPS, Gyroscope, MHL, NFC, USB OTG]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>. Keep holding both buttons until the device vibrates, then release.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/castor_windy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ maintainers: []
models: [SGP511, SGP512]
name: Xperia Tablet Z2 Wi-Fi
network: None
no_oem_unlock_switch: true
peripherals: [A-GPS, Accelerometer, Compass, Dual front speakers, FM radio, GLONASS, GPS, Gyroscope, MHL, NFC, USB OTG]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>. Keep holding both buttons until the device vibrates, then release.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/dogo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_apq8064, version: '3.4'}
maintainers: []
name: Xperia ZR
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 2 GB LPDDR2
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/hayabusa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ kernel: {repo: android_kernel_sony_msm8x60, version: '3.4'}
maintainers: []
name: Xperia TX
network: [2G GSM, 3G UMTS]
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 1 GB
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br/><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/huashan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_msm8960t, version: '3.4'}
maintainers: []
name: Xperia SP
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 1 GB
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/ivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ kernel: {repo: android_kernel_sony_msm8994, version: '3.10'}
maintainers: []
name: Xperia Z3+
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [Accelerometer, Gyroscope, Proximity sensor, Light sensor, GPS]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/karin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_msm8994, version: '3.10'}
maintainers: []
name: Xperia Z4 Tablet LTE
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [Accelerometer, Gyroscope, Proximity sensor, Light sensor, GPS]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/karin_windy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_msm8994, version: '3.10'}
maintainers: []
name: Xperia Z4 Tablet WiFi
network: None
no_oem_unlock_switch: true
peripherals: [Accelerometer, Gyroscope, Proximity sensor, Light sensor, GPS]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/kugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ maintainers: []
models: [SO-02J, F5321]
name: Xperia X Compact
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [A-GPS, Accelerometer, Barometer, Color spectrum sensor, Compass, Dual front speakers, GLONASS, GPS, Gyroscope, Light sensor, NFC, Proximity sensor, USB OTG]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>. Keep holding both buttons until the device vibrates, then release.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/mint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ kernel: {repo: android_kernel_sony_msm8x60, version: '3.4'}
maintainers: []
name: Xperia T
network: [2G GSM, 3G UMTS]
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 1 GB
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/nicki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_msm8x27, version: '3.4'}
maintainers: []
name: Xperia M
network: [2G GSM, 3G UMTS]
no_oem_unlock_switch: true
peripherals: [Accelerometer, Proximity sensor, Compass]
ram: 1 GB
recovery_boot: With the device powered off, boot the device and press <kbd>Volume Up</kbd> when the notification light is pink.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/odin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_apq8064, version: '3.4'}
maintainers: []
name: Xperia ZL
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 2 GB LPDDR2
recovery_boot: With the device powered off, boot the device and press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/pollux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_apq8064, version: '3.4'}
maintainers: []
name: Xperia Tablet Z LTE
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 2 GB LPDDR2
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/pollux_windy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_apq8064, version: '3.4'}
maintainers: []
name: Xperia Tablet Z Wi-Fi
network: None
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 2 GB LPDDR2
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/sirius.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ maintainers: []
models: [D6502, D6503]
name: Xperia Z2
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [A-GPS, Accelerometer, Barometer, Compass, Dual front speakers, FM radio, GLONASS, GPS, Gyroscope, Light sensor, MHL, NFC, Pedometer, Proximity sensor, USB OTG]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>. Keep holding both buttons until the device vibrates, then release.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/sumire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ maintainers: []
models: [E6653, E6683, E6633]
name: Xperia Z5
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [MHL HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor, Fingerprint reader]
ram: 3 GB
recovery_boot: With the device powered down, hold the <kbd>Volume Down</kbd> and <kbd>Power</kbd> buttons.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/suzu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ maintainers: []
models: [F5122, F5121]
name: Xperia X
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [A-GPS, Accelerometer, Barometer, Compass, Dual front speakers, GLONASS, GPS, Gyroscope, Light sensor, NFC, Proximity sensor, USB OTG]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>. Keep holding both buttons until the device vibrates, then release.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/suzuran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ maintainers: []
models: [E5803, E5823]
name: Xperia Z5 Compact
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [Accelerometer, Fingerprint reader, Gyroscope, Proximity sensor, Light sensor, GPS, NFC]
ram: 2 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/taoshan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_msm8930, version: '3.4'}
maintainers: []
name: Xperia L
network: [2G GSM, 3G UMTS]
no_oem_unlock_switch: true
peripherals: [GPS, NFC, Accelerometer, Compass, Light sensor, Proximity sensor]
ram: 1 GB
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/tsubasa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ kernel: {repo: android_kernel_sony_msm8x60, version: '3.4'}
maintainers: []
name: Xperia V
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 1 GB
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/yuga.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kernel: {repo: android_kernel_sony_apq8064, version: '3.4'}
maintainers: []
name: Xperia Z
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [MHL, HDMI, GPS, NFC, Accelerometer, Compass, Gyroscope, Light sensor, Proximity sensor]
ram: 2 GB LPDDR2
recovery_boot: On boot, press <kbd>Volume Down</kbd> when the LEDs start lighting up.<br /><b>Second Recovery:</b> To boot the FOTA Recovery, press <kbd>Volume Up</kbd> instead.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/z3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ maintainers: []
models: [D6603]
name: Xperia Z3
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [A-GPS, Accelerometer, Barometer, Compass, Dual front speakers, FM radio, GLONASS, GPS, Gyroscope, Light sensor, MHL, NFC, Pedometer, Proximity sensor, USB OTG]
ram: 3 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>. Keep holding both buttons until the device vibrates, then release.
Expand Down
1 change: 1 addition & 0 deletions _data/devices/z3c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ maintainers: []
models: [D5803, D5833]
name: Xperia Z3 Compact
network: [2G GSM, 3G UMTS, 4G LTE]
no_oem_unlock_switch: true
peripherals: [A-GPS, Accelerometer, Barometer, Compass, Dual front speakers, FM radio, GLONASS, GPS, Gyroscope, Light sensor, MHL, NFC, Pedometer, Proximity sensor, USB OTG]
ram: 2 GB
recovery_boot: With the device powered off, hold <kbd>Volume Down</kbd> + <kbd>Power</kbd>. Keep holding both buttons until the device vibrates, then release.
Expand Down
15 changes: 9 additions & 6 deletions _includes/templates/recovery_install_fastboot_sony.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ If you wish to backup the TA partition first, you can find tutorials related to
1. On the device, dial `*#*#7378423#*#*` (`*#*#SERVICE#*#*`) to launch the service menu.
2. Go to `service info` > `configuration` and check `rooting status` - you can only continue if it says `Bootloader unlock allowed: Yes`.
3. Go to `System Settings` > `About Phone` and record the first IMEI number, which is necessary to get an unlock code from Sony in a later step.
4. Connect the device to your PC via USB.
5. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
{%- unless device.no_oem_unlock_switch %}
4. Enable OEM unlock in the Developer options under device Settings, if present.
{%- endunless %}
5. Connect the device to your PC via USB.
6. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
```
adb -d reboot bootloader
```
Expand All @@ -28,17 +31,17 @@ adb -d reboot bootloader

* {{ device.download_boot }}
{% endif %}
6. Once the device is in fastboot mode, verify your PC finds it by typing:
7. Once the device is in fastboot mode, verify your PC finds it by typing:
```
fastboot devices
```
{% include alerts/tip.html content="If you see `no permissions fastboot` while on Linux or macOS, try running `fastboot` as root." %}
7. Follow the instructions on [Sony's official unlocking website](https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader/) to generate an unlock code for your bootloader.
8. Use your code to unlock the bootloader of your device:
8. Follow the instructions on [Sony's official unlocking website](https://developer.sony.com/open-source/aosp-on-xperia-open-devices/get-started/unlock-bootloader/) to generate an unlock code for your bootloader.
9. Use your code to unlock the bootloader of your device:
```
fastboot oem unlock <your_unlock_code>
```
8. Since the device resets completely, you will need to re-enable USB debugging to continue.
10. Since the device resets completely, you will need to re-enable USB debugging to continue.

{% include snippets/before_recovery_install.md %}

Expand Down

0 comments on commit fabdb42

Please sign in to comment.