Modify access control mechanism of AOSP - Android General

As of Android M, when a runtime permission is revoked, PackageManager forcefully kills the app. Taking microphone permission as an example, I'm thinking more of a way in which when the mic permission is revoked it informs the microphone module to stop recording immediately instead of killing the app.
I've checked out multimedia recording library source code and PackageManager source code. It seems that recording library before start recording does an IPC and query for permission approval, if it's granted, does the recording.
For those familiar in this topic of AOSP, is the a simple-to-integrate way to inform the multimedia recording library upon permission revocation? I think multimedia recording library should register a callback for this purpose. Does PackageManager allow such a callback registering?
By the way the multimedia recording library is written in C++ and does IPC using Binder.

Related

kitkat specs xclusive

Xclusive For XDA:victory:
Pls show support for my effort by hitting thanks
KItKaT 4.4 Specs
1.Screen Recording
2.Tap to Pay {Google Wallet for everyone}
3.NFC emulation for non nfc devices
4.14% less memory usage
5.Minimum Ram required is 512mb
6.chrome, youtube takes 12%less memory
7.cloud printing from Gallery {Print your photos directly to ur home Printer}
8.Webview is Now Chromium
9.Google Home is the new Launcher
10.New 'Google Home' works only with Google Search app installed
11.Core System Processes Trimmed
12.Apps are efficient and responsive on all devices
13.The all new 'procstats tool details' memory use
14.Payments without needing Secure Elements
15.Printer manufacturers can use new APIs to develop their own print services
16.A new storage access framework allows browse all document storage providers.
17.ART runtime compile support along with dalvik VM {faster runtime}
18.Dalvik JIT code cache tuning, kernel samepage merging (KSM), swap to zRAM
19.Use less heap,Aggressively protect system memory from apps
20.When multiple services start at once —Android now launches the services serially
21.hardware sensor batching
22.Step Detector and Step Counter
23.shared SMS provider and new APIs
24.Full-screen Immersive mode
25.Transitions framework for animating scenes {animate changes to your UI on the fly}
26.Translucent system UI styling
27.Enhanced notification access
28.seamless change in resolution during media playback
29.Common Encryption for protected content
30.HTTP Live Streaming
31.Audio Tunneling to DSP dramatically improve battery life
32.Nexus 5 offers a total off-network audio playback time of up to 60 hours
33.Audio monitoring peak and RMS levels of any currently playing audio
34.Loudness enhancer increase the loudness of spoken content
35.Audio timestamps for improved AV sync
36.Wi-Fi CERTIFIED Miracast
37.RenderScript Compute improves Ongoing performance
38.RenderScript in the Android NDK
39.GPU acceleration for any apps using render script
40.GLES2.0 SurfaceFlinger
41.New HWComposer 1.3 support for virtual displays
42.Bluetooth HID over GATT (HOGP) support
43.Bluetooth MAP support
44.built-in IR blasters, along with a new API and system service
46.Wi-Fi TDLS support seamless way to stream media in same wifi network
47.System-wide settings for closed captioning { apps can show captions}
48.SELinux (enforcing mode)
49.Improved cryptographic algorithms ECDSA
50.Designed to run fast, smooth, and responsively on a much broader range of devices than ever before
51.Phone dialer got local business detection
52.Smart caller ID
53.SMS support for Hangout
54.Emoji support on Google keyboard
55.Redesigned Quickoffice
56.100gb Google drive Storage Coming soon
57.Updated Google Apps
58.Faster smoother,brilliant google voice search
59.swipe left for Google now on Google Home
60.Full Screen AlbumArt on lockscreen
61.Best Android YET......Any Doubts?

Modifying in-call voice playback in a custom ROM

Hi, I'm a developer. My first time into building AOSP and experimenting with custom ROMS.
I would like to know if it's possible to modify the OS in order to add preprocessing to in-call voice playback (normal phone call).
I already know it's possible with system audio (such as music players, etc.), but I couldn't find information and the best entry point for in-call voice processing.
I am targeting Nexus 5X, so I'm OK with modifying Qualcomm code.
Also, I'm only interested in modifying playback - I don't care about recording (uplink).
If there's an entry point that will apply the same way for phone calls, and all other system audio - that would be the best.
Thanks

Facetime recording

Hi guys
We are looking to capture screen recording of Facetime or other audio/visual call services (Skype, whatsapp, etc.). We're creating a video that uses footage from an iPhone screen of people having a video call.
Unfortunately the new screen record feature on iOS 11 doesn't allow for audio capture. Once you open Facetime or other apps (the Facetime mic overrides the mic used to capture audio in screen record).
As it stands we've used Quicktime, Apowersoft and the new screen record feature to variously capture recordings of facetime. However almost every time there is an issue with audio.
Wondering if anyone has any experience of this and might know how to capture the video and audio directly onto the iPhone without having to use a Mac or external mic?
You are on the wrong site for that. We don't do anything with Apple here. Only android and windows based stuff.

Default Camera App - OneUI 3.0 - Android 11

