0

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?

Vikash
  • 1
  • 4

1 Answers1

0

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")

snachmsm
  • 17,866
  • 3
  • 32
  • 74
  • `building whole up again` that's the thing I want to do but from a decompiled apk – Vikash May 26 '21 at 07:57
  • if you have all needed sources then you probably may create new AS project, paste all data and build x86 version. looks like a lot of work with a lot of quirks and hidden settings, without an original project: tough one – snachmsm May 26 '21 at 08:33
  • I have only the decompiled smali files. how can it be used in AS on building the project. – Vikash May 27 '21 at 10:20
  • they can't be, smali isn't a source. read [THIS](https://stackoverflow.com/questions/5582824/decompile-smali-files-on-an-apk) – snachmsm May 27 '21 at 10:25