blob: a1233047c5a15f1dd47fccfc41ddcee638123fd2 [file] [log] [blame]
fionaxu58278be2018-01-29 14:08:12 -08001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.server.updates;
18
19import android.content.ContentResolver;
20import android.content.ContentValues;
21import android.content.Context;
22import android.content.Intent;
23import android.net.Uri;
24import android.provider.Telephony;
fionaxu58278be2018-01-29 14:08:12 -080025
26public class CarrierIdInstallReceiver extends ConfigUpdateInstallReceiver {
27
28 public CarrierIdInstallReceiver() {
29 super("/data/misc/carrierid", "carrier_list.pb", "metadata/", "version");
30 }
31
32 @Override
33 protected void postInstall(Context context, Intent intent) {
34 ContentResolver resolver = context.getContentResolver();
fionaxu4281d0f2018-02-28 11:18:45 -080035 resolver.update(Uri.withAppendedPath(Telephony.CarrierId.All.CONTENT_URI,
fionaxu58278be2018-01-29 14:08:12 -080036 "update_db"), new ContentValues(), null, null);
37 }
38}