summaryrefslogtreecommitdiff
path: root/artd/README.md
blob: 3a073c7b0857491e6f339208e715f1e31f5eadfd (plain)
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
## artd

artd is a component of ART Service. It is a shim service to do tasks that
require elevated permissions that are not available to system_server, such as
manipulation of the file system and invoking dex2oat. It publishes a binder
interface that is internal to ART service's Java code. When it invokes other
binaries, it passes input and output files as FDs and drops capability before
exec.

### System properties

artd can be controlled by the system properties listed below. Note that the list
doesn't include options passed to dex2oat and other processes.

- `dalvik.vm.artd-verbose`: Log verbosity of the artd process. The syntax is the
  same as the runtime's `-verbose` flag.

### The `--pre-reboot` flag

artd can be run in Pre-reboot mode through the `--pre-reboot` flag. The
Pre-reboot mode is for generating outputs for Pre-reboot Dexopt. The flag does
not change the actual behavior, but only affects the service name, the log tag,
a few return checks, etc. Note that how artd addresses input files and output
files is solely determined by AIDL arguments and is **not** affected by the
`--pre-reboot` flag.