6.6.1 - Alpha2 - 修复 README.md 中 CHANGELOG.md 链接指向错误
This commit is contained in:
@@ -137,6 +137,8 @@
|
||||
|
||||
<uses-permission android:name="android.permission.READ_SMS" />
|
||||
|
||||
<uses-permission android:name="moe.shizuku.manager.permission.API_V23" />
|
||||
|
||||
<!-- Property "largeHeap" is not recommended to set to true. -->
|
||||
<!-- https://stackoverflow.com/questions/27396892/what-are-advantages-of-setting-largeheap-to-true -->
|
||||
<!-- However, "largeHeap" may be helpful for prevent LeakCanary from OOM when analyzing detected memory leaks. -->
|
||||
@@ -642,12 +644,16 @@
|
||||
<!-- This provider is required by Shizuku, remove this if your app only supports Sui -->
|
||||
<provider
|
||||
android:name="rikka.shizuku.ShizukuProvider"
|
||||
android:authorities="org.autojs.autojs6.shizuku"
|
||||
android:authorities="${applicationId}.shizuku"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
android:multiprocess="false"
|
||||
android:permission="android.permission.INTERACT_ACROSS_USERS_FULL" />
|
||||
|
||||
<meta-data
|
||||
android:name="moe.shizuku.client.V3_SUPPORT"
|
||||
android:value="true" />
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -4,6 +4,19 @@
|
||||
|
||||
******
|
||||
|
||||
# v6.6.1
|
||||
|
||||
###### 2024/12/08
|
||||
|
||||
* `新增` pinyin 模块, 用于汉语拼音转换 (参阅 项目文档 > [汉语拼音](https://docs.autojs6.com/#/pinyin))
|
||||
* `修复` 部分环境因回退版本过低而无法正常编译项目的问题
|
||||
* `修复` 调用不存在的方法时可能出现的 "非原始类型值" 异常
|
||||
* `修复` 部分设备无法正常添加脚本快捷方式的问题 (试修) _[`issue #221`](http://issues.autojs6.com/221)_
|
||||
* `修复` automator.click/longClick 方法参数类型限制错误 _[`issue #275`](http://issues.autojs6.com/275)_
|
||||
* `优化` 脚本项目识别在 project.json 损坏情况下尽可能还原关键信息
|
||||
* `优化` 打包单文件时自动生成的包名后缀支持将简体中文自动转换为拼音
|
||||
* `优化` UI 元素及 className 相关选择器支持更多的包名前缀省略形式 (如 RecyclerView, Snackbar 等)
|
||||
|
||||
# v6.6.0
|
||||
|
||||
###### 2024/12/02 - 内置模块重写, 谨慎升级
|
||||
|
||||
@@ -4,6 +4,19 @@
|
||||
|
||||
******
|
||||
|
||||
# v6.6.1
|
||||
|
||||
###### 2024/12/08
|
||||
|
||||
* `新增` pinyin 模块, 用于汉语拼音转换 (参阅 项目文档 > [汉语拼音](https://docs.autojs6.com/#/pinyin))
|
||||
* `修复` 部分环境因回退版本过低而无法正常编译项目的问题
|
||||
* `修复` 调用不存在的方法时可能出现的 "非原始类型值" 异常
|
||||
* `修复` 部分设备无法正常添加脚本快捷方式的问题 (试修) _[`issue #221`](http://issues.autojs6.com/221)_
|
||||
* `修复` automator.click/longClick 方法参数类型限制错误 _[`issue #275`](http://issues.autojs6.com/275)_
|
||||
* `优化` 脚本项目识别在 project.json 损坏情况下尽可能还原关键信息
|
||||
* `优化` 打包单文件时自动生成的包名后缀支持将简体中文自动转换为拼音
|
||||
* `优化` UI 元素及 className 相关选择器支持更多的包名前缀省略形式 (如 RecyclerView, Snackbar 等)
|
||||
|
||||
# v6.6.0
|
||||
|
||||
###### 2024/12/02 - 内置模块重写, 谨慎升级
|
||||
|
||||
@@ -14,6 +14,7 @@ import org.autojs.autojs.core.accessibility.AccessibilityService
|
||||
import org.autojs.autojs.core.accessibility.LayoutInspector
|
||||
import org.autojs.autojs.core.activity.ActivityInfoProvider
|
||||
import org.autojs.autojs.core.console.GlobalConsole
|
||||
import org.autojs.autojs.core.pref.Pref.registerOnSharedPreferenceChangeListener
|
||||
import org.autojs.autojs.core.record.accessibility.AccessibilityActionRecorder
|
||||
import org.autojs.autojs.engine.LoopBasedJavaScriptEngine
|
||||
import org.autojs.autojs.engine.RootAutomatorEngine
|
||||
@@ -21,12 +22,12 @@ import org.autojs.autojs.engine.ScriptEngineManager
|
||||
import org.autojs.autojs.engine.ScriptEngineService
|
||||
import org.autojs.autojs.engine.ScriptEngineServiceBuilder
|
||||
import org.autojs.autojs.inrt.autojs.LoopBasedJavaScriptEngineWithDecryption
|
||||
import org.autojs.autojs.core.pref.Pref.registerOnSharedPreferenceChangeListener
|
||||
import org.autojs.autojs.rhino.InterruptibleAndroidContextFactory
|
||||
import org.autojs.autojs.runtime.ScriptRuntime
|
||||
import org.autojs.autojs.runtime.api.AppUtils
|
||||
import org.autojs.autojs.runtime.api.ScreenMetrics
|
||||
import org.autojs.autojs.runtime.api.Shell
|
||||
import org.autojs.autojs.runtime.api.WrappedShizuku
|
||||
import org.autojs.autojs.script.AutoFileSource
|
||||
import org.autojs.autojs.script.JavaScriptSource
|
||||
import org.autojs.autojs.tool.UiHandler
|
||||
@@ -80,6 +81,7 @@ abstract class AbstractAutoJs protected constructor(val application: Application
|
||||
init {
|
||||
addAccessibilityServiceDelegates()
|
||||
registerActivityLifecycleCallbacks()
|
||||
WrappedShizuku.onCreate()
|
||||
}
|
||||
|
||||
private fun initContextFactory() {
|
||||
|
||||
@@ -73,7 +73,6 @@ class App : MultiDexApplication() {
|
||||
Toaster.init(this)
|
||||
|
||||
setUpDefaultNightMode()
|
||||
WrappedShizuku.onCreate()
|
||||
}
|
||||
|
||||
override fun attachBaseContext(base: Context) {
|
||||
|
||||
@@ -417,14 +417,20 @@ public class Images {
|
||||
mPreCaptureImage.recycleInternal();
|
||||
mPreCaptureImage = null;
|
||||
}
|
||||
releaseScreenCaptureRequester();
|
||||
}
|
||||
}
|
||||
|
||||
public void stopScreenCapturerForegroundService() {
|
||||
var applicationContext = AutoJs.getInstance().getApplication().getApplicationContext();
|
||||
applicationContext.stopService(new Intent(applicationContext, ScreenCapturerForegroundService.class));
|
||||
releaseScreenCaptureRequester();
|
||||
}
|
||||
|
||||
private void releaseScreenCaptureRequester() {
|
||||
if (mScreenCaptureRequester != null) {
|
||||
mScreenCaptureRequester.unbindService();
|
||||
mScreenCaptureRequester = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,10 @@ object WrappedShizuku {
|
||||
|
||||
private val TAG: String = WrappedShizuku::class.java.simpleName
|
||||
|
||||
private val mRequestCode = "shizuku-request-code".hashCode()
|
||||
private val mRequestCode = when {
|
||||
BuildConfig.isInrt -> "shizuku-request-code-inrt".hashCode()
|
||||
else -> "shizuku-request-code".hashCode()
|
||||
}
|
||||
private var mHasBinder = false
|
||||
|
||||
private val mUserServiceConnection: ServiceConnection = object : ServiceConnection {
|
||||
|
||||
@@ -29,7 +29,7 @@ class ToastParser(private val msg: Any?, long: Any? = null, forcible: Any? = nul
|
||||
val niceMsg = when {
|
||||
Undefined.isUndefined(msg) || msg == NOT_FOUND -> "undefined"
|
||||
msg == null -> "null"
|
||||
else -> coerceString(msg, msg.toString())
|
||||
else -> Context.toString(msg)
|
||||
}
|
||||
AutoJs.instance.uiHandler.toast(scriptRuntime, niceMsg, isLong)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user