How to Enable Call Recording in LineageOS
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:
1 2
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:
1
<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:
1 2 3
adb root adb remount adb shell
- In the shell, execute:
1 2 3 4
mv /storage/self/primary/Documents/Dialer.apk /system/product/priv-app/Dialer cd /system/product/priv-app/Dialer chmod 644 Dialer.apk exit
- Reboot:
1
adb reboot
- When you start a call, a new button with a
Recordsymbol will appear in the Dialer UI.
This post is licensed under CC BY 4.0 by the author.