* Bundle on-device ML Kit OCR to fix PDF translation hang Sideloaded builds never receive Play Services install-time OCR modules, so image/PDF translation could sit forever on "Updating the text module". Ship bundled text-recognition models/native code via the build script, and cap DialogOcrLoad retries so the wait dialog cannot loop indefinitely. Bump version to 2.0.0-testing.36. Co-authored-by: KaKi87 <KaKi87@pm.me> * Add GMS dynamic API aliases for bundled OCR Bundled text-recognition-common calls IObjectWrapper.Stub.asInterface and ObjectWrapper.unwrap, but R8 renamed those to I1/f2 in this APK. Add public aliases so OCR init no longer throws NoSuchMethodError. Bump to 2.0.0-testing.37. Co-authored-by: KaKi87 <KaKi87@pm.me> * Restore ImageUtils APIs required by bundled OCR text-recognition-bundled-common calls ImageUtils.getInstance and getUprightRotationMatrix, which R8 had stripped from vision-common. Restore those methods, add ImageConvertUtils buffer helpers and ObjectWrapper.wrap for the same public API surface. Bump to 2.0.0-testing.38. Co-authored-by: KaKi87 <KaKi87@pm.me> * Move restored ImageUtils helpers to smali_classes4 classes3 is at the DEX method-ref ceiling; relocating ImageUtils and ImageConvertUtils keeps apktool builds reliable after restoring the bundled-OCR public APIs. Co-authored-by: KaKi87 <KaKi87@pm.me> * Download ML Kit OCR models at runtime from Maven Stop packaging OCR assets and native libs into the APK. DialogOcrLoad now fetches text-recognition AARs from Google Maven, extracts models + the pipeline .so, and activates them via System.load / AssetManager.addAssetPath. Keep only the small module dex in the APK (JVM jars cannot be loaded on-device). Bump to 2.0.0-testing.39. Co-authored-by: KaKi87 <KaKi87@pm.me> * Move OCR install helpers to smali_classes4 Avoid DEX method-ref overflow in classes3 when assembling DialogOcrLoad install task/progress classes. Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
28 lines
1.2 KiB
Java
28 lines
1.2 KiB
Java
package com.google.android.gms.dynamic;
|
|
|
|
import android.os.IBinder;
|
|
import android.os.IInterface;
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface IObjectWrapper extends IInterface {
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class Stub extends com.google.android.gms.internal.common.zzb implements IObjectWrapper {
|
|
/* JADX WARN: Type inference failed for: r1v1, types: [com.google.android.gms.dynamic.IObjectWrapper, com.google.android.gms.internal.common.zza] */
|
|
public static IObjectWrapper I1(IBinder iBinder) {
|
|
if (iBinder == null) {
|
|
return null;
|
|
}
|
|
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.dynamic.IObjectWrapper");
|
|
if (queryLocalInterface instanceof IObjectWrapper) {
|
|
return (IObjectWrapper) queryLocalInterface;
|
|
}
|
|
return new com.google.android.gms.internal.common.zza(iBinder, "com.google.android.gms.dynamic.IObjectWrapper");
|
|
}
|
|
|
|
/** Public API alias for bundled ML Kit OCR (expects asInterface). */
|
|
public static IObjectWrapper asInterface(IBinder iBinder) {
|
|
return I1(iBinder);
|
|
}
|
|
}
|
|
}
|