README.md 2.18 KB
Newer Older
Nicolas Gelot's avatar
Nicolas Gelot committed
1
# eDrive
vince-bourgmayer's avatar
vince-bourgmayer committed
2

Nicolas Gelot's avatar
Nicolas Gelot committed
3
4
eDrive is a persitent application provided by default with /e/OS.
It synchronizes user's data files to /e/Cloud or a self-hosted cloud.
vince-bourgmayer's avatar
vince-bourgmayer committed
5

Nicolas Gelot's avatar
Nicolas Gelot committed
6
## Install
7

Nicolas Gelot's avatar
Nicolas Gelot committed
8
9
Since the application is persistent, you won't be able to reinstall
the app with a regular `adb install -r` command. You will have to
10
11
12
allow root debugging in the Developer Options, then
`adb root && adb remount`, then `adb push eDrive.apk /system/app/eDrive/eDrive.apk`
and finally `adb reboot`.
vince-bourgmayer's avatar
vince-bourgmayer committed
13

Nicolas Gelot's avatar
Nicolas Gelot committed
14
## Map of synced directories
Vincent Bourgmayer's avatar
Vincent Bourgmayer committed
15

Nicolas Gelot's avatar
Nicolas Gelot committed
16
17
18
19
20
21
22
23
24
25
26
| device                               | cloud                                  | category     |
| ------------------------------------ | -------------------------------------- | ------------ |
| /storage/emulated/0/DCIM             | /Photos                                | Images       |
| /storage/emulated/0/Pictures         | /Pictures                              | Images       |
| /storage/emulated/0/Movies           | /Movies                                | Movies       |
| /storage/emulated/0/Music            | /Music                                 | Music        |
| /storage/emulated/0/Ringtones        | /Ringtones                             | Ringtones    |
| /storage/emulated/0/Documents        | /Documents                             | Documents    |
| /storage/emulated/0/Podcasts         | /Podcasts                              | Podcasts     |
| /data/system/users/0/                | /Devices/\<id\>/rom_settings/          | Rom settings |
| /data/data/foundation.e.drive/files/ | /Devices/\<id\>/rom_settings/app_list/ | Rom settings |
vince-bourgmayer's avatar
vince-bourgmayer committed
27

Nicolas Gelot's avatar
Nicolas Gelot committed
28
All remote directories are created by eDrive if needed.
29

Nicolas Gelot's avatar
Nicolas Gelot committed
30
## Notes
vince-bourgmayer's avatar
vince-bourgmayer committed
31

Nicolas Gelot's avatar
Nicolas Gelot committed
32
### How it works
vince-bourgmayer's avatar
vince-bourgmayer committed
33

Nicolas Gelot's avatar
Nicolas Gelot committed
34
35
36
When you register an /e/account the synchronization is enabled by default.
The synchronization is done on `ACTION_SCREEN_OFF` intent if the last
sync is greater than 15 min. Otherwise a sync is scheduled each 30 min.
vince-bourgmayer's avatar
vince-bourgmayer committed
37

Nicolas Gelot's avatar
Nicolas Gelot committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
### Settings

To enable/disable the synchronisation, go into your account settings:

* Application settings (Rom settings)
* Pictures and videos (Images, Movies, Music, Ringtones, Documents and Podcasts)

# Interrobility

eDrive can also receive broadcast intent for forcing the synchronization.

```bash
adb shell am broadcast -a foundation.e.drive.action.FORCE_SYNC
```