summaryrefslogtreecommitdiffstats
path: root/fixPermissions.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace fix permissions with fix contexts for emulated storageEthan Yonker2016-01-291-548/+0
| | | | | | | | | | Fix permissions rarely fixed anything on more recent versions of Android and usually made things worse. Instead we will replace it with a more dumbed down option that should fix contexts on /data/media with a few improvements to ensure that contexts get fixed for multiple users and on adopted storage. Change-Id: If5523781936a0b04196e2ad871cae767ebae2583
* fixPermissions: simplify code, fix bugsthat2014-12-221-286/+151
| | | | | | | | | | | | | | | | | | | | | | | - 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
* Check sehandle before fixing permissionsDees Troy2014-10-071-1/+8
| | | | Change-Id: I73ba5519bf650f0c7f0a683f311099ff13747155
* Do not restore file system on data/media devicesEthan Yonker2014-06-131-0/+4
| | | | Change-Id: I600e7e9ce89621400531bceb472387aafc0d6ed8
* Whitespace and minor code cleanupMatt Mower2014-06-041-2/+2
| | | | | | This is by no means comprehensive, but is quite a bit better already. Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
* Add /system/priv-app to fix permissions code. New in jellybean.bigbiff bigbiff2014-05-311-1/+1
| | | | Change-Id: Id1df17cf06d1158642aa77bef5fd49b596c7906e
* fix slash between directoriesbigbiff bigbiff2014-02-231-33/+51
| | | | | | | add fixing contexts of Android directory for apps that store stuff here fix data/data contexts to be recursive Change-Id: I1122559c83845c3af0a351a4034cd7ad6da83fa5
* Restore contexts when doing mkdierhier in libtarbigbiff bigbiff2014-02-071-1/+32
| | | | | | Do a restore of loaded file contexts to /data/media directory. This will help denials to be prevented when internal storage is wiped. Change-Id: Ie49bbfa48d2f3ee4f08376d9c1877b92c051017c
* Fix SELinux function compatibility in older treesDees Troy2014-02-031-2/+4
| | | | Change-Id: I3d8c23b51b3331d062099c1edb1833551cc6af91
* add errno.h to fix compile errors on other devicesbigbiff bigbiff2014-01-031-0/+1
| | | | Change-Id: I84196fb1358264b216b8505b990ae5a0406aa957
* add fix /data/data contexts to fixPermissionsbigbiff bigbiff2013-12-071-1/+58
| | | | | only compile symbols if selinux is defined Change-Id: I7c8596360cdf2f715c8e1379fc55ea27d9370393
* Fixed spelling errorsgrimsrud2013-07-291-2/+2
|
* Improve handling of XML errors for fix permissionsDees_Troy2013-04-051-2/+6
|
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-43/+43
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Fix misspelling and white space on fix permsDees_Troy2013-02-021-2/+2
| | | | Thanks to Space- for pointing it out
* Add libtar to TWRP instead of using busybox tarbigbiff bigbiff2013-01-091-40/+2
| | | | | | | Add proper mkdosfs tool Add fuse to TWRP Add experimental exfat-fuse to TWRP Convert all system() functions to use new Exec_Cmd function
* Fix fix permissionsDees_Troy2012-11-161-36/+97
|
* Finalize 2.3.0.0Dees_Troy2012-10-101-2/+2
| | | | | | Fix permission setting for other Add new fix permissions to GUI actions Update version number
* redo fix permissions in c++ for faster changesbigbiff bigbiff2012-10-101-0/+536