Adb remount failed: Operation not permitted, adbremount

Source: Internet
Author: User

Adb remount failed: Operation not permitted, adbremount
Adb remount failed: Operation not permitted about the use of ADB, here I will explain: Common commands
Adb shell-log on to the device shell and run the command directly. For example, adb shell rm-r/system/sd/app
Adb pull-download files from your mobile phone to your computer. For example, adb pull/data/app_s/Stock.apk C: \ Stock.apk
Adb push-upload files from your computer to your mobile phone. For example, adb push C: \ Stock.apk/data/app_s/Stock.apk
Adb install-install the software on your mobile phone. For example, adb install C :\\%2sd.apk
Adb uninstall-uninstall the software on the mobile phone. For example, adb uninstall linda.apk

Capture System Log information:

Adb logcat> d: \ log.txt to download the system information to the local d 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 capture log information

 

Waiting for adb Device

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

 

Use adb root permission

Adb root-restarts adb with root permissions

  Use  Adb pushes the desktop driver file *. ko/vendor/modules/in the pc/ Then force the file system to write back to nandflash to avoid power loss Adb sync   When I use adb remount to re-enable the write mode of the android device, that is, the problem occurs: remount failed: Operation not permitted   The method in the following article is useless. The root cause of the problem is found: the compiled system is the user version, so this command cannot be used. After making clean, compile the release version and it will be OK.Refer to the Article introduction,
To check what so library is generated, use the android mm command to compile the module. Before mm, You need to import env
$ Source build/envsetup. sh
$ Lunch
$ Mm
Then the specified so library will be generated under the corresponding directory of the out, and then it needs to be pushed to the/system/lib directory of the system. If your board can be adb remount, naturally, there is no problem.
Remount failed: Operation not permitted. What should I do?

1. Check whether the phone is correctly connected.
$Adb devices

2. Go to shell
$Adb shell

3. Enter the command in shell (do not enter the $ and # At the top of the command)
$ Su
# Mount-o rw, remount-t yaffs2/dev/block/mtdblock3/system
# Chmod 777/system
# Chmod 777/system/lib
# Exit

4. Then you have the read and write permissions of the system directory. For example, you can use adb push to push the file to the system directory or delete the system file.

Note: If you push the so Library to the/system/lib directory, You need to restart it to take effect. In addition, if it is a power failure, you 'd better run the sync command, force the file system to write back to the nand flash device; otherwise, data may be lost.

 

 



Adb remount failed: operation not permitted

What do you want to do?
Adb remount means to remount the system partition so that the system partition can be rewritten.
To put it bluntly, the folder has no permissions.
That's why you posted the blog.
Directly access the shell command line by using the adb shell to allocate permissions to related folders.
==================================
Note that the adb shell cannot be used again.
Adb is not a (Linux) shell Command
Whether you configure environment variables or copy adb.exe to system32
So that the adb command can be run in cmd. adb is only the command in cmd.

C: \> adb pull/mnt/sdcard/1.jpg C :\
Copy the things on your computer to drive C.

Some mobile phones do not work.
Adb remount
You can try using adb root to say that you have insufficient permissions.
Those phones do not have the adb root permission when burning the rom. Of course, commands such as adb root will say that the permission is insufficient.

You must use adb remount to change the android installation package and flash the machine. For more information, see
Zoud. I .sohu.com/blog/view/184944418.htm

In fact, you can also use the RE browser on your mobile phone to change the permission of the folder for this permission.
Then, commands such as adb pull can be executed.

Using the re browser is much easier than using shell commands to change permissions.

For Xiaomi mobile adb remount failed: opertation not permmitted Problems

Hi!
It may be that some applications in your system interfere with the normal operation of the system, especially some programs that have the root permission. Therefore, do not use the root permission for the security of the mobile phone system. We recommend that you back up the data and go to recovery to clear all the data (shut down, press and hold the volume up + open the Machine Key to enter recovery). Then, you can upgrade your mobile phone to the latest development version, do not install applications that require root permission for the time being and check whether the applications can be restored to normal.
A more detailed description of the problem helps netizens understand your troubles and help you solve the problem more accurately. Thank you for your support for Xiaomi mobile phone!
Xiaomi enterprise Platform [Official Certification]

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.