From a3d31fbe385094400719e9a7a79965ff5da9f4b4 Mon Sep 17 00:00:00 2001 From: that Date: Sun, 21 Dec 2014 22:27:40 +0100 Subject: fixPermissions: simplify code, fix bugs - avoid parsing permission strings - fix memory leaks, a fix new/free mismatch and a compiler warning - fix that only first updated-package was processed - fix a potential stack overflow if packages.xml is huge - minor refactoring for reducing duplicated code - don't process packages without codePath - fix path for deleting app data (currently unused anyway) - fix file ownership on libs - try not to mess up Android 5.0 app permissions Patch set 4 - make fixing SELinux contexts an option with a check box - add some notes / text to the themes Patch set 6 - decouple "fix permissions" from "fix contexts" Change-Id: Icc77ecc581befc5ce6e419b1f3b8ca189208c234 --- gui/devices/landscape/res/landscape.xml | 73 +++++++++++++++++++++++++----- gui/devices/portrait/res/portrait.xml | 79 ++++++++++++++++++++++++++++----- gui/devices/watch/res/watch.xml | 79 ++++++++++++++++++++++++++++----- 3 files changed, 201 insertions(+), 30 deletions(-) (limited to 'gui/devices') diff --git a/gui/devices/landscape/res/landscape.xml b/gui/devices/landscape/res/landscape.xml index b8803026a..8f557aa33 100644 --- a/gui/devices/landscape/res/landscape.xml +++ b/gui/devices/landscape/res/landscape.xml @@ -2764,16 +2764,7 @@ Fix Permissions - - tw_back=advanced - tw_action=fixpermissions - tw_text1=Fix Permissions? - tw_action_text1=Fixing Permissions... - tw_complete_text1=Fix Permissions Complete - tw_slider_text=Swipe to Confirm - tw_show_reboot=1 - confirm_action - + fixperms @@ -3899,6 +3890,68 @@ + + + + + + + Fix Permissions + + + + + + Note: Fixing permissions is rarely needed. + + + + + + Also fix SELinux contexts + + + + + + + + Fixing SELinux contexts may cause your device to not boot properly. + + + + + + + tw_back=advanced + tw_action=fixpermissions + tw_action_text1=Fixing Permissions... + tw_complete_text1=Fix Permissions Complete + tw_slider_text=Swipe to Confirm + tw_show_reboot=1 + action_page + + + + + + + Swipe to Fix Permissions + + + + + main + + + + + advanced + + + + + diff --git a/gui/devices/portrait/res/portrait.xml b/gui/devices/portrait/res/portrait.xml index a7fbbf460..0642c30b0 100644 --- a/gui/devices/portrait/res/portrait.xml +++ b/gui/devices/portrait/res/portrait.xml @@ -2792,16 +2792,7 @@ Fix Permissions - - tw_back=advanced - tw_action=fixpermissions - tw_text1=Fix Permissions? - tw_action_text1=Fixing Permissions... - tw_complete_text1=Fix Permissions Complete - tw_slider_text=Swipe to Confirm - tw_show_reboot=1 - confirm_action - + fixperms @@ -3899,6 +3890,74 @@ + + + + + + + Fix Permissions + + + + + + Note: Fixing permissions is rarely needed. + + + + + + Also fix SELinux contexts + + + + + + + + Fixing SELinux contexts may cause + + + + + + your device to not boot properly. + + + + + + + tw_back=advanced + tw_action=fixpermissions + tw_action_text1=Fixing Permissions... + tw_complete_text1=Fix Permissions Complete + tw_slider_text=Swipe to Confirm + tw_show_reboot=1 + action_page + + + + + + + Swipe to Fix Permissions + + + + + main + + + + + advanced + + + + + diff --git a/gui/devices/watch/res/watch.xml b/gui/devices/watch/res/watch.xml index 23795695f..38de230c4 100644 --- a/gui/devices/watch/res/watch.xml +++ b/gui/devices/watch/res/watch.xml @@ -2754,16 +2754,7 @@ Fix Permissions - - tw_back=advanced - tw_action=fixpermissions - tw_text1=Fix Permissions? - tw_action_text1=Fixing Permissions... - tw_complete_text1=Fix Permissions Complete - tw_slider_text=Swipe to Confirm - tw_show_reboot=1 - confirm_action - + fixperms @@ -3849,6 +3840,74 @@ + + + + + + + Fix Permissions + + + + + + Note: Fixing permissions is rarely needed. + + + + + + Also fix SELinux contexts + + + + + + + + Fixing SELinux contexts may cause + + + + + + your device to not boot properly. + + + + + + + tw_back=advanced + tw_action=fixpermissions + tw_action_text1=Fixing Permissions... + tw_complete_text1=Fix Permissions Complete + tw_slider_text=Swipe to Confirm + tw_show_reboot=1 + action_page + + + + + + + Swipe to Fix Permissions + + + + + main + + + + + advanced + + + + + -- cgit v1.2.3