Development of an individual version of the integrated application for SMS / MMS applications

Ok, here is the situation:

I am developing a client application (or trying to do this). This requires many (if not all) of the same features as the built-in SMS / MMS application. So I thought - HEY! Android open source? I can take the application and change it to my needs, right?

So, I found the code on github for the MMS / SMS application (for some reason, based on the AndroidManifest file, it calls my project, which I built, "ConversationList"). But I get TONS of errors related to import com.google.android.mms package. * And a couple more packages.

Everyone says "this is a private / internal package" and "download the entire AOSP." But, HOW to do this on Windows, and WHY I can’t just download the appropriate packages for use in the program?

ALL I want to do is build a project in Eclipse by deploying it to my phone and then change the code you need. If Android is open source, why are there so many secret / internal packages? This is frustrating.

Any tips?

+4
source share
2 answers

So, I found the code on github for the MMS / SMS application (for some reason, based on the AndroidManifest file, it calls my project, which I built, "ConversationList"). But I get TONS of errors related to import com.google.android.mms package. * And a couple more packages.

AOSP applications like this are designed to be created as part of the firmware image, and not as standalone applications.

But how to do it on Windows

Most likely, you will not do it. Cygwin can work. Most likely, you will need to use OS X or Linux, for example, run Linux in VirtualBox. And the result of your assembly will not work on anything except as part of the built-in firmware that you use to replace the firmware on the device.

WHY can't I just download the appropriate packages for use in the program?

Since this application is intended to be created as part of the firmware image, and not as a separate application.

ALL I want to do is build a project in Eclipse by deploying it to my phone and then change the code you need.

Then find the project to be created as a stand-alone application as a starting point. Or, work on changing the project that you are trying to use to work as a stand-alone application, tearing out all the functionality that depends on what is not in the application itself.

If Android is open source, why are there so many secret / internal packages?

They are not "secret." They are part of the firmware.

For example, since you seem to be familiar with Windows, it is entirely possible that “applications,” such as the control panel, are not designed for self-development from Windows. If you were able to download the source code in Windows and tried to load the control panel into Visual Studio, then it is highly possible that you could not create a separate stand-alone CPANEL.EXE file through this single project only. Rather, you will need to use the custom build process of the Windows OS to build the entire OS, which will then contain CPANEL.EXE , which will work inside this built-in version of the OS.

Most AOSP applications work this way. Some of them were branched to create stand-alone applications - K-9 Mail came from an earlier version of the AOSP email application. I have no idea if anyone did this using the AOSP Messaging app or not.

+5
source

Instead, you can use fork TextSecure [0] as it is not a system application, but it looks very similar to a stock exchange application. The AOSP application must be installed in / system / app, which requires root and may not be what your client wants.

Please note that this application is copylefted (GPLv3), so you need to give the client access to the source code according to the terms of the GPL if you use fork.

[0] https://github.com/WhisperSystems/TextSecure

+3
source

Source: https://habr.com/ru/post/1412173/


All Articles