-
Notifications
You must be signed in to change notification settings - Fork 308
recompile objectbox with the new ndk and enable 16k page support #1178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for bringing this to our attention. Did you try to run ObjectBox on Android 15 yet? |
yes, I tried with some pixels I have as test devices, it works but only because the kernel is not compiled with 16k memory pages, when a version with 16k pages should not work anymore. |
Some more details for us: https://developer.android.com/guide/practices/page-sizes
Also this sounds like it will only impact new devices? (Edit: there is an internal issue for this |
i opened this issue to be able to get compatibility with this new google requirement as soon as possible, so even apps that i will possibly not maintain in the future will remain compatible with this new requirement |
Btw, it's an interesting move. Apple also went with 16K pages for iOS. (ObjectBox supports this for quite a while.) |
When I run my application on a 16 KB page sized emulator, the app crashes when initializing ObjectBox. |
For us it is the same. On a 4 KB page sized emulator everything works as expected, but our app crashes when being started on an 16 KB page sized emulator, throwing the following exception.
This seems to be a serious problem as every app (independent of targetSdk) using ObjectBox might break on a device using a page size of 16 KB. |
Is there any device with 16KB pages now available? Btw, Pixel 9 Pro is to be released later today... |
I did not find any information about the Pixel 9 (Pro) or any other device being shipped with a 16 KB page size. Surprisingly it seems that the Pixel 6 (Pro) can be flashed with a 16 KB page size according to source.android.com. |
this issue is more about the future than the present, it is important that apps support this requirement as soon as possible to allow them to be used in the future as well without anyone maintaining them anymore |
it would also be appreciated if the objectbox source code would be totally published to accelerate these and future developments |
@greenrobot Can we provide any additional support? |
@Faltenreich Not at this point, had no time to look into this, yet. We'll update once we have a release available for testing. |
We received the first complaints for our app because of this error. Will this be solved soon? |
Do you know if that occurs on standard Pixel devices that got the Android 15 update? My Pixel 9 refuses to download the update without errors... 🤷 |
@greenrobot flash from https://flash.android.com |
@henrikstormer Check if your users are on any Pixel 8 or newer, are running the Android 15 beta or newer and have enabled the "Boot with 16KB page size" developer option. Edit: obviously, this also affects emulators that use the "Pre-Release 16 KB Page Size images". Otherwise, to my knowledge there should currently be no devices out there that ship a firmware running Android 15 with 16KB page size enabled for customers. Edit: just to emphasize, this is a large breaking change and it will take a while until this will become the default. So far Google has not announced when and if this will be the default on new devices:
|
Just a quick update: internally, we made the first steps, e.g. we updated the NDK and added the NDK related options. However, it does not work on the x64 emulator with 16k pages, but that could be an emulator issue (it is not doing 16k pages properly... 😞 ). It will take some more time... |
Based on this documentation, I tested the WindowsPowerShell:
|
@hysapp Thanks. This is expected as we did not release any fixes. |
this Issue seems to be fixed with release 4.1.0+ |
@kknappe Thanks for the update! Anyhow, as andrew-ld noted above, Android 16 introduced a compatibility mode that may be helpful for testing on devices that use 16KB pages (which again, there are still none that have it enabled by default). |
@greenrobot-team Any update on this. It seems that Google Playstore requires new app to be 16KB compatible this coming November. |
@Faltenreich, did you check the app bundle explorer in Google Play to see whether it still reports objectbox as not supporting 16 KB? |
@sebastianharder We have not yet uploaded a version with ObjectBox 4.1.0+, but we will report back when this changes. |
@sebastianharder @Faltenreich Looks like latest version does in fact support 16KB |
I have to update my previous statement: actually version 4.1.0 and onward should have support for 16 KB page sizes, but we could not properly verify and test this, yet (due to issues with the emulator at the time). For our reference, this is internal issue |
当我使用4.0.1版本的时候,Android studio 提示:arm64-v8a/libobjectbox-jni.so is not 16 KB aligned ,详见下图 但当我升级到最新版4.3.0 时,该提示就消失了,详见下图 請問现在是已经做适配了吗? |
@greenrobot-team can close the issue since seems fixed? |
@yykou @andrew-ld I assume this means using the ObjectBox Java SDK on an Android device with 16 KB page sizes enabled does work. In that case I'm closing this. To repeat: version 4.1.0 and newer support 16 KB page sizes. If anyone discovers an issue with running on devices with 16 KB page size enabled, please create a new issue! |
Uh oh!
There was an error while loading. Please reload this page.
android 15 have a breaking changes for all applications, it require the support for 16k page
https://developer.android.com/about/versions/15/behavior-changes-all#16-kb
The text was updated successfully, but these errors were encountered: