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

All Questions

Tagged with
1 vote
0 answers
36 views

AOSP 6.0 , init process , try print call stack

Now I am learing aosp 6.0 code . When i read init process code , which on the path of system/core/init/ , I want to print function call stack . I try write the code on init.cpp #include <utils/...
Tom's user avatar
  • 383
0 votes
0 answers
42 views

Android CarEvsService

I have been exploring CarEvsService in android lately. With a google CameraEvsPreview App(https://cs.android.com/android/platform/superproject/+/master:packages/services/Car/tests/...
freddie's user avatar
  • 21
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
3 votes
0 answers
69 views

What is the difference between ndk backend and cpp backend in AOSP?

Sorry if my question is silly since I new to aosp platform side. I see there are two backend for developing Binder Service in aosp platform side in c++. (Ignore java for time being) Example: ...
Bhavith C's user avatar
  • 162
0 votes
0 answers
61 views

Build AOSP Error cuttlefish::oemlock::OemLock has virtual functions but non-virtual destructor

When I build Android Open Source Project for target aosp_cf_arm64_auto-userdebug , I face this error device/google/cuttlefish/host/commands/secure_env/oemlock.h:29:7: error: 'cuttlefish::oemlock::...
Ahmed Mohamed's user avatar
0 votes
1 answer
78 views

Cannot receive text over local TCP connection

Sending text over local TCP connection succeeds! Sending text from Ubuntu to AOSP over local ip address. For some reason it works to accept text with a third-party apk app. But it does not work in C++ ...
Milana's user avatar
  • 23
4 votes
0 answers
308 views

How can a C++ client bind to AIDL service on Android?

This is what I want to achieve I have an Android AIDL server implemented in Java I want to bind or connect to the Java server from my C++ code. My C++ code is not called by another Android app; ...
DarkSoda's user avatar
0 votes
1 answer
91 views

sched_setschedule fails on "aarch64-linux-musl-g++"

I am encountering a runtime issue with a piece of code that sets the scheduling policy on an Android. The code compiles and runs successfully using "aarch64-linux-androideabi21-clang++", but ...
Ahmed Mohamed's user avatar
-1 votes
1 answer
344 views

How to set property in cpp code in Android?

In android if we want to set property from cpp file how it can be done. what headers can be included and what api we can call directly to set property. Tried executing setprop command from cpp file ...
Nishant raj's user avatar
1 vote
1 answer
208 views

How to acquire Wake lock in Android native service in AAOS?

Is there a way to acquire wake lock in Android native service in Android automotive, I need to hold the device from not going to suspend to Ram mode until my service done with certain tasks. I tried ...
Smokingkills's user avatar
0 votes
0 answers
144 views

AOSP - Can't access FWK-Only library from vendor module

I need to access a FWK-Only library (libaaudio) from vendor module. Is there any possibility to do it via VNDK or VNDK-SP ? If so, Can you give an idea how to achieve it. Thanks. When I tried to ...
Nantha Kumar's user avatar
0 votes
1 answer
529 views

How to include AIDL-generated headers in native code in AOSP?

I have a native module under /devices: - module -- aidl --- com ---- my ----- package ------ IMyInterface.aidl -- Android.mk -- Proxy.h -- Proxy.cpp I want to use binder in this module. My Android.mk:...
artem's user avatar
  • 16.7k
0 votes
0 answers
101 views

Call getMethodID() got NoSuchMethodError from JNI in AOSP. Build apk from android studio have no problem

Building the APK from the Android Studio have no problem. Which is using Android.mk. I use ndk-build to build the TestLib.so I want to move the code to AOSP. It builds successfully, but a runtime ...
S Tung's user avatar
  • 1
0 votes
0 answers
266 views

AOSP native client bind to java service

We have a native client process that we want to be able to call bindService in to bind to a java service that we don't want running all the time if not being used. Bound services allows us to utilize ...
Thomas Elliott's user avatar
1 vote
0 answers
48 views

Which is the better way to communicate data b/w from Java to C/C++ code in AOSP11/12 [duplicate]

I am working on AOSP11/12. I am trying to understand which is the better way to understand commucate data b/w java to C++/C code. I have created a test Android JNI application that communicates data ...
GNK's user avatar
  • 1,068

15 30 50 per page
1
2 3 4 5