Ubports Recovery unintended system.img flashing
- 
 Hello everyone, I have a serious problem since I unintendedly made a mistake in the "upborts recovery" mode: 
 On my Fairphone 2 I wanted to update the android system due to the fact that a new Fairphone OS provided a patch on an error which resulted in random reboots while using mobile data. So in the "ubports recovery" menu I switched to "Ubuntu actions" -> "Replace ubuntu android system"Here, instead of switching to the root directory I unintendedly clicked on "system.img". Since that action my phone does not boot to UT, it stucks in the splash screen after starting the phone. Can anybody help me? Did I flashed my phone and lost all my data??? Thank you very much!! 
- 
 @karstong I suggest you to go to UB Welcome & Install group in Telegram (https://t.me/WelcomePlus) to get help. 
- 
 Unfortunately, I do not have a telegram account and now my phone does not work anymore. So, one needs a phone number to register in telegram even for the webapp. 
- 
 @karstong ok, I'll comment your problem to the helpdesk people and see if anyone is able to help you. 
- 
 @advocatux Thank you very much. 
- 
 @karstong can you access adb in your phone? If the answer is yes, copy the data you want to save, and try to install UBports again. 
- 
 @advocatux Yes, I see them in adb. Do you know if I only need to copy the "data" folder in order to save all data such as sms, dekko2 settings, signal data, photos... 
- 
 @karstong I prefer to save the whole /home because is easier to cherry-pick whatever I need later to reinstall it. You should save at least .local/share/evolution/and the content in the main folders (Documents, Downloads, Music, Pictures, and Videos) but, again, is better to save /home than need something later that is already lost.Edit to add .local/share/history-service/history.sqliteto save the sms
- 
 @advocatux There actually is no home directory. What I see is the following: ~ # ls 
 cache init.rc
 charger init.wcnss.wifi.sh
 data init_bt.sh
 default.prop mnt
 dev proc
 etc res
 file_contexts root
 fstab.qcom sbin
 init sdcard
 init.class_main.sh sideload
 init.mdm.sh storage
 init.qcom.class_core.sh sys
 init.qcom.early_boot.sh system
 init.qcom.factory.sh tmp
 init.qcom.modem_links.sh twrp.fstab
 init.qcom.ssr.sh ueventd.qcom.rc
 init.qcom.syspart_fixup.sh ueventd.rc
 init.qcom.usb.shThe documents, downloads etc. is in data/user-data/phablet... I do not find: .local/share/evolution 
- 
 @karstong When I try to copy a folder an error occurs "skipping special file 'SingletonSocket' and it dos not continue or do something else... 
- 
 @karstong the /home for "your" user is /home/phablet/To list the hidden files (those starting with a dot) too you need the command ls -laor if you're using the filemanager, unlock it, and click "show hidden files".
- 
 @karstong you can delete that file (SingletonSocket) and try again. 
- 
 @advocatux I don't find this file. Maybe it is hidden. Obviously I can copy any file but not directories. Do you have an idea? 
- 
 @karstong do you have UTmedia installed? then is probably in .local/share/utmedia.nfsprodriver/UTmedia/SingletonSocket
- 
 @advocatux ./local/share does not exist 
- 
 @karstong how are you trying to find it? 
- 
 @advocatux With "ls -la" I get the following screen print: ~ # ls -la 
 drwxr-xr-x 17 root root 0 Jan 1 00:56 .
 drwxr-xr-x 17 root root 0 Jan 1 00:56 ..
 drwxrwx--- 4 system cache 4096 Jan 12 1970 cache
 lrwxrwxrwx 1 root root 13 Jan 1 00:00 charger -> /sbin/healthd
 drwxrwx--x 36 system system 4096 Jan 2 1970 data
 -rw-r--r-- 1 root root 5822 Jan 1 00:00 default.prop
 drwxr-xr-x 12 root root 15480 Jan 1 00:56 dev
 drwxr-xr-x 3 root root 0 Jan 1 00:56 etc
 -rw-r--r-- 1 root root 10882 Jan 1 00:00 file_contexts
 -rw-r----- 1 root root 1204 Jan 1 00:00 fstab.qcom
 -rwxr-x--- 1 root root 422804 Jan 1 00:00 init
 -rwxr-x--- 1 root root 2696 Jan 1 00:00 init.class_main.sh
 -rwxr-x--- 1 root root 1702 Jan 1 00:00 init.mdm.sh
 -rwxr-x--- 1 root root 7064 Jan 1 00:00 init.qcom.class_core.sh
 -rwxr-x--- 1 root root 6734 Jan 1 00:00 init.qcom.early_boot.sh
 -rwxr-x--- 1 root root 11380 Jan 1 00:00 init.qcom.factory.sh
 -rwxr-x--- 1 root root 4022 Jan 1 00:00 init.qcom.modem_links.sh
 -rwxr-x--- 1 root root 4561 Jan 1 00:00 init.qcom.ssr.sh
 -rwxr-x--- 1 root root 2962 Jan 1 00:00 init.qcom.syspart_fixup.sh
 -rwxr-x--- 1 root root 7718 Jan 1 00:00 init.qcom.usb.sh
 -rwxr-x--- 1 root root 4199 Jan 1 00:00 init.rc
 -rwxr-x--- 1 root root 218 Jan 1 00:00 init.wcnss.wifi.sh
 -rwxr-x--- 1 root root 1611 Jan 1 00:00 init_bt.sh
 drwxrwxr-x 5 root system 0 Jan 1 00:56 mnt
 dr-xr-xr-x 169 root root 0 Jan 1 00:00 proc
 drwxr-xr-x 3 root root 0 Jan 1 00:00 res
 drwx------ 2 root root 0 Dec 20 2017 root
 drwxr-x--- 2 root root 0 Jan 1 00:00 sbin
 drwxr-xr-x 2 root root 0 Jan 1 00:56 sdcard
 drwxr-xr-x 2 root root 0 Jan 1 00:56 sideload
 d---r-x--- 2 root sdcard_r 40 Jan 1 00:56 storage
 dr-xr-xr-x 12 root root 0 Jan 1 00:56 sys
 drwxr-xr-x 15 root root 4096 Jan 1 00:00 system
 drwxrwxr-x 2 root shell 80 Jan 1 00:56 tmp
 -rw-r--r-- 1 root root 840 Jan 1 00:00 twrp.fstab
 -rw-r--r-- 1 root root 9098 Jan 1 00:00 ueventd.qcom.rc
 -rw-r--r-- 1 root root 7515 Jan 1 00:00 ueventd.rc
 ~ #In this list there is no ".local". The content of "data/local" is the following: /data/local # ls -la 
 drwxr-x--x 3 root root 4096 Jan 1 1970 .
 drwxrwx--x 36 system system 4096 Jan 2 1970 ..
 drwxrwx--x 2 shell shell 4096 Jan 1 1970 tmp
 /data/local # cd local
 /sbin/sh: cd: can't cd to local
 /data/local # ls -la
 drwxr-x--x 3 root root 4096 Jan 1 1970 .
 drwxrwx--x 36 system system 4096 Jan 2 1970 ..
 drwxrwx--x 2 shell shell 4096 Jan 1 1970 tmp
 /data/local #
- 
 @karstong it seems you're running the commands as root (I don't know why). To list the content of "your" user's home the command is ls -la /home/phablet/
- 
 @advocatux This command brings: ~ # ls -la /home/phablet/ 
 ls: /home/phablet/: No such file or directory
 ~ #
- 
 @karstong where are you running that command? 
