Figured this out. Had to install the arm translation (just dropped the zip on top of the running emulator to flash).
Also, I have my devices added through the Tuya Smart app, not Smart Life. Tuya Smart has nearly the same file location, mine being ./data/data/com.tuya.smart/shared_prefs and my file was named preferences_global_keySEEMINGLY_RANDOM_STRING.xml. I wrote a little bash thing to parse the file and give me my outputs. The command string below requires the jq command.
Hey, which component did you use to get yours to work? The one linked in the OP is gone now, and I’ve ben getting errors with another I’ve been trying.
One note: I have some devices that seem to respond poorly to being controlled/queried by the custom component, they will randomly crash after being controlled or queried and then the device stays off. I believe this is an issue with the firmware on the device, not a problem with the component.
I ended up having to use the custom component (I use it where I can cause it’s fast, and no internet connection is needed) AS WELL AS the official Tuya component for other devices. This will lead to a name conflict, so if you do this you need to name the custom component tuya_custom.py or something…
Everything seemed to be going smoothly, until the OP’s dev_data_storage.xml didn’t exist.
Someone else said to check preferences_global_keySEEMINGLY_RANDOM_STRING.xml, which does exist, however it is basically an empty XML file.
Has anybody had this issue and figured it out?
I had the same problem. I realized that it only works with older versions of TuyaSmart. I originally tested with 3.13.0 and got the empty xml as well. I uninstalled that and installed the older version 3.1.3.
I used apkcombo.com to download the older version and then installed it via ADB
Version 3.1.3 writes the information to the file named preferences_global_key…numbers…xml
Using 3.1.3 I could not log in using my phone number so I created a new account based on email address instead.
That worked fine.
If you are up to get the ID and key from your tuya, try the 3.4.1. I used 3.3.0 and it worked as well. I think the problem starts from 3.1x.x and above.
If it wouldn’t work i can send you the 3.3.0. (as a file, the link doesn’t work anymore)