Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Support CloudMusic 5.8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bin456789 committed Jan 25, 2019
1 parent 2ab8fd0 commit 1fba78a
Show file tree
Hide file tree
Showing 35 changed files with 942 additions and 834 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- build-tools-28.0.3
- android-28

before_install:
- yes | sdkmanager "platforms;android-27"
- yes | sdkmanager "platforms;android-28"

script:
- if [[ "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Xposed version of EraserKing's [Unblock163MusicClient](https://github.com/EraserKing/Unblock163MusicClient).

Compatible with app v3/v4/v5.
Compatible with app ≈ v5.8.x .


## Thanks
Expand Down
29 changes: 18 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
useLibrary 'org.apache.http.legacy'
compileSdkVersion 28
signingConfigs {
release {
if (System.getenv()["CI"]) {
Expand All @@ -23,9 +21,9 @@ android {
}
defaultConfig {
applicationId "bin.xposed.Unblock163MusicClient"
minSdkVersion 9
targetSdkVersion 27
versionCode 27
minSdkVersion 16
targetSdkVersion 28
versionCode 28
versionName = "0.0.${versionCode}"
archivesBaseName = "${applicationId}-${versionName}"
}
Expand All @@ -50,15 +48,16 @@ android {
dependencies {
compileOnly 'de.robv.android.xposed:api:53'
compileOnly 'de.robv.android.xposed:api:53:sources'
implementation 'dnsjava:dnsjava:2.1.8'
implementation 'com.annimon:stream:1.2.0'
implementation 'com.annimon:stream:1.2.1'
implementation project(':hotxposed')
}

afterEvaluate {
installDebug.doLast {
updateVirtualXposedAPP.execute()
rebootVirtualXposedAPP.execute()
launchVirtualXposedAPP.execute()
// updateVirtualXposedAPP.execute()
// rebootVirtualXposedAPP.execute()
// launchVirtualXposedAPP.execute()
restartCloudMusic.execute()
}
}

Expand All @@ -74,4 +73,12 @@ task rebootVirtualXposedAPP(type: Exec) {
task launchVirtualXposedAPP(type: Exec) {
def pkg = "com.netease.cloudmusic"
commandLine android.adbExecutable, 'shell', 'am', 'broadcast', '-a', 'io.va.exposed.CMD', '-e', 'cmd', 'launch', '-e', 'pkg', pkg
commandLine android.adbExecutable, 'shell', 'am', 'force-stop', pkg
}

task restartCloudMusic(type: Exec) {
def pkg = "com.netease.cloudmusic"
commandLine 'adb', 'shell', 'am', 'force-stop', pkg
commandLine 'adb', 'shell', 'monkey', '-p', pkg, "1"
}

10 changes: 7 additions & 3 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
# public *;
#}

-dontwarn org.xbill.DNS.spi.DNSJavaNameServiceDescriptor
-keep public class bin.xposed.Unblock163MusicClient.Main
-keep class bin.xposed.Unblock163MusicClient.Main

-keepclassmembers class bin.xposed.Unblock163MusicClient.HookerDispatcher* {
void dispatch(***);
}

-keepclassmembernames class bin.xposed.Unblock163MusicClient.ui.SettingsActivity {
int getActivatedModuleVersion();
boolean isModuleActive();
}

0 comments on commit 1fba78a

Please sign in to comment.