-
Notifications
You must be signed in to change notification settings - Fork 2
uraniborg/Hubble: Housekeeping on build params and deprecations. #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,6 +95,7 @@ private boolean initialize() { | |
| // this allows us to get APEX packages when calling getInstalledPackages | ||
| final int MATCH_APEX = 0x40000000; | ||
|
|
||
| @SuppressWarnings("deprecation") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| private void getInstalledPackagesInformation() { | ||
| String tag = TAG + "-PKGS"; | ||
|
|
||
|
|
@@ -127,6 +128,7 @@ private void getInstalledPackagesInformation() { | |
| Log.d(tag, String.format("There are %d packages (including APEX)", mAllPackages.size())); | ||
| } | ||
|
|
||
| @SuppressWarnings("deprecation") | ||
| private void getAllCertificates() { | ||
| final String tag = TAG + "-CERT"; | ||
| for (String pkgName : mAllPackages.keySet()) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,6 +85,7 @@ public class PackageMetadata extends BaseInfo { | |
| * @param packageManager A valid {@link PackageManager} object used to load app description. | ||
| * @return a valid {@link PackageMetadata} object containing parsed information about the APK. | ||
| */ | ||
| @SuppressWarnings("deprecation") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Applying |
||
| static public PackageMetadata parse(Context context, @NotNull PackageInfo packageInfo, | ||
| @NotNull PackageManager packageManager) { | ||
| PackageMetadata result = new PackageMetadata(); | ||
|
|
@@ -494,6 +495,7 @@ public void parseRequestedPermissions() { | |
| * {@link PackageMetadata#permissionsDeclared} field. | ||
| * @return <code>true</code> if no errors were encountered. <code>false</code> otherwise. | ||
| */ | ||
| @SuppressWarnings("deprecation") | ||
| public boolean parseDeclaredPermissions() { | ||
| final String TAG = "getDeclaredPerms"; | ||
| PermissionInfo[] perms = ref.permissions; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
JavaVersion.VERSION_17fortargetCompatibilitywith aminSdkVersionof 23 can lead to runtime crashes (such asVerifyError) on older devices (pre-Android 12) because Java 17 bytecode features are not natively supported by older Android runtimes. Since core library desugaring is not enabled in this project, it is safer to useVERSION_11or ensure that desugaring is configured to handle the higher bytecode version on older ART runtimes.