-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frida-ps: Failed to enumerate applications: cannot read property 'getInstalledApplications' of null #1225
Comments
System information:
Python 3.6.9 on Ubuntu 18.04.4 LTS
|
I am using https://github.com/ViRb3/magisk-frida . I just found that:
I can get installed applications list normally, and spawn applications normally. |
Are you sure that your module is up-to-date? Just fixed a bug that resulted in things failing if |
I tried removing the magisk frida module and install it back to get the latest version, it still shows the same behavior as my original report. Magisk frida version: 12.8.17-1 |
I have same issues with latest magisk module and command Workaround with minor changes: su
ps -A | grep frida
kill -9 <frida-server PID>
/bin/frida-server -D |
Same issue here on Android Pie with my Oneplus 3
|
Found what caused this problem:
|
@oleavr Most likely the problem is due to the use of Secure Start-up |
Detected the same issue on Android 12 Beta 5 with a Magisk module which has a Magisk-Frida idea as well. Trying to delay a bit the Frida launching a bit. I'll share more news when get it. |
It seemed to be an issue with Magisk-Frida. Although there was a potential fix for it, I provided a safer workaround: ViRb3/magisk-frida#18 |
When I execute:
It will always return:
When using the python binding, it is the same. Source code:
Returns message:
When running, I made sure there is only one USB device:
It seems that the problem exists within this file https://github.com/frida/frida-core/blob/master/src/linux/agent/system-server.js . So I tried to load it manually with:
Note that in system-server.js I had to replace
enumerateApplications
withenumerateapplications
.And then call it with test.py:
With this I was able to obtain the installed application list.
I was not able to debug it further because I don't know how to modify
system-server.js
and build a new frida that embeds the modifiedsystem-server.js
. If I'm able to modify it then I will be able to debug this problem further by printing values insystem-server.js
then check, etc.A little more background to this is that, I was originally trying to spawn application using
device.spawn(app_package_name)
in the python binding, but because of this problem, I can only attach but not spawn the app.I would be grateful if you can fix this problem (if you already know how), or just give me some direction on how to further trace the issue. Many thanks!
The text was updated successfully, but these errors were encountered: