How to Enable Call Recording in LineageOS
*from XDA developers and Stackexchange
Environment
- ADB
- LineageOS 18.1
- Windows 11
- Easy APK Tool
Instructions
- Connect the phone to a PC with a USB cable.
- Navigate to a directory with
adb.exe - Right click,
PowerShell->Open here - In the shell, execute:
cd /system/product/priv-app/Dialer cp Dialer.apk /storage/self/primary/Documents - On your phone, go to
Documentsfolder, and move theDialer.apkto your PC via email or IM. - Decompile
Dialer.apkusing Easy APK Tool. - Navigate to the corresponding decompiled
Dialerfolder, and there into subdirectoryres/xml - Open
call_record_states.xmlin a text editor and replace allfalsestrings withtrue - In
Dialerfolder, navigate into the subdirectoryres/values - Open
styles.xml - Line #25 is a duplicate, delete it:
<item name="android:textColorPrimary">@color/dialer_primary_text_color</item> - Using Easy APK Tool, recompile the
Dialerfolder into a newDialer.apk - Upload the new
Dialer.apkto theDocumentsfolder on your phone. - Reconnect the phone to a PC.
- In the same PowerShell, run:
adb root adb remount adb shell - In the shell, execute:
mv /storage/self/primary/Documents/Dialer.apk /system/product/priv-app/Dialer cd /system/product/priv-app/Dialer chmod 644 Dialer.apk exit - Reboot:
adb reboot - When you start a call, a new button with a
Recordsymbol will appear in the Dialer UI.