Commit Graph

618 Commits

Author SHA1 Message Date
hyb1996
2c46e7d5bb fix: json socket send data length 2018-09-14 09:14:40 +08:00
hyb1996
9a5f6f014c feat(app): add intent task 2018-09-13 22:27:03 +08:00
hyb1996
57960bd30b feat(autojs): ui script's id is -1 2018-09-13 20:31:05 +08:00
hyb1996
c0094e4445 feat(autojs): loadJar(), loadDex() supports relative path 2018-09-13 20:12:13 +08:00
hyb1996
c3f5c109be feat(ui): confirm when delete script or dir 2018-09-13 20:07:29 +08:00
hyb1996
1e5f911441 fix(autojs): AndroidClassLoader.defineClass() 2018-09-13 19:59:19 +08:00
hyb1996
c41b3fcfe2 save databases works 2018-09-13 19:53:19 +08:00
hyb1996
0281563077 fix(ui): app crash when editor cannot open file 2018-09-13 16:52:38 +08:00
hyb1996
4fe8e4add4 fix(ui): cannot redo and undo 2018-09-13 16:30:18 +08:00
hyb1996
ccf85fe2f5 opt(ui): js beautifier supports formatting xml 2018-09-13 11:07:19 +08:00
hyb1996
23f817f4e3 Revert "opt(ui): use new js beautifier"
This reverts commit a69152f719.
2018-09-13 09:10:37 +08:00
hyb1996
a69152f719 opt(ui): use new js beautifier 2018-09-13 09:09:28 +08:00
hyb1996
e45c72853c opt(ad): minus ad loading timeout 2018-09-12 17:56:48 +08:00
hyb1996
777b3e1163 fix(ui): issue report not working 2018-09-12 17:42:18 +08:00
hyb1996
a2ed727477 feat: use bugly to report crash 2018-09-12 16:43:11 +08:00
hyb1996
c388148b8f feat(autojs): engines.myEngine().execArgv 2018-09-12 10:37:56 +08:00
hyb1996
a902081c1c fix(autojs): loadDex and loadJar bugs 2018-09-12 10:00:39 +08:00
hyb1996
89897e3294 fix(dev): fix bugs of json socket 2018-09-11 17:23:26 +08:00
hyb1996
8c8d4bd89c fix(dev): fix bugs of json socket 2018-09-11 16:06:18 +08:00
hyb1996
8401ce40c6 feat(debug): use json socket to connect to remote debug client 2018-09-11 13:01:37 +08:00
hyb1996
834280428d refactor(debug): 从DebugToolFragment中分离debug逻辑 2018-09-11 08:11:59 +08:00
hyb1996
0b84d755dc fix(ui): jump to line crash when line input is empty 2018-09-10 07:56:26 +08:00
hyb1996
769529585d fix(autojs): EventEmitter.once(), view._id() ; feat(autojs): auto.getService(), auto.getWindows(), auto.setWindowFilter(), util.java.toJsArray() 2018-09-09 21:37:53 +08:00
hyb1996
e09966505c opt(timing): request for ignore battery optimization; optimize TimedTaskScheduler to schedule task 2018-09-09 15:10:31 +08:00
hyb1996
f62958655a opt(autojs): optimize TimedTaskScheduler to schedule task 2018-09-09 13:47:23 +08:00
hyb1996
32548ff9f4 fix require() for json file;fix loadJar() not working; add loadDex(); add image.readPixels(); add util.java 2018-09-08 22:43:37 +08:00
hyb1996
94a17c3118 feat(ui): supports adding or removing breakpoint on debug 2018-09-08 20:22:26 +08:00
hyb1996
031fc56131 feat(ui): supports touching gutter to set breakpoint 2018-09-08 18:05:09 +08:00
hyb1996
a2c46d0787 feat(debug): supports debugging across files; supports watching variables; supports evaluate code on debug; 2018-09-08 17:30:01 +08:00
hyb1996
5329278e8d Merge branch 'dev' of https://github.com/hyb1996/NoRootScriptDroid into dev 2018-09-08 09:20:43 +08:00
hyb1996
ee17b27a79 fix: files.create() cannot create dir 2018-09-08 09:20:23 +08:00
hyb1996
c56157d8da feat(ui): fix debug mode exception on orientation change 2018-09-08 01:53:51 +08:00
hyb1996
32805aad34 feat(ui): supports debugging 2018-09-07 22:26:03 +08:00
hyb1996
e5e1b567e7 refactor(ui): toolbar menu design; 2018-09-07 12:36:13 +08:00
hyb1996
457141d6c0 Merge branch 'dev' of https://github.com/hyb1996/NoRootScriptDroid into dev
# Conflicts:
#	autojs/src/main/java/com/stardust/autojs/core/ui/inflater/inflaters/SpinnerInflater.java
2018-09-07 09:01:16 +08:00
hyb1996
2cd9394ca4 一些代码细节调整 2018-09-07 08:59:34 +08:00
hyb1996
61beabadb3 fix: require() supports npm module 2018-09-06 23:18:45 +08:00
hyb1996
220473c109 fix: Permission for drawing overlays on MIUI 10 2018-07-29 17:55:02 +08:00
hyb1996
de77cd7509 Merge branch 'dev' of https://github.com/hyb1996/NoRootScriptDroid into dev
# Conflicts:
#	.idea/caches/build_file_checksums.ser
2018-07-18 23:48:44 +08:00
hyb1996
093a19c491 feat(ui): spinner: textSize, textColor, textStyle, entryTextSize, entryTextColor, entryTextStyle 2018-07-17 23:01:19 +08:00
hyb1996
31922af8f2 回退version.json解决旧版本崩溃的问题 2018-07-13 14:40:31 +08:00
hyb1996
6e481a3841 修复每次打包都会增加project.json的assets条目 2018-07-13 14:29:41 +08:00
hyb1996
5251028b0b 修复无法直接下载最新版本的问题 2018-07-11 17:59:04 +08:00
hyb1996
f78f569461 移除了主动请求READ_PHONE_STATE权限 2018-07-11 17:30:06 +08:00
hyb1996
01beaf7b37 fix:
Version: 404
Android: 19
java.lang.NoClassDefFoundError: android/os/PersistableBundle
at java.lang.Class.getDeclaredMethods(Native Method)
at java.lang.Class.getPublicMethodsRecursive(Class.java:894)
at java.lang.Class.getMethods(Class.java:877)
at org.mozilla.javascript.JavaMembers.discoverAccessibleMethods(JavaMembers.java:346)
at org.mozilla.javascript.JavaMembers.discoverAccessibleMethods(JavaMembers.java:302)
at org.mozilla.javascript.JavaMembers.reflect(JavaMembers.java:419)
at org.mozilla.javascript.JavaMembers.<init>(JavaMembers.java:43)
at org.mozilla.javascript.JavaMembers.lookupClass(JavaMembers.java:807)
at org.mozilla.javascript.NativeJavaObject.initMembers(NativeJavaObject.java:54)
at org.mozilla.javascript.NativeJavaObject.<init>(NativeJavaObject.java:44)
at org.mozilla.javascript.NativeJavaObject.<init>(NativeJavaObject.java:34)
at org.mozilla.javascript.WrapFactory.wrapAsJavaObject(WrapFactory.java:115)
at org.mozilla.javascript.WrapFactory.wrap(WrapFactory.java:72)
at com.stardust.autojs.engine.RhinoJavaScriptEngine$WrapFactory.wrap(RhinoJavaScriptEngine.java:178)
at org.mozilla.javascript.Context.javaToJS(Context.java:1838)
at com.stardust.autojs.engine.RhinoJavaScriptEngine.put(RhinoJavaScriptEngine.java:64)
at com.stardust.autojs.execution.ScriptExecuteActivity.prepare(ScriptExecuteActivity.java:126)
at com.stardust.autojs.execution.ScriptExecuteActivity.runScript(ScriptExecuteActivity.java:96)
at com.stardust.autojs.execution.ScriptExecuteActivity.onCreate(ScriptExecuteActivity.java:75)
at android.app.Activity.performCreate(Activity.java:5397)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5021)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.os.PersistableBundle" on path: DexPathList[[zip file "/data/app/org.autojs.autojs-1.apk", zip file "/data/data/org.autojs.autojs/code_cache/secondary-dexes/org.autojs.autojs-1.apk.classes2.zip"],nativeLibraryDirectories=[/data/app-lib/org.autojs.autojs-1, /system/lib, /system/lib/arm, /data/downloads]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
... 33 more
2018-07-11 17:09:21 +08:00
hyb1996
d5c38ae537 fix:
java.lang.IllegalStateException: Calling View methods on another thread than the UI thread.
	at com.android.webview.chromium.WebViewChromium.createThreadException(WebViewChromium.java:248)
	at com.android.webview.chromium.WebViewChromium.checkThread(WebViewChromium.java:263)
	at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:163)
	at android.webkit.WebView.<init>(WebView.java:548)
	at android.webkit.WebView.<init>(WebView.java:483)
	at android.webkit.WebView.<init>(WebView.java:466)
	at android.webkit.WebView.<init>(WebView.java:453)
	at org.autojs.autojs.ui.widget.CommonMarkdownView.<init>(CommonMarkdownView.java:49)
	at java.lang.reflect.Constructor.newInstance(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
	at android.view.LayoutInflater.createView(LayoutInflater.java:611)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:747)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:810)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:508)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:418)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
	at android.view.View.inflate(View.java:18461)
	at org.autojs.autojs.ui.update.UpdateInfoDialogBuilder.updateInfo(UpdateInfoDialogBuilder.java:45)
	at org.autojs.autojs.ui.update.UpdateInfoDialogBuilder.<init>(UpdateInfoDialogBuilder.java:40)
	at org.autojs.autojs.ui.update.VersionGuard.showUpdateInfoIfNeeded(VersionGuard.java:58)
	at org.autojs.autojs.ui.update.VersionGuard.access$200(VersionGuard.java:21)
	at org.autojs.autojs.ui.update.VersionGuard$1.onNext(VersionGuard.java:49)
	at org.autojs.autojs.ui.update.VersionGuard$1.onNext(VersionGuard.java:42)
	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onNext(ObservableSubscribeOn.java:58)
	at com.jakewharton.retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:51)
	at com.jakewharton.retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:37)
	at com.jakewharton.retrofit2.adapter.rxjava2.CallObservable.subscribeActual(CallObservable.java:43)
	at io.reactivex.Observable.subscribe(Observable.java:10901)
	at com.jakewharton.retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:34)
	at io.reactivex.Observable.subscribe(Observable.java:10901)
	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:452)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:61)
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:52)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:818)
2018-07-11 16:57:41 +08:00
hyb1996
b9c7250cf8 Not show ad on first day 2018-07-09 16:28:50 +08:00
hyb1996
e247943035 修复在Android O上创建快捷方式失败的问题;替换默认快捷方式图标 2018-07-07 22:47:20 +08:00
hyb1996
dc468c7de4 fix bugs 2018-07-01 20:20:06 +08:00
hyb1996
997b652df9 fix(app): change documentation source and refresh cannot apply changes immediately
docs: update to latest
2018-06-03 21:07:11 +08:00