Android phone appears sqlite3 not found workaround

Source: Internet
Author: User

Here's how to fix it:

1, if the/system directory is not read and write, you need to mount for read and write:

C:\USERS\EASTEQ>ADB Shell

[email protected]:/# Mount-o Remount,rw-t Yaffs2/dev/block/mtdblock3/system

2, the Sqlite3 file push to the device, sqlite3 can download it yourself (if needed, you can download it here: http://download.csdn.net/detail/xiaoyaovsxin/4969923):

[email protected]:/#exit

C:\USERS\EASTEQ>ADB Push F:\sqlite3_not_found\sqlite3/system/xbin

PS: If not, try the following methods

A, the previous save sqlite3 in the DDMS panel through the upper right corner of the phone icon (push a file onto the device) to push the file into the SDcard, exactly in the/mnt/sdcard

b, and then at the command line typing cat/mnt/sdcard/sqlite3 >/system/xbin/sqlite3 copy File

3, need to modify the permissions of Sqlite3:

C:\USERS\EASTEQ>ADB Shell
[email protected]:/# chmod 4755/system/xbin/sqlite3

4, the test of Sqlite3:

[email protected]:/#sqlite3

If the following prompt appears:

LINK_IMAGE[1957]: 2684 could not load needed library ' libncurses.so ' for ' sqlit
E3 ' (load_library[1112]: library ' libncurses.so ' not found) cannot LINK executabl
E

, you also need the push libncurses.so file,

The method is:

[email protected]:/#exit

C:\USERS\EASTEQ>ADB Push F:\sqlite3_not_found\libncurses.so/system/lib
2178 kb/s (185136 bytes in 0.083s)

Libncurses.so can also download it yourself.

5. Restore/system as read-only (optional)

[email protected]:/#mount-O remount,ro-t yaffs2/dev/block/mtdblock3/system

Go into your database:

[email protected]:/# Cd/data/data/com.test/databases

This will allow you to manipulate your database.

Android phone appears sqlite3 not found workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.