sqlite command in adb
February 26, 2009 at 9:34 am | Posted in android | 3 CommentsTags: adb, sqlite
Connect to a database:
adb shell
# sqlite3 data/data/com.google.android.providers.contacts/databases/contacts.db
sqlite3 data/data/com.google.android.providers.contacts/databases/contacts.db
SQLite version 3.5.0
Enter “.help” for instructions
List tables:
.table
Print some of the information from the tables:
.header on
.mode column
sqlite> .header on
.header on
sqlite> .mode column
.mode column
sqlite> select * from phones;
select * from phones;
_id person type number number_key label
———- ———- ———- ———— ———— ———-
1 1 1 +15085551212 21215558051+
2 1 0 +17815551212 21215551871+
3 1 2 +16175551212 21215557161+
.help can tell you more useful command.
LIKE Operator Example
SELECT * FROM Persons WHERE City LIKE ‘s%’;
APNs file in android
February 26, 2009 at 8:33 am | Posted in android | 1 CommentTags: apn
在 source code 中會有個檔案 apns-conf_sdk.xml ,這是記錄 apn 設定值的檔案,image burned 之後,就會被放到 /system/etc ,在 runtime 的時候,會依照這裡的值,建立出 telephony.db。
若要更新 apns-conf.xml 時,需先把 telephony.db 刪除且重新開機,資料才會重新建立起來。
telephony.db -> /data/data/com.android.providers.telephony.databses/telephony.db
apns-conf.xml -> development/data/etc
Create a free website or blog at WordPress.com.
Entries and comments feeds.