I have upgraded OS from Android 10 to Android 11, when I try to run adb push test.txt /mnt/sdcard/
, I am getting an error adb: error: stat failed when trying to push to /mnt/sdcard/test.txt: Permission denied.
In AndroidManisfest.xml I have given all below permissions:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:requestLegacyExternalStorage="true">
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…