Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
0 answers
48 views

How to do native library interposition in Android?

I have a shared library that interposes some GLES calls (glClear, for example). It works fine on Linux with a simple LD_PRELOAD, but I can't get it working on Android. My library prints to logcat on ...
artem's user avatar
  • 16.7k
0 votes
0 answers
61 views

issue adding generated binary in AOSP to emulator x86_64

I am trying to integrate a project into AOSP (version 12) I created the android.mk in the repo where I added other files and I recompiled the project successfully the binary of my project is created ...
Karoui Sirine's user avatar
0 votes
1 answer
98 views

How to use Socket for some static IP, in System App/C++ AOSP/Lineage

I've been trying to create a file using C/C++ which uses sockets to open network traffic for static IP, I've tried baking a simple socket opening and closing and sending some traffic on a socket, but ...
Ali's user avatar
  • 529
0 votes
1 answer
912 views

Cannot link System lib to vendor lib

I have two libs, one is compiled under /system/lib and the other is compiled under /vendor/lib. I cannot change the location of one of the two libs because they are depending on other vendor/system ...
AmenAllah HAMDI's user avatar
1 vote
1 answer
740 views

Run Android Daemon at Boot

I have written an executable in C for Android. It compiles and gets loaded into the device as expected in /system/bin. I can run it via the adb shell, and it works as expected. What I can't figure out ...
Jo-Jo's user avatar
  • 31
1 vote
1 answer
148 views

Fatal signal 11 (SIGSEGV) in AOSP middleware

I am trying to concatenate the string like below typedef struct IInfo { char cmAddress[6]; UINT8 IpAddress[4]; UINT8 hIpAddress[4]; ...
GNK's user avatar
  • 1,068
1 vote
0 answers
1k views

ARM32, phys_to_virt, Unable to handle kernel paging request at virtual address

I'm working on implementing a variant of https://apenwarr.ca/log/20190216. Long story short, the main idea is to have a space in memory where to keep informations and to retrieve this information ...
Thomas's user avatar
  • 21
0 votes
1 answer
540 views

ISO C++ forbids declaration of 'int32' with no type

Trying to build an AOSP version and got this error error: ISO C++ forbids declaration of 'int32' with no type error: typedef 'int32' is initialized (use decltype instead) error: 'loc_event_cb_f_type' ...
Jose Miguel Arroyave's user avatar
0 votes
1 answer
327 views

AOSP and U-Boot - sscanf() not writing to variables

I'm stumped, and I need someone to tell me what I'm missing. I've had to upgrade the U-boot bootloader on my devices, and naturally I've had to make things fit again. And right now I'm trying to get ...
Aaron Elliott's user avatar
0 votes
0 answers
61 views

How to run write something in a file with android kernel source code? [duplicate]

I want to write some logs in a file and I have tried to import stdlib.h for system function so that I can run echo command to write a log in a file on /sdcard/ but linux kernel source code doesn't ...
Vatish Sharma's user avatar
0 votes
0 answers
98 views

Boot android and run process at the same time

I created 1 program test and I want to run program test immediately after boot android This is my file.rc service test /system/bin/test class late_start But the program test /system/bin/...
Lê Thế Khương's user avatar
0 votes
0 answers
174 views

running android script from C program

i am editing atcom ril program so that it will work on my custom device. after receiving the needed IP i want to raise the interface using these two shell commands in the android terminal: ifconfig ...
Gil Akrish's user avatar
3 votes
0 answers
1k views

AOSP print method call stack trace

I need to see a stack trace in AOSP C/C++ code. I have found some solutions but all of them not show properly function's names. 1. The solution from http://yongbingchen.github.io/blog/2013/05/09/dump-...
Гриць Худий's user avatar
0 votes
0 answers
3k views

Error: VNDK library: libandroid_net's ABI has EXTENDING CHANGES

I am setting up an environment to run AOSP code on Ubuntu 18.04.1 LTS and got the error "error: VNDK library: libandroid_net's ABI has EXTENDING CHANGES". Please help me to resolve this. I have ...
Vatish Sharma's user avatar
1 vote
0 answers
82 views

USB AOA ADK in C issue

I'm creating a firmware on a Silabs EFM32LG330F128 microcontroller in C to communicate in USB using the protocol AOA (Android Open Accessory) with Android smartphones. I'm using the Silabs USB ...
Benjamin B's user avatar

15 30 50 per page