Code Monkey home page Code Monkey logo

Comments (6)

chenxiaolong avatar chenxiaolong commented on August 23, 2024

Hello!

I want to change this repo to create a call recorder that doesn't need to be a system app.

This is not possible on modern versions of Android. You can only receive call audio through the VOICE_CALL stream or possibly the VOICE_DOWNLINK/VOICE_UPLINK streams, but all three of those require system app privileges.

I don't know if recording as root is possible (eg. via a native executable that uses the NDK AudioRecord APIs). You'll likely have to dig through the AOSP source code to determine if it has an exemption in the permission system for UID 0. I'm guessing it most likely won't.

from bcr.

fahime-ghasemi avatar fahime-ghasemi commented on August 23, 2024

Thanks for the response. According to my researches some apps have used Accessibility API to implement call recording feature. Do you know about it?

from bcr.

chenxiaolong avatar chenxiaolong commented on August 23, 2024

I don't believe that works in recent versions of Android anymore (and on older versions, I think it only records via the microphone instead of the actual call audio stream).

from bcr.

fahime-ghasemi avatar fahime-ghasemi commented on August 23, 2024

Yes, you're right. The apps that don't use call audio stream use microphone to record calls.
I'm currently thinking about how I can get those system permissions using having root access. I want to find a way to not have to install this app using Magisk module. I'm looking for a way to install this app using .apk file on rooted device and get those required system permission using root access. I don't know if it's possible or not. I would be thankful if you share your ideas about it.

from bcr.

fahime-ghasemi avatar fahime-ghasemi commented on August 23, 2024

According to my researches, it seems if the app has root access that CAPTURE_AUDIO_OUTPUT permission isn't required. I'm searching to find a way so that grant root access in app startup to test it.

from bcr.

RaingodSpires avatar RaingodSpires commented on August 23, 2024

I past last days struggling on my phone to root it (only 2 steps: unblock bootloader, and patch with magisk the boot.img and vbmeta). Finally I got it and I'm deeply grateful with the creator, because the app it works perfectly and this is a won battle vs google and its restrictions. In my country for example is completely legal to record without advise if the recorder has participation in the talk. And in any case, is very useful if you want to remember information of work, complex, etc.

Regards and a greeting

from bcr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.