Skip to content

Commit

Permalink
Merge pull request #95 from a365344743s/master
Browse files Browse the repository at this point in the history
fix #94
  • Loading branch information
liyujiang-gzu authored Oct 15, 2024
2 parents d49201c + 58f5441 commit 3536223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<uses-permission
android:name="android.permission.WRITE_SETTINGS"
tools:ignore="ProtectedPermissions" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
<uses-permission android:name="com.asus.msa.SupplementaryDID.ACCESS" />
<uses-permission android:name="freemme.permission.msa" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ public void doGet(final IGetter getter) {
public String callRemoteInterface(IBinder service) throws OAIDException, RemoteException {
IAdvertisingIdService anInterface = IAdvertisingIdService.Stub.asInterface(service);
if (anInterface.isLimitAdTrackingEnabled(true)) {
// 实测在系统设置中停用了广告化功能也是能获取到广告标识符的
OAIDLog.print("User has disabled advertising identifier");
// 从2022年开始,当isLimitAdTrackingEnabled()为true时,无论应用的目标SDK级别如何,getId()的返回值都是00000000-0000-0000-0000-000000000000
throw new OAIDException("AAID acquire failed");
}
return anInterface.getId();
}
Expand Down

0 comments on commit 3536223

Please sign in to comment.