Skip to content

Commit

Permalink
Update sysbta status based on property
Browse files Browse the repository at this point in the history
Don't update the property on boot, it's a persist anyway

Test: On Pixel 6a, put the apk in system.img, do factory reset, check system-wide bt
is properly enabled. Go in treble settings, reboot. Check again
  • Loading branch information
phhusson committed May 30, 2023
1 parent 9085d3f commit a639f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/me/phh/treble/app/Misc.kt
Expand Up @@ -277,10 +277,10 @@ object Misc: EntryStartup {
spListener.onSharedPreferenceChanged(sp, MiscSettings.forceCamera2APIHAL3)
if (! sp.contains(MiscSettings.headsetFix))
sp.edit().putBoolean(MiscSettings.headsetFix, HuaweiSettings.enabled()).commit()
sp.edit().putBoolean(MiscSettings.sysbta, SystemProperties.getBoolean("persist.bluetooth.system_audio_hal.enabled", false)).apply()
spListener.onSharedPreferenceChanged(sp, MiscSettings.headsetFix)
spListener.onSharedPreferenceChanged(sp, MiscSettings.bluetooth)
spListener.onSharedPreferenceChanged(sp, MiscSettings.displayFps)
spListener.onSharedPreferenceChanged(sp, MiscSettings.sysbta)
spListener.onSharedPreferenceChanged(sp, MiscSettings.noHwcomposer)
spListener.onSharedPreferenceChanged(sp, MiscSettings.storageFUSE)
spListener.onSharedPreferenceChanged(sp, MiscSettings.dt2w)
Expand Down

0 comments on commit a639f7f

Please sign in to comment.