Commit Graph

437 Commits

Author SHA1 Message Date
hyb1996
4b31ba3a66 修复 http模块多cookie问题 2018-10-16 17:06:22 +08:00
hyb1996
fc05252540 新增 view事件touch_down, touch_up, touch_move, key_down, key_up
修复 某些情况下脚本无声退出的问题(没有任何报错信息控制台打印脚本退出)
修复 某些情况下调用exit时ui不退出或子线程不退出的问题
2018-10-16 15:57:08 +08:00
hyb1996
4dcb19e4fe 修复 ui线程下ui.xxx.on等函数不存在的问题
修复 非ui线程下ui.xxx.on等函数报错的问题
新增 注册ui.xxx支持增加成员
修复 多线程环境没有调用Context.exit()可能造成的内存泄漏
2018-10-16 15:16:11 +08:00
hyb1996
d2e0899c8b 修复 auto.setMode()报错的问题 2018-10-15 15:57:13 +08:00
hyb1996
a124c732b1 新增 支持ui的view对象增加属性,修改它的prototype为object 2018-10-15 10:25:55 +08:00
hyb1996
1094965eb1 修复 app.viewFile等FileUriExposed异常 2018-10-15 00:59:39 +08:00
hyb1996
d1fb2c44f2 新增 app.sendBroadcast("inspect_layout_hierarchy"),app.sendBroadcast("inspect_layout_bounds"); 2018-10-15 00:52:20 +08:00
hyb1996
429407ed2d fix: floaty 2018-10-15 00:08:53 +08:00
hyb1996
82fa139ec0 fix: bug of ui.Widget; add: sample for ui.Widget 2018-10-14 14:34:34 +08:00
hyb1996
1943e39573 fix: NullPointerException at android.widget.Editor.updateCursorPositionMz(Editor.java:7878) 2018-10-14 10:53:18 +08:00
hyb1996
14b7a7e85e sample: 自定义控件; fix: ActivityNotFoundException 2018-10-14 10:33:23 +08:00
hyb1996
db3571851c feat: appbar attributes 2018-10-13 13:57:52 +08:00
hyb1996
ac889ceff6 fix: img::tint 2018-10-13 13:42:44 +08:00
hyb1996
506a68d816 feat: img attrs; disable CodeEditText autofill 2018-10-13 11:02:52 +08:00
hyb1996
4c482428dd fix: piped writer causes anr 2018-10-13 00:17:39 +08:00
hyb1996
4dc37bc4ff fix: floaty not working 2018-10-12 23:30:50 +08:00
hyb1996
44bc2e9a02 fix(autojs): java.lang.SecurityException Invalid media projection 2018-10-12 21:13:30 +08:00
hyb1996
aa7318bfbd feat(ui): default dimension dp 2018-10-12 20:54:48 +08:00
hyb1996
8a7966ba3c feat(ui): reset sample 2018-10-12 20:43:57 +08:00
hyb1996
d80d871a8d feat(autojs): base view attrs 2018-10-12 19:41:16 +08:00
hyb1996
f0d9ef1367 feat(autojs): list.on("item_bind") 2018-10-12 17:02:47 +08:00
hyb1996
7fe204c44f save works 2018-10-12 16:25:24 +08:00
hyb1996
9b1daa6567 Merge branch 'dev' of https://github.com/hyb1996/NoRootScriptDroid into dev 2018-10-12 14:51:45 +08:00
hyb1996
6553a4f6c4 save works 2018-10-12 14:51:28 +08:00
hyb1996
3a11d8dc60 save works 2018-10-12 14:48:43 +08:00
hyb1996
03f1379fd5 fix: floating window cannot show 2018-10-12 14:21:59 +08:00
hyb1996
947236a4c5 fix: java.lang.IndexOutOfBoundsException
Inconsistency detected. Invalid view holder adapter positionViewHolder{b7a986a position=1 id=-1, oldPos=0, pLpos:0 scrap [attachedScrap] tmpDetached no parent} com.stardust.autojs.core.ui.widget.JsGridView{99f615b VFED..CL. ......ID 0,120-1080,1554 #133a2c2}, adapter:com.stardust.autojs.core.ui.widget.JsListView$Adapter@fe85df8, layout:android.support.v7.widget.GridLayoutManager@861c2d1, context:com.stardust.autojs.execution.ScriptExecuteActivity@6cd9514
2018-10-12 10:38:53 +08:00
hyb1996
b42e440fff save works 2018-10-11 16:15:40 +08:00
hyb1996
253b88b152 Merge branch 'dev' of https://github.com/hyb1996/NoRootScriptDroid into dev
# Conflicts:
#	autojs/src/main/java/com/stardust/autojs/rhino/NativeJavaObjectWithPrototype.java
2018-10-11 16:14:26 +08:00
hyb1996
e56682162e fix some bugs 2018-10-11 12:00:50 +08:00
hyb1996
438a959473 save works 2018-10-11 10:56:16 +08:00
hyb1996
cce09209a3 fix: exposed uri error 2018-10-10 14:49:59 +08:00
hyb1996
6cebca179c feat: runtime.loadJar() cache dex 2018-10-10 00:31:55 +08:00
hyb1996
94395544b7 fix: linear.showDividers, text.ellipsize 2018-10-09 23:49:45 +08:00
hyb1996
8d2c0dd9f3 feat: auto.setFlags("findOnUiThread"); 2018-10-06 13:47:11 +08:00
hyb1996
54cbb78d8e fix(target O): floating window cannot be shown 2018-10-06 11:16:27 +08:00
hyb1996
4851790ad9 update libraries and dependencies's version 2018-10-06 10:12:29 +08:00
hyb1996
02b1587f6b feat: intent task 2018-09-28 13:46:01 +08:00
hyb1996
cf16739e75 fix: catch some crash on ui thread 2018-09-27 13:56:08 +08:00
hyb1996
dcc09c4034 fix: cannot set w and h on root element of ui;
fix: ui.post
2018-09-27 00:22:41 +08:00
hyb1996
00e687f10d fix: crash on automator code generate 2018-09-26 23:45:51 +08:00
hyb1996
301a4286e5 fix: img.h not working; 2018-09-26 23:43:13 +08:00
hyb1996
bb130f56ea fix: sensors's callback persisted in loopers' ThreadLocal, causes ScriptExecuteActivity memory leak 2018-09-19 20:28:53 +08:00
hyb1996
723c7a7ff0 fix(ui): some bugs on back pressed 2018-09-19 16:41:01 +08:00
hyb1996
62aafaf06b fix: app memory leak; feat: app foreground service 2018-09-19 14:40:05 +08:00
hyb1996
c8d2a6e7a2 feat: new project, project manager 2018-09-18 17:30:57 +08:00
hyb1996
04bffdc425 save works 2018-09-17 15:32:11 +08:00
hyb1996
37796048f4 refactor(ui): refactor ScriptListView 2018-09-17 09:24:22 +08:00
hyb1996
c5c9aaa8e1 fix(automator): RootAutomator (x, y) not correct on some devices 2018-09-16 01:49:33 +08:00
hyb1996
91d5eab872 fix(ui): CodeEditText rendering 2018-09-15 22:00:42 +08:00
hyb1996
b2b2362f71 fix(autojs): root automator not working on some device 2018-09-15 21:19:15 +08:00
hyb1996
a3ae309742 fix: app crash when a timer callback throws exception on main thread; feat: umeng ads 2018-09-15 14:04:01 +08:00
hyb1996
02c64cd7b1 feat: java class searching and import; fix: editor crash on edit when file is too large 2018-09-15 11:52:44 +08:00
hyb1996
bb7cb6bd1a fix(ui): breakpoint on other source causing app crash when debugging 2018-09-14 09:26:57 +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
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
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
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
834280428d refactor(debug): 从DebugToolFragment中分离debug逻辑 2018-09-11 08:11:59 +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
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
a2c46d0787 feat(debug): supports debugging across files; supports watching variables; supports evaluate code on debug; 2018-09-08 17:30:01 +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
6e481a3841 修复每次打包都会增加project.json的assets条目 2018-07-13 14:29:41 +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
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
7036fa994e fix(autojs): ui.emitter.emit() may make app crash if callback throws exception
add(sample): 界面模板一.js
2018-06-03 11:57:49 +08:00
hyb1996
35a5abed6a feat(autojs): requestScreenCapture() supports changing orientation automatically and dynamically 2018-06-03 11:12:01 +08:00
hyb1996
9c612ea8bd fix(autojs): ui tablayout default to dark theme 2018-05-31 11:07:21 +08:00
hyb1996
debcb1d7b8 api(autojs): supports ui label toolbar, appbar, tabs, viewpager, drawer 2018-05-31 01:38:36 +08:00
hyb1996
22185346e8 save works 2018-05-29 20:26:21 +08:00
hyb1996
aa770b2ffb fix(app): BuildActivity crash when package.json is illegal 2018-05-29 11:07:42 +08:00
hyb1996
7cb7703921 api(images): images.copy(), Image(width, height)
api(canvas): canvas.toImage(), Canvas(width, height)
2018-05-28 21:43:08 +08:00
hyb1996
30dbe6e3f2 api(images): images.copy(), Image(width, height) 2018-05-28 21:37:05 +08:00
hyb1996
2d6fed4c99 api(runtime): runtime.requestPermissions() 2018-05-28 20:51:05 +08:00
hyb1996
faa5ef4c48 add(sample): 护眼模式
fix(floaty): xml.toString() return empty when xml has just one node
2018-05-28 20:02:40 +08:00
hyb1996
44b7f0b39a api(floaty): floaty.rawWindow() 2018-05-28 17:02:48 +08:00
hyb1996
ac0e9952c8 feat(autojs): UiSelector.indexInParent 2018-05-28 13:14:59 +08:00
hyb1996
9911c9146d fix(sample): 通知监听 2018-05-26 10:59:34 +08:00
hyb1996
d5630876d9 add missing files 2018-05-25 20:09:51 +08:00
hyb1996
7839bc6813 refactor: rename package name to 'org.autojs.autojs' 2018-05-25 13:20:00 +08:00
hyb1996
2edb363b39 fix(autojs): use global context factory to enter context to make runtime.loadJar() working 2018-05-22 20:49:06 +08:00
hyb1996
a6bc3b26f1 fix(autojs): script bridges convert boolean to Boolean 2018-04-25 16:22:38 +08:00