Sample Header Ad - 728x90

Android Read recent SMS messages from command line

20 votes
4 answers
45383 views
I have recently broken my Android's screen. (Again) Its a T-Mobile G2 Trying to keep up with my busy technology related life is hard enough without losing my link with everyone. I have rooted the phone and have the USB Debugging already turned on. Does anyone know how I would check my recent SMS Messaged from the adb shell so I can keep up with work while i save up to get a new phone or a replacement screen. Thanks for anyone that has any information regarding this. #EDIT# Response to eldarerathis C:\android-sdk\platform-tools>adb shell $ cd /data/data/com.android.providers.telephony/databases cd /data/data/com.android.providers.telephony/databases $ sqlite3 mmssms.db sqlite3 mmssms.db sqlite3: permission denied $ cant chmod the file. do you know actually where it is ? $ chmod +x sqlite3 chmod +x sqlite3 Bad mode $ su leaves me with only basic commands $ su su # cd /data/data/com.android.providers.telephony/databases cd /data/data/com.android.providers.telephony/databases # sqlite3 mmssms.db sqlite3 mmssms.db sqlite3: not found # #Corrected# sqlite was not installed C:\android-sdk\platform-tools>adb shell $ cd /data/data/com.android.providers.telephony/databases cd /data/data/com.android.providers.telephony/databases $ sqlite3 mmssms.db sqlite3 mmssms.db SQLite version 3.6.22 Enter ".help" for instructions sqlite> Also to Access the database I needed to be root. C:\android-sdk\platform-tools>adb shell $ su # cd /data/data/com.android.providers.telephony/databases cd /data/data/com.android.providers.telephony/databases # sqlite3 mmssms.db sqlite3 mmssms.db SQLite version 3.6.22 Enter ".help" for instructions sqlite> Thanks a lot eldarerathis This Link Helped
Asked by The Lazy Coder (301 rep)
Jul 18, 2011, 07:16 PM
Last activity: Dec 29, 2018, 07:18 PM