I am new to android. And i don't know how to get the info about android apps.
Can anyone please suggest that how one can find that the android app running is 32bit or 64 bit?
Thanks
APKs are not 32-bit or 64-bit. NDK binaries (.so files) inside of APKs will be compiled for specific CPU architectures. Generally, 32-bit binaries should work fine on 64-bit CPUs.
APK is ZIP. You can open it and check directory lib to see which architectures are supported. If there is no directory lib, it supports all architectures.
https://developer.android.com/ndk/guides/abis.html
Related
First of all I'm not an android dev
I have an apk which only supports arm.
I decompiled it with apk tool.
And now i have it as smali files.
Can this be compile with x86 abi support by building it again with gradle in android studio?
Or is there any other way to add x86 support to that apk?
that depends on native code/libs used in your project, but generally you can build an x86 apk in Android Studio. there is no way for "migrating" arm APK to x86 (or any other) without sources and building whole up again. some clues HOWTO in HERE (abiFilters 'x86') and/or HERE (include "x86")
I have install ndk-bundle from sdkmanager. The ndk-bundle taking around 4.2GB.
The bundle has tools chains for different architectures and platforms. Is there a way to just install tool-chain for one particular platform and architecture? I would like to install only arm and aarch64 toolchains as part of ndk and for any one android-{} platform.
There's no supported way to do this. You could try deleting the directories in $NDK/toolchains that aren't llvm, but no guarantee that won't break things.
I have Unity project with DLL prepared for architectures: x86, x86_64, armeabi-v7a.
I haven no possibility to convert DLL to architecture arm64-v8a.
However if I build apk for armeabi-v7a only, it works on 64bit device.
But for Google Store I need to build it with arm64-v8a compatibility - this version of application doesn't work because there is error that 64 bit DLL not found.
Is there any possibility to solve this problem?
Maybe there is some possibility to modify apk file after build?
Thanks in advance for help.
Latest version of AS and windows 7 32bit.
After some research it seems as though cmake for AS only runs on 64bit systems, if correct I assume there is no way I can just download cmake for 32bit and place it in the appropriate location in the Android SDK, or is there any other work around, I am pretty sure I will need to install windows 64bit, but thought I'd ask.
This is so I can have C++/NDK support in AS.
Yes you are correct, AS only supports 64 bit OS's to build c and c++ with cmake
When I installed Qt for Android it came with a kit for x86 and the 32-bit ARM ABIs, but no 64-bit ones. I noticed the Android NDK does contain the AArch64 and x86_64 compilers. Does Qt not support the newer architectures or is there a way in which I can build a Qt kit for these architectures myself?
This limitation are in the past now, use Qt 5.12 or above and you will can do it...
Source: https://doc-snapshots.qt.io/qt5-5.12/android-platform-notes.html
Qt does not seem to come pre-compiled for Android x86_64 (see the "Qt Versions" tab to check it out). However, this page of the wiki seems to explain how to build Qt for Android, giving you the opportunity to make the Android x86_64 version by yourself, if it supports it.