Where to modify AOSP source to play audio during ongoing calll? - Android Q&A, Help & Troubleshooting

What do I want to achieve?
I want to play music/prerecorded audio into a ongoing phone call and the other should hear the audio also.
What did I do so far?
I have searched a lot on Google, Stack Overflow, and XDA forum but didn't find a working solution yet. Some engineers claim that it is possible with modifying AOSP code, specially in Framework and Linux kernel Layers. But they didn't provide any resource or doc on how to achieve this or exactly which files need to be edited and where. FYI, I am quite aware that it is not possible normally as Android OS does not allow for security reasons.
What did I find till now?
I have gone through every possible links and found that this question has been asked several times but nobody couldn't provide a solution with proper guidelines. :crying:
Did anyone achieve this recently or is there any way? Thanks in advance.

Related

difference between stock/cm/miui?

Greetings!
A teacher asked me, to do a small presantation on the differences between stock android, CM7/9 & MIUI. On a sidenote I'm planning to mention the differences between stock/sense/motoblur etc.
I want to do this from a more technical point of view, but I'm lacking the resources.
Can you provide me with some links regarding some major catchwords which are floating in every thread here on xda? For example. "zipaligned" "deodexed"; what did the CM devs alter on the framework, what did the MIUI guys change.
I dont need a complete write up on this, just some hints on where to find information and maybe some cherrypicks
thank you in advance
/edit: just found http://forum.xda-developers.com/showthread.php?t=1180477 which covers a lot. If somebody wants to contribute some more "in depth" feel free.

full system source code 4.0.3 JAVA

hey everyone i found some cool stuff here full system java source code. you may ask what use is it for us? well in some cases vs trying to work with smali/baksmali. for those who wanna toy around maybe make some system applications/mod them or want to offer me help on the AOSP status bar for sense 3.6 roms then here is the chance, im not very familiar with smali/jasmine so i prefer this, but obviously you will see the set up is just plain awkward so i need some assistance on what to do with all these files, i need help locating and figuring out the setup. here is the link
http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/
any insight to this find would be nice

[Q] Changing audio resampling in Android by modifying buid.prop

I have seen a multitude of websites and audio mods which provide mixed opinions on the following line found in build.prop:
af.resampler.quality=X
​And also adding a line to build.prop called:
af.resample=X
​Do either of these actually make a difference to the processing of Audio in Android (note: I am using a Nexus 4, if that makes any difference)? And because "af.resampler.quality=4" was already part of build.prop (I'm running stock Android 4.3), does anyone know for fact what the parameters for this option are?
Thanks to all replies in advance!
UPDATE: If there's another forum where there's a better chance of me getting a reply, please do move it. Thank You.
Sorry, had to bump to keep the thread up.
Sorry, had to bump yet again. Would really like answers to this Q. Isn't there anyone with experience on this topic?
i would like to know and i notice that this isn't on my HP Touchpad by default.

[Q] Capture Stylus hover events before they get to apps

I'm trying to work with a custom build of Android based on KitKat to incorporate a stylus, copying some of the functionality (though not code) from Samsung which sells Android-with-stylus builds for e.g. the Note 3. I'm not including details of the specific device because right now I am working on a custom dev device and my aim is to write code which is generic enough to be usable from any Android (based on KitKat). The build (written by others) already incorporates drivers and sends stylus events correctly as motion events etc. Programming at the app level I can receive onHover, ontouch, onClick etc
The specific functionality I am trying to achieve is to pick up a stylus-button-click while hovering. It's perfectly possible to do this in any app, using an onGenericMotion Listener.
However, I want to make my "stylus-action" have system-wide effect - so that anywhere (in any other app, or in the launcher or whatever) I will pick up the event (prior to any other app) and bring up my custom menu. (just like AirCommand in Samsung Note 3) I guess in my custom Android this would then make that particular action somewhat protected or unusable for other users, but I'm ok with that.
In older Android (prior to ICS) you could try something by putting up a System Overlay (i.e in regular app code, without hacking the ROM at all), but this is no longer possible.
This is not an attempt to tapjack or whatever, I understand why this functionality has been removed from the domain of the regular programmer, and I don't want to regress my ROM back to pre-ICS behaviour by allowing the System Overlay hack. Now I am programming the system (if my change is good enough I'd like to submit it back to AOSP) so I would like to know the best method to address this. Since Samsung have already done this, it must be legal (using legal in the terms of "Android will allow it"), and I want to do it right.
Is it possible to write something similar to the System Overlay when you are running from a system service? Or is there a good choke-point to capture events before they are broadcast to the current running apps?
I was looking at (sorry, not allowed to post links) AndroidXRef /frameworks/base/core/java/android/view/View.java specifically in the function dispatchHoverEvent() which looks like a promising place. My naive idea is that I would place code here checking the MotionEvent to see if the button is pressed and if it is, don't call any listeners and instead call my little menu app (or broadcast a custom message, or something anyway). However, I've never written code on the ROM level before (LOTS of experience writing app code) so I don't know if this is a really bad point or a good point to add in code. Should I be putting things at a higher level or a lower one? Will this capture all events or not? Is it all just trial and error?
If this is the wrong place to ask questions like this, please tell me where on XDA I should be asking it. If it's the right place - please answer
Thanks
Kibi
Crickets....
Is this the wrong forum to ask? Anyone able to clue me in on where i should be asking?
Thanks
Last try
Bumping one more time for good luck.
if this is the wrong forum, please can someone point the way to the right forum for me
Thanks
Kibi
kibi1 said:
Bumping one more time for good luck.
if this is the wrong forum, please can someone point the way to the right forum for me
Thanks
Kibi
Click to expand...
Click to collapse
this is not a wrong section but your post is too long so no one intrested to wasting time to read whole post.even i haven't read the post
kibi1 said:
Bumping one more time for good luck.
if this is the wrong forum, please can someone point the way to the right forum for me
Thanks
Kibi
Click to expand...
Click to collapse
The guy above me is a ****. I stumbled across this post looking for something completely unrelated (title interested me). Five words in I knew this was something completely out of my league, but I still read the entire post. If I may offer you some probably useless advice, I would talk to the devs in the note forums. The only problem I could see is that the AOSP guys don't have this function in their roms because it's locked up Samsung code and the guys modding the stock roms leave it alone for the same reason. I could also be completely wrong. Like I said completely out of my league.

