topjohnwu
0543239cca
Do not merge binaries if fake symlink
2018-09-01 11:15:05 -04:00
topjohnwu
a8478ace18
Use macros
2018-08-31 03:51:30 -04:00
topjohnwu
72cf5f3f9f
Temporary disable module bootloop prevention
...
Some devices don't like it, need further tests before pushing to production
2018-08-31 03:23:59 -04:00
topjohnwu
5bac442b18
Reorganize sources
2018-08-10 03:49:25 +08:00
topjohnwu
8b50d84a05
Hide unnecessary error log
2018-08-09 15:10:00 +08:00
topjohnwu
d3858b81e2
Add new boot service: boot-complete
2018-08-09 14:52:44 +08:00
topjohnwu
bdff9769be
Move remount,ro back to post-fs-data mode
2018-08-09 03:57:29 +08:00
topjohnwu
ada0f93686
Apply all sepolicy patches pre-init
...
Boot services tend to fail in the middle when the kernel loads a sepolicy live.
It seems that moving full patch (allow magisk * * *) to late_start is still not enough to fix service startup failures.
So screw it, apply all patched in magiskinit, which makes sure that all rules are only loaded in a single step.
The only down side is that some OEM with a HUGE set of secontexts (e.g. Samsung) might suffer a slightly longer boot time, which IS the reason why the rules are split to 2 parts in the first place.
2018-08-09 03:20:28 +08:00
topjohnwu
c38533e0f8
Prevent problematic modules causing device stuck in bootloop
...
If boot failed after 2 times, it will enable core only mode (which disables all modules)
2018-08-07 04:41:48 +08:00
topjohnwu
46aad00f16
Use buffer on stack
2018-08-03 21:30:44 +08:00
topjohnwu
252afe8932
Use mirror in post-fs-data scripts
2018-08-03 17:09:24 +08:00
topjohnwu
82e8375957
Respect filesystem type when mounting mirrors
...
Close #405
2018-08-03 04:45:07 +08:00
topjohnwu
169c0fe4af
Stop use clashing names
2018-08-03 03:43:02 +08:00
topjohnwu
cd6918e6eb
Stop altering PATH to mirror
2018-08-03 03:38:36 +08:00
topjohnwu
5be035fd44
Try logging a little harder
2018-08-03 01:58:56 +08:00
topjohnwu
d9564bd04c
Delay full sepolicy patch loading time
2018-08-02 05:35:01 +08:00
topjohnwu
1affb91f17
Support compiling against lower SDK
...
Reduce even more size for static binaries
2018-07-13 05:41:29 +08:00
topjohnwu
1283167595
Maintain our own set of loop devices
2018-07-07 01:32:58 +08:00
topjohnwu
23c2e22910
Update image functions
2018-07-06 22:04:06 +08:00
topjohnwu
6c4d81b1e9
Invincible mode implemented in magisklogd
2018-07-03 01:38:19 +08:00
topjohnwu
7243b9e72f
Improve log_monitor implementation
2018-07-01 18:18:12 +08:00
topjohnwu
d149af9628
Fix bootloop when upgrading from older Magisk
2018-07-01 14:58:31 +08:00
topjohnwu
528634d755
Remove unused code
2018-06-27 06:04:16 +08:00
topjohnwu
7265450e2e
Precise free space calculation for magisk.img
...
1. Introduce new applet: imgtool for better separation from the main program
2. Actually mount the image and check statvfs for free space in the image
This shall eliminate any possible module installation failure from image resizing issues.
2018-06-22 06:18:06 +08:00
topjohnwu
a6958ac139
Fix adbd on GSIs
2018-06-17 01:25:27 +08:00
topjohnwu
d7d76f54cc
Install stub APK when needed
2018-06-14 05:09:54 +08:00
topjohnwu
3f83919e09
Fix bootloops when flashing Magisk after data wipe on FBE devices
2018-06-11 02:26:18 +08:00
Jason A. Donenfeld
9929e7d8e8
Remove update file on boot
...
It's not important to check the return value of unlink(2) or even verify
that the file exists. If this code is running, it means the system has
rebooted, and thus the update file, if any, should be removed so that
MagiskManager doesn't keep displaying the same message. We also handle
this before we handle "disable" so that disabled modules don't keep
requesting a reboot to update.
2018-06-10 03:02:56 +08:00
topjohnwu
34dcf49fbc
Update restorecon implementation
2018-06-03 14:43:03 +08:00
topjohnwu
f31a24b16d
Update setenv functions (also fixes uninstalling)
2018-05-26 23:14:09 +08:00
topjohnwu
b436bce565
Minor optimizations
2018-05-26 21:25:59 +08:00
topjohnwu
c9ca42aaa9
Support fixing Magisk environment
2018-05-13 18:14:44 +08:00
topjohnwu
c0e2f44092
Use wrapper script to prevent crazy LD_XXX flags
2018-05-13 14:32:21 +08:00
topjohnwu
cecc0b932d
Remove some traits
2018-04-29 12:34:36 +08:00
topjohnwu
9484ec0c17
Massive refactoring
...
Remove post-fs mode
2018-04-22 02:16:56 +08:00
topjohnwu
87f6018468
Massive sepolicy refactor
2018-04-15 03:18:18 +08:00
topjohnwu
2533a4fc4a
Fix APK installation on Android P
2018-04-08 03:22:22 +08:00
topjohnwu
599ae95251
Support moving files across filesystems
2018-02-02 04:47:16 +08:00
topjohnwu
328fc44194
Rename module core to native
2018-01-27 09:11:28 +08:00