mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
deblobber: Don't remove CNE
- breaks Wi-Fi calling - breaks IMS on marlin/sailfish
This commit is contained in:
parent
d6cf9ec8b0
commit
8b56cd13c6
6 changed files with 40 additions and 6 deletions
35
fix_permissions.sh
Normal file
35
fix_permissions.sh
Normal file
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
#Copyright (c) 2020 Divested Computing Group
|
||||
#License: GPLv3
|
||||
|
||||
setStrict() {
|
||||
if [ -d "$1" ]; then
|
||||
find "$1" -type d -print0 | xargs -0 chmod -v 0700;
|
||||
find "$1" -type f -print0 | xargs -0 chmod -v 0600;
|
||||
fi;
|
||||
}
|
||||
|
||||
setRelaxed() {
|
||||
if [ -d "$1" ]; then
|
||||
find "$1" -type d -print0 | xargs -0 chmod -v 0755;
|
||||
find "$1" -type f -print0 | xargs -0 chmod -v 0644;
|
||||
fi;
|
||||
}
|
||||
|
||||
chmod -v 600 LICENSE* pending_commit.txt TODO;
|
||||
setStrict Manifests;
|
||||
setStrict Misc;
|
||||
setStrict Patches/Common;
|
||||
setRelaxed Patches/Common/android_timekeep_sepolicy;
|
||||
setRelaxed Patches/Common/android_vendor_divested;
|
||||
setStrict Patches/LineageOS-11.0;
|
||||
setStrict Patches/LineageOS-14.1;
|
||||
setStrict Patches/LineageOS-15.1;
|
||||
setStrict Patches/LineageOS-16.0;
|
||||
setStrict Patches/LineageOS-17.1;
|
||||
setStrict Patches/Linux; #XXX: move this into the repo
|
||||
chmod -v 700 Patches/Linux/*.sh;
|
||||
setStrict Patches/Overclocks;
|
||||
#PrebuiltApps has its own fix_permissions.sh
|
||||
#Patches/Wallpapers has its own fix_permissions.sh
|
||||
setStrict Scripts;
|
Loading…
Add table
Add a link
Reference in a new issue