Search in sources :

Example 1 with AndroidKeyStoreProvider

use of android.security.AndroidKeyStoreProvider in project android_frameworks_base by ParanoidAndroid.

the class ActivityThread method main.

public static void main(String[] args) {
    SamplingProfilerIntegration.start();
    // CloseGuard defaults to true and can be quite spammy.  We
    // disable it here, but selectively enable it later (via
    // StrictMode) on debug builds, but using DropBox, not logs.
    CloseGuard.setEnabled(false);
    Environment.initForCurrentUser();
    // Set the reporter for event logging in libcore
    EventLogger.setReporter(new EventLoggingReporter());
    Security.addProvider(new AndroidKeyStoreProvider());
    Process.setArgV0("<pre-initialized>");
    Looper.prepareMainLooper();
    ActivityThread thread = new ActivityThread();
    thread.attach(false);
    ContextImpl.init(thread);
    if (sMainThreadHandler == null) {
        sMainThreadHandler = thread.getHandler();
    }
    AsyncTask.init();
    if (false) {
        Looper.myLooper().setMessageLogging(new LogPrinter(Log.DEBUG, "ActivityThread"));
    }
    Looper.loop();
    throw new RuntimeException("Main thread loop unexpectedly exited");
}
Also used : AndroidRuntimeException(android.util.AndroidRuntimeException) AndroidKeyStoreProvider(android.security.AndroidKeyStoreProvider) LogPrinter(android.util.LogPrinter)

Aggregations

AndroidKeyStoreProvider (android.security.AndroidKeyStoreProvider)1 AndroidRuntimeException (android.util.AndroidRuntimeException)1 LogPrinter (android.util.LogPrinter)1