FFMPEG commands isn't working in Android Q

前端 未结 3 1122
陌清茗
陌清茗 2021-01-05 03:19

Try this command for merge two audio files, but its not working in Android 10.0(Q) while targeting sdk 29. But, this command is completely working on

相关标签:
3条回答
  • 2021-01-05 03:33

    Now If You Guys Looking For FFMPEG for ANDROID Q Here is link use below FFMPEG Build. Include this to your app/build.gradle

    Min SDK 24

      dependencies {
            implementation 'com.arthenica:mobile-ffmpeg-full:4.3'
        }
    

    Min SDK 16

    dependencies {
        implementation 'com.arthenica:mobile-ffmpeg-full:4.2.2.LTS'
    }
    

    tested in OnePlus 7T
    Android Q

    0 讨论(0)
  • 2021-01-05 03:36

    For this library is only support maximum sdk 28 see the below link:

    https://github.com/bravobit/FFmpeg-Android/blob/master/android-ffmpeg/build.gradle

    So,In this library not run in SDK 29 because the targetSdkVersion 28 and compileSdkVersion 28 . If you want to change this thing, it'll work for you. I hope it will help you..!

    0 讨论(0)
  • 2021-01-05 03:37

    There is No Official Documentation.

    https://www.reddit.com/r/androiddev/comments/b2inbu/psa_android_q_blocks_executing_binaries_in_your/

    But You Can Use Below Method to Test You App

    It looks like both linux DAC and SE-Android are blocking your application's process from accessing the 'su' executable.

    Check if your system is running in enforced mode, meaning that SE-Android is enabled. If this is indeed the case, you can temporarily disable it by running:

    adb root
    
       adb shell setenforce 0
    

    This will disable SE-Android and will not block the apps process from executing 'su'.

    So you can execute ffmpeg

    Additionally, your app might not have the DAC permissions necessary to launch 'su' as root. You can execute the following command:

    adb shell ps
    

    For a list of all running processes on your device. locate your app (by searching for its package name), and check its group and uid. Most probably neither are root.

    Please note that building a custom userdebug image is not quite like rooting a standard Android device. The debug version is meant to allow access to the device's internals while still simulating a real functioning device with all of its default security mechanisms enabled.

    0 讨论(0)
提交回复
热议问题