Recently I have updated my Samsung Galaxy A70 from OneUI 2.5 to the latest update OneUI 3.0 based on Android 11.
The most common usage I do on my phone is recording lectures in my university using the Samsung Notes app. While the lecturer is talking, i use the attachment button "camera" to take a photo of the powerpoint slide and add it to the notes at the same time i am recording the lesson so I can find the timestamp later.
I cannot record the audio and open the camera at the same time. When the camera app opens, the recording stops. But when I open another camera app (not the preinstalled Samsung Camera app) then the recording doesn't stop.
This is why I have installed and made default application for camera a third-party camera app, the GCam port for my phone.
Everything worked fine until the update.
Apparently based on the following post, in Android 11, I cannot choose a default camera app.
How Do We Set the Default Camera App in Android 11?
In Android 11 Beta 3, Google is blocking the ability for third-party camera apps to handle photo/video requests on behalf of other apps. Interested developers can read the release notes for the rat...
android.stackexchange.com
-Is there any way to fix this?
-Maybe Remove the preinstalled camera app and add GCam in its place?
-Any other program that takes camera photos and records at the same time with a Notes Replay feature (similar to Notability? Samsung Notes has this feature)?
-Any way to set the default camera app?
Anyone any ideas?
My workaround is to open the 3rd party GCam app and take a photo..this way the recording doesn't stop.
Then go back to Samsung Notes app and insert the image that I just took.
But it is very non-productive and slow.

Is there a way to divert -or spoof- a device's microphone input as internal audio? (e.g. Get internal audio as if it was getting picked up by the mic)

Would there be a way to either:
Have my device recognize internal audio (e.g. a YouTube video playing) as if it was audio picked up by its microphone, maybe with some kind of dev settings?
I know GPS can be spoofed in the developer settings, so would it be possible to spoof the microphone input and divert it as internal audio so that the device could for example transcribe a video's audio into text with an app that picks up the audio as if it was coming from the microphone (e.g. Google Translate / Google Recorder)?
Most of the workarounds I've seen meant using the phone speakers to output the sound to then be picked back up by the microphone, which would be both inconvenient (e.g. in public transports or any place that has too much ambiant noise for this to work) and pretty ridiculous to transform digital to analog, output it to record it back in analog and transform it back into digital.
It simply doesn't make a lot of sense to me looking at it this way.
Hence why I would be interested to know if there's a way to make this work either through something available in accessibility settings/developer mode/ or any kind of mod that requires root.
wbs_perso said:
Would there be a way to either:
Have my device recognize internal audio (e.g. a YouTube video playing) as if it was audio picked up by its microphone, maybe with some kind of dev settings?
I know GPS can be spoofed in the developer settings, so would it be possible to spoof the microphone input and divert it as internal audio so that the device could for example transcribe a video's audio into text with an app that picks up the audio as if it was coming from the microphone (e.g. Google Translate / Google Recorder)?
Most of the workarounds I've seen meant using the phone speakers to output the sound to then be picked back up by the microphone, which would be both inconvenient (e.g. in public transports or any place that has too much ambiant noise for this to work) and pretty ridiculous to transform digital to analog, output it to record it back in analog and transform it back into digital.
It simply doesn't make a lot of sense to me looking at it this way.
Hence why I would be interested to know if there's a way to make this work either through something available in accessibility settings/developer mode/ or any kind of mod that requires root.
Click to expand...
Click to collapse
A lot of android devices have to use a PC/Laptop to capture internal audio, these devices can not capture the internal audio themselves, they weren't built with the capability, it has to be done externally. It depends on your specific device model number and your android version. Some devices can capture internal audio from within the device itself using a feature that is built-in. If it is possible to capture internal audio from within the device itself, a Google search for:
"Capture internal audio (your model number&android version)"
Should render some kind of useable results.
Have my device recognize internal audio (e.g. a YouTube video playing) as if it was audio picked up by its microphone
Click to expand...
Click to collapse
Playstore -
Internal Audio Recorder - Screen & Audio Recorder apk
I use it to copy youtube or any other video & songs as mp3, copies are quite as original.
In case thats what you meant.
Edit:
Pls ignore the answer, I didnt understand the question well sorry.
Droidriven said:
A lot of android devices have to use a PC/Laptop to capture internal audio, these devices can not capture the internal audio themselves, they weren't built with the capability, it has to be done externally. It depends on your specific device model number and your android version. Some devices can capture internal audio from within the device itself using a feature that is built-in. If it is possible to capture internal audio from within the device itself, a Google search for:
"Capture internal audio (your model number&android version)"
Should render some kind of useable results.
Click to expand...
Click to collapse
I know that my device can capture internal audio with the integrated Screen Recorder app at least.
Spoiler: Specs
Device: OnePlus 5T
ROM: OOS 10.0.1
Android 10
Magisk 24.3
But what I'm searching for is a way to use that internal audio capability of my device to act as if it was a microphone stream since most of the apps that I found to either transcribe or recognize audio (e.g. Google Translate / Google Recorder or Shazam) don't have a setting to choose which input stream they "listen" to.
interesting..

Categories

Resources