gburca / binderdemo Goto Github PK
View Code? Open in Web Editor NEWSample code for how to use Android binders from native (C++) space.
Sample code for how to use Android binders from native (C++) space.
How to compile this code and how to run it ?
Hello, I followed the instruction for building it and then I pushed the "binder" executable to /system/bin
adb root && adb remount was done beforehand.
However, when I executed the command "adb shell binder" I got the following message:
adb shell binder
CANNOT LINK EXECUTABLE "binder": cannot locate symbol "_ZN7android23sp_report_stack_pointerEv" referenced by "/system/bin/binder"...
I do not know how to fix this problem. Can you please help me?
Thank you
Sarbojit
It appears that neither the service nor the client work without root.... Is there a way to register the service so that it can work without root?
Hello
I am trying to compile the BinderDemo but I wasn't successful.
My steps were exactly
mkdir android_source
cd android_source/
repo init -u https://android.googlesource.com/platform/manifest
repo sync
source build/envsetup.sh
lunch
make binder
cd external/
git clone https://github.com/gburca/BinderDemo.git
cd BinderDemo
mm
The build was successful but when I try to run the binder executable on the android device, I get the following error
130|root@generic:/ # binder
CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memclr4" referenced by "binder"...
Any ideas?
I try to compile the codes with ndk-build, but it seems that it cannot find the libs like utils/RefBase.h. Could you give out some details about how to compile the codes?
Hi - Thanks a lot for putting it up together.
Initially I ran into multiple compilation issues. But I have the android source code so I Imported lot of files(folders full of headers) and got through it.
In linker error, it gave multiple errors. I was able to find libutil and libcutil from NDK and get through it. However my whole machine does not have libbinder. So cannot get through it. I have api 19. Do you know how to resolve this liner error?
Regards,
Vishal.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.