Commit Graph

70 Commits

Author SHA1 Message Date
topjohnwu
a55d35322c Do not explicitly close shell on Exceptions 2018-07-11 19:32:43 +08:00
topjohnwu
71c0ecf031 Hide more implementation details from API 2018-07-11 19:32:42 +08:00
topjohnwu
0f7fb51914 Simplify commands 2018-07-11 19:32:42 +08:00
topjohnwu
62e5ad3bd7 Improvements to Shell I/O 2018-07-11 19:32:42 +08:00
topjohnwu
89fe8eade8 Throw exception when no root is available 2018-07-11 19:32:42 +08:00
topjohnwu
36a7faa3ca Separate SuFile implementation
Better encapsulation, and we can check root access before actually use ShellFile
2018-07-11 19:32:42 +08:00
topjohnwu
bc17270a60 Allow initializer to run in BusyBox environment 2018-07-11 19:32:42 +08:00
topjohnwu
4ac7cd0a36 Decrease minSdkVersion to real minimum required 2018-07-11 19:32:42 +08:00
topjohnwu
6ffcf231a6 1.2.0 release 2018-06-20 04:11:48 +08:00
topjohnwu
99f014f9a4 More error handling in non-static APIs 2018-06-20 04:02:31 +08:00
topjohnwu
1ab74ce7d4 Disable Java 8 desugaring in example to test full Java 7 support 2018-06-20 02:36:55 +08:00
topjohnwu
ad9d26b9ed ShellImpl optimizations 2018-06-19 21:06:27 +08:00
topjohnwu
87e15454ce Make all callbacks run on the main thread (UI thread) 2018-06-19 21:05:30 +08:00
topjohnwu
280f188657 Completely prevent name clash in SuFile 2018-06-19 06:20:32 +08:00
topjohnwu
54902d19ac SuFile should always use Shell
The previous logic to determine whether to use shell is incorrect. SuFile should always use root by default.
2018-06-19 05:28:12 +08:00
topjohnwu
baf374cd7f Remove unnecessary method 2018-06-19 01:23:33 +08:00
topjohnwu
7c67e5b86a Update Example for more demonstration 2018-06-19 00:15:47 +08:00
topjohnwu
12eafe47de New Initializer implementation 2018-06-18 22:59:31 +08:00
topjohnwu
b9e62a3e40 Fix BusyBox installation
On some Android versions, "busybox --install" cannot be called without root permissions.
So instead we use a shell, which could have root, to run the command for us.
2018-06-18 20:58:19 +08:00
topjohnwu
46f3fb5d55 Update to busybox 1.28.4 2018-06-16 12:52:05 +08:00
topjohnwu
a8f1469e11 Update gradle stuffs 2018-06-16 05:43:24 +08:00
topjohnwu
1de4351f0e Update gradle stuffs 2018-04-05 18:17:22 +08:00
topjohnwu
8072a45c8e Update to busybox 1.28.1 2018-02-22 00:57:49 +08:00
John Wu
16bc30036f
Update README.md 2018-02-22 00:33:38 +08:00
topjohnwu
c64e86c2b7 Update Javadoc 2018-02-21 23:38:41 +08:00
topjohnwu
743133f3e0 Improve SuFile implementation 2018-02-21 21:53:46 +08:00
topjohnwu
f44d98cbc3 Optimizations 2018-02-21 17:16:37 +08:00
topjohnwu
ffdbbb81d0 Cleanup trailing null chars 2018-02-12 22:12:58 +08:00
topjohnwu
49b138243e Prevent accidental injection 2018-02-12 20:00:55 +08:00
topjohnwu
d660f45e3d Reduce unnecessary readlinks 2018-02-12 19:54:37 +08:00
topjohnwu
233cc70bcb Set busybox PATH before running initializer 2018-02-10 15:57:50 +08:00
topjohnwu
c678c98d33 Add shell based streams 2018-02-08 06:33:53 +08:00
topjohnwu
c51409cb82 Update Shell implementation 2018-02-08 06:17:46 +08:00
topjohnwu
561b45e2d9 Significantly improve ShellFileIO speed 2018-02-07 07:02:54 +08:00
topjohnwu
65de8aa3a8 Add more low level APIs 2018-02-07 04:53:18 +08:00
topjohnwu
01fe1c8092 Add built-in busybox 2018-02-06 06:00:16 +08:00
topjohnwu
ba094a6398 Add process backed su file streams 2018-02-06 03:16:45 +08:00
topjohnwu
2e9211985f Bug fixes 2018-02-06 02:48:01 +08:00
topjohnwu
e76f817e83 Workaround weird concurrent impl. on some devices 2018-02-05 05:15:10 +08:00
topjohnwu
1f54b2712b Add SuRandomAccessFile 2018-02-05 04:33:23 +08:00
topjohnwu
0d16da0f53 Small adjustments 2018-02-05 03:51:08 +08:00
topjohnwu
28e91a9d87 Support proper canonical paths 2018-02-04 21:47:50 +08:00
topjohnwu
38d8b1d8a0 Several concurrent fixes and improvements 2018-02-04 16:57:55 +08:00
topjohnwu
6b0ac26340 Use retrolambda to use Java 8 features 2018-02-04 04:00:19 +08:00
topjohnwu
a42f34fceb Change SuFile constructor 2018-02-04 01:33:23 +08:00
topjohnwu
dd9d7139cf Improve Javadoc 2018-02-03 18:53:37 +08:00
topjohnwu
f91924f7a6 Separate implementation and restructure 2018-02-03 18:00:19 +08:00
topjohnwu
dbbed580a5 Add SuFile 2018-02-03 02:30:14 +08:00
John Wu
daf34150bc
Update README.md 2018-02-01 04:36:33 +08:00
topjohnwu
729c28d0c2 Prevent NPE when GC is calling finalize 2018-02-01 04:33:02 +08:00