From d6a4ffdab00e9e1d3aa4ccabb292ee80258aa025 Mon Sep 17 00:00:00 2001 From: Oliver Degener Date: Mon, 20 Apr 2015 12:57:48 +0200 Subject: [PATCH] updated class names (6.20.0) --- .../org/ollide/xposed/instagram/ClassNames.java | 16 ++++++++++------ .../ollide/xposed/instagram/ClassNamesTest.java | 9 ++++++++- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/org/ollide/xposed/instagram/ClassNames.java b/app/src/main/java/org/ollide/xposed/instagram/ClassNames.java index 280dd55..000a5a4 100644 --- a/app/src/main/java/org/ollide/xposed/instagram/ClassNames.java +++ b/app/src/main/java/org/ollide/xposed/instagram/ClassNames.java @@ -10,8 +10,9 @@ public final class ClassNames { private static final int VERSION_6_16_1 = 7369808; private static final int VERSION_6_17_0 = 7483428; private static final int VERSION_6_18_0 = 8031086; - // last reviewed version private static final int VERSION_6_19_0 = 8582325; + // last reviewed version + private static final int VERSION_6_20_0 = 9204850; /** * The BaseActivity's obfuscated class name. @@ -20,18 +21,21 @@ public final class ClassNames { private static String sBaseActivityName = "com.instagram.base.activity.e"; /** - * Last changed with version 6.19.0, first checked with version 6.10.1. + * Last changed with version 6.20.0, first checked with version 6.10.1. */ - private static String sDoubleTabListenerName = "com.instagram.android.feed.a.b.aw"; + private static String sDoubleTabListenerName = "com.instagram.android.feed.a.b.bc"; /** * Last changed with version 6.19.0, first checked with version 6.10.1. */ - private static String sHeartIconTapListenerName = "com.instagram.android.feed.a.b.ah"; + private static String sHeartIconTapListenerName = "com.instagram.android.feed.a.b.ai"; public static void initWithVersion(int versionCode) { - if (versionCode >= VERSION_6_19_0) { + if (versionCode >= VERSION_6_20_0) { + sDoubleTabListenerName = "com.instagram.android.feed.a.b.bc"; + sHeartIconTapListenerName = "com.instagram.android.feed.a.b.ai"; + } else if (versionCode >= VERSION_6_19_0) { sDoubleTabListenerName = "com.instagram.android.feed.a.b.aw"; - sHeartIconTapListenerName = "com.instagram.android.feed.a.b.ah"; + sHeartIconTapListenerName = "com.instagram.android.feed.a.b.ai"; } else if (versionCode >= VERSION_6_18_0) { sDoubleTabListenerName = "com.instagram.android.feed.a.b.at"; sHeartIconTapListenerName = "com.instagram.android.feed.a.b.af"; diff --git a/app/src/test/java/org/ollide/xposed/instagram/ClassNamesTest.java b/app/src/test/java/org/ollide/xposed/instagram/ClassNamesTest.java index 4a0cef0..8bf579c 100644 --- a/app/src/test/java/org/ollide/xposed/instagram/ClassNamesTest.java +++ b/app/src/test/java/org/ollide/xposed/instagram/ClassNamesTest.java @@ -11,6 +11,7 @@ public class ClassNamesTest { private static final int VERSION_6_16_1 = 7369808; private static final int VERSION_6_18_0 = 8031086; private static final int VERSION_6_19_0 = 8582325; + private static final int VERSION_6_20_0 = 9204850; private static final int VERSION_PAST_UNKNOWN = 100; @@ -27,6 +28,9 @@ public void getBaseActivityNameTest() { @Test public void getDoubleTapListenerNameTest() { + ClassNames.initWithVersion(VERSION_6_20_0); + Assert.assertEquals("com.instagram.android.feed.a.b.bc", ClassNames.getDoubleTapListenerName()); + ClassNames.initWithVersion(VERSION_6_19_0); Assert.assertEquals("com.instagram.android.feed.a.b.aw", ClassNames.getDoubleTapListenerName()); @@ -48,8 +52,11 @@ public void getDoubleTapListenerNameTest() { @Test public void getHeartIconTapListenerNameTest() { + ClassNames.initWithVersion(VERSION_6_20_0); + Assert.assertEquals("com.instagram.android.feed.a.b.ai", ClassNames.getHeartIconTapListenerName()); + ClassNames.initWithVersion(VERSION_6_19_0); - Assert.assertEquals("com.instagram.android.feed.a.b.ah", ClassNames.getHeartIconTapListenerName()); + Assert.assertEquals("com.instagram.android.feed.a.b.ai", ClassNames.getHeartIconTapListenerName()); ClassNames.initWithVersion(VERSION_6_18_0); Assert.assertEquals("com.instagram.android.feed.a.b.af", ClassNames.getHeartIconTapListenerName());