flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
sleepsleep 04 Jan 2020, 11:11
is that possible to build one just to restart/reboot phone?
sort of utility, |
|||
![]() |
|
MazeGen 04 Jan 2020, 12:16
You can try the reboot syscall (0x58) but I'm note sure if the default Android user has sufficient priviledges.
|
|||
![]() |
|
sleepsleep 04 Jan 2020, 14:13
or simulate a power button click?
|
|||
![]() |
|
MazeGen 12 May 2020, 14:24
ProMiNick wrote: Some time ago that was still possible to run elfes. |
|||
![]() |
|
MazeGen 12 May 2020, 16:16
I managed to build it with GAS finally. It runs on my Nokia 8, Android 9, patch level 1 April 2020.
Code: .global _start _start: mov x0, #1 // 1 = StdOut ldr x1, =helloworld // string to print mov x2, #13 // length of our string mov x8, #64 // Linux write system call svc 0 // Call Linux to output the string mov x0, #0 // Use 0 return code mov x8, #93 // Service code 93 terminates svc 0 // Call Linux to terminate .data helloworld: .ascii "Hello World!\n" Code: %ANDROID_NDK_PATH%\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\as.exe -o gas_example64.o gas_example64.s %ANDROID_NDK_PATH%\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\ld.exe -o gas_example64 gas_example64.o |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.