Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Last active July 16, 2025 04:18
Show Gist options
  • Select an option

  • Save chris-piekarski/ceb7cf7b8a828debc96c to your computer and use it in GitHub Desktop.

Select an option

Save chris-piekarski/ceb7cf7b8a828debc96c to your computer and use it in GitHub Desktop.
AOSP Memory/Content Related ADB Commands/Call Logs
adb shell dumpsys procstats --hours 3
adb shell dumpsys meminfo
adb shell dumpsys activity
#get com.android content providers
adb shell dumpsys | grep Provider{ | grep com.android
#call logs
adb shell content query --uri content://call_log/calls
#call logs
for i in `seq 1 90`; do adb shell content insert --uri content://call_log/calls --bind numberlabel:s:teluri --bind number:s:7837 --bind type:i:1 --bind date:l:1437760239687 --bind countryiso:s:US --bind numbertype:i:0 --bind new:i:1 --bind duration:l:60 --bind presentation:i:1 --bind name:s:7837 --bind photo_id:l:0; echo $i; done
@DewNohMad
Copy link

Do I need to root my android devices in order to retrieve the call logs ? As I'm currently having an issue with the command for call logs (as shown below)
image

@amit121a
Copy link

7205061527 can you give me call history of 3 days of this number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment