• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to access data on phone with broken screen?

Scheduled Pinned Locked Moved Solved Support
pixel 3a
25 Posts 8 Posters 8.0k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MrT10001 @arubislander
      last edited by 30 Apr 2023, 09:49

      @arubislander I concur. I would attempt a screen removal too and check the connector as the screen is dark. A smashed screen that powers on you may get enough working. to recover data with

      Xiaomi Redmi Note 7.... And more...
      I have too many devices...

      B 1 Reply Last reply 30 Apr 2023, 19:24 Reply Quote 0
      • B Offline
        BarryT @arubislander
        last edited by 30 Apr 2023, 19:14

        @arubislander Thanks for the reply.
        I cannot remember if I have enabled Developer mode. Running "adb devices" in a terminal on the laptop does not show my phone to be attached.
        What should I do to boot into Recovery Mode? The broken screen means that I cannot shut down the phone, nor do I get any feedback on my actions.

        A 1 Reply Last reply 1 May 2023, 06:56 Reply Quote 0
        • B Offline
          BarryT @xet7
          last edited by 30 Apr 2023, 19:19

          @xet7 Thanks for the reply.
          The cost of a replacement screen is much higher than a replacement phone (second hand) so I have not considered it.
          I shall try and connect a keyboard and mouse but the blank screen means that I have no feedback on my actions. Can you suggest what gestures I need to perform to unlock the screen in this way?

          R 1 Reply Last reply 1 May 2023, 14:30 Reply Quote 0
          • B Offline
            BarryT @MrT10001
            last edited by 30 Apr 2023, 19:24

            @MrT10001 Thanks for the reply.
            I shall try this as my last resort; the online instructions suggest that it can be quite tricky.

            1 Reply Last reply Reply Quote 0
            • A Offline
              arubislander @BarryT
              last edited by 1 May 2023, 06:56

              @BarryT Make sure you device is powered off.

              Then press and hold both the power button and volume down button at the same time for about 2 seconds. Then press the volume up button twice. Then press the power button once. Wait about 20 seconds and your phone should have booted into recovery mode.

              You will know you have been successful if it shows with adb devices.

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              B 1 Reply Last reply 5 May 2023, 11:28 Reply Quote 1
              • K Offline
                kugiigi
                last edited by 1 May 2023, 07:10

                Yeah, booting to recovery seems to be the most doable thing to do without spending anything. You can pull /data/user-data and /data/system-data so that you can restore them to your new device. Ideally, you tar them before pulling to avoid random errors when pulling. Your device should have enough space though.

                1 Reply Last reply Reply Quote 1
                • R Offline
                  RayCulp @BarryT
                  last edited by 1 May 2023, 14:30

                  @BarryT said in How to access data on phone with broken screen?:

                  The cost of a replacement screen is much higher than a replacement phone (second hand) so I have not considered it.

                  If you're able to rescue your data successfully and are not planning to replace the screen, please contact me via pm before you throw it away. I might be interested in it. πŸ™‚

                  Happily running Ubuntu Touch on:
                  Google Pixel 3a XL (20.04 Stable)

                  B 1 Reply Last reply 10 May 2023, 13:30 Reply Quote 0
                  • B Offline
                    BarryT @arubislander
                    last edited by 5 May 2023, 11:28

                    @arubislander Thanks for the help. I did finally manage to get into Recovery Mode but, when accessing the phone system, found that the /data was completely empty! Either the phone is more broken than I realised, or I have accidentally wiped the original install during my random button pressing as I initially tried to get into the phone.
                    Am, I missing something?
                    Please note that I updated the phone from Xenial to Focal rather than doing a re-install. Could that have moved the data somewhere strange?

                    My apologies for not getting back sooner but I had to leave the phone for several days to let the phone battery completely run down so that I could be sure it was turned fully off.

                    K 1 Reply Last reply 5 May 2023, 11:54 Reply Quote 0
                    • K Offline
                      Keneda @BarryT
                      last edited by Keneda 5 May 2023, 12:06 5 May 2023, 11:54

                      @BarryT
                      Did you do that :

                      @arubislander said in How to access data on phone with broken screen?:

                      mount the /data partition

                      ?

                      If no, i red somewhere else here that data folder seems empty.

                      Edit :
                      @amazones said in /data folder not present in recovery mode:

                      When I boot into recovery by pressing vol+ and powering phone on, the data directory is present but it's empty.

                      @TheVancedGamer said in /data folder not present in recovery mode:

                      you can run mount -a in adb shell to populate /data

                      2015-2023 : Meizu MX4 ☠️⚰️✝️
                      2023-2024 : Nexus 5 ☠️⚰️✝️
                      2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                      πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                      B 1 Reply Last reply 5 May 2023, 13:38 Reply Quote 1
                      • B Offline
                        BarryT @Keneda
                        last edited by 5 May 2023, 13:38

                        @Keneda Oops! My mistake! I shall try again in a short while. :man_facepalming_light_skin_tone:

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          BarryT
                          last edited by 8 May 2023, 13:54

                          Yes! That seems to have (mostly) worked: I now have 'user-data' copied off my broken phone and onto my laptop. Thank you everyone for your help.

                          Now the bad news:- Pushing the data onto my replacement phone did not work very well.
                          I bought a replacement Pixel 3a of the same spec. Down grading to Android version 9 was a bit of a struggle as the Android Flash Tool kept failing repeatedly due to a 'Network Error' while downloading the new image. I eventually got it too work by swapping to a computer that had an ethernet connection to my router, rather than using wi-fi, and that worked first time. Installation of Touch (version 20.04) worked well, the only small problem being that the phone was not automatically recognised when I first started the installer. I was also able to push the 'user-data' from my laptop onto my newly set-up replacement phone, but this broke several of the installed applications! Gallery and Music would not open at all, and Messages was so corrupted that I could not read the texts. The only good result was that Contacts worked and I have been able to export a copy to my laptop.
                          I understand that there is quite a big difference between the operating systems on Xenial and Focal, so I can only assume that there is also a difference in the contents of the hidden config files in the 'user-data' folder between a phone that has been upgraded compared with a phone that is a fresh install. And that it is these differences that have caused certain apps to fail.
                          I have reinstalled Focal on the new phone, and wiped the user data. I now have a phone that works as expected. I shall copy photos, music, and contacts over using the standard MTP service. I will also have to accept that the old text messages are lost. I am content with this; a 95% recovery of data from a broken phone is a good result. Thank you all again.

                          A K 2 Replies Last reply 8 May 2023, 14:55 Reply Quote 0
                          • A Offline
                            arubislander @BarryT
                            last edited by arubislander 5 Aug 2023, 14:59 8 May 2023, 14:55

                            @BarryT You would have had a better experience if you had flashed xenial to your phone and then updated to focal.

                            You see, lots of things are different under the hood between xenial and focal. And the first run of a new focal install / update runs an upgrade / migration script for all impacted app settings and configs. (These are most prominently the default pre-installed apps.) But since you flashed focal and then restored your xenial data, no such migration took place, and you were left with a broken system.

                            Things being as they are, you can restore your photo and music data selectively, either via MTP or with adb push. If you wanted to retain your contacts and texts, then a clean flash to xenial (with wipe!) then a data restore, and finally an upgrade to focal, would be the way to go. But be warned that some people have experienced some issues going that route as well.

                            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                            Happily running Ubuntu Touch
                            Google Pixel 3a (20.04 DEV)
                            JingPad (24.04 preview)
                            Meizu Pro 5 (16.04 DEV)

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              Keneda @BarryT
                              last edited by Keneda 5 Aug 2023, 15:20 8 May 2023, 14:55

                              @BarryT

                              I will also have to accept that the old text messages are lost

                              Not sure about that, i don't think the database changed for messaging history between 16 and 20.04.

                              @lduboeuf can you give some light here ?

                              In meantime, try to copy your saved history.sqlite file and its "attachements" folder to your new device, and backup then delete history-daemon.lock file, then reboot, open messaging app, and wait ^^

                              2015-2023 : Meizu MX4 ☠️⚰️✝️
                              2023-2024 : Nexus 5 ☠️⚰️✝️
                              2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                              πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                              A B 2 Replies Last reply 8 May 2023, 15:01 Reply Quote 0
                              • A Offline
                                arubislander @Keneda
                                last edited by 8 May 2023, 15:01

                                @Keneda The database might

                                @Keneda said in How to access data on phone with broken screen?:

                                Not sure about that, i don't think the database changed for messaging history between 16 and 20.04.

                                The DB might not have changed, but the new install has a different device ID than the previous one. So while the messages would be there, they would not be visible, until the device-id's were updated to the new one with an SQL statement. Granted this would be an issue also on a new xenial install.

                                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                Happily running Ubuntu Touch
                                Google Pixel 3a (20.04 DEV)
                                JingPad (24.04 preview)
                                Meizu Pro 5 (16.04 DEV)

                                K 1 Reply Last reply 8 May 2023, 15:03 Reply Quote 0
                                • K Offline
                                  Keneda @arubislander
                                  last edited by Keneda 5 Aug 2023, 15:07 8 May 2023, 15:03

                                  @arubislander
                                  Surprisingly, i had no problem migrating my history database from my MX4 to my N5, even if i am sure the device ID is not the same, and red somewhere here that migrating message between diffrent devices is a pain in the bottom ^^

                                  2015-2023 : Meizu MX4 ☠️⚰️✝️
                                  2023-2024 : Nexus 5 ☠️⚰️✝️
                                  2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                  πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                  A 1 Reply Last reply 8 May 2023, 15:06 Reply Quote 0
                                  • A Offline
                                    arubislander @Keneda
                                    last edited by arubislander 5 Aug 2023, 15:06 8 May 2023, 15:06

                                    @Keneda Then I should change my post to say might have a different device ID.(And this is not the Android device ID we're talking about, but an internal one, specific to the app)

                                    πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                    Happily running Ubuntu Touch
                                    Google Pixel 3a (20.04 DEV)
                                    JingPad (24.04 preview)
                                    Meizu Pro 5 (16.04 DEV)

                                    K 1 Reply Last reply 8 May 2023, 15:08 Reply Quote 0
                                    • K Offline
                                      Keneda @arubislander
                                      last edited by 8 May 2023, 15:08

                                      @arubislander
                                      I tested this telling me that if it failed, that would not be dramatic (no risk of ditching UT like this), and if it succeeded, i would be very happy, and that cost nothing to try πŸ˜‰

                                      2015-2023 : Meizu MX4 ☠️⚰️✝️
                                      2023-2024 : Nexus 5 ☠️⚰️✝️
                                      2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                      πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                      1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        BarryT @Keneda
                                        last edited by 8 May 2023, 15:15

                                        @Keneda Thanks for the info but I think that will give this a miss. I don't want to push my luck, and am content with what I have achieved so far.

                                        K 1 Reply Last reply 8 May 2023, 15:18 Reply Quote 0
                                        • K Offline
                                          Keneda @BarryT
                                          last edited by Keneda 5 Aug 2023, 15:23 8 May 2023, 15:18

                                          @BarryT
                                          Again, you can't break UT trying this ^^
                                          If that fails, just delete previously copyed file/folder, and restore backed history-deamon file.

                                          But if your ok without, nevermind ^^

                                          2015-2023 : Meizu MX4 ☠️⚰️✝️
                                          2023-2024 : Nexus 5 ☠️⚰️✝️
                                          2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                          πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            BarryT @RayCulp
                                            last edited by 10 May 2023, 13:30

                                            @RayCulp PM sent to you.

                                            1 Reply Last reply Reply Quote 0
                                            • B BarryT has marked this topic as solved on 10 May 2023, 13:31
                                            14 out of 25
                                            • First post
                                              14/25
                                              Last post