JPackage and ask for microphone permissions broken on OSX...

Filteredaccount1 filteredaccount1 at gmail.com
Tue Aug 24 10:08:33 UTC 2021


Hi Andy,

During the wait for JDK 18, would it be possible to describe on the bug ticket what manual workaround steps are required to apply to an existing jPackaged app for distribution both inside and outside the app store?

There are two info.plist files inside a jPackaged app. In my experience adding keys to both didn’t turn the ask microphone permissions on.

<key>com.apple.security.device.audio-input</key>
<true/>
<key>NSMicrophoneUsageDescription</key>
<string>The application is requesting access to the microphone.</string>

Also, I raised at http://bugreport.java.com/ 9071230. So developer time isn’t wasted, could this be cancelled? (seems setup so the general public cannot).

Thank You,

Ben S.


> Date: Wed, 18 Aug 2021 08:43:08 -0400
> From: Andy Herrick <andy.herrick at oracle.com>
> To: core-libs-dev at openjdk.java.net
> Subject: Re: JPackage and ask for microphone permissions broken on
>    OSX...
> Message-ID: <1534b02b-262a-f338-aae5-d1693d0072b3 at oracle.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> OK - I have reproduced this problem, filed an issue, and found the fix.
> 
> You can see the issue in https://bugs.openjdk.java.net/browse/JDK-8272639.
> 
> Basically another key is needed in application plist to cause 
> application to ask for microphone access.
> 
> It is far to late to get any fix into JDK17, but I will fix in JDK18 and 
> you can work around this issue in JDK17 (or JDK16) by using the 
> --resource-dir option:


More information about the core-libs-dev mailing list