Commit Graph

5179 Commits

Author SHA1 Message Date
984f32f994 Move copy_sepolicy_rules to manager
We don’t need it when patch boot
2020-12-19 13:58:53 -08:00
eee7f097e3 Make post-fs-data scripts block at most 35 secs 2020-12-17 16:54:53 -08:00
086059ec30 Make sure boot stages are mutually exclusive 2020-12-15 03:40:37 -08:00
7ff22c68c7 Only try to install APK when no manager is active 2020-12-09 02:15:16 -08:00
1232113772 Update preference migration implementation
Only try to read preference through content provider when the app
is fresh install and a previous package ID is set. Also catch all
Exceptions to prevent crashing the app.

This prevents malicious settings injection and crashes when multiple
manager is installed.

Fix #3542
2020-12-09 02:07:58 -08:00
039d4936cb Disable superuser fragment properly 2020-12-09 01:16:30 -08:00
784dd80965 Update MediaStoreUtils 2020-12-09 01:15:56 -08:00
1ffe9bd83b Fix update channel without description on release build 2020-12-09 00:40:33 -08:00
0c28b23224 Fix install_module command 2020-12-09 00:37:15 -08:00
ec1af9dc1e Delete useless arrays 2020-12-09 00:17:58 -08:00
ff4cea229a Check environment on emulator
We need to test modules on emulator.
2020-12-09 00:16:27 -08:00
3f81f9371f Disable installation while downloading metadata 2020-12-09 00:16:13 -08:00
60e89a7d22 Ignore manager not installed state 2020-12-09 00:15:58 -08:00
c50daa5c9e Allow restore boot when no network 2020-12-09 00:15:41 -08:00
58d00ab863 Remove some warnings 2020-12-07 00:06:02 -08:00
ce916459c5 Fix strings 2020-12-07 00:04:41 -08:00
4094d560ab Belarusian update 2020-12-06 23:50:33 -08:00
4dbf7eb04b Fix spacing in module filter list 2020-12-06 23:49:23 -08:00
a39577c44d Fix extra spacing in module list 2020-12-06 23:49:23 -08:00
125ee46685 scripts: fix find_manager_apk
- the strings fallback was broken when the preceding character changed from 5 to ! recently, this new regex should cover any preceding character going forward
2020-12-06 23:49:03 -08:00
ce84f1762c scripts: fix sloppy/unpredictable cmd && this || that statements
- be a bit more POSIX to avoid any potential issues when full shell stdout/err are redirected
- actual logic chains remain unchanged
2020-12-06 23:48:43 -08:00
a687d1347b Tidying up IN 2020-12-06 23:48:01 -08:00
6d9db20614 Create strings.xml 2020-12-06 23:46:18 -08:00
c62dfc1bcc Make logging less error prone 2020-12-06 23:09:24 -08:00
aabe2696fe Cleanup implementations 2020-12-06 03:07:47 -08:00
ae0d605310 Make sure patch_rootdir does not cause crashes 2020-12-06 02:19:57 -08:00
2a694596b5 Better error handling and logging 2020-12-05 10:23:49 -08:00
ff0a76606e Detect 2SI after system_root mount on legacy SAR 2020-12-04 03:06:21 -08:00
dead74801d Setup log file when manually starting daemon 2020-12-04 01:07:47 -08:00
ab207a1bb3 va_list cannot be reused on x86 2020-12-03 20:53:19 -08:00
f152e8c33d Directly log to log file 2020-12-03 20:15:18 -08:00
797ba4fbf4 Make sure all logging ends with newline 2020-12-02 00:55:22 -08:00
a848f10bba Update Kotlin 2020-11-23 12:35:24 -08:00
552ec1eb35 Header v3 does not have name entry 2020-11-20 22:52:09 -08:00
1385d2a4f4 Fix strings 2020-11-19 23:34:02 -08:00
3b5c9abf7a Remove filterTouchesWhenObscured in Magisk dialog
Fix #3363
2020-11-19 23:32:23 -08:00
e0fa032bd3 Update HE strings and fix typos 2020-11-19 23:29:47 -08:00
7b69650fcd app: Update Turkish translations 2020-11-19 23:27:54 -08:00
08a8df489f Slovak language formating 2020-11-19 23:27:07 -08:00
9f35a8a520 Update Romanian 2020-11-19 23:26:38 -08:00
0df891b336 Handle window insets with a new way
For example, switching pages in home should only have scale and alpha animations, but a "translate y" animation shows. This is because Data Binding is triggered later (like "in the next frame"), causing the animation runs before view attribute changes.

This commit introduces WindowInsetsHelper class and use it to handle all window insets. With the help of LayoutInflaterFactory from the previous commit, we can control insets behavior by adding our attributes to the XML and anything is done by WindowInsetsHelper class.

As changes are highly coupling, this commit also contains new ItemDecoration for lists, replacing the random combination of padding and empty drawable. And "fixEdgeEffect" extension for RecyclerView, making edge effects respect padding.
2020-11-19 23:24:39 -08:00
385853a290 Introduce LayoutInflaterFactory
This add the ability touch layout XML instantiates process. And most importantly, we can access AttributeSet, making custom view attribute possible.

Some other changes requires this.
2020-11-19 23:24:39 -08:00
fa3ef8a1c1 Significantly simplify MagiskDialog layout
The goal of original implementation, wrap view again and again, seems to be use the shadow and customizable round corners from MaterialCardView. But this can be done with use MaterialShapeDrawable which used in MaterialCardView directly. This will significantly simplify the layout and MagiskDialog class.
2020-11-19 23:21:36 -08:00
c93ada03c7 Implement Edge-to-edge with newer APIs
The implementation adds a "Base" family styles, making creating themes across multiple API versions more clearer and easier.
2020-11-19 23:21:36 -08:00
0064b01ae0 Trim out \r from string
Fix #3490
2020-11-15 06:30:29 -08:00
1469b82aa2 Update README 2020-11-13 04:38:17 -08:00
2d5cf8a6fe Push release notes v21.1 manager-v8.0.3 2020-11-13 04:32:20 -08:00
290959f74c Fix strings resources 2020-11-13 04:22:06 -08:00
4d9f58ee72 Update RU strings & tidying up EN 2020-11-13 03:03:35 -08:00
9241246de6 Only use MediaStore APIs on Android 11+
Fix #3428
2020-11-13 02:53:30 -08:00