You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-59Lines changed: 6 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,15 +172,6 @@ OnePlus | 9 | lemonade | | under development
172
172
And more to come!
173
173
174
174
175
-
## Run OpenAndroidInstaller for development
176
-
177
-
Currently development is only supported on Ubuntu Linux. MacOS and Windows should also work fine. You might need to install additional USB-drivers on Windows.
178
-
179
-
1. Clone the main branch of this repository
180
-
2. Run `make poetry` and `make install` to install poetry to manage python and install the required dependencies like adb, fastboot and heimdall.
181
-
3. Run `make app` to start the desktop app from the source.
182
-
183
-
184
175
## Contributing
185
176
186
177
All kinds of contributions are welcome. These include:
@@ -192,62 +183,18 @@ All kinds of contributions are welcome. These include:
192
183
- Add features and/or improve the code base.
193
184
- Report bugs.
194
185
195
-
More details on how to contribute can be found [here](https://github.com/openandroidinstaller-dev/openandroidinstaller/blob/main/CONTRIBUTING.md).
196
-
Please have a look before opening an issue or starting to contribute.
197
-
198
-
A detailed list can be found [here](https://openandroidinstaller.org/#contribute).
199
-
200
-
### How to contribute your own installation configurations
201
-
202
-
If you want to use the tool for a non-supported smartphone, the fastest way is to adapt an [existing config file](https://github.com/openandroidinstaller-dev/openandroidinstaller/tree/main/openandroidinstaller/assets/configs). The file should be named after the official `device code` of the device. Add the code output by `adb shell getprop | grep ro.product.device` (when the devices is connected to the computer) as well as the official device code to the `supported_device_codes` list in the config. You can also get the device code by connecting the device to the computer and run OpenAndroidInstaller to detect the device.
186
+
[How to contribute your own installation configurations](https://github.com/openandroidinstaller-dev/openandroidinstaller/blob/main/doc/How_to_contribute_your_own_installation_configurations.md)
203
187
204
-
**To test your config file with the executable** without using the developer setup, place it in the same directory as the executable. There it will be detected by name. After you created a config file and it works fine, you can open a pull request to make the file available to other users. Please also add the device to the supported devices table above.
188
+
[How to build the application for your platform](https://github.com/openandroidinstaller-dev/openandroidinstaller/blob/main/doc/building_the_application_for_your_platform.md)
205
189
206
-
#### Content of a config file
190
+
[Unlocking the bootloader](https://github.com/openandroidinstaller-dev/openandroidinstaller/blob/main/doc/Unlocking_the_bootloader.md)
207
191
208
-
A config file consists of two parts. The first part are some metadata about the device and the second parts are the steps to unlock the bootloader, boot a recovery and install the ROMs.
209
-
210
-
##### How to write Metadata
211
-
Every config file should have `metadata` with the following fields:
212
-
-`maintainer`: str; Maintainer and author of the config file.
213
-
-`device_name`: str; Name of the device.
214
-
-`is_ab_device`: bool; A boolean to determine if the device is a/b-partitioned or not.
215
-
-`device_code`: str; The official device code.
216
-
-`supported_device_codes`: List[str]; A list of supported device codes for the config. The config will be loaded based on this field.
217
-
-`twrp-link`: [OPTIONAL] str; name of the corresponding twrp page.
218
-
219
-
In addition to these metadata, every config can have optional `requirements`. If these are set, the user is asked to check if they are meet.
220
-
-`android`: [OPTIONAL] int|str; Android version to install prior to installing a custom ROM.
221
-
-`firmware`: [OPTIONAL] str; specific firmware version to install before installing a custom ROM.
222
-
223
-
##### How to write steps:
224
-
Every step in the config file corresponds to one view in the application. These steps should contain the following fields:
225
-
-`type`: str; Corresponds to the type of view to generate. There are the following options:
226
-
-`text`: Just display the text given in content.
227
-
-`confirm_button`: Display the content, as well as a button to allow the user to go to the next step.
228
-
-`call_button`: Display the content text and a button that runs a given command. After the command is run, a confirm button is displayed to allow the user to move to the next step.
229
-
-`call_button_with_input`: Display the content text, an input field and a button that runs a given command. The inputtext, can be used in the command by using the `<inputtext>` placeholder in the command field. After the command is run, a confirm button is displayed to allow the user to move to the next step.
230
-
-`link_button_with_confirm`: Display a button that opens a browser with a given link, confirm afterwards. Link is given in `link`.
231
-
-`img`: [OPTIONAL] Display an image on the left pane of the step view. Images are loaded from `openandroidinstaller/assets/imgs/`.
232
-
-`content`: str; The content text displayed alongside the action of the step. Used to inform the user about what's going on. For consistency and better readability the text should be moved into the next line using `>`.
233
-
-`link`: [OPTIONAL] Link to use for the link button if type is `link_button_with_confirm`.
234
-
-`command`: [ONLY for call_button* steps] str; The command to run. One of `adb_reboot`, `adb_reboot_bootloader`, `adb_reboot_download`, `adb_sideload`, `adb_twrp_wipe_and_install`, `adb_twrp_copy_partitions`, `fastboot_boot_recovery`, `fastboot_unlock_with_code`, `fastboot_unlock`, `fastboot_oem_unlock`, `fastboot_get_unlock_data`, `fastboot_reboot`, `heimdall_flash_recovery`.
235
-
-`allow_skip`: [OPTIONAL] boolean; If a skip button should be displayed to allow skipping this step. Can be useful when the bootloader is already unlocked.
236
-
237
-
**Please try to retain this order of these fields in your config to ensure consistency.**
238
-
239
-
## How to build the application for your platform
240
-
241
-
The executables for the OpenAndroidInstaller are build with [pyinstaller](https://pyinstaller.org/en/stable/index.html). You can create builds for MacOS or Linux with `make build-app`. For Windows the paths need to be modified. For now, you can have a look [here](https://github.com/openandroidinstaller-dev/openandroidinstaller/blob/v0.1.2-alpha/.github/workflows/manual-build-windows.yml#L22) on how it's done.
242
-
243
-
If you build the application for your platform and want to contribute the build, please reach out to me.
192
+
More details on how to contribute can be found [here](https://github.com/openandroidinstaller-dev/openandroidinstaller/blob/main/CONTRIBUTING.md).
193
+
Please have a look before opening an issue or starting to contribute.
244
194
245
-
#### On unlocking the bootloader
246
-
Devices by *Samsung*, *Google* and *Fairphone* make it fairly easy to unlock the bootloader and receive good support in the installer.
195
+
A detailed list can be found [here](https://openandroidinstaller.org/#contribute).
247
196
248
-
Some devices with require manual steps to unlock the bootloader. In general you will need to create an account at a vendor website and receive some code from there. OpenAndroidInstaller will try to guide you as far as possible. These vendors include *Sony, Motorola, Xiaomi* and *OnePlus* among others.
249
197
250
-
Other phone vendors stops allowing to unlock the bootloader all together. There is nothing to be done if you didn't unlock your device in time. These vendors include *Huawei and LG* among others. Support for these vendors will always be very limited.
The executables for the OpenAndroidInstaller are build with [pyinstaller](https://pyinstaller.org/en/stable/index.html). You can create builds for MacOS or Linux with `make build-app`. For Windows the paths need to be modified. For now, you can have a look [here](https://github.com/openandroidinstaller-dev/openandroidinstaller/blob/v0.1.2-alpha/.github/workflows/manual-build-windows.yml#L22) on how it's done.
4
+
5
+
If you build the application for your platform and want to contribute the build, please reach out to me.
6
+
7
+
## Run OpenAndroidInstaller for development
8
+
9
+
Currently development is only supported on Ubuntu Linux. MacOS and Windows should also work fine. You might need to install additional USB-drivers on Windows.
10
+
11
+
1. Clone the main branch of this repository
12
+
2. Run `make poetry` and `make install` to install poetry to manage python and install the required dependencies like adb, fastboot and heimdall.
13
+
3. Run `make app` to start the desktop app from the source.
### How to contribute your own installation configurations
2
+
3
+
If you want to use the tool for a non-supported smartphone, the fastest way is to adapt an [existing config file](https://github.com/openandroidinstaller-dev/openandroidinstaller/tree/main/openandroidinstaller/assets/configs). The file should be named after the official `device code` of the device. Add the code output by `adb shell getprop | grep ro.product.device` (when the devices is connected to the computer) as well as the official device code to the `supported_device_codes` list in the config. You can also get the device code by connecting the device to the computer and run OpenAndroidInstaller to detect the device.
4
+
5
+
**To test your config file with the executable** without using the developer setup, place it in the same directory as the executable. There it will be detected by name. After you created a config file and it works fine, you can open a pull request to make the file available to other users. Please also add the device to the supported devices table above.
6
+
7
+
#### Content of a config file
8
+
9
+
A config file consists of two parts. The first part are some metadata about the device and the second parts are the steps to unlock the bootloader, boot a recovery and install the ROMs.
10
+
11
+
##### How to write Metadata
12
+
Every config file should have `metadata` with the following fields:
13
+
-`maintainer`: str; Maintainer and author of the config file.
14
+
-`device_name`: str; Name of the device.
15
+
-`is_ab_device`: bool; A boolean to determine if the device is a/b-partitioned or not.
16
+
-`device_code`: str; The official device code.
17
+
-`supported_device_codes`: List[str]; A list of supported device codes for the config. The config will be loaded based on this field.
18
+
-`twrp-link`: [OPTIONAL] str; name of the corresponding twrp page.
19
+
20
+
In addition to these metadata, every config can have optional `requirements`. If these are set, the user is asked to check if they are meet.
21
+
-`android`: [OPTIONAL] int|str; Android version to install prior to installing a custom ROM.
22
+
-`firmware`: [OPTIONAL] str; specific firmware version to install before installing a custom ROM.
23
+
24
+
##### How to write steps:
25
+
Every step in the config file corresponds to one view in the application. These steps should contain the following fields:
26
+
-`type`: str; Corresponds to the type of view to generate. There are the following options:
27
+
-`text`: Just display the text given in content.
28
+
-`confirm_button`: Display the content, as well as a button to allow the user to go to the next step.
29
+
-`call_button`: Display the content text and a button that runs a given command. After the command is run, a confirm button is displayed to allow the user to move to the next step.
30
+
-`call_button_with_input`: Display the content text, an input field and a button that runs a given command. The inputtext, can be used in the command by using the `<inputtext>` placeholder in the command field. After the command is run, a confirm button is displayed to allow the user to move to the next step.
31
+
-`link_button_with_confirm`: Display a button that opens a browser with a given link, confirm afterwards. Link is given in `link`.
32
+
-`img`: [OPTIONAL] Display an image on the left pane of the step view. Images are loaded from `openandroidinstaller/assets/imgs/`.
33
+
-`content`: str; The content text displayed alongside the action of the step. Used to inform the user about what's going on. For consistency and better readability the text should be moved into the next line using `>`.
34
+
-`link`: [OPTIONAL] Link to use for the link button if type is `link_button_with_confirm`.
35
+
-`command`: [ONLY for call_button* steps] str; The command to run. One of `adb_reboot`, `adb_reboot_bootloader`, `adb_reboot_download`, `adb_sideload`, `adb_twrp_wipe_and_install`, `adb_twrp_copy_partitions`, `fastboot_boot_recovery`, `fastboot_unlock_with_code`, `fastboot_unlock`, `fastboot_oem_unlock`, `fastboot_get_unlock_data`, `fastboot_reboot`, `heimdall_flash_recovery`.
36
+
-`allow_skip`: [OPTIONAL] boolean; If a skip button should be displayed to allow skipping this step. Can be useful when the bootloader is already unlocked.
37
+
38
+
**Please try to retain this order of these fields in your config to ensure consistency.**
Devices by *Samsung*, *Google* and *Fairphone* make it fairly easy to unlock the bootloader and receive good support in the installer.
3
+
4
+
Some devices with require manual steps to unlock the bootloader. In general you will need to create an account at a vendor website and receive some code from there. OpenAndroidInstaller will try to guide you as far as possible. These vendors include *Sony, Motorola, Xiaomi* and *OnePlus* among others.
5
+
6
+
Other phone vendors stops allowing to unlock the bootloader all together. There is nothing to be done if you didn't unlock your device in time. These vendors include *Huawei and LG* among others. Support for these vendors will always be very limited.
0 commit comments