1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00

Merge pull request #46 from Archcry:master

* Docs: Add adb instructions and use table for switches (#46)

Udev rules are often needed on Linux based systems to make sure the user has access to the connected device without needing superuser pemissions.

* Docs: Use a table for available switches

Overall this looks cleaner to me, feel free to revert if you feel like it's not.
This commit is contained in:
Michael Stucki 2018-10-16 14:17:33 +02:00
commit df8d3aafea

View File

@ -24,12 +24,17 @@ cd docker-lineageos
The `run.sh` script accepts the following switches: The `run.sh` script accepts the following switches:
* -u|--enable-usb - runs the container in privileged mode (this way you can use adb right from the container) | Switch | Alternative | Description |
* -r|--rebuild - force rebuild the image from scratch |---|---|---|
* -ws|--with-su - Sets the WITH_SU environment variable to true (your builds will include the su binary) | `-u` | `--enable-usb` | Runs the container in privileged mode (this way you can use adb right from the container) |
| `-r` | `--rebuild` | Force rebuild the image from scratch |
| `-ws` | `--with-su` | Sets the WITH_SU environment variable to true (your builds will include the su binary) |
The container uses "screen" to run the shell. This means that you will be able to open additional shells using [screen keyboard shortcuts][Screen_Shortcuts]. The container uses "screen" to run the shell. This means that you will be able to open additional shells using [screen keyboard shortcuts][Screen_Shortcuts].
### ADB in the container
If you're on Linux and want to use adb from within the container running with `-u` might not be enough. Make sure you have the [Android udev rules](https://github.com/M0Rf30/android-udev-rules/blob/master/51-android.rules) installed on your host system so you can access your device without needing superuser permissions.
### How to build LineageOS for your device ### How to build LineageOS for your device
``` ```