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
Documents
folder, and move theDialer.apk
to your PC via email or IM. - Decompile
Dialer.apk
using Easy APK Tool. - Navigate to the corresponding decompiled
Dialer
folder, and there into subdirectoryres/xml
- Open
call_record_states.xml
in a text editor and replace allfalse
strings withtrue
- In
Dialer
folder, 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
Dialer
folder into a newDialer.apk
- Upload the new
Dialer.apk
to theDocuments
folder 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
Record
symbol will appear in the Dialer UI.