Magisk/app/src/main/java/com/topjohnwu/magisk/ClassMap.java

28 lines
899 B
Java
Raw Normal View History

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;
import java.util.HashMap;
import java.util.Map;
public class ClassMap {
private static Map<Class, Class> classMap = new HashMap<>();
static {
classMap.put(App.class, a.e.class);
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);
classMap.put(GeneralReceiver.class, a.h.class);
classMap.put(DownloadModuleService.class, a.j.class);
classMap.put(SuRequestActivity.class, a.m.class);
}
2018-12-27 14:07:47 +00:00
public static <T> Class<T> get(Class c) {
return classMap.get(c);
}
}