按apk文件到/系统/应用程序/在HTC HERO [英] Push .apk to /system/app/ in HTC HERO

查看:99
本文介绍了按apk文件到/系统/应用程序/在HTC HERO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个HTC HERO和 我需要把我的application.apk
 到/系统/应用程序/文件夹。

I have an HTC HERO and I need to push my application.apk
to the /system/app/ folder.

我跟着一些TUTS生根的装置
那是好的,但是当我试图把我的包到系统/应用程序
文件夹中,我得到:权限被拒绝:

I've followed some tuts on rooting the device
and that is fine, but when I try to push my package to the system/app
folder, I get: "permission denied":

$ push /sdcard/myApp.apk /system/app/
push: permission denied

我也尝试:

$ su
su
# push /sdcard/myApp.apk /system/app/
push: not found

这是可能的设备是不是开发人员所使用的设备?

Is this possible in a device that is not a developer intended device?

感谢大家!

推荐答案

首先,运行从设备不工作,因为它不是一个内置的命令。理想情况下,你会使用copy命令 CP ,但我不认为这是包括在默认情况下(我已经通过的busybox添加到我的设备)。

Firstly, running push from the device doesn't work as it's not a built-in command. Ideally you would use the copy command cp, but I don't think it's included by default (I've added it to my device via busybox).

总之,你的问题是, /系统分区挂载为只读,当设备启动。

Anyway, your problem is that the /system partition is mounted as read-only when the device boots.

但是,如果你有root权限的设备,可以重新挂载分区为读写:

But if you have root access to the device, you can remount the partition as read-write:


host$ adb shell
hero$ su
hero# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
hero# cat /sdcard/myApp.adk > /system/app/myApp.adk
hero# mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system

另外,在做重新装入后,您可以使用亚行推从主机正常。

这篇关于按apk文件到/系统/应用程序/在HTC HERO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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