避免设备特定的Andr​​oid源$ C ​​$ C取 [英] Avoid device-specific Android source code fetching

查看:133
本文介绍了避免设备特定的Andr​​oid源$ C ​​$ C取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Android源$ C ​​$ C工作。每次我做了回购同步我可以下载特定于设备的存储库的负荷,我不想因为我只会针对一台设备,比方说,HTC王牌。

I am working with the Android source code. Every time I do a repo sync I get to download loads of device-specific repositories I don't want because I will only target one device, let's say, HTC Ace.

有没有办法避免这种开销?

Is there a way to avoid such overhead?

推荐答案

由于别人已经有了建议,当地清单可以用来修补原始舱单。然而,清单也可以把项目分成组,你可以使用 -g 选项回购的init 来选择哪个组项目要下载。

As someone else already has suggested, the local manifest can be used to patch the original manifest. However, manifests can also put projects into groups and you can use the -g option to repo init to choose which groups of projects you want to download.

我认为,所有你不关心设备控释片已被放置在设备组中,所以不包括由$ P $组连字符pfixing它应该完成你想要的。组的默认设置为默认情况下,与平台的平台的,例如默认情况下,平台的Linux或默认情况下,平台的达尔文,虽然与平台*条目不出现匹配如何AOSP项目已被标记。无论如何,这应该摆脱不必要的项目:

I think all the device gits that you don't care about have been placed in the "device" group, so excluding that group by prefixing it with a hyphen should accomplish what you want. The default set of groups is "default,platform-platform", e.g. "default,platform-linux" or "default,platform-darwin", although the platform-* entry doesn't appear to match how the AOSP projects have been tagged. Anyway, this should get rid of the unwanted projects:

repo init -u ... -g default,-device

您可以闲逛清单(的.repo / manifest.xml的)来发现你不感兴趣的其他组。

You can poke around the manifest (.repo/manifest.xml) to find additional groups that you're not interested in.

这篇关于避免设备特定的Andr​​oid源$ C ​​$ C取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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