Objetivo: copiar una clave/propiedad de un objeto origen a uno o varios destinos.
Ejemplo conceptual:
setedit --action copy-key --from id=123 --key api_key --to id=456
Explicación:
Copiar a múltiples destinos:
setedit --action copy-key --from id=123 --key api_key --to "id in (456,457,458)"
Copiar y renombrar la key en destino:
setedit --action copy-key --from id=123 --key api_key --to id=456 --as new_key_name
Combinado: copiar y, si falta, establecer color rojo:
setedit --action copy-key --from id=123 --key api_key --to id=456 --then "set field=color value=red"
Seguridad y consideraciones:
Puedes usar xclip para copiar texto. Para agregar un fondo rojo al texto, puedes usar herramientas como echo combinado con xclip y utilizando secuencias de escape ANSI para colorear el texto (aunque esto último funciona directamente en terminales).
echo -e "\033[48;2;255;0;0mEste texto será rojo\033[0m" | xclip -selection clipboard
Esto copiará el texto "Este texto será rojo" con fondo rojo al portapapeles. Sin embargo, ten en cuenta que:
Comandos ejemplares siguiendo el flujo:
setedit --target all --where "status=active" --field color --value red --dry-run
setedit --export --target all --where "status=active" --file backup_actives.json
setedit --target all --where "status=active" --field color --value red --confirm --audit "batch-red-2026-03-24"
adb shell settings put global accent_color -65536
adb shell settings put secure theme_primary_color \#FFFF0000
adb shell settings put system color_accent \#FFFF0000
adb shell settings put global miui_red_theme_enabled 1
adb reboot
Use this table directly. Copy the entire Key column and paste into SetEdit, then paste the corresponding Value.
| Key | Value (Copy this) | Effect |
|------|--------------------|--------|
| accent_color | -65536 | Global red accent |
| theme_primary_color | #FFFF0000 | Primary UI red |
| theme_accent_color | #FFFF0000 | Accent red |
| color_accent | #FFFF0000 | Material You red |
| notification_red_tint | 1 | Red notification shade |
| status_bar_red | 1 | Red status bar icons |
| navbar_red_color | -65536 | Red navigation bar |
| settings_red_background | 1 | Red settings page (custom ROMs) |
| red_mode_force | true | Some AOSP mods |
| overlay_red_wallpaper | 1 | Red tint over wallpaper |
Important: After adding or modifying keys, you must restart System UI or reboot the device. Some changes require: comandos para setedit para dar todo rojo copiar y pegar key
Si deseas entender cómo funciona para crear tus propias combinaciones, aquí tienes la desglosación de la "key" o código de control:
Fin del color: \x1B[0m