Skip to content
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

API Compatibility Issues #8

Open
lilicoding opened this issue Feb 11, 2017 · 2 comments
Open

API Compatibility Issues #8

lilicoding opened this issue Feb 11, 2017 · 2 comments

Comments

@lilicoding
Copy link

Dear developers,

We have recently developed a state-of-the-art static analysis tool for uncovering API compatibility issues in Android apps. Applying this tool to open source apps on F-droid, we have exposed a few instances of compatibility issues and submitting them to development teams for a fix.

For your app, we have found that this project has accessed the following APIs which are available only on an API level higher than the declared minSdkVersion and which are accessed without proper protection. In other words, if those APIs get called at runtime, it will trigger a NoSuchMethodError and thus result in a crash of the running application.

<android.nfc.NdefRecord: android.nfc.NdefRecord createApplicationRecord(java.lang.String)>:[14,25]
<java.util.concurrent.ThreadLocalRandom: int nextInt(int,int)>:[21,25]
<android.nfc.tech.NfcBarcode: android.nfc.tech.NfcBarcode get(android.nfc.Tag)>:[17,25]
<android.nfc.NdefMessage: int getByteArrayLength()>:[16,25]
<java.util.concurrent.ThreadLocalRandom: java.util.concurrent.ThreadLocalRandom current()>:[21,25]

Note that, because of the nature of the static analysis, we cannot confirm whether the flagged APIs would actually be called at runtime (e.g., unreachable code). However, we still believe that those APIs, which may cause compatibility issues, should not be accessed or at least be accessed with proper protections.

In addition to the aforementioned APIs (i.e., backward-compatibility), which could cause app crashes if accessed, we have also identified that this project has also accessed some APIs that have been removed from the latest public SDK, making the app possibly suffer from forward-compatibility issues.

NONE

We would be very much appreciated if you can acknowledge to us that those reported APIs are indeed problematic for the project’s long-term stability. please let us know if you need any more information relating to this issue report.

@natrius
Copy link

natrius commented May 8, 2018

Sounds like i encountered this problem: Options - Tag Information - Scan a tag - App just closes and reopens again.

@mofosyne
Copy link
Owner

mofosyne commented May 9, 2018

Yeah, one thing I would like to do if I get the time (or anyone else does) is to investigate this issue. Do you have a crash log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants