Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61e9bf24 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Fix install --abi for apps with no native code.

We will need to record the overriden ABI in the package
settings (and applicationInfo) so that we launch the app
with it.

Change-Id: Ib71aae69d006a4b0e85e7101c0e0cebf1a950997
parent 1d935abd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5485,6 +5485,8 @@ public class PackageManagerService extends IPackageManager.Stub {
                    if (copyRet >= 0) {
                        pkg.applicationInfo.primaryCpuAbi = abiList[copyRet];
                    } else if (copyRet == PackageManager.NO_NATIVE_LIBRARIES && abiOverride != null) {
                        pkg.applicationInfo.primaryCpuAbi = abiOverride;
                    }
                }
            } catch (IOException ioe) {