Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 211e0301 authored by Haofan Wang's avatar Haofan Wang
Browse files

[0001] Fix segfault from double tuner closure

The JNI nativeClose() does not support closing twice. The tuner SP is
set to null. On the second usage, it derefs it. Although the app
shouldn't close the tuner twice, it solves the double close() issue from
the CTS.

Bug: 356779633
Test: atest android.media.tv.tuner.cts.TunerTest on cuttlefish
Flag: EXEMPT bugfix

(cherry picked from https://android-review.googlesource.com/q/commit:394903a386df2289c8320e9566f7396730a16c12)
Merged-In: Ie4abdc5bf6cdcc6265383a76cfa671e06accc1a2
Change-Id: Ie4abdc5bf6cdcc6265383a76cfa671e06accc1a2
parent cdd46583
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment