Questions and solutions for real phone testing in Android

Source: Internet
Author: User

Problem one: The test on the real machine, adb shell execution sqlite3 access to the database/system/bin/sh:sqlite3:not found, the original phone system does not have sqlite3 files, need to download online: is the download sqlite3, If it is android4.1 above you need to download sqlite3_4.1

1) mount the/system directory as writable

>ADB shell# mount-o remount,rw-t Yaffs2/dev/block/mtdblock3/system

2) Download Sqlite3, if it is more than android4.1 need to download sqlite3_4.1, or create a simulator, in the simulator sqlite3_4.1, and push it to the phone, Or click Import directly with Eclipse's fileexplor, or command import:

> ADB push Sqlite3/system/xbin

3) give permission to Sqlite3 or sqlite3_4.1

# chmod 4755/system/xbin/sqlite3

4) test whether it can be used

ll sqlite3_4.1

5) Restore the system to read-only

#mount-O remount,ro-t yaffs2/dev/block/mtdblock3/system

  

Issue two: After the SD card writes the data to join the Write permission still prompt: Open failed. (read-only file system), is not saved or read and write not safe exit causes the SD card problems need to be mounted again,

Workaround:

1. The simplest, ADB remount

2. If not, adb shell Su then remount the file system to read and Write permissions: Mount-o rw,remount/system. For security reasons, remember after the remount read back: Mount-o Ro,remount/system

3. Similar to Method 2, Mount-o rw,remount-t Ext3/dev/block/mmcblk1p21/system

Questions and solutions for real phone testing in Android

Related Article

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.