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

Commit 4cd4e55e authored by Thibaut Girka's avatar Thibaut Girka Committed by Marvin W.
Browse files

Restore Constant.GMS_PACKAGE_NAME

parent a1bb6882
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2013-2017 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 org.microg.gms.droidguard;

public class Constants {
    public static final String GMS_PACKAGE_NAME = "com.google.android.gms";
}
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ public class DroidguardHelper {
    private static Map<String, Class<?>> loadedClass = new HashMap<>();

    public static byte[] guard(Context context, RemoteDroidGuardRequest request) throws Exception {
        int versionCode = context.getPackageManager().getPackageInfo("com.google.android.gms", 0).versionCode;
        int versionCode = context.getPackageManager().getPackageInfo(Constants.GMS_PACKAGE_NAME, 0).versionCode;

        SignedDGResponse signedResponse = request(new DGRequest.Builder()
                .usage(new DGUsage(request.reason, request.packageName))