s1341 / binder-rust Goto Github PK
View Code? Open in Web Editor NEWAn android binder library for rust
License: Apache License 2.0
An android binder library for rust
License: Apache License 2.0
Running the client to send messages to the server multiple times results in a memory shortage error. I have checked the current code and found no usage of BC_FREE_BUFFER. Could there be a problem with this part?
Transaction failed ******************
stack backtrace:
[ 32.307962] binder_alloc: 271: binder_alloc_buf size 131152 failed, no address space
[ 32.308014] binder_alloc: allocated: 918080 (num: 9 largest: 131152), free: 122304 (num: 1 largest: 122304)
[ 32.308166] binder: 280:280 transaction failed 29201/-28, size 131152-0 line 2758
When I run the example program on Android 9, when I use Rust to register the Binder service and obtain the Binder interface, an error Parcel object will be returned, prompting EX_SECURITY. I'm running as root. I don't know if there is any way to solve this problem?
when i run examples , it will panic like this
"
data: BinderTransactionData { target: 0, cookie: 0, code: 0, flags: 8, sender_pid: 0, sender_euid: 1000, data_size: 4, offset_size: 0, data: 0x7c451c6028, offsets: 0x7c451c6030 }
Parcel { data: [1, 0, 0, 128], offsets: [] }
status: 2147483649
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }', lib/src/parcel.rs:139:48
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
before write_read 4, 0
after write_read 4, 0
response: []
"
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.