| commit | 211e03015268e50354b6192520ea369c9c6c23d7 | [log] [tgz] |
|---|---|---|
| author | Haofan Wang <haofanw@google.com> | Mon Aug 12 17:33:12 2024 +0000 |
| committer | Haofan Wang <haofanw@google.com> | Mon Aug 12 20:10:26 2024 +0000 |
| tree | 7d31618715caa40f7a3c1514f63c2ed47243f8eb | |
| parent | cdd4658347af127518a997d5259fe9071cad597f [diff] |
[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