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

Commit 8c0527b7 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Split install improvements

parent 519c6370
Loading
Loading
Loading
Loading
Loading
+3.64 KiB (8.22 KiB)

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+29 −0
Original line number Diff line number Diff line
/*
 * Copyright Murena SAS 2023
 * Copyright 2013-2022 microG Project Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.vending.splitinstall;

import android.os.Bundle;

interface ISplitInstallServiceCallback {

    void onStartInstall(int i);

    void onInstalled(int i);

    void onError(int errorCode);
}
 No newline at end of file
+48 −0
Original line number Diff line number Diff line
/*
 * Copyright Murena SAS 2023
 * Copyright 2013-2022 microG Project Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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(in Bundle bundle);

    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);
}
+20 −1
Original line number Diff line number Diff line
/*
 * Copyright Murena SAS 2023
 * Copyright 2013-2022 microG Project Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package foundation.e.apps;

import com.android.vending.splitinstall.ISplitInstallServiceCallback;

interface ISplitInstallService {

    void installSplitModule(String packageName, String moduleName);
    void installSplitModule(String packageName, String moduleName, ISplitInstallServiceCallback callback);
}
 No newline at end of file
+26 −0
Original line number Diff line number Diff line
/*
 * Copyright Murena SAS 2023
 * Copyright 2013-2022 microG Project Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package foundation.e.apps;

interface ISplitInstallServiceCallback {

    void onStartInstall(int sessionId);

    void onInstalled(int sessionId);

    void onError(int errorCode);
}
 No newline at end of file
Loading