包装的Andr​​oid APK额外的可执行文件 [英] Package Android apk with additional executables

查看:225
本文介绍了包装的Andr​​oid APK额外的可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为后续行动前面一个问题(<一个href=\"http://stackoverflow.com/questions/6983156/android-ioctl-root-permissions-and-usage/6983704\">Android读写控制 - root权限和使用),是否有可能创建一个单独的原生可执行文件,并在APK包它

As a follow up to an earlier question (Android ioctl - root permissions and usage), is it possible to create a separate native executable and package it in an APK?

该应用程序需要root权限,并且不进入Android市场,但我希望能够在不使用推额外的可执行文件到设备脚本来安装它。

The app needs root access and isn't going into the Android marketplace, but I'd like to be able to install it without using a script that pushes an extra executable onto the device.

推荐答案

您可以把它转化为资产,并将其复制到应用程序的私有目录上的第一次运行。在您设置可执行位,您应该能够运行它。

You can put it into assets and copy it to the app's private directory on first run. After you set the executable bit, you should be able to run it.

这篇关于包装的Andr​​oid APK额外的可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