Skip to content

Commit

Permalink
fix friend gallery disappearing snsinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fkzhang committed Feb 5, 2016
1 parent 0418725 commit bcd69e7
Show file tree
Hide file tree
Showing 9 changed files with 266 additions and 78 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.fkzhang.wechatunrecalled"
minSdkVersion 14
targetSdkVersion 23
versionCode 10
versionName "1.4.3"
versionCode 11
versionName "1.4.4"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void afterTextChanged(Editable s) {
mSettingsHelper.setString("recalled_img_summary", getString(R.string.recalled_img_summary));
mSettingsHelper.setString("recalled_video_summary", getString(R.string.recalled_video_summary));
mSettingsHelper.setString("new_comment", getString(R.string.new_comment));
mSettingsHelper.setString("reply", getString(R.string.reply));

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public class WechatPackageNames {
public String snsLuckyMoneyBlur;
public String snsLuckyMoneyOrignal;
public String snsLuckyMoneyClass2;
public String storageClass1;
public String storageMethod1;
public String msgCountMethod1;
public String msgCountMethod2;

public WechatPackageNames(String packageName, String versionName) {
this.packageName = packageName;
Expand All @@ -51,6 +55,8 @@ public WechatPackageNames(String packageName, String versionName) {
set639();
} else if (versionName.contains("6.3.8")) {
set638();
} else if (versionName.contains("6.3.7")) {
set637();
} else if (versionName.contains("6.3.5")) {
set635();
} else if (versionName.contains("6.3.0")) {
Expand All @@ -59,6 +65,8 @@ public WechatPackageNames(String packageName, String versionName) {
set625();
} else if (versionName.contains("6.0.0")) {
set600();
} else if (versionName.contains("6.0.2.58")) {
set602_58();
}
}

Expand All @@ -67,12 +75,12 @@ private void set600() {
recallMethod = "D";
snsClass += "d.g";
snsMethod += "g.af";
dbClass1 += "bh";
dbClass1 += "bh"; // look for: ("message")
dbMethod1 = "sS";
dbMethod2 = "qQ";
dbField = "dGo";
contextGetter += "ai";
iconClass += ".booter.notification.a.d";
iconClass += ".booter.notification.a.d"; // look for: sdk < 19
iconMethod = "mX";
imageClass += ".z.ar";
imageMethod1 = "zZ";
Expand All @@ -88,6 +96,42 @@ private void set600() {
snsAttrClass += "abb";
snsAttrField = "iWH";
commentTimeField = "iuc";
storageClass1 += "ay";
storageMethod1 += ".at.h";
msgCountMethod1 = "Cv";
msgCountMethod2 = "aSC";
}

private void set602_58() {
recallClass += "n";
recallMethod = "B";
snsClass += "e.l";
snsMethod += ".g.ae";
dbClass1 += "au";
dbMethod1 = "Cr";
dbMethod2 = "Am";
dbField = "esg";
contextGetter += "x";
iconClass += ".booter.notification.a.c";
iconMethod = "wr";
imageClass += ".y.af";
imageMethod1 = "JA";
imageMethod2 = "h";
avatarClass += ".p.u";
avatarMethod1 = "Eu";
avatarMethod2 = "b";
commentClass += "adb";
blobDecodeMethod = "v";
commentContentField = "gMw";
snsContentClass += "agc";
snsContentField = "kek";
snsAttrClass += "adm";
snsAttrField = "kbJ";
commentTimeField = "gJB";
storageClass1 += "ap";
storageMethod1 += ".ap.g";
msgCountMethod1 = "ER";
msgCountMethod2 = "bjt";
}

private void set625() {
Expand Down Expand Up @@ -177,6 +221,35 @@ private void set635() {
commentTimeField = "eKt";
}

private void set637() {
recallClass += "r";
recallMethod = "H";
snsClass += "h.l";
snsMethod += "g.d";
dbClass1 += "ah";
dbMethod1 = "tn";
dbMethod2 = "rk";
dbField = "bvh";
updateMsgId = "aRo";
contextGetter += "z";
iconClass += ".an.a";
iconMethod = "aHx";
imageClass += ".z.n";
imageMethod1 = "zW";
imageMethod2 = "hy";
avatarClass += ".p.n";
avatarMethod1 = "vh";
avatarMethod2 = "b";
commentClass += "anr";
blobDecodeMethod = "ak";
commentContentField = "eVT";
snsContentClass += "aqx";
snsContentField = "iXe";
snsAttrClass += "aod";
snsAttrField = "iUS";
commentTimeField = "eSX";
}

private void set638() {
recallClass += "r";
recallMethod = "I";
Expand Down Expand Up @@ -310,5 +383,9 @@ private void initNames() {
snsLuckyMoneyOrignal = "";
snsLuckyMoneyBlur = "";
snsLuckyMoneyClass2 = packageName + ".protocal.b.";
storageClass1 = packageName + ".storage.";
storageMethod1 = packageName;
msgCountMethod1 = "";
msgCountMethod2 = "";
}
}
Loading

0 comments on commit bcd69e7

Please sign in to comment.