Closed Bug 1510662 Opened 6 years ago Closed 2 years ago

Lint Warning: Using Private APIs

Categories

(GeckoView :: General, enhancement, P5)

Unspecified
Android
enhancement

Tracking

(firefox112 wontfix, firefox113 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
firefox112 --- wontfix
firefox113 --- fixed

People

(Reporter: fluffyemily, Assigned: nkitanand, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=java])

Attachments

(1 file)

Using reflection to access hidden/private Android APIs is not safe; it will often not work on devices from other vendors, and it may suddenly stop working (if the API is removed) or crash spectacularly (if the API behavior changes, since there are no guarantees for compatibility). Affected Classes: SharedMemory Util
Keywords: good-first-bug
OS: Unspecified → Android
Priority: -- → P5
Product: Firefox for Android → GeckoView
Severity: normal → S3

Enhancements should have severity N/A.

Severity: S3 → N/A
Mentor: m_kato
Whiteboard: [lang=java]

I wish to work on this issue.

Shall I change @SuppressLint("PrivateApi") to @SuppressLint({"PrivateApi", "DiscouragedPrivateApi"}) in Util.java ?

(In reply to Ankit Anand from comment #4)

Shall I change @SuppressLint("PrivateApi") to @SuppressLint({"PrivateApi", "DiscouragedPrivateApi"}) in Util.java ?

No, don't touch this file since under mobile/android/exoplayer2 is third party source code.

Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/75ea2b4ddd60 Suppress Lint Warning: Using Private APIs. r=m_kato,geckoview-reviewers
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: