sqlite3: not found

前端 未结 3 1776
陌清茗
陌清茗 2020-12-02 14:51

I am trying to reach the sqlite database on my device using the procedure described here: How can i see SQLite Database (No emulator)?

However, I keep on getting sql

3条回答
  •  借酒劲吻你
    2020-12-02 15:17

    Some manufacturers deliver the devices without sqlite being installed on them. You can copy the sqlite program though from a emulator to your device if the device has an arm processor.

    1. Start the emulator and use the adb command from the platform-tools in android-sdk

      adb pull /system/xbin/sqlite3

    2. Mount the system partition of your device read/write after this tutorial:

      http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html

    3. Use the adb command to copy the sqlite3 file to your device

      adb push sqlite3 /system/xbin/

    After you reboot your device the sqlite3 command should work.

    Edit (copy from linked page - in the case link becomes invalid). The instructions for step 2 are:

    adb shell
    su
    mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
    

    "Replace /dev/block/mtdblock3 & /system with appropriate device path and mount point, as obtained from cat /proc/mounts"

提交回复
热议问题