Hello guys, I tried these instructions but at the point of tracing the emulated app stops working and i get the error: “Failed to attach: process with pid 9632 either refused to load frida-agent, or terminated during injection”
Did I maybe download the wrong akp? The “newer” Links was still working and I got the file “com-ldvsmartwifi-smart-4.apk”
Any ideas?
EDIT: I just checked in the emultor that the app seems to be verison 1.2.0 and not 1.0.0 as claimed in the beginning. I found online the version 1.1.0 but that did not work eihter.
So maybe someone can provide the actual 1.0.0 version of the apk?
please read my hints in my solution, there is the link to the 1.0.0 Version. try the Steps and read my solution for several steps, then you will have success.
Just wanna add how I resolved it:
type: adb shell
type: ps -e | grep frida-server
output: root 12483 1 57724 4112 poll_schedule_timeout e8889b39 S frida-server
type: kill -9 12483
type: exit
go back to step 15
in step 18 when the frida server wont stat, i typed “exit” and then again
after the command: 'adb shell “/data/local/tmp/frida-server &” ’ i get the error: ‘/data/local/tmp/frida-server: not executable: 32-bit ELF file’ any solution ? I’m on the Mac. everything else is working
fixed: used frida-server-15.1.14-android-arm64
These are my very first steps with HA. But I’ve managed to get the IDs and connect the plugs to HA. Only as a simple switch though, without energy consumption monitoring. I’ve made a few guesses how to integrate ledvance.yaml to configuration.yaml, but all unsuccessful. I do something wrong, as it breaks the configuration.yaml.
Could anyone please share a hint how to import ledvance.yaml? Thank you in advance.
EDIT: If I manage to enable energy monitoring, then the switch breaks. HA wouldn’t allow to use ID 1 for both: binary_sensor and switch.
This really is an excellent tutorial but there are so many variables including knowledge that this should be turned into some sort of utility and integration. Ledvance is soooo much more inexpensive and locally available that it would just make sense for someone SMART+ to do this.
I am having problems getting the ADB to stay up on my machine for whatever reason which is what I think is generally my problem. Should I reinstall the development platform?
at first, thank you for the great tutorial.
I’m new to HA and was happy to find a way to add my Ledvance Wifi Plugs.
BUT i got stuck on the part were i have to trace.
PS D:\> frida-trace -U --decorate -j *!*encodeString*/isu -F
No frontmost application on Android Emulator 5554
I always get this message. One strange thing, on step 15 everytime i try the last command i get this message
generic_x86_arm:/ # /data/local/tmp/frida-server &
[1] 9856
generic_x86_arm:/ # /system/bin/sh: /data/local/tmp/frida-server: can't execute: Is a directory
Maybe this is my issue?
To be sure i have checked the app version of ledvance and it is 1.2.0
I used the URL here from this post. Name is the same but it will install 1.2.0 instead of 1.0.0
Another possible source for the issue?
I also tried to use another frida server version like told by jjuuzzii. Also no chance.
Hi @fspatt ,
thank you for your advice but it has not worked for me.
One thing i noticed, i could update PowerShell to a newer Version.
OOB it used WindowsPowerShell in Version 5.1 and now i’m using PowerShell 7.2.
Other point is, i’m on Win11 x64.
With the newer Version of PowerShell i don’t have an error after the shell command with the &.
Iritating is, that while pasting the shell command, the " are removed. Is this correct?
But i have stil lthe error: No frontmost application on Android Emulator 5554
On another different is, i have a newer Version of Android Studio:
Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 1, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 24
Registry: external.system.auto.import.disabled=true
Hi Frank,
as you see in my log i got the command back after the display of this “table”.
Frida server is the same version. I also tried to update the frida tools itself.
Hi @Keules,
Im pretty new to HA. Just got ledvance integraded and would like to have the consumption too.
Could you explain how you imported the ledvance.yaml into your config?
When I integrate it in /packages I get the error: expected a dictionary for dictionary value @ data['packages']['ledvance']
When I integrate it separately I dont know which component I have to use.