Commit Graph

4654 Commits

Author SHA1 Message Date
topjohnwu f32e0af830 Update resetprop help msg 2020-11-03 01:21:05 -08:00
topjohnwu 4c94f90e5d Templatize function callbacks 2020-11-03 01:16:55 -08:00
topjohnwu ffb4224640 Don't use reserved symbols 2020-11-03 01:12:33 -08:00
topjohnwu 89fff4830b Mount proper system_root mirror in magiskd 2020-11-03 00:37:08 -08:00
topjohnwu 16e4c67992 Significantly broaden sepolicy.rule compatibility
Previously, Magisk uses persist or cache for storing modules' custom
sepolicy rules. In this commit, we significantly broaden its
compatibility and also prevent mounting errors.

The persist partition is non-standard and also critical for Snapdragon
devices, so we prefer not to use it by default.

We will go through the following logic to find the best suitable
non-volatile, writable location to store and load sepolicy.rule files:

Unencrypted data -> FBE data unencrypted dir -> cache -> metadata -> persist

This should cover almost all possible cases: very old devices have
cache partitions; newer devices will use FBE; latest devices will use
metadata FBE (which guarantees a metadata parition); and finally,
all Snapdragon devices have the persist partition (as a last resort).

Fix #3179
2020-11-02 23:20:38 -08:00
topjohnwu cf47214ee4 Require Magisk v20.4 for modules
It has been long enough
2020-10-28 05:13:39 -07:00
topjohnwu 0feab753fb Fix coding errors and minor changes 2020-10-28 04:17:34 -07:00
Leorize d0b6318b90 init/mount: support for dm-verity verified root
This commit adds support for kernel initialized dm-verity on legacy SAR
devices.

Tested on a Pixel 2 XL with a kernel patch to initialize mappings
specified via the `dm=` kernel parameter even when an initramfs is used.
2020-10-27 03:47:50 -07:00
topjohnwu 966e23b846 magiskinit code tidy-up 2020-10-26 20:46:15 -07:00
topjohnwu 5b8a1fc2a7 Minor renames 2020-10-25 21:41:14 -07:00
topjohnwu 02ea3ca525 Headers doesn't always occupy 1 page 2020-10-25 06:25:42 -07:00
topjohnwu 0632b146b8 Add vendor boot image support to magiskboot 2020-10-25 06:09:36 -07:00
topjohnwu 1b0b180761 Fix COMPRESSED macro
Fix #3383
2020-10-25 05:10:19 -07:00
topjohnwu 0d11f73a1d Handle unexpected exceptions
Fix #3276
2020-10-22 03:09:05 -07:00
vvb2060 533cb8eb58 Tapjacking protection 2020-10-22 02:40:47 -07:00
loading 8ac1181e9a Update Hindi translations 2020-10-21 00:43:15 -07:00
Ilya Kushnir 5ca1892eb0 Update RU strings 2020-10-21 00:42:09 -07:00
MASVA e32db6a0e8 Update croatian language 2020-10-21 00:41:48 -07:00
kubalav 82fff615d6 Update Slovak translation 2020-10-21 00:40:36 -07:00
Rom 24a8f0808d Update French translation 2020-10-21 00:40:08 -07:00
vvb2060 4a7c3c06bc Disable hide/restore when no remote info 2020-10-20 23:56:44 -07:00
vvb2060 da93bbc1fe Fix network 2020-10-20 23:56:21 -07:00
topjohnwu fa2dbe981e Handle retrofit errors 2020-10-20 03:03:40 -07:00
vvb2060 ce6cceae8b Smaller stub 2020-10-17 06:55:24 -07:00
topjohnwu 7b26e8b818 Update dependencies 2020-10-17 06:46:36 -07:00
topjohnwu 2da5fcb00b ANDROID_HOME is deprecated 2020-10-17 06:42:34 -07:00
topjohnwu a079966f97 Migrate to AGP 4.1.0 2020-10-17 06:32:49 -07:00
vvb2060 468796c23d Add option to show OS apps 2020-10-17 05:57:43 -07:00
vvb2060 5833aadef5 Silence kotlin warnings 2020-10-17 05:57:35 -07:00
vvb2060 eb261c8026 Fix antlr warning
https://issuetracker.google.com/issues/150106190
2020-10-17 05:57:20 -07:00
vvb2060 a4c48847d1 Cancel vibration to sync with notification channel 2020-10-17 05:56:07 -07:00
vvb2060 43288be091 Prevent dot in the first position 2020-10-17 05:55:58 -07:00
vvb2060 1ad7a6fe93 Update activity display when download fails 2020-10-17 05:54:34 -07:00
topjohnwu 4e0a3f5e72 Fix compile errors 2020-10-17 04:28:20 -07:00
Davy Defaud d7c33f647d Fix a typo and use the proper Unicode characters
- fix a French typo: raccourcis → raccourci
- French orthotypography: use a thin space before a question mark, and a true (non breaking) hyphen instead of a dash.
2020-10-17 04:18:00 -07:00
topjohnwu 9087207dc0 Minor changes 2020-10-17 04:14:12 -07:00
vvb2060 2760f37e6b Add userspace reboot 2020-10-17 03:54:51 -07:00
Miguel Cruces 3fa3426032 Spanish translations update 2020-10-17 03:54:17 -07:00
topjohnwu 2e4dc91b96 Better stub hiding experience 2020-10-17 03:40:43 -07:00
topjohnwu aaaaa3d044 Minor refactoring 2020-10-15 00:19:11 -07:00
topjohnwu 1edc4449d5 Update lz4 to v1.9.2
Close #3334
2020-10-15 00:04:48 -07:00
topjohnwu f3cd4da026 Make lz4_lg an exception of lz4_legacy 2020-10-14 23:45:06 -07:00
vvb2060 872c55207c Add com.android.i18n to apex path 2020-10-12 01:59:41 -07:00
topjohnwu 339ca6d666 Improve magiskboot info logging 2020-10-12 01:55:33 -07:00
topjohnwu 4aeac3b8f4 Support header_version 3 2020-10-12 01:06:42 -07:00
topjohnwu d625beb7f3 Update --remove-modules implementation 2020-10-11 18:30:03 -07:00
topjohnwu 735b65c50c Update DoH implementation 2020-10-11 15:19:19 -07:00
topjohnwu efb1eab327 Silence some warnings 2020-10-11 05:47:47 -07:00
topjohnwu 49d4785da0 Fix strings 2020-10-11 05:26:50 -07:00
RoySchutte 28e65ce383 Update strings.xml
I don't know who else is translating Magisk Manager, but I noticed some weird translations. Fixed a couple of them in this update.
2020-10-11 05:24:16 -07:00