This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
97 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
fake-store/src/main/aidl/com/android/vending/licensing/ILicenseResultListener.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2010 The Android Open Source Project | ||
* SPDX-FileCopyrightText: 2023 microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.android.vending.licensing; | ||
|
||
interface ILicenseResultListener { | ||
oneway void verifyLicense(int responseCode, String signedData, String signature); | ||
} |
11 changes: 11 additions & 0 deletions
11
fake-store/src/main/aidl/com/android/vending/licensing/ILicenseV2ResultListener.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2010 The Android Open Source Project | ||
* SPDX-FileCopyrightText: 2023 microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.android.vending.licensing; | ||
|
||
interface ILicenseV2ResultListener { | ||
oneway void verifyLicense(int responseCode, in Bundle responsePayload); | ||
} |
16 changes: 16 additions & 0 deletions
16
fake-store/src/main/aidl/com/android/vending/licensing/ILicensingService.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2010 The Android Open Source Project | ||
* SPDX-FileCopyrightText: 2023 microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.android.vending.licensing; | ||
|
||
import com.android.vending.licensing.ILicenseResultListener; | ||
import com.android.vending.licensing.ILicenseV2ResultListener; | ||
|
||
interface ILicensingService { | ||
oneway void checkLicense(long nonce, String packageName, ILicenseResultListener listener); | ||
oneway void checkLicenseV2(String packageName, ILicenseV2ResultListener listener, in Bundle extraParams); | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
fake-store/src/main/java/com/android/vending/licensing/LicensingService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.android.vending.licensing; | ||
|
||
import android.app.Service; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.os.IBinder; | ||
import android.os.RemoteException; | ||
import android.util.Log; | ||
|
||
public class LicensingService extends Service { | ||
private static final String TAG = "FakeLicenseService"; | ||
|
||
private final ILicensingService.Stub mLicenseService = new ILicensingService.Stub() { | ||
|
||
@Override | ||
public void checkLicense(long nonce, String packageName, ILicenseResultListener listener) throws RemoteException { | ||
Log.d(TAG, "checkLicense(" + nonce + ", " + packageName + ")"); | ||
// We don't return anything yet. Seems to work good for some checkers. | ||
} | ||
|
||
@Override | ||
public void checkLicenseV2(String packageName, ILicenseV2ResultListener listener, Bundle extraParams) throws RemoteException { | ||
Log.d(TAG, "checkLicenseV2(" + packageName + ", " + extraParams + ")"); | ||
// We don't return anything yet. Seems to work good for some checkers. | ||
} | ||
}; | ||
|
||
public IBinder onBind(Intent intent) { | ||
return mLicenseService; | ||
} | ||
} |