Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build and reuse android open source Dialer source code in my project

I have to integrate android opensource Dialer source code into my application and also need to do customizations on the same.

  1. Currently I cloned the Dialer source code from https://android.googlesource.com/platform/packages/apps/Dialer/
  2. It doesn't seems to be a gradle project. How can I build this project ?
  3. I need to add this entire project as reusable module in my project. Could you please help me on this. How can I start with this ?

This Answer seems very informative https://stackoverflow.com/a/8668334/3020568 but I need to get some more help from guys those who tried to build this type of applications.

WE tried below steps.

  1. Checked out source code from google source.
  2. Tried to import the project in Android Studio.
  3. It has dependencies outside the project which are not able to resolve. - Some classes and methods has no reference inside the source code.

Thanks in advance.

like image 778
Dennis MP Avatar asked Dec 09 '15 05:12

Dennis MP


People also ask

Is Android source code open source?

Android's code is open source, so we can't prevent someone from using an old version to launch a device. Instead, Google chooses not to license the Google Play client software for use on versions that are considered obsolete.

What is com Android Dialer used for?

Dialer is an Android system application that provides a distraction-optimized (DO) experience for Bluetooth calling, contact browsing, and call management.

What is Android auto Dialer?

Dialer is a fully functional app that pairs with a user's phone to handle calls and manage contacts on the car screen. Built into Android Automotive OS, Dialer is designed to provide Bluetooth calling with minimal driver distraction.

What is AOSP source code?

The Android Open Source Project (AOSP) is a collection of Git repositories, which are managed together using the Repo tool. Most Android development tools (such as GitHub) can't see the source code the way that it's laid out when it's checked out on the system.


1 Answers

I know this is old but this is for future reference.

You cannot build the Dialer application without access to the rest of the source code. You need to first download the whole Android source (AOSP) and then build it because the Dialer application that comes with AOSP requires some framework files which is included in AOSP; hence the Dialer code may not actually work on all devices. Your best bet is using a tutorial to build a dialer application from scratch.

like image 66
user282190 Avatar answered Oct 19 '22 22:10

user282190