41 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
48
views
Kotlin API "launchWhenCreated" stops listening for database updates after executing many times
In my android system service, I am using "launchWhenCreated" to launch a coroutine as observer and it listens for updates from the UI. If UI updates a value, it will be stored in a .pb(...
1
vote
1
answer
831
views
Sharing a file between an Android app (with native component) and system services
Android has been more restrictive with files, while it is very clear how to share files across apps... How would I share a file between a system service like surfaceflinger/audioflinger and an app? ...
0
votes
1
answer
397
views
Is there a way to detect magnification accessibility feature from all shortcuts on android?
We know that we can detect magnification from triple-tap gesture by
Settings.Secure.getInt( getAppContext()?.getContentResolver(), "accessibility_display_magnification_enabled",0)
But can ...
0
votes
1
answer
330
views
Is it possible to restrict access to a System Service in AOSP?
Is it possible to restrict access to certain methods on a System Service in AOSP?
I was thinking of having two Proxies talk to the System Service with one implementing public methods and the other ...
0
votes
2
answers
215
views
How to start a java springboot application as a sytem service in linux
I am trying to create a systemd service for a spring boot application, servie is creating but the status shows as follows,
●くろまる vehicle_service-0.1.0.service - vehicle micro service
Loaded: loaded (/...
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 ...
0
votes
1
answer
980
views
How to pass/recevice data from java/Kotlin to C++ code or vice versa in android
I am working on AOSP11/12(Android) and want to communicate data from java/Kotlin to C++ code or vice versa.
Is that better way to create new service and communicate data or need to create NDK ...
6
votes
1
answer
2k
views
applicationContext.getSystemService(SmsManager::class.java) returning null inside a Service
Viewed quite a few similar questions so far, but none ended up a solution.
I'm trying to start up a foreground service in order to handle SMS messaging. This service is started when the app is first ...
0
votes
0
answers
99
views
Where can I store data as a System Service?
I programmed a system-service and it tries to create a directory to save some data. The dir that I chose was /.myServiceData.
When I try to run it I get this error: mkdir /.ethNode: read-only file ...
1
vote
1
answer
1k
views
LoadLibrary() fails when added aar library to system service?
I wrote a System Service, but it fails on boot with the message:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libgojni.so" not found
Basically in the code of the .aar library it ...
1
vote
1
answer
348
views
configparser - system service failed when reading config file
I have a working python script.
It works as a system service unless I read from a config file via configparser() -> (code=exited, status=1/FAILURE)
config = configparser.ConfigParser()
config....
0
votes
1
answer
55
views
Increase points even app is closed android
I am new in android and I don't know how to do this, I want to create a background service, There is two main component in my app one is Button (Start Earning) and another is TextView (Points). I want ...
0
votes
0
answers
752
views
How to use show layout bounds functionality in my app in android studio?
So I am trying to create a project in which I have one activity with two buttons to start & stop my custom background service of the same app.
All I want in this service is to "show layout ...
2
votes
1
answer
2k
views
AOSP system service getting avc denied error while trying to add service from SystemServer
Hi I am adding my koushikservice in aospCodebase/frameworks/base/services/java/com/android/server/SystemServer.java like this
KoushikService koushikservice = null;
try{
...
1
vote
2
answers
1k
views
How to Create a back ground system service in Android Q
I am trying to create a System service which runs once system boots up, I have followed required steps except sepolicy files update.
I have referred https://android.jlelse.eu/system-service-in-aosp-...