If you have multiple devices, you’ll have to collect each of them in this same manner from this xml. The two values we’re interested in are the localKey (mine’s aa8d3cf33ce62371 here) and the devId (mine’s 03210171cd4d22c3aa52 here). I know this is rl ugly, but stay with me here. You’ll be able to see the details for each device following the 'devId" tag. Okay, now if you open up this file in Sublime or Atom or Notepad or however you roll, its gonna have a lot of unorganized data in it. So now you should have a file on your Desktop called dev_data_storage.xml Step 4: Smart Life data data/data//shared_prefs/dev_data_storage.xml /Users//Desktop The file you want is deep in the in the root directories, never worry, we can easily copy it to your desktop (I’m doing this on OSX, Linux and Windows users won’t have the “Users” folder, use pwd to put it in your current directory): $ adb pull. Sample output List of devices attachedġ92.168.56.102:5555 device product:vbox86p This should give you an output listing your emulated device. With your emulator running, go ahead and open the terminal and type adb devices -l So I’ll just assume we’ve gotten adb installed on the computer of your choice. I’m going to leave that part of the instructions to better minds. If you don’t, there are different ways of installing it depending on OSX, Windows, etc. Okay, now I used adb here, and anyone familiar with rooting or android development probably already has that installed. Image 972×1594 208 KB Step 3: Getting your configuration file Once the device is configured, (again default settings will do) go ahead and start it up! Settings aren’t going to be too important here, I set up a Galaxy S7 with 6.0.0 API 23, since this is the same as my phone. When Genymotion is installed and running, click “Add +” and create a new device. Then I realized, all Genymotion emulated phones are rooted, and I already had one of those! So, for those of you that don’t, download Genymotion (it’s free for personal use). After all, all I want is access to an xml file that I would be able to use if it weren’t for lack of root privileges on my phone. Tools: Genymotion, adb, Smart Life app (note that this will work for all Jinvoo, Tuya, and similar devices), a computer, a mobile device Step 1: Installing Genymotion on the computerĪfter mucking about in proxies, Charles, and packet sniffing, I was frustrated with the state of this information. This is all in hopes that this information is useful to someone else. Okay so after struggling with this for a couple days, I thought I’d post as in depth a success story on a Tuya / Smart Life / Jinvoo electrical outlet as I can manage, starting from the beginning. Continuing the discussion from Add Support for Smart Life Components:
0 Comments
Leave a Reply. |