2018-12-13 09:35:50 +00:00
|
|
|
package com.topjohnwu.magisk;
|
|
|
|
|
2019-01-31 04:23:49 +00:00
|
|
|
import com.topjohnwu.magisk.components.DownloadModuleService;
|
|
|
|
import com.topjohnwu.magisk.components.GeneralReceiver;
|
|
|
|
import com.topjohnwu.magisk.components.UpdateCheckService;
|
2018-12-13 09:35:50 +00:00
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
public class ClassMap {
|
|
|
|
private static Map<Class, Class> classMap = new HashMap<>();
|
|
|
|
|
|
|
|
static {
|
2019-01-21 22:14:48 +00:00
|
|
|
classMap.put(App.class, a.e.class);
|
2018-12-13 09:35:50 +00:00
|
|
|
classMap.put(MainActivity.class, a.b.class);
|
|
|
|
classMap.put(SplashActivity.class, a.c.class);
|
|
|
|
classMap.put(FlashActivity.class, a.f.class);
|
2018-12-27 14:07:47 +00:00
|
|
|
classMap.put(UpdateCheckService.class, a.g.class);
|
2018-12-13 09:35:50 +00:00
|
|
|
classMap.put(GeneralReceiver.class, a.h.class);
|
2018-12-29 09:49:41 +00:00
|
|
|
classMap.put(DownloadModuleService.class, a.j.class);
|
2018-12-13 09:35:50 +00:00
|
|
|
classMap.put(SuRequestActivity.class, a.m.class);
|
|
|
|
}
|
|
|
|
|
2018-12-27 14:07:47 +00:00
|
|
|
public static <T> Class<T> get(Class c) {
|
2018-12-13 09:35:50 +00:00
|
|
|
return classMap.get(c);
|
|
|
|
}
|
|
|
|
}
|