使用额外的可执行文件打包 Android apk [英] Package Android apk with additional executables

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

问题描述

作为对先前问题的跟进(Android ioctl - 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.

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

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