Proper documentation of AOSP Source Code and tutorials for modification - Android General

I've looked around a few tutorials here and most of them are related to building a ROM from source code. I haven't yet found a tutorial that delves into modification of the source code. I'm not talking about changing the wallpaper, removing system apps and adding a few ringtones. Those are easily available. I am talking about changing default layouts or adding options to settings and customizing it to your own need.
I have looked through the source code, and the only ones I found that was easily modifiable are the strings.xml where I could change the messages and captions to my heart's content. Layout files are easy to edit as well, but the ones set programmatically are the problem. It is quite difficult to change them without understanding the dependency.
Is there any documentation or tutorial that explains and delineates the files in the source code and their dependencies? Also, an IDE for editing the source code would be really helpful.

Mycroft2046 said:
I've looked around a few tutorials here and most of them are related to building a ROM from source code. I haven't yet found a tutorial that delves into modification of the source code. I'm not talking about changing the wallpaper, removing system apps and adding a few ringtones. Those are easily available. I am talking about changing default layouts or adding options to settings and customizing it to your own need.
I have looked through the source code, and the only ones I found that was easily modifiable are the strings.xml where I could change the messages and captions to my heart's content. Layout files are easy to edit as well, but the ones set programmatically are the problem. It is quite difficult to change them without understanding the dependency.
Is there any documentation or tutorial that explains and delineates the files in the source code and their dependencies? Also, an IDE for editing the source code would be really helpful.
Click to expand...
Click to collapse
I am what you call a beginner of what you had just said.First there isn't a "tutorial" of or for what you said The commits and changes are the tutorials.You can easily change the stuff you want using a theme engine and modifying the system settings apk to add options.And also the best ide is the android studio or Eclipse.Both work perfectly but I prefer eclipse Because I've been using it since I graduated.
for starters the system ui handles the layout.Settings apk carries the settings toggles.But considering this will make missing links you go to the source.There are a few articles on xda regarding this but they are ancient.
Sent from my Pixel 3 XL using Tapatalk

Related

Changing and Editing Andriod OS.

I'm new to this and I've asked people for help but nobody seems to can BUT if you can show me how I can edit things like, change the folder to where you d/l a MMS or edit the size of the favorited person on FB.
There is no general answer to this question. You must reverse engineer an app and find a way, how to modify what you want.
Ok, I'm listening and willing to learn, but for the touted of such an open source OS like Android, I find it VERY difficult that I cant do things like save pics to a different folder other than "all downloads". There must be a way I can edit the strings or permission to the access of this folder only for downloads.

[Q] Questions About Modifying Android

