diff --git a/app/build.gradle b/app/build.gradle
index 5e48d30b..4e4d59dc 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -8,8 +8,8 @@ android {
applicationId "com.raincat.dolby_beta"
minSdkVersion 14
targetSdkVersion 23
- versionCode 107
- versionName "1.0.7"
+ versionCode 108
+ versionName "1.0.8"
}
buildTypes {
release {
diff --git a/app/src/main/java/com/raincat/dolby_beta/HookerDispatcher.java b/app/src/main/java/com/raincat/dolby_beta/HookerDispatcher.java
index 7bf3a353..d2fc4869 100644
--- a/app/src/main/java/com/raincat/dolby_beta/HookerDispatcher.java
+++ b/app/src/main/java/com/raincat/dolby_beta/HookerDispatcher.java
@@ -1,6 +1,7 @@
package com.raincat.dolby_beta;
import android.content.Context;
+import android.util.Log;
import com.raincat.dolby_beta.hook.AdAndUpdateHook;
import com.raincat.dolby_beta.hook.AutoSignInHook;
@@ -28,6 +29,9 @@
import net.androidwing.hotxposed.IHookerDispatcher;
+import java.io.File;
+import java.io.IOException;
+
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.callbacks.XC_LoadPackage;
@@ -54,6 +58,17 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
return;
}
+ File neteaseTinkerFile = new File(Tools.neteaseTinkerPath);
+ if (neteaseTinkerFile.exists()) {
+ try {
+ String command = "chmod 200 " + neteaseTinkerFile.getAbsolutePath();
+ Runtime runtime = Runtime.getRuntime();
+ runtime.exec(command);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
final Context neteaseContext = (Context) param.thisObject;
final String processName = Tools.getCurrentProcessName(neteaseContext);
diff --git a/app/src/main/java/com/raincat/dolby_beta/utils/Tools.java b/app/src/main/java/com/raincat/dolby_beta/utils/Tools.java
index 6429ccd0..ac445749 100644
--- a/app/src/main/java/com/raincat/dolby_beta/utils/Tools.java
+++ b/app/src/main/java/com/raincat/dolby_beta/utils/Tools.java
@@ -36,8 +36,9 @@
*/
public class Tools {
- public static String neteaseDbPath = "data/data/" + CloudMusicPackage.PACKAGE_NAME + "/databases/SignedSong_1.db";
- public static String sdcardDbPath = Environment.getExternalStorageDirectory() + "/netease/cloudmusic/Cache/SignedSong_1.db";
+ public static final String neteaseTinkerPath="data/data/" + CloudMusicPackage.PACKAGE_NAME + "/tinker";
+ public static final String neteaseDbPath = "data/data/" + CloudMusicPackage.PACKAGE_NAME + "/databases/SignedSong_1.db";
+ public static final String sdcardDbPath = Environment.getExternalStorageDirectory() + "/netease/cloudmusic/Cache/SignedSong_1.db";
/**
* 获取线程名称
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ee0fedc3..498981ce 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -103,7 +103,7 @@
compatible_appver
兼容版本
- 4.3.1,6.0.0,6.4.3~8.0.0
+ 4.3.1,6.0.0,6.4.3~8.0.10
github
github源码