-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.sh
38 lines (33 loc) · 1.17 KB
/
service.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#AAudio & MMAP
resetprop -n aaudio.mmap_policy 2
resetprop -n aaudio.mmap_exclusive_policy 2
#AudioHaL
resetprop -n audio_hal.period_size 192
resetprop -n audio_hal.in_period_size 192
resetprop -n audio_hal.period_multiplier 3
resetprop -n audio.pp.asphere.enabled true
resetprop -n audio.playback.mch.downsample false
resetprop -n av.offload.enable true
resetprop -n flac.sw.decoder.24bit.support true
#Offload services
resetprop -n audio.offload.disable false
resetprop -n audio.offload.pcm.enable true
resetprop -n audio.offload.track.enable true
resetprop -n audio.offload.video true
resetprop -n audio.offload.passthrough false
resetprop -n audio.offload.buffer.size.kb 32
resetprop -n audio.offload.gapless.enabled true
resetprop -n audio.offload.multiple.enabled true
resetprop -n audio.offload.multiaac.enable true
resetprop -n audio.offload.pcm.16bit.enable true
resetprop -n audio.offload.pcm.24bit.enable true
resetprop -n audio.offload.pcm.32bit.enable true
#Wait for boot to finish completely
dbg "Sleeping until boot completes."
while [[ `getprop sys.boot_completed` -ne 1 ]]
do
sleep 1
done
# Sleep an additional 40s to ensure init is finished
sleep 40
killall audioserver