Skip to content

Commit

Permalink
Remove workaround for KeepSafe/ReLinker#77
Browse files Browse the repository at this point in the history
Assuming Lollipop isn't affected by it
  • Loading branch information
ViliusSutkus89 committed Dec 27, 2023
1 parent dccc699 commit a17a4a6
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import androidx.annotation.Nullable;

import com.getkeepsafe.relinker.ReLinker;
import com.getkeepsafe.relinker.ReLinkerInstance;
import com.viliussutkus89.android.assetextractor.AssetExtractor;
import com.viliussutkus89.android.tmpfile.Tmpfile;

Expand Down Expand Up @@ -79,14 +78,7 @@ public CopyProtectionException(String errorMessage) {
private boolean mOwnerPasswordEntered;

public pdf2htmlEX(@NonNull Context ctx) {
ReLinkerInstance reLinker = ReLinker.recursively();

// https://github.com/KeepSafe/ReLinker/issues/77
// Manually load dependencies, because ReLinker.recursively() doesn't actually load recursively
reLinker.loadLibrary(ctx, "c++_shared");
reLinker.loadLibrary(ctx, "envvar");
reLinker.loadLibrary(ctx, "tmpfile");
reLinker.loadLibrary(ctx, "pdf2htmlEX-android");
ReLinker.recursively().loadLibrary(ctx, "pdf2htmlEX-android");

AssetExtractor ae = new AssetExtractor(ctx.getAssets()).setNoOverwrite();

Expand Down

0 comments on commit a17a4a6

Please sign in to comment.