Giter Site home page Giter Site logo

binder-rust's People

Contributors

s1341 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

d-os clia kings-way

binder-rust's Issues

binder_alloc: 270: binder_alloc_buf size 131152 failed, no address space

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

Security problem on Android 9

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?

examples panic Err` value: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }

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: []

"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.