Basado en s7e oreo stock - based in stock s7e
Español
Si tenemos aplicaciones PIE instaladas en nuestra rom basada en shitsung, podemos cambiar el modo oscuro al claro (night mode) sin reiniciar el télefono con este simple mod.
Guía:
- Descarga el zip anexo
- Añadir la preferencia que se muestra a continugación a GrxSettings (gracias a Ezamber de xda por dejarla usar, la tenéis en su git).
- Decompila services.jar y haz los cambios que aparecen en el archivo zip anexo
a.- vete a com-android-server y añade el smali UiModeManagerService$Observerserver suministrado
b.- edita el smali UiModeManagerService.smali y haz los cambios que encontrarás en el smali modificado que se anexa en el zip buscando por ### dentro de él. Es fácil.
English
If we have PIE apps in a shitsung oreo Roms, we can change on fly the night mode without the need of rebooting.
- Add to grxsettings apk the below prefernce (thanks to ezamber from xda for defining it)
Guide
Download the attached zip with stock s7e modded files in order to compare
a.- Decompile services.ar and go to com-android-server. Add the supplied UiModeManagerService$Observerserver to that folder
b.- Edit your UiModeManagerService.smali and compare with supplied one inside the zip. Look for ### in the modded one to see what to add. It is quite simple.
GrxSettings Pref
![[Imagen: d6b87de3d5ec8e55b6245938ceb419b9.jpg]](https://uploads.tapatalk-cdn.com/20181208/d6b87de3d5ec8e55b6245938ceb419b9.jpg)
![[Imagen: 8593cf3d249efd0ce5dce1f86ea5c69d.jpg]](https://uploads.tapatalk-cdn.com/20181208/8593cf3d249efd0ce5dce1f86ea5c69d.jpg)
Español
Si tenemos aplicaciones PIE instaladas en nuestra rom basada en shitsung, podemos cambiar el modo oscuro al claro (night mode) sin reiniciar el télefono con este simple mod.
Guía:
- Descarga el zip anexo
- Añadir la preferencia que se muestra a continugación a GrxSettings (gracias a Ezamber de xda por dejarla usar, la tenéis en su git).
- Decompila services.jar y haz los cambios que aparecen en el archivo zip anexo
a.- vete a com-android-server y añade el smali UiModeManagerService$Observerserver suministrado
b.- edita el smali UiModeManagerService.smali y haz los cambios que encontrarás en el smali modificado que se anexa en el zip buscando por ### dentro de él. Es fácil.
English
If we have PIE apps in a shitsung oreo Roms, we can change on fly the night mode without the need of rebooting.
- Add to grxsettings apk the below prefernce (thanks to ezamber from xda for defining it)
Guide
Download the attached zip with stock s7e modded files in order to compare
a.- Decompile services.ar and go to com-android-server. Add the supplied UiModeManagerService$Observerserver to that folder
b.- Edit your UiModeManagerService.smali and compare with supplied one inside the zip. Look for ### in the modded one to see what to add. It is quite simple.
GrxSettings Pref
Código:
<GrxSingleSelection
grx:optionsArray="@array/nightmode_entries"
android:title="@string/nighmodeselection"
android:key="ui_night_mode"
android:summary=""
android:defaultValue="0"
grx:valuesArray="@array/nightmode_values"
grx:systemType="secure"
/>
<string name="nighmodeselection">Select night mode for pie apps</string>
<string-array name="nightmode_entries">
<item>Auto</item>
<item>Light</item>
<item>Dark</item>
</string-array>
<string-array name="nightmode_values">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
![[Imagen: d6b87de3d5ec8e55b6245938ceb419b9.jpg]](https://uploads.tapatalk-cdn.com/20181208/d6b87de3d5ec8e55b6245938ceb419b9.jpg)
![[Imagen: 8593cf3d249efd0ce5dce1f86ea5c69d.jpg]](https://uploads.tapatalk-cdn.com/20181208/8593cf3d249efd0ce5dce1f86ea5c69d.jpg)
![[Imagen: cb70aab71cf51b15331d1f6ef25671db.jpg]](https://uploads.tapatalk-cdn.com/20181208/cb70aab71cf51b15331d1f6ef25671db.jpg)