Search code examples
androidadbwear-os

Unable to pull data from android smartwatch using adb - remote object does not exist


So I'm attempting to extract data from the LG G smart watch running Android wear. I have rooted this device and am attempt to pull data from a folder within the "Data" file which is "data/data/com.google.android.gms/files/assets/3g".

I do this using the following command sequence:

enter image description here

However when I attempt to do an adb pull of this location I get the following error:

remote object "data/data/com.google.android.gms/files/assets/3g" does not exist.

I have tried to change the file permissions of the folder to ensure I have full access to it using the following command:

chmod 777 data

I am able to see that I have full access to the folder but still I cannot extract the data.

I have attempt to follow this answer and chmod the file itself and also the folder it is contained inside but still is does not work.

Any help would be much appreciated.


Solution

  • You need root access to extract that file, which you did get using su on the shell, but not when pulling using adb pull. You can fix that by:

    • Executing

      adb shell "su -c 'cat filepath'" > file.ext

      That will execute cat with root privilege, so it will read the file and then write it to file.ext. This is a bit of a dirty way, but just as valid.

    • Using 'adb root'. This method only works on custom ROMs, as it's disabled by default. You can also enable it by using Chainfire's adb Insecure. After you do either of those, execute 'adb root', and then you should be able to pull the file.