mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Launcher3: Standalone studio build
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.launcher3;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.graphics.BitmapCreationCheck;
|
||||
@@ -24,12 +25,23 @@ import com.android.launcher3.graphics.IconShape;
|
||||
import com.android.launcher3.logging.FileLog;
|
||||
import com.android.launcher3.util.ResourceBasedOverride;
|
||||
|
||||
import org.chickenhook.restrictionbypass.Unseal;
|
||||
|
||||
/**
|
||||
* Utility class to handle one time initializations of the main process
|
||||
*/
|
||||
public class MainProcessInitializer implements ResourceBasedOverride {
|
||||
|
||||
private static final String TAG = "MainProcessInitializer";
|
||||
|
||||
public static void initialize(Context context) {
|
||||
try {
|
||||
Unseal.unseal();
|
||||
Log.i(TAG, "Unseal success!");
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "Unseal fail!");
|
||||
e.printStackTrace();
|
||||
}
|
||||
Overrides.getObject(
|
||||
MainProcessInitializer.class, context, R.string.main_process_initializer_class)
|
||||
.init(context);
|
||||
|
||||
Reference in New Issue
Block a user