Files
frameworks_base/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerApplication.java
Philip P. Moltmann 20dd431f20 Do not allow to revert setForceSafeLabel
Test: Built
Bug: 116798569
Change-Id: I3f26d4466c84d3decb1c4962fb45e900ba35f68e
2018-10-08 16:56:49 -07:00

29 lines
919 B
Java

/*
* Copyright (C) 2018 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 com.android.packageinstaller;
import android.app.Application;
import android.content.pm.PackageItemInfo;
public class PackageInstallerApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
PackageItemInfo.forceSafeLabels();
}
}