https://github.com/palexdev/android_patches
https://github.com/palexdev/android_patches
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/palexdev/android_patches
- Owner: palexdev
- Created: 2024-07-31T17:32:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-31T17:51:33.000Z (over 1 year ago)
- Last Synced: 2025-06-12T21:15:25.324Z (11 months ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Storage Restrictions Patches
These patches disable the checks done [here](https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android14-qpr3-release/packages/ExternalStorageProvider/src/com/android/externalstorage/ExternalStorageProvider.java#306) and [here](https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android14-qpr3-release/packages/ExternalStorageProvider/src/com/android/externalstorage/ExternalStorageProvider.java#328).
- `FGoogle_frameworks` is the main patch. This adds some checks to the above-linked methods that use [Settings.System](https://developer.android.com/reference/android/provider/Settings.System) to check whether the user has enabled the features.
- `FGoogle_dt` is specific to my device (Poco F2 Pro lmi). I'm using the `XiaomiParts` app to add a new menu in the ROM's system settings that allows the user to enable/disable the features. Two switches will store their state using [Settings.System#putInt](https://developer.android.com/reference/android/provider/Settings.System#putInt(android.content.ContentResolver,%20java.lang.String,%20int))
Needless to say, for these features to work, they need to be integrated in the custom ROM's source code.
FGoogle = FuckGoogle :)