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

Commit 2f0ecd74 authored by Pratik Kathalkar's avatar Pratik Kathalkar Committed by Venkatarama Avadhani (xWF)
Browse files

Use the package name from the application info if the current package name is not available.



Summary: ActivityThread.currentPackageName() will result in a null string when called from the system server, causing a crash in JNI because it doesn't expect the name to be null.

This change is needed to support calling MediaRecorder from within the system server.

Flag: EXEMPT bugfix
Bug: 414844439

Test: Successful Build on master branch

Signed-off-by: default avatarPratik Kathalkar <pkathalk@meta.com>
(cherry picked from https://android-review.googlesource.com/q/commit:c2a1a4c03a73551d7e31343741793cf8920ea132)
Merged-In: I1180b71e8fe36919b803e52097ddd603b6de9a5b
Change-Id: I1180b71e8fe36919b803e52097ddd603b6de9a5b
parent e96acc16
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