flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Non-x86 architectures > Building and running Android armv7 sample | 
| Author | 
 | 
| sleepsleep 04 Jan 2020, 11:11 is that possible to build one just to restart/reboot phone?
 sort of utility, | |||
|  04 Jan 2020, 11:11 | 
 | 
| 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. | |||
|  04 Jan 2020, 12:16 | 
 | 
| sleepsleep 04 Jan 2020, 14:13 or simulate a power button click? | |||
|  04 Jan 2020, 14:13 | 
 | 
| MazeGen 12 May 2020, 14:24 ProMiNick wrote: Some time ago that was still possible to run elfes. | |||
|  12 May 2020, 14:24 | 
 | 
| 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 | |||
|  12 May 2020, 16:16 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.