Skip to content

PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.11 got program alignment (8192) cannot be smaller than system page size (16384) #648

Description

@Natanael-Oktavian

Hi , we are preparing our .net android 9 apps (not Maui) to support playstore 16 kb page requirement

So we already update sqlite reference to

	<PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.11" />
	<PackageReference Include="SQLitePCLRaw.core" Version="3.0.2" />
	<PackageReference Include="SQLitePCLRaw.lib.e_sqlcipher.android" Version="2.1.11" />
	<PackageReference Include="SQLitePCLRaw.provider.e_sqlcipher" Version="2.1.11" />

and the 4 KB warning already disappear in Android Studio apk analyzer, but when we run the apps we got
lib/arm64/libe_sqlcipher.so" program alignment (8192) cannot be smaller than system page size (16384) (SS attached)

natanaelmr@natanaels-mbp arm64-v8a % greadelf -l libe_sqlcipher.so

Elf file type is DYN (Shared object file)
Entry point 0x14590
There are 8 program headers, starting at offset 64

Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x00000000001a5e58 0x00000000001a5e58 R E 0x4000
LOAD 0x00000000001a63b0 0x00000000001aa3b0 0x00000000001aa3b0
0x0000000000007100 0x000000000000f950 RW 0x4000
DYNAMIC 0x00000000001a96e8 0x00000000001ad6e8 0x00000000001ad6e8
0x0000000000000200 0x0000000000000200 RW 0x8
NOTE 0x0000000000000200 0x0000000000000200 0x0000000000000200
0x0000000000000024 0x0000000000000024 R 0x4
NOTE 0x00000000001a5dc0 0x00000000001a5dc0 0x00000000001a5dc0
0x0000000000000098 0x0000000000000098 R 0x4
GNU_EH_FRAME 0x00000000001924c0 0x00000000001924c0 0x00000000001924c0
0x00000000000037b4 0x00000000000037b4 R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
GNU_RELRO 0x00000000001a63b0 0x00000000001aa3b0 0x00000000001aa3b0
0x0000000000003c50 0x0000000000003c50 R 0x1

greadelf also already return 16 KB in the LOAD

But somehow when we run it says program alignment is 8 KB

Please advice is there anything more to be updated beside that package reference? Thanks

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions