我怎么可以编译Android的股票彩信应用到.apk文件? [英] How can I compile Android stock Mms App into an .apk?

查看:129
本文介绍了我怎么可以编译Android的股票彩信应用到.apk文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要做出一些改变的股票彩信Android应用程序和设备上安装它。不过,我有一个编译 $ C问题从混帐获得$ C结帐。我已创建了利用现有资源的新的Eclipse Android项目,目标框架设置为2.1。但是,Eclipse不找一些必要的框架类,例如 android.telephony.SmsManager

I want to make some changes to the stock Mms Android application and install it on my device. However, I have problems with compiling the code checkout obtained from git. I have created a new Eclipse Android project with "use existing sources", setting the target framework to 2.1. However, Eclipse does not find some needed framework classes, e.g. android.telephony.SmsManager.

我有完整的Andr​​oid工具链建立和工作(使无差错完成),Eclipse是在Sun JDK 1.5上运行。

I have the whole Android toolchain set up and working (make finished without errors), Eclipse is running on Sun Jdk 1.5.

也许我的错误是,我没有 .classpath文件复制到新的项目,我会检查。从来没有少,我要成功,我将能够这样的apk安装到非根深蒂固的设备?

Perhaps my mistake was that I did not copy the .classpath file into the new project, I will check this. Never the less, should I succeed, will I be able to install this .apk into a non-rooted device?

推荐答案

股票Android应用程序是不是设计来使用Android SDK构建,主要是因为他们很多preDATE的SDK。现在,他们只能被编译为固件的一部分。

The stock Android applications are not designed to be built using the Android SDK, mostly because many of them predate that SDK. Right now, they can only be compiled as part of the firmware.

即使你风与一个APK,你将无法从更换固件单独安装它,除非你在清单更改包。你不能有设备上的两个应用程序在同一时间使用相同的包,因为你将不会被签署通过固件使用数字签名的APK,你将不能够覆盖现有之一。

Even if you wind up with an APK, you will not be able to install it separately from a replacement firmware, unless you change the package in the manifest. You cannot have two applications on the device at the same time with the same package, and since you will not be signing your APK with the digital signature used by the firmware, yours will not be able to overwrite the existing one.

如果您有支持更换固件的设备(例如,ADP2方面,Nexus One),您可以创建,标志,并安装你自己的固件,然后更换APK,今后无需更换所有固件秒时间 - 我不知道如何很好的作品

If you have a device that supports replaceable firmware (e.g., ADP2, Nexus One), you may be able to create, sign, and install your own firmware, then replace that APK in the future without replacing all of firmware a second time -- I don't know how well that works.

这篇关于我怎么可以编译Android的股票彩信应用到.apk文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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