Project

General

Profile

MigrateContactsDatabase » History » Version 5

Denis 'GNUtoo' Carikli, 05/08/2021 07:16 PM
add more warnings

1 1 Denis 'GNUtoo' Carikli
h1. MigrateContactsDatabase
2 2 Denis 'GNUtoo' Carikli
3
h2. Warning
4
5
* This article is a work in progress
6
* It hasn't been tested yet and might contain mistakes
7
* It needs to be more clear for less technical users
8
9
h2. Migration
10
11 4 Denis 'GNUtoo' Carikli
{{toc}}
12 1 Denis 'GNUtoo' Carikli
13 4 Denis 'GNUtoo' Carikli
h2. Backuping your contacts
14
15 5 Denis 'GNUtoo' Carikli
You'll first need backup your contacts somewhere safe.
16
17
TODO: explain how to do that. DO NOT SKIP THIS STEP ELSE YOU'LL LOOSE YOUR CONTACT DATA.
18 4 Denis 'GNUtoo' Carikli
19
h2. Setup ADB
20
21
Follow the instructions for [[ADB|setting up ADB on your computer]] so that you can access a root shell on your device.
22
23
*NOTE*: when prompted on your Replicant device, make sure that you check the box that says *Always allow from this computer* when you grant your computer USB debugging permissions. Otherwise, you will be unable to obtain root shell access on your Replicant device when you reboot it into the recovery OS to actually perform the backup.
24
25
*NOTE*: for security reasons, you may want to [[ADB#Revoking-all-computers-USB-debugging-permissions|revoke these non-expiring permissions]] once the backup is complete.
26
27
h2. Reboot into the recovery
28
29
To reboot in the recovery, you can follow the instructions in the [[RebootIntoTheRecovery]] wiki page.
30
31
h2. Erase your contact database
32
33
Once in the recovery, you will then be able to erase your contact database:
34
35 2 Denis 'GNUtoo' Carikli
<pre>
36 1 Denis 'GNUtoo' Carikli
rm -rf /data/data/com.android.providers.contacts/databases/
37
</pre>
38 4 Denis 'GNUtoo' Carikli
39
h2. Install the new Replicant images
40
41
Once the backup is done, you can proceed to install the Replicant images that have the contact database format to migrate to.
42
43
h2. Revoke USB debugging permissions
44
45
If you don't need @USB debugging permissions@ anymore, it might be a good idea to remove them. The [[ADB#Revoking-all-computers-USB-debugging-permissions|Revoking all computer's USB debugging permissions]] section in the ADB wiki page explains how to do that.
46
47
That's it! Your device's EFS partition is now backed up. Your device should be running Replicant normally again.