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

mcqueccu

Well-Known Member
Licensed User
Longtime User
Thank you. I tried to run this example on my Android 16 phone - works fine.
Then upload it to the play store, then check the messages. If its resolved, you will see a message that its resolved, even though the red notice will still be there, which you can delete.

From the image below, I received the Red Notice september 2, Even though I have addressed the violation and its approved yesterday, October 8th, That message is still there,

1759989825416.png
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
Then upload it to the play store, then check the messages. If its resolved, you will see a message that its resolved, even though the red notice will still be there, which you can delete.

From the image below, I received the Red Notice september 2, Even though I have addressed the violation and its approved yesterday, October 8th, That message is still there,

View attachment 167668
Thanks
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
One more question.
There are 2 aar files for PDFium - Pdfium.aar and Pdfium.androidx.aar.
Do we need to replace .so files in both of them?
Thanks
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
if they both contains the .so´s then i guess yes
I tried to check it myself - replaced .so files in both aar in jni\arm64-v8a folder and checked the apk with the new script


The same result


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

The old script shows that everything is Ok.
 
Upvote 0
Top