Skip to content

Commit a52b248

Browse files
committed
add kaeru
1 parent 6926b23 commit a52b248

File tree

2 files changed

+54
-10
lines changed

2 files changed

+54
-10
lines changed

docs/modding/custom-bootloader.mdx

Lines changed: 54 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
title: Custom Bootloader
33
---
44

5-
export const images = [
5+
export const kaeru_images = [
6+
{
7+
"payload_version": "1.0.0",
8+
"firmware_version": "UHA34.29-5",
9+
"url": "https://penangf.fuckyoumoto.xyz/assets/modding/kaeru/1.0.0/kaeru-UHA34.29-5.img"
10+
},
11+
];
12+
13+
export const chouchou_images = [
614
{
715
"payload_version": "0.2",
816
"firmware_version": "UHA34.29-10",
@@ -43,34 +51,70 @@ Make sure you have the [bootloader unlocked](../dev/bootloader.md) or you will g
4351
Thanks to [Roger Ortiz](https://github.com/R0rt1z2) for developing the payload for our bootloader!
4452
:::
4553

46-
The custom bootloader protects the device from Hard Brick by preventing critical operations such as flashing the preloader and locking the bootloader without restoring the original firmware.
47-
54+
The custom bootloader protects the device from Hard Brick by preventing critical operations such as flashing the preloader and locking the bootloader without restoring the original firmware.<br />
4855
In addition, it extends the functionality by adding new options for customizing and managing the system.
4956

50-
## Features
57+
### Features
5158
- Blocks ```fastboot flash preloader```
5259
- Removes orange state
5360
- Spoofs verified state to green
5461
- Block ```fastboot flashing lock```
5562
- Adds ```fastboot oem help```
5663
- Adds ```fastboot oem hexdump```
5764

58-
## Install
59-
### Prebuild images
65+
## Kaeru
66+
67+
### Install
68+
#### Prebuild images
69+
export const kaeru_grouped = kaeru_images.reduce((acc, item) => {
70+
if (!acc[item.payload_version]) {
71+
acc[item.payload_version] = [];
72+
}
73+
acc[item.payload_version].push(item);
74+
return acc;
75+
}, {});
76+
77+
{Object.keys(kaeru_grouped).map(payload_version => (
78+
<details key={payload_version} className="custom-details">
79+
<summary>Kaeru v{payload_version}</summary>
80+
<ul>
81+
{kaeru_grouped[payload_version].map(item => (
82+
<a href={item.url}><li key={item.firmware_version}>{item.firmware_version}</li></a>
83+
))}
84+
</ul>
85+
</details>
86+
))}
87+
88+
<br />
89+
90+
```shell
91+
$ fastboot flash lk kaeru-UHA34.29-5.img
92+
```
93+
94+
#### Manually build
95+
[RTFM kaeru wiki](https://github.com/R0rt1z2/kaeru/wiki/Porting-kaeru-to-a-new-device)
96+
97+
## ChouChou
98+
:::warning
99+
Don't use ChouChou unnecessarily, it's outdated
100+
:::
101+
102+
### Install
103+
#### Prebuild images
60104

61-
export const grouped = images.reduce((acc, item) => {
105+
export const chouchou_grouped = chouchou_images.reduce((acc, item) => {
62106
if (!acc[item.payload_version]) {
63107
acc[item.payload_version] = [];
64108
}
65109
acc[item.payload_version].push(item);
66110
return acc;
67111
}, {});
68112

69-
{Object.keys(grouped).map(payload_version => (
113+
{Object.keys(chouchou_grouped).map(payload_version => (
70114
<details key={payload_version} className="custom-details">
71115
<summary>ChouChou v{payload_version}</summary>
72116
<ul>
73-
{grouped[payload_version].map(item => (
117+
{chouchou_grouped[payload_version].map(item => (
74118
<a href={item.url}><li key={item.firmware_version}>{item.firmware_version}</li></a>
75119
))}
76120
</ul>
@@ -83,7 +127,7 @@ export const grouped = images.reduce((acc, item) => {
83127
$ fastboot flash lk chouchou-UHA34.29-10.img
84128
```
85129

86-
### Manually build
130+
#### Manually build
87131
1. Download your current firmware archive from [lolinet](https://mirrors.lolinet.com/firmware/lenomola/2023/penangf/official/)
88132
2. Clone repository [chouchou](https://github.com/R0rt1z2/chouchou)
89133
3. Transfer the ```lk.img``` file from the firmware archive to the directory ```chouchou```
1.18 MB
Binary file not shown.

0 commit comments

Comments
 (0)