HAP maintains a comprehensive list of services requiring authorization. While this list changes periodically, services commonly requiring a 5.1 Authorization Code typically include:
Note: Preventive care and routine office visits typically do not require prior authorization, but it is the provider's responsibility to verify benefits before rendering service. hap 5.1 authorization code
If your app needs to check if a specific authentication app or service is installed (e.g., a companion banking app or a specific browser), you must declare the package name. HAP maintains a comprehensive list of services requiring
Code Example:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app">
<!-- Authorization Code/Block Start -->
<queries>
<!-- Authorize interaction with a specific package -->
<package android:name="com.example.targetauthapp" />
<!-- Example: Authorize interaction with Google Chrome -->
<package android:name="com.android.chrome" />
</queries>
<!-- Authorization Code/Block End -->
<application ... >
...
</application>
</manifest>
| Method | Primary Use | Duration | |--------|-------------|----------| | Setup Code | First-time ownership | Permanent (until reset) | | Authorization Code | Secondary controller addition | Single use / 5 min | | Long-term key | Ongoing control | Months | | Session key | One encrypted session | Hours | Note: Preventive care and routine office visits typically