Hi, I know there are probably many topics with people talking about this.. But, I have some very specific things I wanna ask.
So, What do I want to know how to do...
I would like to know how to edit and modify the android software. I want to make my own custom roms, kernels, all of that.
BTW: I have a Samsung Galaxy SII T-Mobile SGH-T989 rooted w/ (for now) Juggernaut v4.1 on it..
Couple ?'s
What can I use to make my own themes and other visual items? I want to modify like say, my clock widget so that the background is red... How can I do things like that?
What do I need to do serious modification to it, such as changing up the settings menu to include new things? I remember a program called ADB was used but idk if its still used.
No, with all this said, obviously there must be some coding knowledge needed, so, what coding and other software knowledge would I need to know in order to complete things like this successfully?
Thank you very much for all your help guys.
About modifying your clock widget background, you cannot do it unless the source code of your widget app is available for download and the license grants to you permission to modify it. You can contact the developer and request this feature.
Modify your system is more complicated, even more if you are not a developer. The Android system and the majority of apps are written in Java language.
All the softwares and knowledge you need you can find on developer dot android dot com (sorry I can't post links yet). Spend some time reading the informations about the platform and the developers guide.
If you don't know Java or isn't familiar with the Eclipse IDE I suggest you to start from these before trying to develop for Android. The SDK (software development kit), wich includes the adb that you mentioned, is available as a plugin for Eclipse which supports your development.

[Concept] APK MODDER

Hello guys its been along time since i've developed anything.My stock project rom was suspended because i started my second degree in economics and i just didnt have time.
I am brainstorming trying to think of clever ideas of injecting changes into an apk.My goal is to create a program with a database,the database will contain the code changes and original code of smalis inside an apk.What i want to achieve is being able to very quickly decompile and replace the .smali file that needs modding and then compiling it back again.By doing so i think it will save developers ALOT of time.
I few questions i would like to ask..
First of do you think it would be better to have an online database rather than an offline one?Where everyone can contribute and add mods to the database(when i say mods i dont mean the actual apk).
Second of all i will be developing the program in C++ and since its been a while i would really like to see if anyone is willing to contribute to this by helping out a bit when needed.
And Last,Can you tell me your opinion on my current idea?
I've already started designing the program and i will start uploading beta versions for you to test next week :]
I'm not too sure but doesn't lucky patcher do this ?
Sent from my GT-N7100 using Tapatalk 2
Have a peek at Xposed. Game changing and accomplishes what I think you are looking for.
myn said:
Have a peek at Xposed. Game changing and accomplishes what I think you are looking for.
Click to expand...
Click to collapse
Ya, morph zips essentially do the same thing, except you have to add the files the zip injects into the apk.
Virtuous Ten Studio can decompile apps to let you make changes, and then recompile and push/install through ADB, so if you are working with already-compiled APKs you might look into it. Another handy feature is its ability to convert to Java sources - it doesn't let you edit them, but it makes it a little easier to follow the code paths by comparing the Smali with the java source.
myn said:
Have a peek at Xposed. Game changing and accomplishes what I think you are looking for.
Click to expand...
Click to collapse
What he said
Sent from my SAMSUNG-SGH-I317 using xda premium

[Q] Android ROM/Application Source Code

I am new to programming and understanding the concepts behind it and I was wondering if anyone could point me in the direction to some source code for the excellent ROM's I have seen on here or any applications which have been developed for the Android OS? The reason for this request, I need to see the code to understand what's going on behind the scenes to make a ROM/application function. I figure if I am able to study the code, I may actually be able to understand finally how to develop either an application or ROM. Thanks in advance. :good::good::good:
LivioDoubleFang said:
I am new to programming and understanding the concepts behind it and I was wondering if anyone could point me in the direction to some source code for the excellent ROM's I have seen on here or any applications which have been developed for the Android OS? The reason for this request, I need to see the code to understand what's going on behind the scenes to make a ROM/application function. I figure if I am able to study the code, I may actually be able to understand finally how to develop either an application or ROM. Thanks in advance. :good::good::good:
Click to expand...
Click to collapse
Most of the ROM's that are built from source either use AOSP source code which the source code can be found here, Cyanogenmod source code which can be found here, AOKP source code which can be found here, or Paranoid Android source code which can be found here, or the ROM's use a combination of all these listed and cherrypick there favorite features from each while adding there own. When it comes it seeing what other changes have been made by the developer the easiest way to look at the source code is looking at each developers github profile if available which can be accessed by usually searching for there username on github or clicking on there username here on XDA and selecting the "View Github profile" option. Let me know if you still have questions .
Thank you shimp208 for your expedient response on this issue. I will definitely be checking out the links you have provided and with hopes, gain a deeper understanding of the Android OS to become a developer myself.
LivioDoubleFang said:
Thank you shimp208 for your expedient response on this issue. I will definitely be checking out the links you have provided and with hopes, gain a deeper understanding of the Android OS to become a developer myself.
Click to expand...
Click to collapse
I wish you the best of luck man, these guides are also definitely worth taking a look for getting started with a variety of ROM development aspects http://xda-university.com/as-a-developer.
Sent from my SCH-I535 using xda premium
Thanks a lot
shimp208 said:
Most of the ROM's that are built from source either use AOSP source code which the source code can be found here, Cyanogenmod source code which can be found here, AOKP source code which can be found here, or Paranoid Android source code which can be found here, or the ROM's use a combination of all these listed and cherrypick there favorite features from each while adding there own. When it comes it seeing what other changes have been made by the developer the easiest way to look at the source code is looking at each developers github profile if available which can be accessed by usually searching for there username on github or clicking on there username here on XDA and selecting the "View Github profile" option. Let me know if you still have questions .
Click to expand...
Click to collapse
Thanks For Help i too had same Que.
Thank you very much :good:

Where has all the XDA wizards gone? Anyway camxoverridesettings.txt in vendor/etc/camera can override camera settings, limitless possibilities here..

camxoverridesettings.txt file created in vendor/etc/camera can override camx settings, I think it also affects cam2 api as well, here is a list of settings I found, alot of them work for sure, idk if all do. Got some pretty good results with some and can also dump images from certain nodes to limit image processing etc..
Some have build prop commands too, don't really know how this works but it definitely helps, here are some links for you
study/camxsettings.xml at a9e37cf33f6383760b51ebdb5953fbb5f40b8e80 ยท xuliyan0099/study
Contribute to xuliyan0099/study development by creating an account on GitHub.
github.com
Camera streaming examples
Github page is down, would be great to find more about this.
Just saw your reply, and yea I've been trying to track it down, I believe it's camx source files, I'll post here if I find it

Categories

Resources