import old mobicore
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos7580.git] / mobicore / README.android
CommitLineData
15e8442f
JA
1MobiCore Daemon in Android
2---
3Command line
4--
5The MobiCore Daemon supports 4 command line options. It also displays them with the help option:
6
7# ./mcDriverDaemon -h
8usage: ./mcDriverDaemon [-mdsbh]
9Start MobiCore Daemon
10
11-h show this help
12-b fork to background
13-m IMAGE load mobicore from IMAGE to DDR
14-s disable daemon scheduler(default enabled)
15-r DRIVER load dyamic driver
16
17-b Forks the daemon to background
18
19# ./mcDriverDaemon -b
20
21Makes the daemon run in background and returns immediate control to the shell. No need to use shell forking with &
22
23-m Loads a mobicore image to DDR
24
25# ./mcDriverDaemon -m /data/app/mobicore.img
26
27Loads the mobicore.img to DDR and starts executing it.
28
29-s Disables NQ IRQ scheduler
30
31# ./mcDriverDaemon -s
32
33-r Loads dynamic driver at startup. The full path of the driver binary must be given, eg. /data/app/driver.drbin
34
35# ./mcDriverDaemon -r /data/app/driver.drbin
36
37Custom registry locations
38--
39Registry fallback
40
41In case of a Device wipe in Android the /data/app/mcRegistry folder will be deleted with all it's contents. To overcome
42this the daemon supports a fallback location(eg /system/app/mcRegistry): it first tries to load the trustlet
43from /data/app/mcRegistry/[uuid].tlbin and if it fails then it tries to read the trustlet from /system/app/mcRegistry/[uuid].tlb
44
45Both paths are completely configurable for the Daemon using 2 environment variables:MC_REGISTRY_PATH and MC_REGISTRY_FALLBACK_PATH
46
47For example if you want to use /data/app/mcRegistry as the default path and /system/app/mcRegistry as the fallback path:
48
49$ export MC_REGISTRY_PATH=/data/app/mcRegistry
50$ export MC_REGISTRY_FALLBACK_PATH=/system/app/mcRegistry
51$ /data/app/mcDriverDaemon
52
53Custom authtoken path
54--
55
56The authtoken file is created at provisioning and is by default located in /data/app/mcRegistry/00000.authtoken
57
58Because a device wipe could delete this file and make MobiCore unusable a new environment variable has been added to change the
59default behaviour: MC_AUTH_TOKEN_PATH
60
61$ export MC_AUTH_TOKEN_PATH=/efs
62$ /data/app/mcDriverDaemon
63
64This would change the location of the authtoken file to /efs