Kopfhörer-Lautstärkewarnung deaktivieren

M

MaGu64

Fortgeschrittenes Mitglied
11
Hallo,

nachdem ich alle veröffentlichten Möglichkeiten ausser XPosed ohne Erfolg getestet habe und mein Tasker Task zum autom. Bestätigen der Meldung nicht zuverlässig funktioniert, habe ich nochmals recherchiert und bin auf Folgendes gestossen:

Android source code explains it perfectly in AudioService.java For any experienced Android hacker, It's quite easy to patch it out though. //========================================================================================== // Safe media volume management. // MUSIC stream volume level is limited when headphones are connected according to safety // regulation. When the user attempts to raise the volume above the limit, a warning is // displayed and the user has to acknowlegde before the volume is actually changed. // The volume index corresponding to the limit is stored in config_safe_media_volume_index // property. Platforms with a different limit must set this property accordingly in their // overlay. //========================================================================================== // mSafeMediaVolumeState indicates whether the media volume is limited over headphones. // It is SAFE_MEDIA_VOLUME_NOT_CONFIGURED at boot time until a network service is connected // or the configure time is elapsed. It is then set to SAFE_MEDIA_VOLUME_ACTIVE or // SAFE_MEDIA_VOLUME_DISABLED according to country option. If not SAFE_MEDIA_VOLUME_DISABLED, it // can be set to SAFE_MEDIA_VOLUME_INACTIVE by calling AudioService.disableSafeMediaVolume() // (when user opts out).
Diese ganzen Variablen konnte ich mit einem Hex-Editor in der system/framework/framework.odex aufspüren, doch mir fehlen die Kenntnisse, das umzusetzen.

Wäre eine App (oder sogar ein Tasker task) möglich, die/der dieses AudioService.disableSafeMediaVolume() aufruft und somit diese nervige Warnung deaktiviert?

Danke

Matthias


Nachtrag: Habe hier https://bintray.com/sebastianst/Android/UnsafeVolumeXposedMod noch etwas gefunden, benötigt aber XPosed.
Könnte es evtl. was bringen, die framework.odex mit Hex-Editor zu ändern?
https://bintray.com/sebastianst/Android/UnsafeVolumeXposedMod
 
Zuletzt bearbeitet:

Ähnliche Themen

A
Antworten
2
Aufrufe
865
Arif12
A
Beatzekatze
Antworten
3
Aufrufe
1.792
sonriab
S
A
Antworten
0
Aufrufe
2.643
armin.lette
A
Zurück
Oben Unten