Script to modify Android file permissions

1. Introduction

During the audio debugging process, the audio data is usually dumped to the file system. However, some machines do not have the write permission, which will cause the write failure and the corresponding log cannot be viewed. So today I will introduce a script to modify Android folder permissions for reference.

2. Script content

Save the following content as a .bat file and double-click to run it:

adb root
adb wait-for-device
adb remount

adb shell chmod 777 vendor
adb shell setenforce 0

pause

Three, summary

This article mainly introduces tips for modifying the read and write permissions of Android folders for reference.

おすすめ

転載: blog.csdn.net/xuxu_123_/article/details/131458733