-
Notifications
You must be signed in to change notification settings - Fork 86
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
Resurrect older Android compatibility #374
Comments
This is not correct SETUP.template#L8 proposed 21, and while loaders/android/AndroidManifest.xml.in#L8 targets 28, as required to submit to the Google Play Store, this can be lowered if needed. In fact lowering it gets around some of the permission issues we are currently working on. There are a bunch of people, who target 21 routinely, and have no problems with this. In fact you can go even lower if you so desire - I tried 19, and while it stops building Can you elaborate why you believe 23 is now required and lower versions are no longer supported? |
Purposefully picking an example that has a lot of dependencies:
|
Am Sun, 18 Oct 2020 15:00:47 -0700
schrieb Matthias Görges <[email protected]>:
This is not correct
[SETUP.template#L8](https://github.com/part-cw/lambdanative/blob/master/SETUP.template#L8)
proposed **21**, and while
[loaders/android/AndroidManifest.xml.in#L8](https://github.com/part-cw/lambdanative/blob/master/loaders/android/AndroidManifest.xml.in#L8)
targets **28**, as required to submit to the Google Play Store, this
can be lowered if needed. In fact lowering it gets around some of the
permission issues we are currently working on. There are a bunch of
people, who target **21** routinely, and have no problems with this.
In fact you can go even lower if you so desire - I tried **19**, and
while it stops building `arm64` as that is not available, and is
recovered and warned about in
[targets/android/host_linux_arm64](https://github.com/part-cw/lambdanative/blob/master/targets/android/host_linux_arm64),
Ah, OK, I miss-read the warning in android/build-binary line 60.
I didn't see any other problems?
Can you elaborate why you believe **23** is now required and lower
versions are no longer supported?
I have an app which runs with api26 and builds+installs with api19. But
it does no longer starts on api19.
It does in fact not even create the (system-directory) on the sdcard.
I did so manually and a `log` subdirectory too. No logging output at
all.
|
Okay, for a start two questions:
|
Am Mon, 19 Oct 2020 01:31:22 -0700
schrieb Matthias Görges <[email protected]>:
Okay, for a start two questions:
1. Which API level are you targeting - 19, I assume? As in what is
written to
Yes.
Turned out that somehow the permission "write external storage" was off.
(I did not touch that manually.)
[loaders/android/AndroidManifest.xml.in#L7](https://github.com/part-cw/lambdanative/blob/master/loaders/android/AndroidManifest.xml.in#L7)
2. Anything useful in `logcat` - note even a NULL pointer exception?
Not really useful. The log is full of "couldn't find task for
AppWindowToken"
|
Looks like Android 10 has changed things wrt. JNI: So far no good idea. For a start this looks like a killer. |
Okay, we need to add something to prompt a window or at least not die immediately. I think this is true when there is no |
It says for 'some non-SDK methods and fields', and also some libraries that they consider private, so we may be okay but if they actually disable JNI we are obviously done with Android. Public libraries are listed at https://android-developers.googleblog.com/2016/06/improving-stability-with-private-cc.html. Finally, now that we target 28, and some of our devices running on 29 we might get lucky once the permission piece is sorted out? |
I just got a first alternative working. We can avoid the JNI call altogether. Just checked into my repo. Works for me with Android 8.1. Testing on Android 10 takes time: I can't attach the USB debugger. :-/ And how do I enable developer options in Android 10? Seems like the 7x Android-version easter egg is gone. |
https://developer.android.com/studio/debug/dev-options says it is still the same? |
Am Mon, 19 Oct 2020 12:51:27 -0700
schrieb Matthias Görges <[email protected]>:
> And how do I enable developer options in Android 10? Seems like the
> 7x Android-version easter egg is gone.
https://developer.android.com/studio/debug/dev-options says it is
still the same?
Maybe. Reading deeper I found that "some devices" might hide the
"developer options" somewhere. That's not my phone and I don't want to
take the time right now to learn where it might be hidden.
Just now no `adb` and hence no `logcat` - make things harder.
And I'll have to hand the phone back tomorrow.
:-/
|
I have a Samsung phone with Android 10 and the Developer Mode is right on the main menu as per usual and was unlocked the same way, so I can confirm that at least for some devices, it has not changed. |
Managed to get adb working. Warning: On Android19, likely arm64, watch for implicit declared C functions. Code working with those compiler warnings on Android 8.1 arm 32 bit segfaults for me. Does anybody know where the shared libraries are under newer Android? My app includes a command line program, which is included per old trick as |
recently support for Android API versions less than 23 was dropped.
This breaks half of my test devices and whom else perfectly good gadgets too.
Can this be resurrected?
The text was updated successfully, but these errors were encountered: