l***@gmail.com
2017-08-23 11:47:37 UTC
Hi,
I personally don't use Android x86, but I maintain an Android port for a
x86 device using a Linux 4.9 kernel just like Android x86. Recently I had
to backport a few commits from AOSP's master branch to fix issues with the
newer kernel together with some Android components and I thought I'd
suggest them here if you haven't applied them already.
Note: I didn't test them on Android x86 but I assume it's affected by the
same issues as my device.
*Patch for ART crash in Linux 4.9.34+:*
There was a change in Linux 4.9.34 (and probably newer kernels too) that
causes a crash in ART when booting the device. It's related to some memory
management change that was back-ported to the 4.9 kernel. The commit below
fixes it for me.
ART: Change main-thread thread paging schemehttps://android.googlesource.com/platform/art/+/6c63f863f9dbf734732ff837c1e772b3482e59ff
*Patch for system_netd issues:*
I've had a short glance at the netd hack patch that was posted here a few
times and it looks related, but for me back-porting two commits fixed it
properly. It's related to a change that was made when upstreaming a change
to some network routing code, which requires a change in system_netd:
Set both legacy and new UID routing attributes.
https://android.googlesource.com/platform/system/netd/+/2b078678aafceeefea6a70e96ab8ddefe515d027z
Use new-style UID routing.https://android.googlesource.com/platform/system/netd/+/22c24ebd283d6e8fb782b34975417308839d4ad7
On the Android 4.9 kernel from Google, the netd issue wasn't as obvious
because it only happens when cleaning up a network interface (e.g. when
switching to VPN) with a really weird error. That's due to a kernel bug
that has been only fixed in newer kernel versions. After I back-ported the
patch below there was an error when initializing the network interface
(that was hidden before). This is fixed by the two patches I posted above.
fib_rules: fix error return codehttps://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=adeb45cbb5057731ce9c47aad93756135d7947bf
I hope they are helpful for you. :)
Lambdadroid
I personally don't use Android x86, but I maintain an Android port for a
x86 device using a Linux 4.9 kernel just like Android x86. Recently I had
to backport a few commits from AOSP's master branch to fix issues with the
newer kernel together with some Android components and I thought I'd
suggest them here if you haven't applied them already.
Note: I didn't test them on Android x86 but I assume it's affected by the
same issues as my device.
*Patch for ART crash in Linux 4.9.34+:*
There was a change in Linux 4.9.34 (and probably newer kernels too) that
causes a crash in ART when booting the device. It's related to some memory
management change that was back-ported to the 4.9 kernel. The commit below
fixes it for me.
ART: Change main-thread thread paging schemehttps://android.googlesource.com/platform/art/+/6c63f863f9dbf734732ff837c1e772b3482e59ff
*Patch for system_netd issues:*
I've had a short glance at the netd hack patch that was posted here a few
times and it looks related, but for me back-porting two commits fixed it
properly. It's related to a change that was made when upstreaming a change
to some network routing code, which requires a change in system_netd:
Set both legacy and new UID routing attributes.
https://android.googlesource.com/platform/system/netd/+/2b078678aafceeefea6a70e96ab8ddefe515d027z
Use new-style UID routing.https://android.googlesource.com/platform/system/netd/+/22c24ebd283d6e8fb782b34975417308839d4ad7
On the Android 4.9 kernel from Google, the netd issue wasn't as obvious
because it only happens when cleaning up a network interface (e.g. when
switching to VPN) with a really weird error. That's due to a kernel bug
that has been only fixed in newer kernel versions. After I back-ported the
patch below there was an error when initializing the network interface
(that was hidden before). This is fixed by the two patches I posted above.
fib_rules: fix error return codehttps://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=adeb45cbb5057731ce9c47aad93756135d7947bf
I hope they are helpful for you. :)
Lambdadroid
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.