In this guide, we will show you the steps to change a file’s permission to rwrr or 644 on your Android device. There are quite a few instances wherein you would have to give a file an elevated permission so that it could function in a non-restrictive environment. In such cases, you will first have to transfer that file to the system directory and then change its permissions accordingly as well.
While the file transfer could easily be carried out, it’s the changing of permissions that usually leads to an element of doubt and plants a seed of confusion among the end users. While most of you might have heard about the rwrr [also written as rw-r-r]or the 644 permission, you might not be aware of what exactly these alphabets and numbers signify individually and as a whole as well.
So in this guide, we will be listing detailed instructions that will help you understand the entire terminology related to permissions as well as the steps to grant this permission to a file. So without further ado, let’s get started.
What is RWRR/644 Permission in Android
This format of file permissions is called CHMOD (short form for “change mode”) and it determines how much access a file should have. In this regard, the first digit represents the Owner, the second digit represents the Group, and the third digit represents Others. So, rw-r-r is the Read and Write permissions for Owner, Read-Only permissions for the Group, and Read-Only permissions for Others.
If we convert this into the numerical format, then the permissions translate to 644. Moreover, Similar to r-w-rr, here also the first digit represents the Owner, the second digit represents the Group, and the third digit represents the Others. But what exactly is the meaning of 6 and 4? Well, 6 stands for Read and Write Permissions whereas 4 is the Read Only permission. The complete list of digits corresponding to their digits are as follows, wherein each number has its own value:
0- No Permissions
1- Execute Only
2- Write Only
3- Write and Execute Permissions
4- Read Only
5- Read and Execute Permissions
6- Read and Write Permissions
7- Read, Write, and Execute Permissions
If you are dealing with a system file, then the required file system [in most cases] will be rw-r-r or 644 whereas for the scripts, it will be 755. So with this, you would got have a decent idea regarding the file permission on Android, let’s now make you aware of the steps to assign the rw-r-r or the 644 permission to a system file.
How to Change File Permission to rwrr or 644 on Android
Before starting, please take a backup of all the data on your device. Thedroidwin will not be held responsible if something happens to your device or data after performing the below steps:
- First off, make sure to root your device via Magisk/KernelSU/APatch if not done so already.
- Then download and install a root-supported File Manager app, such as Solild File Manager.
- Now launch it, tap on the hamburger menu at the top left, and select Root.
- If you have rooted via Magisk, you’ll get a SuperUser request, tap on Grant.
- For KernelSU/APatch, you’ll have to manually give the app SU access.
- Once done, head over to the desired system directory and transfer the file there.
You may enable Auto Rotate and then turn your device to Landscape Mode to enable Multiple Window and then transfer the file from Internal storage to the system directory.
- Now long press on the file, tap on the overflow icon at the bottom, and select Properties.
- Then go to the Attributes tab and checkmark the box as follows [x means no check]:
r-w-x r-x-x r-x-x
- Corresponding to rw-r-r, the 644 permissions will also be set [see screenshot].
- Finally, hit Apply and restart your device once [optional]. That’s it.
These were the steps to change a file’s permission to rwrr or 644 on your Android device. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.