Lollipop brought major changes in Android structure. In KitKat there were not subfolders under system/app and system/priv-app. In KitKat these folders contain only the apk files while now in Lollipop you will find subfolders. They have the same name with the apk files that are located in these folders. Some apk folders also include “lib” and “arm” subfolders. So this is a bit confusing and some people aren’t able to set the right permissions.
The help you and all other people who find confusing and can’t set the right permissions on Lollipop and higher version we wrote this guide. You will learn how to set the right permissions of “folder”, “apk” and “lib” files. If you have no idea about Android permissions make sure to read everything carefully because we will try to explain as simple as possible.
You may have ended up here because probably you wanted to replace some files with other ones and there they said to set the right permissions and that’s all. So you have no idea how to do that and you found this guide. Well, if it’s so you are in the right place. This guide is the one you need to understand how to set the right permissions on Android.
Firstly let me say that before replacing any file make sure to save the current file somewhere else. In case something goes wrong you have the old file and can restore it. Also remember that for those folder that have subfolders inside we should set the permissions separately.
But what does this mean? Let’s say you downloaded a zip file of “S7 camera”. After you download it and extract the file you will see a “S7 camera” folder. Open it and you will see “S7 camera” apk and “lib” folder together. In the “lib” folder there is also an “arm” folder. In “arm” folder there are some “lib” files.
To set the right permissions of an apk file we should set the permissions of all “folder”, “apk” and “lib” files and subfolders/subfiles one by one. If you set the permission only for the main folder and reboot your device, the app may not work properly. So be aware of this. A “lib folder” and a “lib file” has different permissions.
Here are the right permissions for Folders, APKs, and LIBs:
- Right permissions for Folders are: “rwxr-xr-x”
- Right permissions for APKs are: “rw-r–r–“
- Right permissions for LIBs are: “rw-r–r–“
Let’s say you downloaded an app and you wanna replace it. First you will need the zip file “example.zip”. Download it on your phone and extract the files. Navigate to “system/app” and copy the folder of the app you wanna replace somewhere on your SDcard. Then delete the app folder from there. Now copy the new folder to “system/app” and right press on it.
If you are using ES File Explorer, click on the three dot menu in the right bottom. Choose properties and a new window will pop-up. In this window tap on permissions and change them to “rwxr-xr-x”.
Open this folder and you wanna see a “lib” folder and an apk file “example.apk”. Long press on the apk file and like you did with the folder, change the permissions to “rw-r–r–“. Now long press on the lib folder and set the permissions to “rwxr-xr-x“.
Then open “lib” folder and you will find an “arm” folder inside it. Long press and set the permissions to “rwxr-xr-x”. Open the “arm” folder and you gonna see “lib files”. Long press on it and change the permissions to “rw-r–r–“. Remember you should change the permissions of all files, no matter if it’s a folder, apk or lib files.
Once you change the permissions of each files separately reboot the phone. After reboot the phone, to prevent FCs conflicts with the previous app it’s needed to clear data. So go to Settings > Application Manager > Name of App and clear data.
If you did all these steps carefully you will be able to enjoy the new app without any problem. Do you have any other questions? Feel free to ask in the comment section below.
Related posts
7 Online Tools To Record Lectures [2023]
The educational environment seems a lot different compared to a few years ago, with technology bringing major changes. Are you as a lecturer or a learner up to date with the apps and software that can make your life a little easier, for example catering…
Should You Take Mobile Security Seriously? Here Is Why
Gone are the days when the biggest security threats only existed on your computer. Most people think that a cell phone can be a safe space for personal, financial as well as confidential data. However, nowadays with the extensive use of cell phones for literally…
The Best Android Apps To Download This Year [2020]
As our mobile phones have become an essential part of our lives in this technologically advanced world of ours, we have found more ways in which we can use them. Some people stick to the traditional methods of calling and texting, while others venture into…
The Best Photo Editing Apps That You Need to Increase Your Instagram Followers
Instagram is probably the most used social media network nowadays. For some people, it’s just a simple a place to share photos and try to impress the other with the “good life” they have while some others have discovered the power of Instagram and run…
Comparison Of Smart Watches – Apple Watch 8 vs Google Pixel Watch
Since the introduction of smartwatches in the market, people have started to rely more on them because of their convenience. You can use smartwatches to receive notifications, make and receive calls, and access various apps. Smartwatches are not just about looking at the time; they…
Why You Should Use a Personal VPN on a Daily Basis
Personal VPN is one of those technologies which is gaining more and more popularity and importance from day to day. Generally, VPN (Virtual Private Network) was designed to get a secure connection for business purposes mainly. Now, the role of VPNs has changed a lot….
Best Instagram Usernames For Boys and Girls To Get More Followers in 2019 (Updated)
If you are an Instagram user, you have to agree that there is nothing as cool as a catchy name. The importance of a good and unique Instagram name is something that can’t be ignored. The username determines who follows you, the comments that are…
How IoT is Influencing App Development
As you leave your office for the day, you tap an app on your phone and start your car. Another app allows you to turn on lights at your house, maybe even get dinner started. Welcome to IoT, the Internet of Things, in which an…