Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Last active January 27, 2022 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chris-piekarski/ceb7cf7b8a828debc96c to your computer and use it in GitHub Desktop.
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
@linghu258
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

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