Android Question PDFium update for 16kb

Alex_197

Well-Known Member
Licensed User
Longtime User
Hi all.
I tried to update the Pdfium.aar according to https://www.b4x.com/android/forum/t...ot-support-16kb-alignment.168440/post-1032482

I downloaded PdfiumAndroid-2.0.0-release.aar from https://github.com/chiragthummar/PdfiumAndroid16KB/blob/master/aar/PdfiumAndroid-2.0.0-release.aar, opened with 7zip and replaced .so files in Pdfium.aar with so files from PdfiumAndroid-2.0.0-release.aar.

Then I compiled a project in Release mode and tried to check the apk with this script https://www.b4x.com/android/forum/threads/script-to-check-compatibility-16kb.168429/

So far so good.

Then I tried to check the same apk with a new script https://www.b4x.com/android/forum/threads/android-16kb-page-size-compatibility-checker.168942/

It didn't work.
B4X:
= * 80
FINAL RESULT
= * 80
FAILED: 5 non-compliant file(s):
  - libc++_shared.so
  - libjniPdfium.so
  - libmodft2.so
  - libmodpdfium.so
  - libmodpng.so

Which one should I trust?

I opened PdfiumAndroid-2.0.0-release.aar

1759953332810.png

and copied all .so files into PDFium.aar
1759953770422.png


Thanks
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
If you don't trust any of them, another way to test is to
1. Test on Real Device (Running Android 15+)
2. Configure Android Emulator With 16kb page size and android 15+

Run your apk on them and if it's compliance or not, you will get alert.

You. An also send your apk let me test on on the emulator for you
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
If you don't trust any of them, another way to test is to
1. Test on Real Device (Running Android 15+)
2. Configure Android Emulator With 16kb page size and android 15+

Run your apk on them and if it's compliance or not, you will get alert.

You. An also send your apk let me test on on the emulator for you
How can I send my apk?
 
Upvote 0
Top