Skip to content

Conversation

@HTRamsey
Copy link
Collaborator

@HTRamsey HTRamsey commented Jun 9, 2025

Fixes #12989
Need to look into Android Permissions & change how multiple stream recordings are named too

@HTRamsey HTRamsey force-pushed the dev-videomanager-recording branch 2 times, most recently from 4abddd7 to 0b809ba Compare June 9, 2025 17:58
@mdrjr
Copy link

mdrjr commented Jun 12, 2025

Can we get this merged for v5.0 ?
This fixed the filename issue I was having.
Tested on Galaxy Tab S10 Ultra and flown with ArduPilot fixed wing.

@HTRamsey
Copy link
Collaborator Author

Yup it will be. Just need to figure out if any other changes need to be made for the Android storage permissions stuff

@DonLakeFlyer
Copy link
Collaborator

Can I merge this? I want to cut a new RC with it in

<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Needed for read/write to GenericDataLocation of AppSettings -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.4 stable has:

    <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Any reason to not duplicate all of that since it worked?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly sure about write internal but must have been there for some reason :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these permissions are auto-generated. Need to double check which ones already get added automatically

Copy link
Collaborator Author

@HTRamsey HTRamsey Jun 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference, these are what get added by CMake automatically:

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"  />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"  />
    <uses-permission android:name="android.permission.BLUETOOTH"  />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"  android:maxSdkVersion="30" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE"  android:minSdkVersion="31" />
    <uses-permission android:name="android.permission.BLUETOOTH_CONNECT"  android:minSdkVersion="31" />
    <uses-permission android:name="android.permission.BLUETOOTH_SCAN"  android:minSdkVersion="31" android:usesPermissionFlags="neverForLocation" />
    <uses-permission android:name="android.permission.CAMERA"  />
    <uses-permission android:name="android.permission.INTERNET"  />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"  />
    <uses-permission android:name="android.permission.RECORD_AUDIO"  />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"  />

so yeah I need to add Internal Storage

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind Read/Write Internal isn't a valid permission

@HTRamsey HTRamsey force-pushed the dev-videomanager-recording branch from 0b809ba to 0a91baa Compare June 16, 2025 15:56
@HTRamsey HTRamsey marked this pull request as ready for review June 16, 2025 16:15
@HTRamsey HTRamsey force-pushed the dev-videomanager-recording branch from 0a91baa to ff017d2 Compare June 17, 2025 09:19
@HTRamsey HTRamsey merged commit da639eb into mavlink:master Jun 18, 2025
11 checks passed
@HTRamsey HTRamsey deleted the dev-videomanager-recording branch June 18, 2025 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android 15 Video Storage location

3 participants