Android USB Accessory JAR 复制到系统文件夹,是否也需要 odex 文件?

发布于 2025-01-08 04:48:41 字数 745 浏览 4 评论 0原文

我正在尝试让我的手机接受 USB 配件模式并运行连接到 Arduino ADK。我的 ROM 不包含适当的文件,所以我决定自己做。

首先是规格

  • 我的手机:Samsung GT-I9100
  • 我的ROM:2.6.35.7-I9000XWJVZ(已root)
  • 固件:2.3.6

我之前已成功将.jar、.odex 和.xml 文件复制到相应的文件夹。尽管它完全使我的手机变砖并陷入启动循环。现在,我已经康复了,我想再试一次。

/system/framework 文件夹中每个其他 .jar 文件都有的这个 .odex 文件是什么? 我是否需要自己构建/复制 .odex 文件(阅读 Dalvik 的内容是否进行 JIT 编译)?

有没有可能,在我之前的尝试中,复制.odex(我从另一部手机I9100获得的),使我的手机变砖了?

我知道我之前的尝试是粗心的。现在,我想用更多的知识来探讨这个主题......

I am trying to get my phone to accept USB Accessory mode and run the DemoKit connected to the Arduino ADK. My ROM did not contain the appropriate files so, I decided to do it myself.

First the specs

I've succeeded before in copying the .jar .odex and .xml file to the appropriate folders. Although it completely bricked my phone and was stuck in a boot loop. Now, recovered, I want to give it a second try.

What is this .odex file that every other .jar file has in the /system/framework folder?
Do I need to build/copy the .odex file myself (read something that Dalvik does JIT compiling)?

Is it possible that in my previous attempt, the copying of the .odex (that I got from another phone I9100), bricked mine?

I know I was careless in my previous attempt. Now, I want to approach the subject with a bit more knowledge...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文