This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from fengyuecanzhu/dev
v2.4.6
- Loading branch information
Showing
13 changed files
with
142 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
.DS_Store | ||
/build | ||
/captures | ||
/user | ||
.externalNativeBuild | ||
keystore | ||
# Compiled class file | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
* 1、新增部分提示 | ||
* 2、修复书籍无法导出缓存的问题 | ||
* 3、修复部分书源bug | ||
* 4、修复同名书籍详情页加载bug | ||
* 5、修复搜索时当前分组不存在时无法搜索的问题 | ||
* 6、Cookie支持备份&恢复 | ||
* 1、修复书源过多时搜索界面卡死的问题 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,5 @@ | |
# | ||
|
||
#Fri Jun 18 21:45:31 CST 2021 | ||
VERSION_CODE=245 | ||
VERSION_CODE=246 | ||
CREATE_RELEASE=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* This file is part of FYReader. | ||
* FYReader is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* FYReader is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with FYReader. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
* Copyright (C) 2020 - 2022 fengyuecanzhu | ||
*/ | ||
|
||
package xyz.fycz.dynamic.fix | ||
|
||
import me.fycz.maple.MapleBridge | ||
import me.fycz.maple.MapleUtils | ||
import me.fycz.maple.MethodReplacement | ||
import xyz.fycz.myreader.application.App | ||
import xyz.fycz.myreader.model.user.UserService | ||
import xyz.fycz.myreader.util.AppInfoUtils | ||
import xyz.fycz.myreader.util.utils.EncoderUtils | ||
|
||
/** | ||
* @author fengyue | ||
* @date 2022/5/23 18:20 | ||
*/ | ||
@AppFix([243, 244, 245], ["修改用户服务验证机制(beta)"], "2022-05-23") | ||
class App245Fix : AppFixHandle { | ||
|
||
override fun onFix(key: String): BooleanArray { | ||
val result = try { | ||
fixMakeAuth() | ||
true | ||
} catch (e: Exception) { | ||
MapleUtils.log(e) | ||
false | ||
} | ||
fixResult(key, "makeAuth", result) | ||
return booleanArrayOf(result) | ||
} | ||
|
||
private fun fixMakeAuth() { | ||
MapleUtils.findAndHookMethod( | ||
UserService::class.java, | ||
"makeAuth", | ||
object : MethodReplacement() { | ||
override fun replaceHookedMethod(param: MapleBridge.MethodHookParam): Any { | ||
return makeAuth() | ||
} | ||
} | ||
) | ||
} | ||
|
||
fun makeAuth(): String { | ||
var auth = "signal=" + AppInfoUtils.getSingInfo( | ||
App.getmContext(), | ||
App.getApplication().packageName, | ||
AppInfoUtils.SHA1 | ||
) + "&appVersion=" + App.getVersionCode() | ||
auth = try { | ||
EncoderUtils.encryptAES2Base64( | ||
auth.toByteArray(), DO_FILTER_KEY, | ||
"AES/ECB/PKCS5Padding" | ||
)?.let { String(it) }.toString() | ||
} catch (e: Exception) { | ||
"" | ||
} | ||
return "&auth=$auth" + | ||
"&deviceId=" + UserService.getUUID() + | ||
"&isDebug=" + App.isDebug() | ||
} | ||
|
||
val DO_FILTER_KEY = "79qdunN8534y44T3".toByteArray() | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
include ':app' | ||
include ':DialogX' | ||
include ':dynamic' | ||
include ':user' |