Commit Graph

448 Commits

Author SHA1 Message Date
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
topjohnwu
2d04bd43d7 Update gradle and AGP 2022-09-09 15:04:46 -07:00
topjohnwu
02abb7b204 Publish 5.0.2 2022-06-02 01:48:12 -07:00
topjohnwu
979cb2b169 More efficient main thread detection 2022-06-02 00:58:31 -07:00
topjohnwu
8ef7539da8 Resolve /proc/self/exe before executing 2022-06-02 00:38:57 -07:00
topjohnwu
cae7a272fe Update Android Studio 2022-05-18 01:40:48 -07:00
topjohnwu
3040b9354c Publish 5.0.1 2022-05-04 04:21:55 -07:00
topjohnwu
08433b0a8f Add missing annotations 2022-05-04 04:10:29 -07:00
topjohnwu
a43c03c931 Remove busybox 2022-05-04 04:00:03 -07:00
topjohnwu
b4a373dd17 Open pipe directly to prevent deadlock
We don't need non-blocking I/O with streams
2022-05-03 23:48:04 -07:00
topjohnwu
7d07b6b30b Consolidate shell streams 2022-05-03 22:32:09 -07:00
topjohnwu
691af9e6d4 Implement I/O optimized for streaming 2022-05-03 22:13:05 -07:00
topjohnwu
b12ba81d30 Update README 2022-05-02 21:33:00 -07:00
topjohnwu
28f569c767 Update CHANGELOG 2022-05-02 21:11:41 -07:00
topjohnwu
8d352c63c3 Mark BusyBoxInstaller as deprecated
Also remove all usage of any utility methods from the core module,
as this is planned to be the last release of the busybox module.
This version should be fully self contained so that it may be used
even with future libsu versions.
2022-05-02 20:20:29 -07:00
topjohnwu
93c11bec0a Restore busybox module 2022-05-02 20:12:30 -07:00
topjohnwu
17c67a57dd Update Javadoc and Example 2022-05-02 04:04:09 -07:00
南宫雪珊
fc42e8274e
Add startup agents warning
Co-authored-by: topjohnwu <topjohnwu@gmail.com>
2022-05-01 13:12:06 -07:00
南宫雪珊
0f3698afa4
Check main shell when setBuilder
Co-authored-by: topjohnwu <topjohnwu@gmail.com>
2022-05-01 05:02:55 -07:00
topjohnwu
a9551dabcc Log exit code
Close #118
2022-05-01 04:40:36 -07:00
topjohnwu
c33b59e3a0 Use stock File implementation 2022-05-01 04:21:00 -07:00
topjohnwu
d793ba9fff Add new API setContext 2022-05-01 03:44:41 -07:00
topjohnwu
acfc071421 Centralize FIFO creation 2022-05-01 01:23:46 -07:00
topjohnwu
37523ceec6 Cleanup example code 2022-05-01 00:41:51 -07:00
topjohnwu
f8610b8bf6 Remove the busybox module 2022-04-30 23:59:51 -07:00
topjohnwu
029a05d746 Add new API getChildFile 2022-04-30 23:55:49 -07:00
topjohnwu
c9a4c4e309 Provide default argument for newOutputStream 2022-04-29 05:07:23 -07:00
topjohnwu
1325e6b2db Final API adjustments 2022-04-29 03:28:03 -07:00
topjohnwu
d0ce4b5305 Support multiple clients 2022-04-29 03:04:52 -07:00
topjohnwu
a2aaf414a8 Handle mode error on the client 2022-04-29 00:55:36 -07:00
topjohnwu
af263905d6 Make OpenMode part of the API 2022-04-29 00:52:34 -07:00