flat assembler
Message board for the users of flat assembler.

Index > Non-x86 architectures > FASM Output APK for Android ARMv7?

Author
Thread Post new topic Reply to topic
wizgogo



Joined: 11 Dec 2020
Posts: 11
Location: Hell, Norway
wizgogo 15 Dec 2020, 12:57
It looks like it's possible now to make an ELF/DEX file for android like this.

ELF by @MazeGen
https://board.flatassembler.net/topic.php?t=21327

DEX by @MaoKo
https://board.flatassembler.net/topic.php?t=21689

But is it possible to make an APK for Android using FASM/FASMG?

Using ELF/DEX is not so user-friendly if we want to share it with other people, so only we can use that.

My decision of using ASM is because I really want to make a small and efficient Android app but it looks like it's not possible and we need to rely through inline and to the bloated sdk of Android.
Post 15 Dec 2020, 12:57
View user's profile Send private message Reply with quote
Grom PE



Joined: 13 Mar 2008
Posts: 114
Location: i@grompe.org.ru
Grom PE 16 Dec 2020, 01:46
An APK is just a ZIP archive that is signed. All steps except perhaps signing are possible using fasm.
Post 16 Dec 2020, 01:46
View user's profile Send private message Visit poster's website Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 1228
Location: Belarus
DimonSoft 16 Dec 2020, 11:37
Although if compression for the ZIP is desired, it might be a bad idea to use FASM for that due to FASM’s memory consumption when compile-time variables change their values.
Post 16 Dec 2020, 11:37
View user's profile Send private message Visit poster's website Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 219
FlierMate 20 May 2022, 09:05
I can open APK with 7zip, but not sure what is the compression file format.



This is nice!!! But even a simple "Hello, world" example is such complex. And I did not know FASMG support binary Dalvik executable format. It is in bytecode, as I just learned from : https://source.android.com/devices/tech/dalvik/dalvik-bytecode

A signed APK built by Android Studio (Java) contains .dex binary.
But APK built with Flutter contains additional shared .so lib files, which I think resulting in larger APK file (they call it fat APK).
Post 20 May 2022, 09:05
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.