GT-I9300 LineageOS - allow all files by bluetooth

Hello everyone ,
I do not know if my problem is an Android limitation or if it is inherent to LineageOS, so sorry if I posted in the wrong place.
I saved and recycled my old Galaxy S3 GT-I9300 smartphone and flashed LineageOS 14.1 Android version 7.1.2 on it (works fine for my use apart from a few small bugs).
I can not find where to set the possible extensions for sharing by BT. I can transfer a JPG photo or a PDF for example, but NOT an OGG audio file and for proof if I rename an OGG file to OGG.JPG I can transfer... So not very convenient and if it is supposed to be a security, I find it frankly ridiculous !
Until now I transferred with a USB cable between my Android and my PC with adb. But I find it more convenient to just have to turn on BT temporarily from my Android so I can transfer what I want and turn it off afterwards. I also tested by wifi with the simplessh app, but the problem is that for security I do not have access to the entire smartphone in reading. So I have to juggle between storage (smartphone, SD card) and also it forces me to activate the box's wifi (I try to put it on as little as possible). That is a lot of operations for nothing...
Note: my smartphone is rooted, so if I have to get my hands dirty and dig into the depths of the system, it is not a problem...
If someone can guide me to make it a little more practical to use.
With Adelphity,
lnj
Is that so complicated ? Or maybe my question is not clear enough ...
I do not know why nobody answers to the questions I ask in XDA ...
This is the second time.
Nobody to say : this is complicate to give a working solution or simply your question is not interresting or we do not care about people who want make their device continue to work after their life and we do not care about people who do not want to make some waste and we just want to make dollar the uniq god.
I saw that XDA was often quoted as a reference in Android matter.
I am disappointed with the welcome you gave me !
However I found an area to say what I want as nobody react to it. It is wonderfull !
Shame on you !
I tried to transfer an ogg files via bluetooth to no avail.
From what I understand it's a security question and some extensions are blacklisted, but I'm not tech savvy enough to help you bypass it.
Hi barbe31 and a big thank you to be the first person to answer ! I suppose the same thing but what I find very confusing is that renaming can bypass this restriction. Just to dig, in what an OGG can be a security problem ? It is just an audio sound ...
lenainjaune said:
Hi barbe31 and a big thank you to be the first person to answer ! I suppose the same thing but what I find very confusing is that renaming can bypass this restriction. Just to dig, in what an OGG can be a security problem ? It is just an audio sound ...
Click to expand...
Click to collapse
After reading a bit more, it seems the extensions allowed to be shared via bluetooth are on a whitelist. For instance, you can't transfer apk or xml files this way, if I'm right.
I hope somebody more skilled can help you and find a solution.

Categories

Resources