Skip to content

add example of how to package a wrap.sh #69

@mutantbob

Description

@mutantbob

I have an android application that crashes inside slice::from_raw_parts . I altered my app to set RUST_BACKTRACE=1, but this still did not give me a stack trace. The next idea I had was to use the wrap.sh mechanism documented at https://developer.android.com/ndk/guides/wrap-script to set RUST_BACKTRACE=1 before it starts.

Unfortunately, I am struggling to figure out what to put in my Cargo.toml to include a custom wrap.sh into the apk generated by cargo apk build

It would be helpful if the documentation included an example of how to include a wrap.sh in the .apk.

Until then, I am struggling to figure out what steps cargo apk is taking to build the .apk in hopes of running those steps manually to include wrap.sh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions