Add maxTargetSdk restriction to unused APIs.

These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to remove
from the unsupported list.

Bug: 170729553
Test: Treehugger
Change-Id: I54fce50d3fb9d3ba02eae312c478bac419a46ede
This commit is contained in:
Mathew Inwood 2020-10-21 12:00:48 +00:00
parent e0b6606138
commit 271f57b52c

View file

@ -30,9 +30,9 @@ import android.security.keystore.IKeystoreCertificateChainCallback;
* @hide
*/
interface IKeystoreService {
@UnsupportedAppUsage
@UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
int getState(int userId);
@UnsupportedAppUsage
@UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
byte[] get(String name, int uid);
@UnsupportedAppUsage
int insert(String name, in byte[] item, int uid, int flags);
@ -40,7 +40,7 @@ interface IKeystoreService {
int del(String name, int uid);
@UnsupportedAppUsage
int exist(String name, int uid);
@UnsupportedAppUsage
@UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
String[] list(String namePrefix, int uid);
int onUserPasswordChanged(int userId, String newPassword);
int lock(int userId);