Hi. I use this method:
For those who use the Tuya Smart app on Android, and have a PC with Windows OS.
For getting the Tuya Smart LocalKey (or device ID, or etc.). There a method a “easier” way.
The Tuya Smart app stores the LocalKey in a XML-File on your phone/tablet. Usually you can’t access it until the phone is rooted. But don’t worry, no need to root your phone, there is a easier way.
We will install a Android emulator, root it, install the Tuya Smart app and extract the keys. To do so, go to:
and download the latest BlueStacks Tweaker (Link is on top of the page) and Bluestacks installation (down below) according to your OS (32/64Bit).
Also go town to “utils” and download SuperSu 2.82-SR5.apk and Root Checker Pro 1.6.2.apk.
Then install Bluestacks, and after installation, follow the first instructional video on the page to root Bluestacks.
With rooted Bluestacks, go to Play Store and Download “Tuya Smart” app.
N.B. Version Tuya Smart App should be no higher v.3.6.1
Make sure to run it once, login and access your device’s once!
This is essential because only when doing so, it will get the configuration to our Bluestacks rooted phone!
Next, install “ES File Explorer” from Google Play store.
Set ES File Explorer to “Root Mode” (Scroll down left to find “Root Explorer”)
a warning will popup if root sholud be granted, grant it.
root sholud be granted

Now on the right, navigate to:
/data/data/com.tuya.smartlife/shared_prefs
shared_prefs

You end up in a folder with some XML-files, this is where we want to go.
XML-files

Find the file called:
preferences_global_key_<some chars and numbers>.xml
and click it. ES File Explorer will open it (or better copy file and open in Notepad++). You will find the ID of your device’s!
I use this method to get local ID for devices of various manufacturers, for example Tuya Smart, Xiaomi, Midea Air.

