Remove all backwards compatibility nonsense

This also allows full obfuscation
This commit is contained in:
topjohnwu
2018-12-08 03:54:00 -05:00
parent a54eaf5371
commit c91f809eba
20 changed files with 188 additions and 717 deletions
@@ -12,7 +12,6 @@ import com.topjohnwu.magisk.components.Notifications;
import com.topjohnwu.magisk.receivers.ShortcutReceiver;
import com.topjohnwu.magisk.utils.Download;
import com.topjohnwu.magisk.utils.LocaleManager;
import com.topjohnwu.magisk.utils.RootUtils;
import com.topjohnwu.magisk.utils.Utils;
import com.topjohnwu.superuser.Shell;
@@ -31,7 +30,7 @@ public class SplashActivity extends BaseActivity {
try {
// We are the manager, remove com.topjohnwu.magisk as it could be malware
getPackageManager().getApplicationInfo(BuildConfig.APPLICATION_ID, 0);
RootUtils.uninstallPkg(BuildConfig.APPLICATION_ID);
Shell.su("pm uninstall " + BuildConfig.APPLICATION_ID).submit();
} catch (PackageManager.NameNotFoundException ignored) {}
}