Setting up the Memu Player for ZebraTester Recording
If you have a Windows 10 PC and want to record an Android session with ZebraTester, this article describes how to set up Memu Player so ZebraTester can record an emulated mobile session using Memu.
Our Performance Engineer, Christian, recorded a quick, 5-minute, video that these steps below summarize.
Referred to below, ADB is also known as the "Android debug bridge". It is used by android developers or android enthusiasts to perform tasks related to the Android ecosystem such as development, installing custom ROM, and Fastboot.
Step
Screenshot
macOS
Windows 10
In your new folder you will see the new PEM formatted file after running the command.
Extract original hash
We need to get the hash value from the original root certificate. Execute the following command that extracts this value to a new line.
If you are using Linux or Mac, execute the following command:
openssl x509 -inform PEM -subject_hash_old -in rootcertnewname.pem | head -1
==> hashvalue
Example: openssl x509 -inform PEM -subject_hash_old -in rootcertzt55z.pem | head -1
==>9e8079bd
If you are using Windows, execute the following command:
openssl x509 -inform PEM -subject_hash_old -in cert.pem | more +0
==> hashvalue
Example: openssl x509 -inform PEM -subject_hash_old -in rootcertzt55z.pem | more +0
==> 5h543h5a
Temporarily rename the PEM file
Send the output of the PEM to the named file [hash value+extension of Zero '0'] with this concatinating command.
cat rootcertnewname.pem > [hashvalue.0]
Example: cat rootcertzt55z.pem > 9e8079bd.0
If you are using Windows, run the above command in Powershell instead of a normal command prompt.
Append the output of Information of the PEM file to contents of the just-named file above
If you are using Linux or Mac, execute the following command:
openssl x509 -inform PEM -text -in rootcertnewname.pem -out /dev/null >> hashvalue.0
Example:
openssl x509 -inform PEM -text -in rootcertzt55z.pem -out /dev/null >> 9e8079bd.0
If you are using Windows, execute the following command:
openssl x509 -inform PEM -text -in cert.pem -out $null >> hashvalue.0
Example:
openssl x509 -inform PEM -text -in cert.pem -out $null >> 5h543h5a.0
You should see the original hashvalue.0 file increase in size when you add the output of the PEM file.
Set Developer Mode
After restarting, you need to use Android’s Developer Mode to be able to use the Root Certificate that you created earlier.
From Android (Tablet or Phone) Settings, scroll to the About Tablet/Phone and click in. Then scroll to the very bottom to Build Number and click that section 7 or 8 times until you see that you are now a developer.
Enable USB Debugging
Under Settings, now that you are a developer, there will be a {} Developer Options that will include a USB debugging Mode
Turn On the USB debugging mode and confirm that you want to allow this mode
This will then allow the next step, with the Android Debug Bridge, to import the root certificate to the Android system.
If you get the message:
failed to copy ‘9e8079bd.0’ to ,/system/etc/security/cacerts/9e8079bd.0’: couldn't create file: Read-only file system
this is because ADB is not running as root so do an ADP REMOUNT:
C:\adb>adb remount
And you should get
remount succeeded
And then re-enter that command
C:\adb>adb push 9e8079bd.0 /system/etc/security/cacerts
If this is run correctly, you will see how fast the push went:
Example: 1195 KB/S (5074 bytes in 0.025s)
Change Read Permissions of the new Root Certificate File for the Android system
Using the shell feature of ADB, change to the cacerts subdirectory to change the Root Certificate file permissions to read.
Without this step the Android system won’t be able to ‘see’ the new Root Certificate File.
Change directory /etc/security/cacerts
Example
G011A:/etc/securitv/cacerts # chmod 644 ./9e8079bd.0
Was this helpful?