Commit Graph

402 Commits

Author SHA1 Message Date
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
topjohnwu
168d96b069 Publish 4.0.1 2022-03-09 23:25:29 -08:00
topjohnwu
7a36507db4 Run connect on main thread 2022-03-09 23:07:48 -08:00
topjohnwu
59eda41b13 Fix #108 2022-03-09 22:58:53 -08:00
topjohnwu
10a97bfe75 Mount ns might not exist in /proc 2022-03-09 22:32:03 -08:00
Fox2Code
59936355e3
Fix #103 2022-03-08 11:18:22 -08:00
topjohnwu
492ef7a28b Remove incorrect MainThread annotation 2022-02-28 01:51:29 -08:00
topjohnwu
d1996f27bc Publish 4.0.0 2022-02-28 01:27:42 -08:00
topjohnwu
179e4f38ff Remove SuFileInputStream and SuFileOutputStream constructors 2022-02-28 01:15:55 -08:00
topjohnwu
d3b7814c1f Only launch new process if running as root 2022-02-28 00:33:16 -08:00
topjohnwu
38362fc431 Update BusyBox 2022-02-27 22:18:27 -08:00
topjohnwu
cde8c71eab Make Utils.context package private 2022-02-27 22:09:42 -08:00
topjohnwu
9c7025130e Update Shell.rootAccess() implementation 2022-02-27 22:09:23 -08:00
topjohnwu
47c8d2c9c2 Replace su(...)/sh(...) with cmd(...) 2022-02-27 14:47:06 -08:00
topjohnwu
863ec4c2a1 Add @IntDef annotations 2022-02-27 05:29:16 -08:00
topjohnwu
dfdb9b687f Set dumpPriority to 0 in addService 2022-02-27 04:53:31 -08:00
topjohnwu
f0d4bc6824 Make attachBaseContext final to prevent breakage 2022-02-27 04:28:37 -08:00
topjohnwu
715bb8f2a4 Update RootServiceServer to meet spec 2022-02-27 03:58:37 -08:00
topjohnwu
6b5a2e7558 Update RootService documentation 2022-02-27 03:12:39 -08:00