Commit Graph

470 Commits

Author SHA1 Message Date
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
topjohnwu
e7a5594ef1 Update Javadoc 2022-04-29 00:39:22 -07:00
topjohnwu
bef6098d2f Simplify checkException 2022-04-28 22:20:33 -07:00
topjohnwu
11ed6e8034 Better error handling 2022-04-28 03:32:39 -07:00
topjohnwu
3ccd3cd57e Make SuFile not depend on FileImpl 2022-04-28 02:57:15 -07:00
topjohnwu
ef8621d0bc Add more APIs to ExtendedFile 2022-04-27 01:17:22 -07:00
topjohnwu
d14c711955 FileSystemApi -> FileSystemManager 2022-04-26 23:54:09 -07:00
topjohnwu
a5a9cd3da8 Add more APIs into ExtendedFile 2022-04-23 17:21:26 -07:00
topjohnwu
74d7d23e4b Cleanup API surface 2022-04-23 15:58:13 -07:00
topjohnwu
3eaeea1403 Rename module to nio 2022-04-22 04:37:43 -07:00
topjohnwu
d7e114b869 Add LocalFile 2022-04-22 04:21:09 -07:00
topjohnwu
b6a4d3e95b Make ExtendedFile part of public API 2022-04-22 00:34:00 -07:00
topjohnwu
ed66bdebf7 sendfile only works on mmap-able files 2022-04-21 23:26:58 -07:00
topjohnwu
1e0f5300ca Implement RemoteFileChannel 2022-04-21 03:36:15 -07:00
topjohnwu
8b0200d195 Add new module ipc-utils 2022-04-15 04:16:19 -07:00
topjohnwu
c44dacc724 Move Shell.rootAccess() to deprecation section 2022-04-14 23:13:33 -07:00
topjohnwu
8fa89d240c Remove usage of Shell.rootAccess() 2022-04-14 23:05:20 -07:00
topjohnwu
19126657f7 Add new public API isAppGrantedRoot 2022-04-14 00:23:12 -07:00
PerfectSlayer
270aa6d426 fix(io): Fix formatting 2022-04-13 23:31:37 -07:00
PerfectSlayer
1615ffb86f feat(io): Improve FIFO output stream creation to provide context on failure 2022-04-13 23:31:37 -07:00
PerfectSlayer
b8d077aeca feat(io): Ensure to close the fifo even if the stream fails to close 2022-04-13 23:31:37 -07:00
PerfectSlayer
d29d09a824 feat(io): Give context on FIFO input stream creation failure 2022-04-13 23:31:37 -07:00
南宫雪珊
8efbac3e18
Fix isAppGrantedRoot() 2022-04-13 23:30:40 -07:00
topjohnwu
d285b62908 Publish 4.0.3 2022-03-22 01:34:29 -07:00
topjohnwu
f3501b4597 Use 1 less IPC for service binding 2022-03-22 01:15:27 -07:00
topjohnwu
39dcd3e1a0 Do not block getCached with MainShell.class 2022-03-21 23:28:07 -07:00
topjohnwu
046ef7b0a6 Ensure only one single main shell is created 2022-03-21 01:37:36 -07:00
topjohnwu
2344fe7fcf Publish 4.0.2 2022-03-09 23:56:17 -08:00
topjohnwu
36833c97a6 Call getCallingUid on the correct thread 2022-03-09 23:55:52 -08:00