Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48607f27 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Port SplitInstallService as is

parent 726f7787
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.squareup.wire'
apply plugin: 'org.jetbrains.kotlin.android'

android {
    namespace "com.android.vending"
@@ -64,6 +65,8 @@ dependencies {

    implementation "com.squareup.wire:wire-runtime:$wireVersion"
    implementation "com.android.volley:volley:$volleyVersion"
    implementation 'androidx.core:core-ktx:1.0.0'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
}

wire {
+8 −0
Original line number Diff line number Diff line
@@ -53,6 +53,14 @@
            </intent-filter>
        </service>

        <service
          android:name="com.android.vending.SplitInstallService"
          android:exported="true">
            <intent-filter>
                <action android:name="com.google.android.play.core.splitinstall.BIND_SPLIT_INSTALL_SERVICE" />
            </intent-filter>
        </service>

        <activity
            android:name="org.microg.vending.ui.MainActivity"
            android:theme="@style/Theme.Dialog.NoActionBar"
+29 −0
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2016 microG Project Team
 * SPDX-FileCopyrightText: 2023 E FOUNDATION
 * SPDX-License-Identifier: Apache-2.0
 */

package com.google.android.play.core.splitinstall.protocol;

import com.google.android.play.core.splitinstall.protocol.ISplitInstallServiceCallback;

interface ISplitInstallService {

    // Method not identified yet
    void a();

    void startInstall(String str, in List<Bundle> list, in Bundle bundle, in ISplitInstallServiceCallback callback);

    // Method not identified yet
    void c(String str);

    // Method not identified yet
    void d(String str);

    // Method not identified yet
    void e(String str);

    void getSessionStates(String str, in ISplitInstallServiceCallback callback);

}
 No newline at end of file
+37 −0
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2016 microG Project Team
 * SPDX-FileCopyrightText: 2023 E FOUNDATION
 * SPDX-License-Identifier: Apache-2.0
 */

package com.google.android.play.core.splitinstall.protocol;

import android.os.Bundle;

interface ISplitInstallServiceCallback {

    // Method not identified yet
    void a();

    void onStartInstall(int i);

    void onCompleteInstall(int i);

    void onCancelInstall(int i);

    void onGetSession(int i);

    void onError(int i);

    void onGetSessionStates(in List<Bundle> list);

    void onDeferredUninstall(in Bundle bundle);

    void onDeferredInstall(in Bundle bundle);

    void onGetSplitsForAppUpdate(int i, in Bundle bundle);

    void onCompleteInstallForAppUpdate();

    void onDeferredLanguageInstall(int i);
}
 No newline at end of file
+11 −0
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2016 microG Project Team
 * SPDX-FileCopyrightText: 2023 E FOUNDATION
 * SPDX-License-Identifier: Apache-2.0
 */

package foundation.e.apps;

interface ISplitInstallService {
    void installSplitModule(String packageName, String moduleName);
}
Loading