Loading remote-droid-guard-lib/src/main/java/org/microg/gms/droidguard/Constants.java 0 → 100644 +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"; } remote-droid-guard/src/main/java/org/microg/gms/droidguard/DroidguardHelper.java +1 −1 Original line number Diff line number Diff line Loading @@ -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)) Loading Loading
remote-droid-guard-lib/src/main/java/org/microg/gms/droidguard/Constants.java 0 → 100644 +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"; }
remote-droid-guard/src/main/java/org/microg/gms/droidguard/DroidguardHelper.java +1 −1 Original line number Diff line number Diff line Loading @@ -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)) Loading