-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HACK: granting full permission for apps data (1/2)
This is a temporary hack to combat against the apps permission issue on Android 11. Whenever an app is open it will always enable a property (persist.sys.nodataperm) to make it execute a script to grant the data full permissions (777). Keep in my that this is a temporary hack and there should be a better solution like using bind-mounting filesystem. Thanks PrimeOS team for this solution
- Loading branch information
1 parent
9ed3787
commit 2d47891
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/system/bin/sh | ||
|
||
chmod 777 -R /sdcard/Android | ||
chmod 777 -R /data/media/0/Android | ||
chmod 777 -R /sdcard/Android/data | ||
chmod 777 -R /data/media/0/Android/obb | ||
chmod 777 -R /mnt/*/*/*/*/Android/data | ||
chmod 777 -R /mnt/*/*/*/*/Android/obb |