All information about music has been stored in the Android database, including album genre information.
There are two tables "audio_genres_map" and "audio_genres" related to genre information in the database.
audio_genres_map:
audio_genres:
The only information related to music stored in audio_genres_map is "audio_id". One audio_id corresponds to the id of a genre, that is genre_id. From the picture, you can see that multiple audio_ids correspond to the same genre_id, which means that these songs belong to the same album. From the audio_genres_map we get the genre_id based on the audio_id; the second step is to read the corresponding field name from audio_genres based on the obtained genre_id, which is GenreName, which is the genre information of the song. The _id in audio_genre is also the genre_id in audio_genres_map.
So if you want to get the genre information of the album, you only need to get the audio_id of one of the songs in the album, and then read the audio_genres_map and audio_genres. the information you want.