AM Debug v2.7.0 Run#1384
Refactor Fix ADB connection issue when ADB over TCP mode is selected
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Fix ADB connection issue when ADB over TCP mode is selected
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1385
Refactor Skip checking for remote server if no-root mode is enabled.
When no-root mode is enabled and the remote server is still running due to the
past use of ADB over TCP or Wireless Debugging, App Manager throws an error
while checking for the remote server since it is still running in the
background. This behaviour is now overridden by adding an explicit check for
no-root mode i.e., App Manager will not check for the remote server if no-root
mode is explicitly enabled.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Skip checking for remote server if no-root mode is enabled.
When no-root mode is enabled and the remote server is still running due to the
past use of ADB over TCP or Wireless Debugging, App Manager throws an error
while checking for the remote server since it is still running in the
background. This behaviour is now overridden by adding an explicit check for
no-root mode i.e., App Manager will not check for the remote server if no-root
mode is explicitly enabled.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1386
FM Add the ability to edit/modify files via external apps
It is possible to edit or modify any files, including the files only accessible
via root, using third-party applications. It uses a custom content provider
with Linux pipe in order to achieve that. Therefore, there are many well-known
limitations including the inability to reading and writing concurrently. It
also means that the reading/writing speed is slower than the direct approach.
Despite all these limitations, sufficient care has been taken to ensure that
the file denoscriptor supports all the supported flags (or modes), and it is up
to the editor or viewer to ensure that the file is being read or written
correctly. Some file managers, including MiXplorer, do not truncate files i.e.
they do not use the “t” mode during writing which can cause problems if the
edited file contains less text than it initially did.
It should be ideal to replace the content provider with document provider which
might be considered later considering the lack of support for such provider by
third-party applications.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
FM Add the ability to edit/modify files via external apps
It is possible to edit or modify any files, including the files only accessible
via root, using third-party applications. It uses a custom content provider
with Linux pipe in order to achieve that. Therefore, there are many well-known
limitations including the inability to reading and writing concurrently. It
also means that the reading/writing speed is slower than the direct approach.
Despite all these limitations, sufficient care has been taken to ensure that
the file denoscriptor supports all the supported flags (or modes), and it is up
to the editor or viewer to ensure that the file is being read or written
correctly. Some file managers, including MiXplorer, do not truncate files i.e.
they do not use the “t” mode during writing which can cause problems if the
edited file contains less text than it initially did.
It should be ideal to replace the content provider with document provider which
might be considered later considering the lack of support for such provider by
third-party applications.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1387
Refactor Reimplementation of ProxyInputStream
Java's default FileInputStream is unusable in App Manager due to its limitations as well as complexity. Instead, the underlying file denoscriptor is used directly for reading a file, effectively making it the same as FileInputStream with additional support for our proxy files. However, for root and ADB mode of operations, it reads a file remotely using a remote service. Hence, previous limitations still apply.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Reimplementation of ProxyInputStream
Java's default FileInputStream is unusable in App Manager due to its limitations as well as complexity. Instead, the underlying file denoscriptor is used directly for reading a file, effectively making it the same as FileInputStream with additional support for our proxy files. However, for root and ADB mode of operations, it reads a file remotely using a remote service. Hence, previous limitations still apply.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1388
Refactor Reimplementation of ProxyOutputStream
Java's default FileOutputStream is unusable in App Manager due to its
limitations as well as complexity. Instead, the underlying file denoscriptor is
used directly for writing a file, effectively making it the same as
FileOutputStream with additional support for our proxy files. However, for root
and ADB mode of operations, it writes to a file remotely using a remote
service. Hence, the previous limitations still apply.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Reimplementation of ProxyOutputStream
Java's default FileOutputStream is unusable in App Manager due to its
limitations as well as complexity. Instead, the underlying file denoscriptor is
used directly for writing a file, effectively making it the same as
FileOutputStream with additional support for our proxy files. However, for root
and ADB mode of operations, it writes to a file remotely using a remote
service. Hence, the previous limitations still apply.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1389
Refactor Remove FileProvider in favour of FmProvider
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Remove FileProvider in favour of FmProvider
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1390
1ClickOps Retrieve packages directly using Binder
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
1ClickOps Retrieve packages directly using Binder
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1391
FM Add truncation mode if not supplied by the app
Some apps may not supply the “t” (truncation) mode when they should. In the
event that they do not, App Manager set it by default.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
FM Add truncation mode if not supplied by the app
Some apps may not supply the “t” (truncation) mode when they should. In the
event that they do not, App Manager set it by default.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1392
Tests Added shadows for ProxyInputStream and ProxyOutputStream
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Tests Added shadows for ProxyInputStream and ProxyOutputStream
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1393
Installer Ignore exceptions during cleaning up old sessions
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Installer Ignore exceptions during cleaning up old sessions
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>