Commit Graph

2965 Commits

Author SHA1 Message Date
54d1207f92 Auto remove post_ota.sh 2019-04-24 01:59:47 -04:00
003e44fb84 Remove requirement to use early-init daemon
We used to construct /sbin tmpfs overlay in early-init stage after
SELinux is properly initialized. However the way it is implemented
(forking daemon from magiskinit with complicated file waiting triggers)
is extremely complicated and error prone.

This commit moves the construction of the sbin overlay to pre-init
stage. The catch is that since SELinux is not present at that point,
proper selabel has to be reconstructed afterwards. Some additional
SEPolicy rules are added to make sure init can access magisk binaries,
and the secontext relabeling task is assigned to the main Magisk daemon.
2019-04-24 00:13:48 -04:00
515f346dcc Monitor app_process
Some stupid Samsung ROMs will spawn multiple zygote daemons. Since we
switched to ptrace based process monitoring, we have to know all zygote
processes to trace. This is an attempt to fix this issue.

Close #1272
2019-04-22 16:36:23 -04:00
d4058175b4 Fixed list query not being disposed so it could occasionally crash due to several changes rewriting each other 2019-04-22 18:28:40 +02:00
2de984ae24 Added division of the modules section to updatable, installed and not installed 2019-04-22 18:20:23 +02:00
761a8bf2a9 Merge remote-tracking branch 'john/master' into development 2019-04-22 17:04:08 +02:00
6df7006b36 Cleaned up unnecessary classes 2019-04-22 17:03:21 +02:00
aceb3ee863 Rewritten flashing internal modules to model
This is done in an effort to separate flash activity to smaller pieces.
2019-04-22 16:59:59 +02:00
11d716a3c8 Updated splash screen with new arch 2019-04-22 16:00:48 +02:00
7cc8c014eb Updated log screen with new arch 2019-04-22 14:11:41 +02:00
f21241d944 Added divider to module actions 2019-04-22 10:47:38 +02:00
a181fa0652 Fixed updating lists being to heavy for the UI thread
Moved list diff recalculation to the computing thread instead
2019-04-22 09:30:38 +02:00
3f748b4d2a Fixed search in magisk hide not being case insensitive 2019-04-22 08:58:23 +02:00
683450f9c6 Added search functionality to repos (downloads) 2019-04-22 08:57:32 +02:00
6050c4e8ba Fix strings.xml 2019-04-21 21:01:49 -04:00
158af8819a added stub Ukrainian translation 2019-04-21 19:18:15 -04:00
7787bb31fa updated Ukrainian translation: 'Patch File' strings 2019-04-21 19:18:15 -04:00
a1fe3e7ccd Update Romanian 2019-04-21 19:18:04 -04:00
4316028b23 Update strings.xml
Restructured based on original string. New missing lines added
2019-04-21 19:17:56 -04:00
f2b52755d6 Track all input devices with KEY_VOLUMEUP
This should in theory should support more devices for detecting the
volume up press on boot.

Close #1346
2019-04-21 19:09:08 -04:00
adbd47a36c Updated modules and repos screen
Screens are merged via common viewModel, all data are immediately accessible to both of them
2019-04-20 23:44:08 +02:00
ce693aa5e9 Updated policy items so listeners are not indirectly set to them and kept out of the instance of the parent object 2019-04-19 19:22:18 +02:00
ad80804461 Cleaned up usage of rx subscribers 2019-04-19 16:43:44 +02:00
2d55632430 Merge remote-tracking branch 'john/WIP' into development
# Conflicts:
#	gradle/wrapper/gradle-wrapper.properties
2019-04-19 16:34:15 +02:00
e81f00ef1a Updated Hide screen with new arch 2019-04-19 16:32:01 +02:00
93fb0e3d74 Fix release builds 2019-04-19 03:26:33 -04:00
71ce0de606 Make debug buildable 2019-04-19 02:11:22 -04:00
0407062c1d Merge branch 'master' into pull request #1342 2019-04-19 01:28:45 -04:00
f315c4416b Upgrade libsu 2019-04-19 01:07:39 -04:00
cda14af208 Fixed log tabbar titles having wrong color 2019-04-18 16:13:59 +02:00
258f170cd7 Fixed elevation causing log screen look odd 2019-04-18 16:13:31 +02:00
f76015d714 Fixed options menus appearing on screens that they shouldn't 2019-04-18 16:00:54 +02:00
7e5e14163c Fixed titles not setting to activity toolbar 2019-04-18 15:51:02 +02:00
bcd1064e94 Updated superuser fragment to new arch
Fixed theme issues along the way
2019-04-17 18:27:03 +02:00
8a8441c875 Added failure callback to fingerprint dialog 2019-04-17 18:20:53 +02:00
15aa813416 Migrated to compat shared prefs and fixed it not reacting to changes
Added back dark theme
2019-04-17 14:03:25 +02:00
605faccffd Merge remote-tracking branch 'john/master' into development
# Conflicts:
#	app/build.gradle
#	app/src/main/java/com/topjohnwu/magisk/App.java
#	app/src/main/java/com/topjohnwu/magisk/model/adapters/ReposAdapter.java
#	app/src/main/java/com/topjohnwu/magisk/model/update/UpdateCheckService.java
#	app/src/main/java/com/topjohnwu/magisk/ui/MainActivity.java
#	app/src/main/java/com/topjohnwu/magisk/ui/SplashActivity.java
#	app/src/main/java/com/topjohnwu/magisk/ui/flash/FlashActivity.java
#	app/src/main/java/com/topjohnwu/magisk/ui/home/MagiskFragment.java
#	app/src/main/java/com/topjohnwu/magisk/ui/log/LogFragment.java
#	app/src/main/java/com/topjohnwu/magisk/ui/surequest/SuRequestActivity.java
#	app/src/main/java/com/topjohnwu/magisk/utils/ValueSortedMap.java
#	app/src/main/java/com/topjohnwu/magisk/view/dialogs/InstallMethodDialog.java
#	app/src/main/java/com/topjohnwu/magisk/view/dialogs/MagiskInstallDialog.java
#	app/src/main/java/com/topjohnwu/magisk/view/dialogs/ManagerInstallDialog.java
#	build.gradle
2019-04-16 19:40:34 +02:00
79f2d08c81 Fixed new fragment not clearing menu in toolbar 2019-04-16 19:26:53 +02:00
0568ae5391 Fixed dependencies on old base 2019-04-16 19:21:20 +02:00
5330dda9f8 Removed redundant casts 2019-04-16 19:03:52 +02:00
ebab126579 Replaced xml navigation with self-handled 2019-04-16 19:00:32 +02:00
0e5417a13e Updated progress style to match app theme and paddings to advanced settings 2019-04-16 16:21:53 +02:00
9a968e0584 Added leanback activity that implements several functions which custom dialogs depend on 2019-04-15 20:26:22 +02:00
ffec64d209 Added safetynet to the rewritten home fragment 2019-04-15 19:48:07 +02:00
f332746188 Fixed current version showing null when magisk is not installed 2019-04-15 15:57:23 +02:00
b2fa5b551e Added hiding of UI elements when no root access is detected 2019-04-14 13:17:51 +02:00
36e83edddc Fixed dialog buttons after a theme change 2019-04-14 12:59:00 +02:00
6b045eadef Added env fix prompt 2019-04-14 12:55:03 +02:00
147264822c Fixed leaking base instance to the event listener 2019-04-14 12:29:07 +02:00
36e4ccd800 Fixed touch events on includes not being propagated due to missing viewModel 2019-04-14 12:21:23 +02:00