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:Pratik Kathalkar <pkathalk@meta.com> (cherry picked from https://android-review.googlesource.com/q/commit:c2a1a4c03a73551d7e31343741793cf8920ea132) Merged-In: I1180b71e8fe36919b803e52097ddd603b6de9a5b Change-Id: I1180b71e8fe36919b803e52097ddd603b6de9a5b
Loading
Please register or sign in to comment