From 6e28279f19057bd4ef8bef958d11c5864b4705ef Mon Sep 17 00:00:00 2001 From: thermatk Date: Sat, 28 Oct 2017 23:30:46 +0300 Subject: [PATCH] update to contemporary state --- app/app.iml | 56 +++++++++++-------- app/build.gradle | 14 ++--- app/src/main/AndroidManifest.xml | 4 +- .../android/xf/fakegapps/FakeSignatures.java | 12 +++- app/src/main/res/values/strings.xml | 3 - app/src/main/res/values/styles.xml | 8 --- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 +- 8 files changed, 54 insertions(+), 49 deletions(-) delete mode 100644 app/src/main/res/values/strings.xml delete mode 100644 app/src/main/res/values/styles.xml diff --git a/app/app.iml b/app/app.iml index ac5de0e..95c2926 100644 --- a/app/app.iml +++ b/app/app.iml @@ -1,5 +1,5 @@ - + @@ -9,13 +9,9 @@ - + - + + - + + - + - + + + + + + + + - + - + + + + + + + + + - - - - + + - + - + + - + - - - - + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index ca285cc..5adb276 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,15 +1,15 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 22 - buildToolsVersion "22.0.1" + compileSdkVersion 25 + buildToolsVersion "25.0.3" defaultConfig { applicationId "com.thermatk.android.xf.fakegapps" minSdkVersion 15 - targetSdkVersion 22 - versionCode 2 - versionName "1.1" + targetSdkVersion 25 + versionCode 3 + versionName "2.0" } buildTypes { release { @@ -20,6 +20,6 @@ android { } dependencies { - provided fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:22.1.1' + provided 'de.robv.android.xposed:api:82' + provided 'de.robv.android.xposed:api:82:sources' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4563277..25bda51 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ - + diff --git a/app/src/main/java/com/thermatk/android/xf/fakegapps/FakeSignatures.java b/app/src/main/java/com/thermatk/android/xf/fakegapps/FakeSignatures.java index 23d30ce..add2348 100644 --- a/app/src/main/java/com/thermatk/android/xf/fakegapps/FakeSignatures.java +++ b/app/src/main/java/com/thermatk/android/xf/fakegapps/FakeSignatures.java @@ -22,10 +22,16 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { if (pi != null) { String packageName = pi.packageName; if (packageName.contains("com.google.android.gms") || packageName.contains("com.android.vending")) { - PackageNameServiceManager manager = PackageNameServiceManager.getService(); - String callerPackageName = manager.getPackageName(Binder.getCallingUid()); - XposedBridge.log("FakeGApps: returning fake signature to " + callerPackageName); + try { + PackageNameServiceManager manager = PackageNameServiceManager.getService(); + String callerPackageName = manager.getPackageName(Binder.getCallingUid()); + + XposedBridge.log("FakeGApps: returning fake signature to " + callerPackageName); + } catch (NullPointerException e) { + XposedBridge.log("FakeGApps: caught the NullPointerException"); + } + String sig = "308204433082032ba003020102020900c2e08746644a308d300d06092a864886f70d01010405003074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f6964301e170d3038303832313233313333345a170d3336303130373233313333345a3074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f696430820120300d06092a864886f70d01010105000382010d00308201080282010100ab562e00d83ba208ae0a966f124e29da11f2ab56d08f58e2cca91303e9b754d372f640a71b1dcb130967624e4656a7776a92193db2e5bfb724a91e77188b0e6a47a43b33d9609b77183145ccdf7b2e586674c9e1565b1f4c6a5955bff251a63dabf9c55c27222252e875e4f8154a645f897168c0b1bfc612eabf785769bb34aa7984dc7e2ea2764cae8307d8c17154d7ee5f64a51a44a602c249054157dc02cd5f5c0e55fbef8519fbe327f0b1511692c5a06f19d18385f5c4dbc2d6b93f68cc2979c70e18ab93866b3bd5db8999552a0e3b4c99df58fb918bedc182ba35e003c1b4b10dd244a8ee24fffd333872ab5221985edab0fc0d0b145b6aa192858e79020103a381d93081d6301d0603551d0e04160414c77d8cc2211756259a7fd382df6be398e4d786a53081a60603551d2304819e30819b8014c77d8cc2211756259a7fd382df6be398e4d786a5a178a4763074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f6964820900c2e08746644a308d300c0603551d13040530030101ff300d06092a864886f70d010104050003820101006dd252ceef85302c360aaace939bcff2cca904bb5d7a1661f8ae46b2994204d0ff4a68c7ed1a531ec4595a623ce60763b167297a7ae35712c407f208f0cb109429124d7b106219c084ca3eb3f9ad5fb871ef92269a8be28bf16d44c8d9a08e6cb2f005bb3fe2cb96447e868e731076ad45b33f6009ea19c161e62641aa99271dfd5228c5c587875ddb7f452758d661f6cc0cccb7352e424cc4365c523532f7325137593c4ae341f4db41edda0d0b1071a7c440f0fe9ea01cb627ca674369d084bd2fd911ff06cdbf2cfa10dc0f893ae35762919048c7efc64c7144178342f70581c9de573af55b390dd7fdb9418631895d5f759f30112687ff621410c069308a"; Signature[] signatures = new Signature[]{new Signature(sig)}; diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml deleted file mode 100644 index 63f22cb..0000000 --- a/app/src/main/res/values/strings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - FakeGapps - diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml deleted file mode 100644 index 766ab99..0000000 --- a/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/build.gradle b/build.gradle index 9405f3f..5966013 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:1.2.3' + classpath 'com.android.tools.build:gradle:2.3.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0c71e76..3a20e89 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Apr 10 15:27:10 PDT 2013 +#Sat Oct 28 23:12:14 MSK 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip