Commit Graph

2974 Commits

Author SHA1 Message Date
VishnuSanal 0a0b041754 check null values on cursor args 2022-09-25 15:32:25 +05:30
Raymond Lai 67d6712547 Use Completable instead of Flowable to refresh Drawer
Fixes #3478
2022-09-24 22:24:50 +08:00
Vishal Nehra e764f0ffff Merge pull request #3502 from TeamAmaze/bugfix/extract-service-correct-context
Fix ExtractService use of Context
2022-09-24 15:34:25 +05:30
Vishal Nehra 33b1d29341 Merge pull request #3501 from TeamAmaze/bugfix/2284-kitkat
Lower threshold of CustomNavigationView.isNavigationViewSavedStateMissing() down to API 19
2022-09-24 15:29:36 +05:30
Vishal Nehra fc7d11c0ba Merge pull request #3495 from TranceLove/feature/fdroid-friendly-tests
F-Droid friendly codebase
2022-09-24 15:21:48 +05:30
Raymond Lai 27d1e2b26a Fix ExtractService use of Context
- Toast uses getApplicationContext() instead of provided ones or ExtractService itself, which caused ExtractServiceTest to fail after timeout when built with Gradle 7.4
- Remove unnecessary reference to Context as local variable
2022-09-24 11:21:51 +08:00
Raymond Lai 92256a74d1 Lower threshold of CustomNavigationView.isNavigationViewSavedStateMissing() down to API 19
Fixes #2284
Fixes #3497
2022-09-23 23:43:04 +08:00
Vishal Nehra 10880ce089 Bump version 2022-09-22 01:53:48 +05:30
Raymond Lai 1fd05f83f5 F-Droid friendly tests
To make `gradlew clean spotlessApply spotlessCheck jacocoTestFdroidDebugUnitTestReport assembleDebug` build workflow also work seamlessly,

- Moved RAR related tests to testPlay directory
- CompressedHelperCallableTestSuite for different flavours
- ExtractorTestSuite for different flavours
- Added build variant checking in CompressedHelperTest and ExtractServiceTest
2022-09-22 00:42:54 +08:00
Raymond Lai 6d6a192137 Fix database migration for anonymous connections
Fixes #3488. Forgotten possibility of anonymous connection having no credentials, sorry.
2022-09-21 23:10:48 +08:00
TranceLove 92fee71f5c Fix failing Espresso tests 2022-09-20 16:11:27 +08:00
Vishal Nehra 4e2bba1711 Bump version number 2022-09-19 23:51:23 +05:30
Vishal Nehra dfd79aa559 Merge branch 'transifex-translations' of ssh://github.com/TeamAmaze/AmazeFileManager into hotfix/3.8.1 2022-09-19 23:44:13 +05:30
Vishal Nehra e48d9c90b3 Fix comments 2022-09-19 23:40:21 +05:30
Vishal Nehra 09f99c3ef9 Show warning while adding cloud connection on fdroid build 2022-09-19 23:06:00 +05:30
Vishal Nehra a21028e4f3 3229 Dismiss processing dialog only when it's showing 2022-09-19 17:25:04 +05:30
Vishal Nehra 8d421aa938 3480 Fix exception while decoding non utf 8 paths 2022-09-19 13:22:45 +05:30
transifex-integration[bot] 4eb9d20c29 Apply translations in he
translation completed for the source file '/app/src/main/res/values/strings.xml'
on the 'he' language.
2022-09-19 03:51:18 +00:00
Vishal Nehra 3585639703 Bump version number 2022-09-16 03:21:40 +05:30
Vishal Nehra 3797f96e37 Merge pull request #3470 from TeamAmaze/transifex-translations
Transifex translations
2022-09-16 03:05:16 +05:30
Vishal Nehra bb07c4c6e0 Merge pull request #3454 from TeamAmaze/bugfix/3453
3453 Fix folder navigation for syncthing
2022-09-16 03:04:28 +05:30
Vishal Nehra 8f8f860dce Merge pull request #3469 from TeamAmaze/feature/listing-cache
Fix use vector icon for telegram / add instagram icon
2022-09-16 02:45:09 +05:30
Vishal Nehra 5c3cddf77c Fix use vector icon for telegram / add instagram icon 2022-09-16 02:44:06 +05:30
Vishal Nehra fb454f3f96 Merge pull request #3467 from TeamAmaze/feature/listing-cache
Allow to force reload when list is cached
2022-09-16 02:43:51 +05:30
Vishal Nehra fe7633a5bb Merge pull request #3451 from TeamAmaze/feature/3450
3450 Allow to delete drag and drop files
2022-09-15 00:00:24 +05:30
Vishal Nehra 2ceb0a443b Fix spotless error 2022-09-14 23:59:24 +05:30
Vishal Nehra 9053b2b265 Merge release branch 2022-09-14 23:55:01 +05:30
Vishal Nehra 524ae360ce Fix spotless 2022-09-14 23:33:32 +05:30
Vishal Nehra f77dc3af03 Allow to force reload when list is cached 2022-09-14 22:49:33 +05:30
Raymond Lai 76ecf9f7f7 Fix cut/copy and paste within FTP server
Use an InputStream backed by the temporary file when called for copying.
2022-09-12 14:01:33 +08:00
Raymond Lai cd856d5928 Fix copy folder problem within FTP server
Due to single thread nature of FTPClient, HybridFile.forEachChildrenFile cannot perform actions within for loop

Also fix back button on FTP server problem that causing crashes
2022-09-11 11:37:19 +08:00
Raymond Lai 7d72aa4596 Fix back button not responding on FTP connection
Also fix Slf4jPrintCommandListener leaking credentials
2022-09-07 00:06:42 +08:00
Raymond Lai e7f8c5edd1 Fix back button on FTP connection failures + little code cleanup
- Remove FIXME marks in FTPClientImpl
- ConnectionInfo.queryString should be null if not specified
- OTGUtil code syntax cleanup per recommendation
2022-09-04 00:33:37 +08:00
TranceLove bf4f5f2d90 Fix FTP file copy regressions on Android 9
- Remove redundant NOOP check that causing out-of-sequence calls to FTPClient; instead use FTPClient.isAvailable as status report
- Just close in/out channels, but no need to close the underlying BufferedInputStream/BufferedOutputStream, which caused copy to break on Android 9. With the ReadableByteChannel and WriteableByteChannel wrapping the streams, closing the channel at upper level should close the streams as well
- Also added a PrintCommandListener implementation that uses slf4j logger instead of just System.out
2022-09-03 01:39:06 +08:00
Raymond Lai 2bbda37683 Migrate password encryption base64 encoding options to Base64.URL_SAFE
Unfortunately, URL unsafe characters seem to be the culprit of regressions found on some Android versions.
2022-09-01 00:13:47 +08:00
Raymond Lai 9a1f2da16c Remove FTP file list caching
Force reload with FTP LIST command on swipe down.
2022-08-31 23:54:02 +08:00
Raymond Lai e7b1ecdf76 Fix test regressions
To fix test failures at mkdir() tests, that URL encoded filenames would fail.
2022-08-31 23:54:02 +08:00
Raymond Lai 00ef830298 Fix path existence on FTP server
Slow, but it just works (tm)
2022-08-31 23:54:01 +08:00
Raymond Lai 124be29b96 Fix upload file corrupt and cannot download multiple files on FTP server
- Correct FTP TYPE I command
- Fix OutputStream wrapper at HybridFile.getOutputStream() for FTP
- Fix InputStream wrapper at HybridFile.getInputStream() for FTP
2022-08-31 23:54:01 +08:00
Raymond Lai 3b53f91ea9 Implement workarounds for FTPClient thread unsafety
To allow SshClientUtils.launchSftp successfully run for FTP files, changed order of execution to work around FTPClient's thread unsafety
2022-08-31 23:54:01 +08:00
Raymond Lai 4a2c436f17 Implement workarounds for FTPClient thread unsafety
To allow SshClientUtils.launchSftp successfully run for FTP files, changed order of execution to work around FTPClient's thread unsafety
2022-08-31 23:54:01 +08:00
Raymond Lai ac41d5cf14 Changes per PR feedback (3)
Disable any attempt to load file thumbnail on FTP files, due to thread unsafe feature of FTPClient

Also added workarounds to make sure placeholder icons are placed properly for FTP files, regardless of file thumbnail setting
2022-08-31 23:54:01 +08:00
Raymond Lai 87d9648649 Changes per PR feedback (2)
- Change default port with change of protocol selection
- AbstractGetHostInfoTask throws all exceptions on connection failures
- Add support for anonymous FTP
2022-08-31 23:54:01 +08:00
Raymond Lai 6c421af10d Changes per PR feedback
- SftpConnectDialog, remove nag screen on connection failure blocking dialog close
- Fix the thread for Toast
2022-08-31 23:54:01 +08:00
Raymond Lai 793e1b5605 Changes per PR feedback
- fix SftpConnectDialog, protocol dropdown doesn't follow system theme
- fix GetSshHostFingerprintTask throws error message on first connect to server fetching server cert info
- add condition on checking FTPClient connection validity
2022-08-31 23:54:01 +08:00
Raymond Lai 2eb43b1165 Changes per feedback
- Use slf4j Logger in SevenZipExtractor
- Add explanation on OpenMode enum SFTP, FTP and NFS

Also added file rename test.
2022-08-31 23:54:01 +08:00
TranceLove b830d19292 FTP client support
Fixes #1570.

- Refactored SshConnectionPool to more generic NetCopyClientConnectionPool
- Change SshClientTemplate to NetCopyClientTemplate
- Implement FTP client support. Defaults to passive FTP and implicit SSL for FTPS
- Add optional thread safety to NetCopyClientConnectionPool on executing NetCopyClientTemplate, as Apache FTPClient is not thread safe. This shall bring deadlocks when connecting to FTP servers, but let's see...
- Migrated GetSshHostFingerprintTask and SshAuthenticationTaskCallable to callable and RxJava, in align with FTP client implementation
- Downgrade Apache FTP server to 1.1.1, as problems found with enabling TLS at Amaze FTP server after previous upgrade to 1.1.4

Tested on Pixel 2 emulator running Android 11, against Amaze FTP server running on Oneplus 2 running Lineage OS 18.1 (11).
2022-08-31 23:53:59 +08:00
Vishal Nehra b93fb465a5 Merge pull request #3452 from TeamAmaze/feature/3449
3449 Add dont ask again for deletion dialog
2022-08-29 14:59:55 +05:30
Vishal Nehra 3497ee9075 3453 Fix folder navigation for syncthing 2022-08-29 03:55:48 +05:30
Vishal Nehra fb291ced78 3449 Fix comments 2022-08-29 03:04:03 +05:30