hass-roborock icon indicating copy to clipboard operation
hass-roborock copied to clipboard

package not debuggable error

Open Talk2Giuseppe opened this issue 5 years ago • 8 comments

I get the "run-as: package not debuggable: com-roborock.smart" error when attempting to issue the following command:

adb exec-out run-as com.roborock.smart find /data/data/com.roborock.smart/files/rr_cache/ | egrep rr_tuya_[0-9] | xargs -n1 adb exec-out run-as com.roborock.smart cat > roborock_details.gz gzip -d roborock_details.gz

Actually, since the command error'd out I parsed the commands to figure out which one was causing the issue. It was the first command: "adb exec-out run-as com.roborock.smart find /data/data/com.roborock.smart/files/rr_cache/" that produced the error.

Anyone have any experience with overcoming this obstacle?

Thanks!

Talk2Giuseppe avatar Dec 31 '20 21:12 Talk2Giuseppe

Are you running on rooted device?

On Thu, 31 Dec 2020, 21:47 Talk2Giuseppe, [email protected] wrote:

I get the "run-as: package not debuggable: com-roborock.smart" error when attempting to issue the following command:

adb exec-out run-as com.roborock.smart find /data/data/com.roborock.smart/files/rr_cache/ | egrep rr_tuya_[0-9] | xargs -n1 adb exec-out run-as com.roborock.smart cat > roborock_details.gz gzip -d roborock_details.gz

Actually, since the command error'd out I parsed the commands to figure out which one was causing the issue. It was the first command: "adb exec-out run-as com.roborock.smart find /data/data/com.roborock.smart/files/rr_cache/" that produced the error.

Anyone have any experience with overcoming this obstacle?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/89jd/hass-roborock/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXSJZZIU5IGC4ZH3NQF5XDSXTWQ7ANCNFSM4VPYGEYA .

89jd avatar Jan 01 '21 00:01 89jd

Yes, the device is rooted. It's Note 8 running HadesROM. I am able to access the folder from where the files are on the device itself. But when running the adb commands from a terminal window withing linux, I get those errors. I can also confirm that when I connect the phone to the linux machine, it does prompt/confirm that I want to be in debug mode.

Any ideas?

Talk2Giuseppe avatar Jan 01 '21 17:01 Talk2Giuseppe

What version of the roborock software do you have installed? I am beginning to think that perhaps this current version is signed differently than perhaps an earlier version of the apk which is what is producing the error.

Talk2Giuseppe avatar Jan 01 '21 18:01 Talk2Giuseppe

Just got the same issue. App Version 2.3.30, Jan 14. After running first command I get an roborock_details.gz. roborock_details.gz is an ASCII text type.

sShrek1 avatar Jan 20 '21 13:01 sShrek1

Same here. Testet different Versions on different Emus ( Nox, Bluestacks) with root or without. Tried with original apk and apk from https://github.com/redphx/roborock-tuya-token

roborock-tuya-token apk is currently not running if account is Region EU.

bbr111 avatar Mar 28 '21 00:03 bbr111

Looks like you need debugging enabled in the app for this to work. Tried backing up settings using ADB - won't work either. I'm trying it on a non-rooted device, with no luck. on a rooted one, I'd just dump the cache directory. Does anyone know where to get a debug package? I'm also thinking of installing the app in a bluestacks or any other emulator and try getting the root there.

grinco avatar Apr 12 '21 21:04 grinco

Hey guys,

as long as your phone is rooted, that's pretty easy to solve.

  • Install an android terminal
  • open it
  • type su
  • you'll be asked to give it superuser rights
  • type zcat /data/data/com.roborock.smart/files/rr_cache/rr*

This should post all info on your screen you need, you just have to search for the localKey.

RubenKelevra avatar May 31 '21 20:05 RubenKelevra

Hey guys,

as long as your phone is rooted, that's pretty easy to solve.

  • Install an android terminal
  • open it
  • type su
  • you'll be asked to give it superuser rights
  • type zcat /data/data/com.roborock.smart/files/rr_cache/rr*

This should post all info on your screen you need, you just have to search for the localKey.

Which device and android version did you test this on? I can't get zcat to work, running android 6.0

sShrek1 avatar Jul 08 '21 10:07 sShrek1