arekolek / simple-phone

Bare minimum implementation of an Android Phone app
MIT License
198 stars 71 forks source link

Question: Any idea how to clone the Phone app of Android #3

Closed AndroidDeveloperLB closed 5 years ago

AndroidDeveloperLB commented 5 years ago

This repository is nice, but the full implementation of all things in a during call UI is probably much larger.

Do you know perhaps how to clone correctly the official Phone app, or at least just the part of during the call?

I've tried here: https://android.googlesource.com/platform/packages/apps/Dialer

But it is so messy and I don't get what to do with the folders. The IDE failed to just import it all.

However, I've found 2 repositories that have it working, though in a bit old version (Android N) of the Phone app:

How did they do it? Can you please show, step by step, how to import it all into a working project ?

arekolek commented 5 years ago

This repository is nice, but the full implementation of all things in a during call UI is probably much larger.

It is :)

Do you know perhaps how to clone correctly the official Phone app, or at least just the part of during the call?

You might have better luck finding an answer here https://stackoverflow.com/search?q=%22platform%2Fpackages%2Fapps%2FDialer%22

I have some notes I took last time I was downloading AOSP code to open it in Android Studio, with the intention of someday making it an answer on Stack Overflow:

At least 100GB of free disk space to checkout the code and an extra 150GB to build it.

sudo apt install repo or install with curl

[StudioProjects] mkdir aosp                                                                                                          
[StudioProjects] cd aosp

if you choose Android M or older, you'll need JDK 7 instead of 8

[aosp] repo init -u https://android.googlesource.com/platform/manifest
repo sync

this will take about an hour (depending on your network connection), changing branches takes about 20 minutes

make, if you're low on disk space, delete .repo (more than 50 GB additional needed)

make idegen && development/tools/idegen/idegen.sh

open android.ipr in AS, this will take ???

do stuff from https://shuhaowu.com/blog/setting_up_intellij_with_aosp_development.html and https://android.googlesource.com/platform/development/+/master/tools/idegen/README

AndroidDeveloperLB commented 5 years ago

I don't want the entire AOSP. I want just the dialer (Phone) app... Cloning the entire AOSP would take huge amount of time, and also somehow trimming it to just the Phone app...

Some of the posts on StackOverflow point to the Google repository I've mentioned.

Can you please check it out?

arekolek commented 5 years ago

It's not possible to build it separately without modifying it heavily, sorry.

AndroidDeveloperLB commented 5 years ago

But it seems that it's what others have done, or at least on the repositories I've shown...

arekolek commented 5 years ago

That's what I said :)

niedz., 14 paź 2018, 18:13 użytkownik AndroidDeveloperLB < notifications@github.com> napisał:

But it seems that it's what others have done, or at least on the repositories I've shown...

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/arekolek/simple-phone/issues/3#issuecomment-429639242, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2iXXqunORy_Cec4l4LHIopA1TE0Vvpks5uk2KrgaJpZM4XAe2C .

AndroidDeveloperLB commented 5 years ago

No, I mean it seems they took just what's needed from the repository I've mentioned (here), and didn't clone the entire AOSP.

arekolek commented 5 years ago

That's what I said:

It's not possible to build it separately without modifying it heavily, sorry.

AndroidDeveloperLB commented 5 years ago

But what I just said is that it's not what they did. I don't think that they cloned entire AOSP, as you wrote "more than 50 GB additional needed". I think they only took what is needed.

My question is how did they make an order out of all the mess I've found. There are many folders there that don't make sense.

arekolek commented 5 years ago

This is not the place for such a discussion, and I've already gave you all the help that I can, even though I had no such obligation.