Project

General

Profile

MigrateContactsDatabase » History » Version 4

Denis 'GNUtoo' Carikli, 05/08/2021 07:16 PM
Import most of the boilerplate from BackupTheEFS to run commands in the recovery

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
You'll first need backup your contacts somewhere safe
16
17
h2. Setup ADB
18
19
Follow the instructions for [[ADB|setting up ADB on your computer]] so that you can access a root shell on your device.
20
21
*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.
22
23
*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.
24
25
h2. Reboot into the recovery
26
27
To reboot in the recovery, you can follow the instructions in the [[RebootIntoTheRecovery]] wiki page.
28
29
h2. Erase your contact database
30
31
Once in the recovery, you will then be able to erase your contact database:
32
33 2 Denis 'GNUtoo' Carikli
<pre>
34 1 Denis 'GNUtoo' Carikli
rm -rf /data/data/com.android.providers.contacts/databases/
35
</pre>
36 4 Denis 'GNUtoo' Carikli
37
h2. Install the new Replicant images
38
39
Once the backup is done, you can proceed to install the Replicant images that have the contact database format to migrate to.
40
41
h2. Revoke USB debugging permissions
42
43
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.
44
45
That's it! Your device's EFS partition is now backed up. Your device should be running Replicant normally again.