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

Commit 9eb196d2 authored by Jackal Guo's avatar Jackal Guo Committed by Android (Google) Code Review
Browse files

Merge "Remove unused PackageManagerNative APIs"

parents 826fb0ec a06c4bc7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -296,9 +296,7 @@ aidl_interface {
    local_include_dir: "aidl",
    host_supported: true,
    srcs: [
        "aidl/android/content/pm/IPackageChangeObserver.aidl",
        "aidl/android/content/pm/IPackageManagerNative.aidl",
        "aidl/android/content/pm/PackageChangeEvent.aidl",
        "aidl/android/content/pm/IStagedApexObserver.aidl",
        "aidl/android/content/pm/ApexStagedEvent.aidl",
        "aidl/android/content/pm/StagedApexInfo.aidl",
+0 −28
Original line number Diff line number Diff line
/*
 * Copyright (C) 2020 The Android Open Source Project
 *
 * 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 android.content.pm;

import android.content.pm.PackageChangeEvent;

/**
 * This is a non-blocking notification when a package has changed.
 *
 * @hide
 */
oneway interface IPackageChangeObserver {
  void onPackageChanged(in PackageChangeEvent event);
}
+0 −13
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@

package android.content.pm;

import android.content.pm.IPackageChangeObserver;
import android.content.pm.IStagedApexObserver;
import android.content.pm.StagedApexInfo;

@@ -92,18 +91,6 @@ interface IPackageManagerNative {
     */
    @utf8InCpp String getModuleMetadataPackageName();

    /* Returns the names of all packages. */
    @utf8InCpp String[] getAllPackages();

    /** Register an extra package change observer to receive the multi-cast. */
    void registerPackageChangeObserver(in IPackageChangeObserver observer);

    /**
     * Unregister an existing package change observer.
     * This does nothing if this observer was not already registered.
     */
    void unregisterPackageChangeObserver(in IPackageChangeObserver observer);

    /**
     * Returns true if the package has the SHA 256 version of the signing certificate.
     * @see PackageManager#hasSigningCertificate(String, byte[], int), where type
+0 −32
Original line number Diff line number Diff line
/*
 * Copyright (C) 2020 The Android Open Source Project
 *
 * 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 android.content.pm;

/**
 * This event is designed for notification to native code listener about
 * any changes on a package including update, deletion and etc.
 *
 * @hide
 */
parcelable PackageChangeEvent {
  @utf8InCpp String packageName;
  long version;
  long lastUpdateTimeMillis;
  boolean newInstalled;
  boolean dataRemoved;
  boolean isDeleted;
}