summaryrefslogtreecommitdiff
path: root/partition_permission.sh
blob: 3add273e6cf911da5eebc85a1ddb9980e792c03c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/system/bin/sh

#change partition permission
/system/bin/chown root:system /mtd@preloader
/system/bin/chmod 0640 /mtd@preloader
/system/bin/chown root:system /mtd@pro_info
/system/bin/chmod 0660 /mtd@pro_info
/system/bin/chown root:system /mtd@bootimg
/system/bin/chmod 0640 /mtd@bootimg
/system/bin/chown root:system /mtd@recovery
/system/bin/chmod 0640 /mtd@recovery
/system/bin/chown root:system /mtd@sec_ro
/system/bin/chmod 0640 /mtd@sec_ro

/system/bin/chown root:system /mtd@nvram
/system/bin/chmod 0660 /mtd@nvram
/system/bin/chown root:system /mtd@seccfg
/system/bin/chmod 0660 /mtd@seccfg
/system/bin/chown root:system /mtd@misc
/system/bin/chmod 0660 /mtd@misc