File: README.md

package info (click to toggle)
android-platform-tools 34.0.5-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 150,900 kB
  • sloc: cpp: 805,786; java: 293,500; ansic: 128,288; xml: 127,491; python: 41,481; sh: 14,245; javascript: 9,665; cs: 3,846; asm: 2,049; makefile: 1,917; yacc: 440; awk: 368; ruby: 183; sql: 140; perl: 88; lex: 67
file content (34 lines) | stat: -rw-r--r-- 963 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# OTAGUI

## Introduction
OTAGUI is a web interface for ota_from_target_files. Currently, it can only run locally.

OTAGUI use VUE.js as a frontend and python as a backend interface to ota_from_target_files.

## Usage
First, download the AOSP codebase and set up the environment variable in the root directory:
```
source build/envsetup.sh
lunch 17
```
In this case we use `lunch 17` as an example (aosp-x86_64-cf), you can choose whatever suitable for you.

Then, in this directory, please use `npm build` to install the dependencies.

Create a `target` directory to store the target files and a `output` directory
to store the output files:
```
mkdir target
mkdir output
```

Finally, run the python http-server and vue.js server:
```
python3 web_server.py &
npm run serve
```
### Run with Docker

1. Build the image `docker build -t zhangxp1998/test .`

2. Run: `docker run -it -p 8000:8000 -v target:/app/target -v output:/app/output zhangxp1998/test:latest`