Android模拟器源代码在哪里 [英] Where is the Android emulator source code

查看:48
本文介绍了Android模拟器源代码在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几周前更新Android Studio时,不同组件的新版本也会自动更新.

When I updated my Android Studio a couple of weeks ago, new versions of different components were automatically updated as well.

与Android模拟器一样,我现在有29.2.3-5916265版本,该版本存在错误.降级似乎非常非常困难.在最新版本的模拟器中,重新设计了模拟GPX轨道(播放GPX轨道,然后在模拟器的应用程序中将其作为真实GPS坐标接收到)的布局.似乎开发人员已删除该功能以模拟海拔/高度.纬度/经度仍然有效,但是尽管我播放的GPX轨道具有真实高度的高度标签,但高度设置始终为0.

As was the case with the Android Emulator, I have version 29.2.3-5916265 now which has a bug. Downgrading seems to be very very difficult. In the newest version of the emulator, the layout of emulating GPX-tracks (playing GPX tracks which are then received as real GPS coordinates in the apps of the emulator) was redesigned. It seems that the developers removed the feature to emulate altitude/elevation. Latitude/Longitude still works, but the elevation setting is always 0 although the GPX-tracks which I play back have elevation-tags with real elevation.

我向Google提交了一个错误,但他们没有回应: https://issuetracker.google.com/issues/142411030

I filed a bug with Google, but they do not respond: https://issuetracker.google.com/issues/142411030

我的问题是:在哪里可以找到与Android Studio打包在一起的Android模拟器的当前源代码.我尝试了 1

My question is: Where can I find the current source code of the Android emulator which packaged with Android Studio. I tried 1 and 2, but both locations do not contain the source code.

已经有一个非常相似的问题:( 修改Android模拟器源代码),但这个问题的答案不再适用(似乎).

There is already a very similar question:(Modifying Android emulator source code), but the answer to this question no longer applies (it seems).

背景:我想知道为什么Android模拟器开发人员(又名Google)会删除功能而不回答错误请求,所以我想了解为什么更改了播放GPX曲目的模拟.我只能通过阅读源代码的源更改历史来做到这一点.

Background: I would like to know why the Android emulator developer (aka Google) removes features and does not answer bug requests, so I would like to find out why the emulation of playing GPX tracks was changed. I can do this only by reading the history of the source changes of the source code.

我们非常感谢您的帮助.

Any help is really appreciated.

最后,我找到了Android模拟器源代码并可以对其进行编译.有两个设计决策使我感到困惑,这使得寻找正确的源代码变得很努力.

Finally I found the Android emulator source code and could compile it. There were two design decisions which confused me and which made the search for the right source code an endeavour.

困惑1:源代码确实位于 1 ,但是是模拟器源代码未包含在此存储库的所有修订版/分支中.例如,如果检索"master"分支,则根本找不到任何目录external/qemu.您必须检出修订版emu-master-dev或其中带有分支前缀"emu" 的修订版,以检索源代码.源代码的GIT存储库为: https://android.googlesource.com/platform/external/qemu .最好使用Gerrit进行结帐:

Confusion 1: The source code is really located at 1, but the emulator source code is not contained in all revisions/branches of this repository. For example, if you retrieve the "master" branch, you won't find any directory external/qemu at all. You have to checkout revision emu-master-dev or a revision with a branch prefix "emu" in it to retrieve the source code. The GIT repository for the source code is: https://android.googlesource.com/platform/external/qemu. Better yet to use Gerrit to checkout:

==> mkdir emu-master-dev
==> cd emu-master-dev
==> repo init -u https://android.googlesource.com/platform/manifest -b emu-master-dev
==> repo sync -j8 --fail-fast

困惑2:仿真器的位置"选项卡包含两个不同的GUI,显示哪个GUI取决于编译器变量USE_WEBENGINE.因此,当定义USE_WEBENGINE时,我跟踪的错误就会发生.当我在本地编译它时,USE_WEBENGINE为假,因此我得到了一个没有错误的仿真器.AndroidStudio随附的仿真器似乎已使用USE_WEBENGINE定义进行了编译,因此会出现该错误.

Confusion 2: The emulator contains two different GUIs for the Location tab, and which GUI is displayed depends on the compiler variable USE_WEBENGINE. So the bug I was tracking happens when USE_WEBENGINE is defined. When I compile it locally, USE_WEBENGINE is false, so I get an emulator without bug. The emulator which is shipped with AndroidStudio seems to have been compiled with USE_WEBENGINE defined, so there the bug happens.

感谢您的回答,最终使我找到了正确的源代码!

Thanks for your answers, it led me finally to the correct source code!

推荐答案

位于仿真器源代码此处(至少直到下一次存储库重组之前).

The emulator source code is located here (at least until the next repo reorganization.)

祝你好运!

这篇关于Android模拟器源代码在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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