1

currently i am working on AOSP source and one of my requirement is to set system volume to max level, i go through following link and its specified file but i could't find any volume related settings How to set default properties in AOSP, is there any one who have done it, please guide me to it.

Community
  • 1
  • 1
Apar Amin
  • 653
  • 12
  • 22
  • Are you talking about default level on boot or the ability to change the volume? – Nir Duan Jul 20 '16 at 06:47
  • default level on boot which i need to set to max level. – Apar Amin Jul 20 '16 at 06:49
  • It may be irelevant for OP, but for anyone other, if you mean set the volume to max like you do in settings, there is an array default stream volumes in AudioManager ( or AudioService - don't remember in which of them ) which you could modify. Make sure to check the other array containing the max values for each stream. – Rick Sanchez Nov 08 '18 at 12:19

1 Answers1

1

There are two main places I would look for:
1. /frameworks/base/core/res/res/values/config.xml
Inside you'll find the config_soundEffectVolumeDb which control the default volume.

But AOSP developing is never that easy - This file might be overwrriten by specific vendor so you will have to chek here too:
2./device/<companyname>/<productname>/overlay/frameworks/base/core/res/res/values/config.xml

Nir Duan
  • 6,164
  • 4
  • 24
  • 38