Opening android AOSP native applications in eclips

2020-07-20 07:33发布

I need to edit the original Android Apps from packages in terms make my own distro/mod.. I want to make changes to the In Call screen, lock screen, contacts, calendar etc.. I understand that for doing this I will have to build everything from source, however I need to edit the source and to do so I need to open the OS provided apps as eclipse projects,

When I did I saw that there are

  1. missing imports which are hidden in the SDK (or missing)

  2. hidden parameters within the classes..

I don't want to use reflection since the whole code is here and available, but how do you build a platform development kit..

or PDK ?:)

Can any one help?

3条回答
趁早两清
2楼-- · 2020-07-20 07:42

You start by reading the documentation.


EDIT:

If you are trying to download some single project from AOSP and compile it using the SDK, odds are very strong that it will not work, and that you will encounter problems like the ones you cite. You do not build Android by building individual apps; you build Android ("my own distro/mod") by building the entire firmware. Most AOSP applications are not designed to be compiled by the SDK, but need the whole firmware.

查看更多
家丑人穷心不美
3楼-- · 2020-07-20 07:46

Please check Using eclipse to browse and edit AOSP. You can atleast edit your code using eclipse, but you will have to use AOSP build system to build your distro.

You might also check Debugging Android Java Framework services as that would help debug your changes.

查看更多
一夜七次
4楼-- · 2020-07-20 07:47

Just open Eclipse, then go to "window" +"preferences" +"android" there you will get sdk location,then give the appropriate path of the android sdk for proper run...

查看更多
登录 后发表回答