In Android Studio I can change the Android API code and save it. I assume this change is not pushed to the emulator?
Do I need to download the whole AOSP and compile a new android.jar or is there an easier way to change for example Editor.java and try out things in Android Studio?
You probably don't want to change an Android api... you wouldn't be able to install the app on anyone's phone.
But yah, Android is open source and you can download AOSP, change an api, and compile a device image.That'd be the only way to do it.
What is your end goal here? There probably is an easier way to accomplish it.
Related
We have a custom ROM for a device we are making and what I want to do is make our own custom Settings app to replace the settings app that comes already built in android.
I cant really find any documentation on how to even create a system app. It does not appear you can create it in Android Studio, I tried looking on the AOSP site and didnt find anything there related to creating system apps. The few things I did find were on here where you would put android:sharedUserId="android.uid.system" in your manifest and then has to be signed with the same key as the ROM but after that I cant find anything.
The settings app I want to create would need access to the framework.jar to be able to use the hidden framework API's.
Does anyone have any information or know where I can find this information on how to go about actually creating a system app?
You may want to research how to make a Device Tree Overlay (dto). Basically it is your code, reformatting the base code, into what you want. https://source.android.com/devices/architecture/dto?hl=en
Since you said you use Gradle, you should put first build you apk and put them in you vender folder, and next important thing is to create a mk/bp file to tell the Android build system how to deal with this pre-built apk.
P.S. If you system app highly depends on Android hidden api, make sure you have the right version of framework.jar in you Android Studio project, or, as what I alway did, create apps directly in AOSP, in this case, you can just check the code structure of the original Settings app in AOSP
this tutorial may help you.
Well I have always been puzzled by the android source code and how to compile it. By reading on stackoverflow and on other websites I have come to the idea that to compile it you have to pull the whole android tree and do the actual compile on linux.
I want to make some changes to the settings app from the android source code and compile it as a standalone application.
Reading and searching I came to the idea that it cannot be done since it has calls to nonpublic api. Although I have seen some posts which kind of suggested otherwise.
Is it possible to make changes and compile the Settings app as a standalone application ?
If so could you give me an idea on what direction I should go ?
Is it possible to make changes and compile the Settings app as a standalone application ?
In AOSP you can build separate modules, so the answer is you can build it. The problem is Settings app uses services that their code is located outside Settings app so you'll have to use sources compatible with your ROM. In addition, Settings app needs system permissions so you'll have to replace the original Settings app (it's will also avoid conflicts with original app).
If so could you give me an idea on what direction I should go
I'll move on with that direction only if you planning using a custom ROM. Then, I'll download its sources and compile Settings app. After I've validated my version is compatible with the ROM, I'll start updating Settings app with my changes.
Okay here's the deal:
I want to download the full source of the MMS/SMS application that ships with Android phones. I want to be able to modify it, and add a little custom functionality to it.
I am developing using Eclipse, and I'm on Windows 7. I have noticed that there is now a Git for Windows, but I am pretty lost in it and not sure how to integrate everything with Eclipse.
Basically, I want to just get it to the point where I have all the source code visible in Eclipse and be able to see the app run JUST like the built-in texting/MMS app that is already on my phone. Then I'll know that I can modify it and proceed.
Any ideas?
Thanks!
There's a mirror of the SMS/MMS app on GitHub here. Just import that to Eclipse and customise away.
Unless you want to customize and use it only on your own phone (without publishing), this is not a good idea. This is because it uses classes that are hidden from the sdk. By default you won't even be able to build the apk via eclipse, but there is a way. The reason why this is a bad idea is that the hidden apis are not guaranteed to remain the same through different api-levels and your app can stop working with the next android update, and might also not work on previous api-levels. In-fact your app might not even work on selected phones running the same api-level.
I am having a requirement like to add a custom setting to android native settings(like when we go to Home->settings->Display we have Screen timeout,Animation,Auto-rotate screen,Brightness settings available.But i want to add one more setting like auto-screentimeout there.i,e i need to change the source code of android..some thing related to forked android consept)so,Is this possible..?if so can we use NDK for this...
Thanks in advance...
You can download the Android source code and then create your own settings APK. However it will probably only run on the phone you are testing it, and I assume you run into problems when using different Android versions or some modifications by device manufacturers.
Read more http://source.android.com/ on how to get started.
Alternatively you could extract the settings APK from your current phone, decompile it with apktools, and then re-create it again with your changes.
Read more on http://code.google.com/p/android-apktool/
In both ways you need to have root access to install the new APK... and probably a custom recovery to restore from a nandroid backup when your modification crashes!
The Android NDK is for writing application code in C or C++.
What you want is to build your own version of the Android firmware; it is a completely separate issue. Have a look at this for starters.
I wonder if anyone can tell me if it is possible to save an android app on a server and use the RSE Eclipse plugin to edit it ?
This has become necessary for me so I don't have to physically be at work to continue work on a project.
Thanks for any input.
Sorry if this seems obvious...but is there no way you can work on the app locally and save your changes to the server using RSE...or even better, commit the changes using some version control system?