Commit Graph

478 Commits

Author SHA1 Message Date
topjohnwu
9d245f0587 Update ShellImpl task scheduling
- Prevent execTask starvation: tasks scheduled through execTask are
  now queued along with submitted tasks, executing in order of
  submission
- waitAndClose now properly waits for all tasks to complete, including
  both synchronous and asynchronous tasks
2024-06-26 19:01:04 -07:00
topjohnwu
990a60377f Cleanup implementation 2024-06-24 21:37:21 -07:00
topjohnwu
c084ef5d32 Deprecate FLAG_REDIRECT_STDERR 2024-06-24 18:06:49 -07:00
topjohnwu
6c9618b878 Prevent infinite recursion 2024-06-23 19:08:06 -07:00
topjohnwu
c4f0a379c6 Use UNSET_LIST instead of NOPList 2024-06-23 18:54:50 -07:00
topjohnwu
1698dbffef Update implementation to prevent NPE 2024-06-23 18:20:26 -07:00
topjohnwu
fe296c8ac2 Publish libsu 5.3.0 2024-06-18 03:51:51 -07:00
topjohnwu
04d58ee3ac Update AGP 2024-06-17 16:59:19 -07:00
topjohnwu
d7f288a187 Remove deprecated methods
Simplify logic
2024-06-11 19:06:41 -07:00
topjohnwu
2eae61d7ac Change Shell.EXECUTOR type from ExecutorService to Executor
Remove unnecessary restrictions
2024-06-11 19:06:41 -07:00
topjohnwu
e01d4cbb8d Introduce internal shell task scheduling 2024-06-11 18:36:27 -07:00
topjohnwu
dc6d1ec3d7 Fix broken getCachedShell implementation 2024-06-11 18:12:26 -07:00
topjohnwu
9bd331aa1e Move I/O to background thread
Fix #177
2024-06-10 17:48:13 -07:00
topjohnwu
d3df1a1b5a Use proper types 2024-06-10 17:37:19 -07:00
topjohnwu
1ab0711091 Do not restore resource hack on LG devices 2024-06-10 17:26:55 -07:00
topjohnwu
6a68ae3869 Update AGP 2024-06-10 17:26:55 -07:00
残页
c99fbab72e Fix #180 2024-06-10 00:27:17 -07:00
vvb2060
01570d643a Add setCommands method to Shell.Builder 2023-12-18 16:33:02 +08:00
topjohnwu
30da926945 Publish libsu 5.2.2 2023-12-08 16:55:18 +08:00
weishu
f0246c763d Disable image dex2oat on ART as it is extremely slow once triggered on some ROMs 2023-11-07 02:20:38 -08:00
topjohnwu
21441f6a94 Public libsu 5.2.1 2023-09-03 23:29:41 -07:00
vvb2060
ee17e20a4d Update gradle 2023-09-03 23:03:12 -07:00
topjohnwu
69652a9f7b Directly set and get context field in root process 2023-09-03 00:18:04 -07:00
topjohnwu
318a404d29 Update AGP 2023-09-03 00:17:35 -07:00
topjohnwu
4032a4d6bc Publish libsu 5.2.0 2023-07-20 17:05:16 -07:00
topjohnwu
fe925895c7 Minor refactoring 2023-07-20 16:51:24 -07:00
topjohnwu
3bc545c9ba Consolidate TaskImpl into JobImpl 2023-07-19 20:44:14 -07:00
vvb2060
f32602748a Remove ROOT_MOUNT_MASTER status 2023-07-19 17:18:52 -07:00
topjohnwu
ec2d4d5cd2 Update AGP 2023-07-19 09:11:12 -07:00
topjohnwu
c9f1a6e7a5 Publish libsu 5.1.0 2023-05-26 11:18:40 -07:00
topjohnwu
e7dcf62693 Add new API enqueue to get result with Future 2023-05-26 11:17:49 -07:00
topjohnwu
697db8d8ce Update AGP 2023-05-26 00:31:34 -07:00
tiann
d4d755a984 Creating context for specific user to make it work in work profile 2023-04-23 00:17:16 -04:00
canyie
3964c0ed43 Workaround more LG resources crashes as well
Co-authored-by: LoveSy <shana@zju.edu.cn>
2023-04-19 11:02:01 -04:00
topjohnwu
08dde991f0 Publish libsu 5.0.5 2023-04-02 00:37:03 -07:00
topjohnwu
8e6a340614 Better remote IO implementation 2023-03-27 00:34:58 -07:00
topjohnwu
b934017443 Publish libsu 5.0.4 2023-01-09 01:51:13 +08:00
topjohnwu
cca5732f2e Update copyright notice 2023-01-09 00:25:22 +08:00
残页
43d27dd4d4 Workaround createPackageContext crashes on LG ROMs
Co-authored-by: topjohnwu <topjohnwu@gmail.com>
2023-01-08 23:54:04 +08:00
topjohnwu
01de4f25fe Add pre-lollipop support 2023-01-08 21:59:35 +08:00
canyie
9043cd5c46 Do not readlink /proc/self/exe
Old platforms prevent `readlink /proc/self/exe` from being called from non-main threads on release builds

https://stackoverflow.com/questions/28590831/android-permission-denied-when-reading-proc-self-exe-from-non-main-thread
2023-01-08 21:59:35 +08:00
topjohnwu
9cb4862248 Update AGP 2023-01-08 21:43:33 +08:00
topjohnwu
9aa478c054 Publish libsu 5.0.3 2022-09-13 04:01:41 -07:00
topjohnwu
401c3c07dc Refactor services module 2022-09-13 03:51:44 -07:00
topjohnwu
9f75ae9598 Invert logic 2022-09-11 14:46:16 -07:00
topjohnwu
b6a5415a6e Set unique process names 2022-09-11 14:42:23 -07:00
topjohnwu
c648db25da Minor changes 2022-09-11 10:32:17 -07:00
topjohnwu
b184b45140 Fix escaped strings with single quotes
Fix #125
2022-09-11 10:20:41 -07:00
topjohnwu
d3cafdb50d Add a timeout when waiting for client respond
The client process can be killed before it had a chance to connect
to the root process with binder. Add a 10 second timeout before any
client has connected.
2022-09-11 09:49:21 -07:00
topjohnwu
655f5ff340 Don't use dynamic intent filter actions 2022-09-09 15:08:23 -07:00