ADB remount failure: remount failed:operation not permitted

Source: Internet
Author: User
Tags system log

ADB remount failure: remount failed:operation not permittedFor the use of ADB, here is another explanation: common commands
ADB shell-Log in to the device shell, followed by running commands directly. such as: adb shell rm-r/system/sd/app
adb pull-download files from your phone to your computer. such as: ADB pull/data/app_s/stock.apk c:\\stock.apk
ADB push-upload files from your computer to your phone. such as: adb push c:\\stock.apk/data/app_s/stock.apk
ADB install-Installs the software on the phone. Example: adb install c:\\apps2sd.apk
ADB Uninstall-Uninstall the software on your phone. such as: adb uninstall linda.apk

Capture System Log Information:

ADB logcat > D:\log.txt This will download the system information to the local D-Disk directory

If you are debugging a 3G module, you need to use this combination

ADB logcat-b Radio-b main-b system-v time d:/log.txt to crawl log information

Wait for ADB device

ADB wait-for-device-block until device is online

Use adb root permissions

adb root-restarts adb with root permissions

Use adb push PC Desktop driver file *.ko/vendor/modules/The file system is then forced to write back to the Nandflash to avoid losing power adb sync when using adb remount to reopen the Android device write mode, that is, the brush mode , encountered the problem: remount failed:operation not permitted using the method of the following article, or is not used, and finally found the root of the problem: the compiled system is the user version, it is not possible to use the command, made clean after the release version is OKReference article http://blog.sina.com.cn/s/blog_4ba5b45e0102ek4k.htmlin the Android source debugging, if you just change a file in a directory, then there is no need to recompile the entire system, just to see the file directory you modified android.mk,
To see what the so library is generating, the module can be compiled using the android mm command. Before mm, you need to import env
$ source build/envsetup.sh
$ lunch
$ mm
then naturally will be in the corresponding directory of out to generate the specified so library, and then need to push it to the system's/system/lib directory, if your board can adb remount words, naturally no problem, then, if it appears
remount failed:operation not permitted, how to do?

1. Determine if the phone is connected correctly
$  adb devices

2. Enter shell
$  adb shell

3. Shell input Commands (the first $ and # numbers in the command do not have to be entered)
$ su 
# mount-o rw,remount-t Yaffs2/dev/block/mtdblock3/system  
# chmod 777/system
# chmod 777/system/lib 
< Span style= "Word-wrap:break-word" ># exit

4. Then you have read and write access to the system directory, for example, you can use ADB push to push the file to the system directory or delete the system files.

Note that if you push the so library to the/system/lib directory, you need to restart to take effect, in addition, if the power is restarted, it is best to run the sync command, forcing the file system to write back to the NAND flash device , Failure to do so may result in data loss.


ADB remount failure: remount failed:operation not permitted

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.