-
Notifications
You must be signed in to change notification settings - Fork 90
How to dump CDM key pair from AVD
FoxRefire edited this page May 21, 2024
·
8 revisions
- PC with Android Studio + Android SDK + Python 3 installed
-
Create Android 13.0(Google APIs) AVD
Do not select Google play
-
Download latest frida server
There are many links, but select "frida-server-xx.x.x-android-x86_64.xz".
-
Extract frida-server's archive
-
Rename the file "frida-server-xx.x.x-android-x86_64" to "frida-server".
-
Download or clone Keydive onto your PC.
-
Run following commands on your terminal
adb root adb push frida-server /data/local/tmp adb shell "chmod +x /data/local/tmp/frida-server" adb shell "/data/local/tmp/frida-server -D &" python keydive.py
-
Play any Widevine-protected video on AVD
*) It does not matter even if Chrome is black outed at this time. CDM will be dumped when either URL is typed in the URL bar.
-
At device/xxxxxx/private_keys/xxxxxx/xxxxxxx directory, you will find dumped CDM key pair.