# Optimizar paquetes después de instalar ROM

Después de instalar una ROM la bateria esta algo perdida y necesitamos unos dias para que se "asiente" y las lecturas sean más correcta, aunque podremos hacer algún calibrado de bateria despues de una carga completa con alguna App como "[Battery Calibrator](https://f-droid.org/packages/eu.roggstar.luigithehunter.batterycalibrate/)", necesitamos optimizar los paquetes instalados.\
\ <img src="/files/FvUXZ1VLZcn7uRPAoVR5" alt="" data-size="line">Informacion <https://developer.android.com/training/wearables/compose/performance?hl=es-419>\
\
Necesitaremos:\
\- Custom ROM\
\- root\
\- [Termux](/android/instalar-termux.md)

Abrimos Termux y ejecutamos este comando

```
su -c "cmd package bg-dexopt-job"
```

En función del móvil y los paquetes instalados que tengamos, tardará más o menos en responder, cuando finalice nos devolver un "`Success`"

![](/files/CwGoFHsNwOPBnEG9b6jd)

Despues, usar normalmente.\
Ejecutar este comando despues de instalar todos los paquetes y Apps.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.azagra.dev/android/optimizar-paquetes-despues-de-instalar-rom.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
