2019-08-27 13:21:15 +02:00
|
|
|
# Third-party libraries
|
2018-12-03 22:46:43 +01:00
|
|
|
|
2019-08-27 13:21:15 +02:00
|
|
|
This file list third-party libraries used in the Android source folder,
|
|
|
|
with their provenance and, when relevant, modifications made to those files.
|
2018-12-03 22:46:43 +01:00
|
|
|
|
|
|
|
## Google's vending library
|
|
|
|
|
|
|
|
- Upstream: https://github.com/google/play-licensing/tree/master/lvl_library/src/main/java/com/google/android/vending
|
|
|
|
- Version: git (eb57657, 2018) with modifications
|
|
|
|
- License: Apache 2.0
|
|
|
|
|
2019-08-27 13:21:15 +02:00
|
|
|
Overwrite all files under `com/google/android/vending`.
|
2018-12-03 22:46:43 +01:00
|
|
|
|
2019-08-27 13:21:15 +02:00
|
|
|
Modify those files to avoid compile error and lint warning:
|
2018-12-03 22:46:43 +01:00
|
|
|
|
2019-08-27 13:21:15 +02:00
|
|
|
- `com/google/android/vending/licensing/util/Base64.java`
|
|
|
|
|
|
|
|
```diff
|
2018-12-03 22:46:43 +01:00
|
|
|
@@ -338,7 +338,8 @@ public class Base64 {
|
|
|
|
e += 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
- assert (e == outBuff.length);
|
|
|
|
+ if (BuildConfig.DEBUG && e != outBuff.length)
|
|
|
|
+ throw new RuntimeException();
|
|
|
|
return outBuff;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2019-08-27 13:21:15 +02:00
|
|
|
- `com/google/android/vending/licensing/LicenseChecker.java`
|
|
|
|
|
|
|
|
```diff
|
2018-12-03 22:46:43 +01:00
|
|
|
@@ -29,8 +29,8 @@ import android.os.RemoteException;
|
|
|
|
import android.provider.Settings.Secure;
|
|
|
|
import android.util.Log;
|
|
|
|
|
|
|
|
-import com.android.vending.licensing.ILicenseResultListener;
|
|
|
|
-import com.android.vending.licensing.ILicensingService;
|
|
|
|
+import com.google.android.vending.licensing.ILicenseResultListener;
|
|
|
|
+import com.google.android.vending.licensing.ILicensingService;
|
|
|
|
import com.google.android.vending.licensing.util.Base64;
|
|
|
|
import com.google.android.vending.licensing.util.Base64DecoderException;
|
|
|
|
```
|