Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file added licensing/lib/httpclient-4.5.jar
Binary file not shown.
Binary file added licensing/lib/httpcore-4.4.1.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions licensing/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0
apiversion: 2
version: 2.0
apiversion: 3
architectures: armeabi-v7a x86
description: Google Play Licensing
author: Sofi Software LLC
license: Apache 2.0
Expand All @@ -15,4 +16,4 @@ name: licensing
moduleid: com.sofisoftwarellc.licensing
guid: 23d1612e-5ba4-4516-b46e-825802eac093
platform: android
minsdk: 2.1.3.GA
minsdk: 6.0.0.GA
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ public synchronized void checkAccess(LicenseCheckerCallback callback) {
.bindService(
new Intent(
new String(
Base64.decode("Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U=")))
// https://code.google.com/p/android/issues/detail?id=78505
.setPackage("com.android.vending"),
Base64.decode("Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U="))).setPackage("com.android.vending"),
this, // ServiceConnection.
Context.BIND_AUTO_CREATE);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ public void verify(PublicKey publicKey, int responseCode, String signedData, Str
if (responseCode == LICENSED || responseCode == NOT_LICENSED ||
responseCode == LICENSED_OLD_KEY) {
// Verify signature.
if (signedData==null){
Log.e(TAG, "signedData was null.");
handleInvalidResponse();
return;
}
try {
Signature sig = Signature.getInstance(SIGNATURE_ALGORITHM);
sig.initVerify(publicKey);
Expand Down