Skip to content

Copying audio db on Android 11+ #86

@JeffAlyanak

Description

@JeffAlyanak

Modern versions of Android don't allow regular access to the Android/data directory.

As a result, the following instructions are not possible to follow unless you happen to know that and know how to work around it:

* Locate AnkiConnect Android's data folder. By default, it is under:
    ```
    (phone)/Android/data/com.kamwithk.ankiconnectandroid/files/
    ```
    However, one can verify the location of the folder by going into the settings
    (gear at the top right corner), and tapping on `Print Local Audio Directory`.
    The following output specifies that the folder is indeed in the default position:
    ```
    /storage/emulated/0/Android/data/com.kamwithk.ankiconnectandroid/files/
    ```

* After locating the two folders, copy `android.db` from the desktop's add-on folder
    into Ankiconnect Android's data folder.

For most non-rooted devices, I believe the only solution is to enable USB debugging and use adb to copy the file over:

adb push android.db /storage/emulated/0/Android/data/com.kamwithk.ankiconnectandroid/files/

I can see that there's a PR #78 (Allow users to pick local audio source location) which could resolve this by allowing users to pick a location they do have access to (perhaps worth changing the default location, too), but in the meantime perhaps the above can be added to the troubleshooting steps or added as a warning/note in the readme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions