Skip to content

Commit

Permalink
devices: jflte{att,vzw}: Use OOR for installation
Browse files Browse the repository at this point in the history
Change-Id: Id6d2b58a00d9deebed369f2f5d06210c11127bc4
  • Loading branch information
npjohnson committed Apr 26, 2024
1 parent 2880586 commit 0a64571
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 8 deletions.
6 changes: 2 additions & 4 deletions _data/devices/jflteatt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ cpu: Krait 300
cpu_cores: 4
cpu_freq: 1.9GHz
current_branch: 18.1
custom_recovery_link: https://www.androidfilehost.com/?fid=7161016148664832487
dimensions: {depth: 7.9, height: 136.6, width: 69.8}
download_boot: With the device powered off, hold <kbd>Home</kbd> + <kbd>Volume Down</kbd> + <kbd>Power</kbd>.
format_on_upgrade: 18.1
gpu: Qualcomm Adreno 320
image: jflte.png
install_method: dd
install_method: oor
kernel: {repo: android_kernel_samsung_jf, version: '3.4'}
maintainers: []
models: [SGH-I337]
Expand All @@ -30,8 +29,7 @@ recovery_boot: With the device powered off, hold <kbd>Home</kbd> + <kbd>Volume U
recovery_partition: /dev/block/platform/msm_sdcc.1/by-name/recovery
recovery_partition_name: recovery
release: 2013-04
required_bootloader: ['I337UCUAMDB', 'I337UCUAMDL']
root_method: [towelroot]
root_method: [kingroot]
screen: {resolution: '1920x1080', size: 5, technology: 'Pentile RGBG Super AMOLED'}
sdcard: {sizeMax: '64 GB'}
soc: Qualcomm APQ8064T Snapdragon 600
Expand Down
6 changes: 2 additions & 4 deletions _data/devices/jfltevzw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ cpu: Krait 300
cpu_cores: 4
cpu_freq: 1.9GHz
current_branch: 18.1
custom_recovery_link: https://www.androidfilehost.com/?fid=7161016148664832488
dimensions: {depth: 7.9, height: 136.6, width: 69.8}
download_boot: With the device powered off, hold <kbd>Home</kbd> + <kbd>Volume Down</kbd> + <kbd>Power</kbd>.
format_on_upgrade: 18.1
gpu: Qualcomm Adreno 320
image: jflte.png
install_method: dd
install_method: oor
kernel: {repo: android_kernel_samsung_jf, version: '3.4'}
maintainers: []
models: [SCH-I545]
Expand All @@ -30,8 +29,7 @@ recovery_boot: With the device powered off, hold <kbd>Home</kbd> + <kbd>Volume U
recovery_partition: /dev/block/platform/msm_sdcc.1/by-name/recovery
recovery_partition_name: recovery
release: 2013-04
required_bootloader: ['I545VRUAMDK']
root_method: [towelroot]
root_method: [kingroot]
screen: {resolution: '1920x1080', size: 5, technology: 'Pentile RGBG Super AMOLED'}
sdcard: {sizeMax: '64 GB'}
soc: Qualcomm APQ8064T Snapdragon 600
Expand Down
67 changes: 67 additions & 0 deletions _includes/templates/recovery_install_oor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{%- assign device = site.data.devices[page.device] -%}
{% if device.custom_recovery_codename %}
{% assign custom_recovery_codename = device.custom_recovery_codename %}
{% else %}
{% assign custom_recovery_codename = device.codename %}
{% endif %}

## Rooting your device

{% include alerts/important.html content="The device must be rooted before proceeding any further." %}

{% case device.root_method[0] %}
{% when 'custom' %}
1. Root your device by following [this]({{ device.root_method[1] }}) guide.
{% when 'kingroot' %}
1. Download KingRoot from [here](https://kingroot.net/).
1. Install and run the apk to achieve root. Ensure you have a working Internet connection.
{% when 'towelroot' %}
1. Download TowelRoot from [here](https://towelroot.com/).
1. Click the large lambda symbol to download the apk.
2. Install and run the apk to achieve root.
{% endcase %}

{% include snippets/before_recovery_install.md %}

{%- capture install_content %}
{%- if device.custom_recovery_link %}
{%- assign is_lineage_recovery = device.custom_lineage_recovery %}
1. Download a custom recovery - you can download one [here]({{ device.custom_recovery_link }}).
{%- elsif device.uses_twrp %}
1. Download a custom recovery - you can download [TWRP](https://dl.twrp.me/{{ custom_recovery_codename }}). Simply download the latest recovery file, named something like `twrp-x.x.x-x-{{ custom_recovery_codename }}.img`.
{%- elsif device.maintainers != empty %}
{%- assign is_lineage_recovery = true %}
1. Download [Lineage Recovery](https://download.lineageos.org/devices/{{ custom_recovery_codename }}). Simply download the latest recovery file, named `{{ device.recovery_partition_name }}.img`.
{%- else %}
1. [Build]({{ device | device_link: "/build" | relative_url }}) a LineageOS installation package. The recovery will be built as part of it!
{%- endif %}

## Patching the recovery image using the out-of-range utility

1. Download the newest version of the out-of-range for your OS and architecture [here](https://github.com/jb881122/out-of-range/releases/latest).
2. Extract the `.zip` file downloaded above.
3. Open a Terminal in the folder the `oor` utility is extracted.
4. Run the following commands:
```
adb -d shell su -c dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/data/local/tmp/aboot.img
adb -d pull /data/local/tmp/aboot.img
./oor -p ./aboot.img recovery.img recovery.oor.img
adb -d push recovery.oor.img /data/local/tmp/recovery.oor.img`
```
NOTE: BL version
6. Now, run the following command to flash the recovery image on your device:
```
adb -d shell su -c dd if=/data/local/tmp/recovery.oor.img of={{ device.recovery_partition }}
```
7. Pending the above succeeded, reboot into recovery by running the following command:
```
adb -d reboot recovery
```
{%- endcapture %}

{%- if is_lineage_recovery %}
## Installing Lineage Recovery using `dd`
{%- else %}
## Installing a custom recovery using `dd`
{%- endif %}
{{ install_content }}
1 change: 1 addition & 0 deletions test/schema-06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ properties:
- fastboot_zenfone
- heimdall
- odin
- oor
is_ab_device:
"$id": "/properties/is_ab_device"
type: boolean
Expand Down

0 comments on commit 0a64571

Please sign in to comment.