Hydrogenaudio Forums

Hydrogenaudio Forum => General Audio => Topic started by: tiffaff on 2019-11-30 06:23:32

Title: how extract music files from apk files
Post by: tiffaff on 2019-11-30 06:23:32
i need to rip the ost from dbz dokkan battle (a movile game) but idk how..
Title: Re: how extract music files from apk files
Post by: Mark7 on 2019-11-30 13:17:45
You can extract an apk with any unzip program (i used 7zip).
In dragon-ball-z-dokkan-battle-4-5-3.apk I only found one music file called bgm_009.awb in assets\bgm\.
Install foobar2000 and install the the vgmstream decoder by Kode54.
Then you should be able to play the bgm_009.awb file.
According to foobar/vgmstream it is this format: CRI ADX 4-bit ADPCM (type 9 encryption).

I do not know the game, but i suspect there should be more music than this one. So either i missed it in the apk.
Or maybe the game download additional data file. Then you should search that.
Title: Re: how extract music files from apk files
Post by: Thundik81 on 2019-11-30 19:37:38
wrong forum, instead try here:
https://zenhax.com/
Title: Re: how extract music files from apk files
Post by: tiffaff on 2019-12-01 02:53:18
You can extract an apk with any unzip program (i used 7zip).
In dragon-ball-z-dokkan-battle-4-5-3.apk I only found one music file called bgm_009.awb in assets\bgm\.
Install foobar2000 and install the the vgmstream decoder by Kode54.
Then you should be able to play the bgm_009.awb file.
According to foobar/vgmstream it is this format: CRI ADX 4-bit ADPCM (type 9 encryption).

I do not know the game, but i suspect there should be more music than this one. So either i missed it in the apk.
Or maybe the game download additional data file. Then you should search that.
yeah i dont know if the sound files are getting by actualization or if i need to install the game in my phone and then seach the files
Title: Re: how extract music files from apk files
Post by: tehabe on 2019-12-02 10:10:29
According to Wikipedia, ADX is a variant of MPEG2 audio. So mpg123 should be able to play the demuxed stream. But it says the file is encrypted and without a (legal) key, your are out of luck. Probably easier to grab the analog signal with an ADC.
Title: Re: how extract music files from apk files
Post by: kode54 on 2019-12-03 05:37:11
ADX is an ADPCM format owned by CRI Middleware, not an mpeg derivative.
Title: Re: how extract music files from apk files
Post by: tehabe on 2019-12-03 12:36:13
ADX is an ADPCM format owned by CRI Middleware, not an mpeg derivative.

My mistake, the MPEG2 audio derivative is AHX.
Title: Re: how extract music files from apk files
Post by: tiffaff on 2019-12-03 15:28:34
According to Wikipedia, ADX is a variant of MPEG2 audio. So mpg123 should be able to play the demuxed stream. But it says the file is encrypted and without a (legal) key, your are out of luck. Probably easier to grab the analog signal with an ADC.
how i can get the files then? i dont know how to grab the signal with adc
Title: Re: how extract music files from apk files
Post by: Thundik81 on 2019-12-03 20:01:45
how i can get the files then? i dont know how to grab the signal with adc

Use Apktool (https://ibotpeaches.github.io/Apktool/) to properly decode *.apk then QuickBMS (http://aluigi.altervista.org/quickbms.htm) with the appropriate scripts (*.awb/*.cpk/...).
If despite all that you don't succed, ask on ZenHAX (https://zenhax.com/).
Title: Re: how extract music files from apk files
Post by: tiffaff on 2019-12-04 08:00:08
If despite all that you don't succed, ask on ZenHAX (https://zenhax.com/).
they didnt answer me

well i will try for my own... but if someone can help me it will be great too
Title: Re: how extract music files from apk files
Post by: Thundik81 on 2019-12-04 10:34:53
they didnt answer me

well i will try for my own... but if someone can help me it will be great too

You posted in the wrong section, didn't provide any useful information (url, not a single awb file) and despite this you got an answer.
Did you even try extracting the awb files with QuickBMS (http://aluigi.altervista.org/quickbms.htm) with the proper script (http://aluigi.altervista.org/bms/awb_afs2.bms)?
Title: Re: how extract music files from apk files
Post by: tiffaff on 2019-12-04 22:48:34
they didnt answer me

well i will try for my own... but if someone can help me it will be great too

You posted in the wrong section, didn't provide any useful information (url, not a single awb file) and despite this you got an answer.
Did you even try extracting the awb files with QuickBMS (http://aluigi.altervista.org/quickbms.htm) with the proper script (http://aluigi.altervista.org/bms/awb_afs2.bms)?
i tried but idk how
Title: Re: how extract music files from apk files
Post by: tiffaff on 2019-12-05 08:06:41
can make a request? i only needs 3 themes from this game

kid goku theme
title theme
title 8 bit theme
Title: Re: how extract music files from apk files
Post by: Mark7 on 2019-12-06 18:59:32
Downloading the music from youtube is probably an easier way.

https://m.youtube.com/watch?v=2ppMBeOcrZs
Title: Re: how extract music files from apk files
Post by: tiffaff on 2019-12-07 06:12:08
Yes, but that file at least have 3 re-encoding, i want it in his true quality
Title: Re: how extract music files from apk files
Post by: korth on 2019-12-10 22:14:09
Topic closed.
SimplePortal 1.0.0 RC1 © 2008-2020