Recently I rooted my M2 LTE. (KingRoot, took like 30 sec)
One of the first things I did was to find and change the awful answering machine audio file.
I found the audio located in
In other Xperia forums the audio file had to be the same size as the previous file, but I found with my M2 it didn't seem to matter.
What mattered was the filename and audio encoding.
The data for the M2 answering machine seems to be stored in a mysql database located in:
But I am lazy and didn't want to mess with that bit.
So here's what I did, as ROOT w/ R/W access to /data on device...
Used Ubuntu Linux command line BTW
Then I went to my Answering Machine on the device (Phone->Menu->Disable Answering Machine for some weird Sony reason) and played my message and :D wham-o! New audio!
Called myself just to be sure and all was good. :cool:
Happy Hacking
One of the first things I did was to find and change the awful answering machine audio file.
I found the audio located in
Code:
/data/data/com.android.phone/am/greeting_msg/What mattered was the filename and audio encoding.
The data for the M2 answering machine seems to be stored in a mysql database located in:
Code:
/data/data/com.android.phone/databases/MySql_AM_DbSo here's what I did, as ROOT w/ R/W access to /data on device...
Used Ubuntu Linux command line BTW
- 1st pulled the file from my android device w/ adb to my current directory (Home)
Code:
adb pull /data/data/com.android.phone/am/greeting_msg/cci2015817202821.amr ./ - Next I used sox to identify the specific encoding, in this case Adaptive Multi Rate - Narrow BandHere's what I got:
Code:
soxi cci2015817202821.amr
Quote:
Input File : 'cci2015817202821.amr' (amr-nb)
Channels : 1
Sample Rate : 8000
Precision : 16-bit
Duration : 00:00:07.30 = 58400 samples ~ 547.5 CDDA sectors
File Size : 11.7k
Bit Rate : 12.8k
Sample Encoding: AMR-NB
- Then I took my custom greeting and converted it into the correct format w/ sox and renamed the file to match the old greeting.
Code:
sox greeting.wav greeting.amr-nb
mv greeting.amr-nb cci2015817202821.amr - Finally I pushed the new greeting to the device (as root).
Code:
adb push ./cci2015817202821.amr /data/data/com.android.phone/am/greeting_msg/
Then I went to my Answering Machine on the device (Phone->Menu->Disable Answering Machine for some weird Sony reason) and played my message and :D wham-o! New audio!
Called myself just to be sure and all was good. :cool:
Happy Hacking
Aucun commentaire:
Enregistrer un commentaire