Avalonswanderer / widevinel3_Android_PoC

Widevine L3 PoC for Android Keybox Recovery, Content Key dump and Netflix Media Download
GNU General Public License v3.0
87 stars 24 forks source link

frida.ProcessNotFoundError: unable to find process with name 'mediadrmserver' #3

Open bencooper1 opened 4 months ago

bencooper1 commented 4 months ago

I tested on Android Emulator google-play API 30 (Android 11) x86 and got error unable to find process with name 'mediadrmserver' (python script.py new):

Traceback (most recent call last):
  File "/Users/admin/Downloads/widevinel3_Android_PoC/script/script.py", line 100, in <module>
    main()
  File "/Users/admin/Downloads/widevinel3_Android_PoC/script/script.py", line 65, in main
    session = device.attach(mediadrm)
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/frida/core.py", line 86, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/frida/core.py", line 1071, in attach
    return Session(self._impl.attach(self._pid_of(target), **kwargs))  # type: ignore
                                     ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/frida/core.py", line 1193, in _pid_of
    return self.get_process(target).pid
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/frida/core.py", line 86, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/frida/core.py", line 969, in get_process
    raise _frida.ProcessNotFoundError(f"unable to find process with name '{process_name}'")
frida.ProcessNotFoundError: unable to find process with name 'mediadrmserver'

Can you please check again and give some update? Thank!

Avalonswanderer commented 4 months ago

It migh be because of the process name being mediaserver starting from Android 7. Use the option new with the script to search for it