AM Debug v2.7.0 Run#1491
Refactor Use hidden API to fetch UID name
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Use hidden API to fetch UID name
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1492
Refactor Prevent IDE from inferring throwable from hidden API
For any method used in the hidden API library, Android Studio or IntelliJ may
infer the return value to be null or 0/false since all stub methods call
UnsupportedOperationException. Instead of calling the exception directly, it is
called from another utility class (removed during compilation) where the output
is forcefully set to “any”.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Prevent IDE from inferring throwable from hidden API
For any method used in the hidden API library, Android Studio or IntelliJ may
infer the return value to be null or 0/false since all stub methods call
UnsupportedOperationException. Instead of calling the exception directly, it is
called from another utility class (removed during compilation) where the output
is forcefully set to “any”.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1494
Use activity manager to fetch running apps.
Try to get the running package from activity manager.
Signed-off-by: Vu Hoan Huy <vuhoanhuy99@gmail.com>
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Use activity manager to fetch running apps.
Try to get the running package from activity manager.
Signed-off-by: Vu Hoan Huy <vuhoanhuy99@gmail.com>
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1495
Main Optimize fetching running app processes
For unprivileged users, AM is returned as the only running apps.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Main Optimize fetching running app processes
For unprivileged users, AM is returned as the only running apps.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1496
RunningApps Display running apps for shared UID and PID
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
RunningApps Display running apps for shared UID and PID
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1498
Main Enable “running apps” filter in no-root mode
Currently, “running apps” filter only works in root/ADB mode. This commit
adds “running apps” filter in no-root mode by utilising
android.permission.DUMP to fetch running applications.
Signed-off-by: Vu Hoan Huy <vuhoanhuy99@gmail.com>
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Main Enable “running apps” filter in no-root mode
Currently, “running apps” filter only works in root/ADB mode. This commit
adds “running apps” filter in no-root mode by utilising
android.permission.DUMP to fetch running applications.
Signed-off-by: Vu Hoan Huy <vuhoanhuy99@gmail.com>
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1499
Refactor Fetch running apps/services directly when required
In no-root mode, if android.permission.DUMP is not granted, App Manager will
use the ActivityManager to fetch running processes and services. For Android
Lollipop, this will return all running processes and services, and for Android
M and later, this will only return the processes and services under the UID
where App Manager is running (currently, this means that it will list App
Manager only).
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Fetch running apps/services directly when required
In no-root mode, if android.permission.DUMP is not granted, App Manager will
use the ActivityManager to fetch running processes and services. For Android
Lollipop, this will return all running processes and services, and for Android
M and later, this will only return the processes and services under the UID
where App Manager is running (currently, this means that it will list App
Manager only).
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1500
LogView Fix record log widget
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
LogView Fix record log widget
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1501
Refactor Update HiddenApiRefinePlugin to 3.0.3
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Refactor Update HiddenApiRefinePlugin to 3.0.3
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
AM Debug v2.7.0 Run#1502
Installer Various fixes
1. Fixed installation completion notification skipped in some cases
2. Display installation progress dialog. The dialog can be hidden by clicking
on the “background” button. When “background” is selected, both “confirm
installation” and “installation completed” dialogs will be displayed in
notifications. This button is unavailable on Android TV (Oreo or later)
since notifications are disabled for third-party apps.
3. Improved “loading” dialog to replicate AOSP behaviour.
4. Fixed PackageInstallerActivity from closing abruptly when a non-root user
clicks on the “install” button in the confirmation dialog but one or more
APK files still need processing.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
Installer Various fixes
1. Fixed installation completion notification skipped in some cases
2. Display installation progress dialog. The dialog can be hidden by clicking
on the “background” button. When “background” is selected, both “confirm
installation” and “installation completed” dialogs will be displayed in
notifications. This button is unavailable on Android TV (Oreo or later)
since notifications are disabled for third-party apps.
3. Improved “loading” dialog to replicate AOSP behaviour.
4. Fixed PackageInstallerActivity from closing abruptly when a non-root user
clicks on the “install” button in the confirmation dialog but one or more
APK files still need processing.
Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>