File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
java/com/github/gzuliyujiang/oaid/impl Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2222 <uses-permission
2323 android : name =" android.permission.WRITE_SETTINGS"
2424 tools : ignore =" ProtectedPermissions" />
25+ <uses-permission android : name =" com.google.android.gms.permission.AD_ID" />
2526 <uses-permission android : name =" com.asus.msa.SupplementaryDID.ACCESS" />
2627 <uses-permission android : name =" freemme.permission.msa" />
2728
Original file line number Diff line number Diff line change @@ -69,8 +69,9 @@ public void doGet(final IGetter getter) {
6969 public String callRemoteInterface (IBinder service ) throws OAIDException , RemoteException {
7070 IAdvertisingIdService anInterface = IAdvertisingIdService .Stub .asInterface (service );
7171 if (anInterface .isLimitAdTrackingEnabled (true )) {
72- // 实测在系统设置中停用了广告化功能也是能获取到广告标识符的
7372 OAIDLog .print ("User has disabled advertising identifier" );
73+ // 从2022年开始,当isLimitAdTrackingEnabled()为true时,无论应用的目标SDK级别如何,getId()的返回值都是00000000-0000-0000-0000-000000000000
74+ throw new OAIDException ("AAID acquire failed" );
7475 }
7576 return anInterface .getId ();
7677 }
You can’t perform that action at this time.
0 commit comments