mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-02 22:21:51 +00:00
Remove usage of AndroidX CoreComponentFactory
This commit is contained in:
@@ -150,9 +150,13 @@ public class DynLoad {
|
||||
|
||||
// Create the receiver component factory
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && componentFactory != null) {
|
||||
Object factory = cl.loadClass(appInfo.appComponentFactory).newInstance();
|
||||
var delegate = (DelegateComponentFactory) componentFactory;
|
||||
delegate.receiver = (AppComponentFactory) factory;
|
||||
if (appInfo.appComponentFactory == null) {
|
||||
delegate.receiver = new AppComponentFactory();
|
||||
} else {
|
||||
Object factory = cl.loadClass(appInfo.appComponentFactory).newInstance();
|
||||
delegate.receiver = (AppComponentFactory) factory;
|
||||
}
|
||||
}
|
||||
|
||||
activeClassLoader = cl;
|
||||
|
||||
Reference in New Issue
Block a user