Ver Mensaje Individual
  #1576  
Viejo 25/02/13, 02:34:18
Avatar de Dharma1995
Dharma1995 Dharma1995 no está en línea
Miembro del foro
Mensajes: 254
 
Fecha de registro: mar 2012
Localización: Zaragoza
Mensajes: 254
Modelo de smartphone: Samsung Galaxy i9100
Versión de ROM: CM10.1 Última Nightly Oficial
Versión de Radio: M250S-LPO
Tu operador: Vodafone
Mencionado: 0 comentarios
Tagged: 0 hilos
A ver, comento; lo que he ido haciendo en mi nuevo zip ha sido ir modificando el código de un App Instaler que había.
Y todo va perfecto, sin darme error; pero cuando el móvil se reinicia descubro que no se han desisntalado las apps...
Dejo el código del aroma-config:


fontresload("0", "ttf/Roboto-Regular.ttf", "12");fontresload("1", "ttf/Roboto-Regular.ttf", "18");theme("miui4");checkbox("Lista APKs","Selecciona cuales quieres desinstalar","@personalize","app_choices.prop",
"Selecciona cuáles aplicaciones del sistema quieres borrar:", "", 2,
"Apollo", "", 0,
"Browser", "", 0,
"Calculator", "", 0,
"Calendar", "", 0,
"CMFileManager", "", 0,
"CMFileManagerThemes", "", 0,
"CMUpdater", "", 0,
"CMWallpapers", "", 0,
"DeskClock", "", 0,
"DSPManager", "", 0,
"Email2", "", 0,
"GenieWidget", "", 0,
"Gmail2", "", 0,
"GoogleBackupTransport", "", 0,
"GoogleServicesFramework", "", 0,
"HoloSpiralWallpaper", "", 0,
"LatinIME", "", 0,
"LiveWallpapers", "", 0,
"MagicSmokeWallpapers", "", 0,
"PicoTts", "", 0,
"SoundRecorder", "", 0,
"Talk", "", 0,
"Talkback", "", 0,
"ThemeChooser", "", 0,
"ThemeManager", "", 0,
"Torch", "", 0,
"Trebuchet", "", 0,
"UserDictionaryProvider", "", 0,
"VideoEditor", "", 0,
"VisualizationWallpapers", "", 0,
"VoiceDialer", "", 0,
"VoiceSearchStub", "", 0);
setvar("installer_title","You are about to install the following apps:");
appendvar("installer_title","\n\n");
appendvar("installer_title",iif(prop("app_choices. prop","item.1.1")=="1","Apollo ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.2")=="1","Browser ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.3")=="1","Calculator ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.4")=="1","Calendar ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.5")=="1","CMFileManager ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.6")=="1","CMFileManagerThemes ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.7")=="1","CMUpdater ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.8")=="1","CMWallpapers ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.9")=="1","DeskClock ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.10")=="1","DSPManager ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.11")=="1","Email2 ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.12")=="1","GenieWidget ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.13")=="1","Gmail2 ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.14")=="1","GoogleBackupTransport ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.15")=="1","GoogleServicesFramework ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.16")=="1","HoloSpiralWallpaper ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.17")=="1","LatinIME ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.18")=="1","LiveWallpapers ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.19")=="1","MagicSmokeWallpapers ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.20")=="1","PicoTts ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.21")=="1","SoundRecorder ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.22")=="1","Talk ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.23")=="1","Talkback ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.24")=="1","ThemeChooser ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.25")=="1","ThemeManager ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.26")=="1","Torch ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.27")=="1","Trebuchet ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.28")=="1","UserDictionaryProvider ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.29")=="1","VideoEditor ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.30")=="1","VisualizationWallpapers ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.31")=="1","VoiceDialer ",""));
appendvar("installer_title",iif(prop("app_choices. prop","item.1.32")=="1","VoiceSearchStub ",""));
writetmpfile("app_choices.prop",readtmpfile("app_c hoices.prop"));
writetmpfile("system_app_choices.prop",readtmpfile ("system_app_choices.prop"));
if confirm("Installing",getvar("installer_title") + "\n\n¿Comenzar desinstalación?", "@confirm")=="no" then back(1);
endif;
install("Desinstalando", "Tu selección se va a desinstalar...", "@install");


Y este sería el código del updater-script:


ui_print("Empezando proceso de selección de desinstalación");
ui_print("........................................ ........");
ui_print("........................................ ........");
ui_print("............Zip realizado por...................");
ui_print(".........Dharma1995 para HTCMania...............");
ui_print("........................................ .........");
ui_print("........................................ .........");
ui_print("Preparando todo...");
package_extract_file("utils/mount", "/tmp/mount");
set_perm(0, 0, 0755, "/tmp/mount");
ui_print("Mounting...");
run_program("/tmp/mount", "/system");
ui_print("Selecciona cuales desinstalar");
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.1")=="1") then ui_print("Desinstalando Apollo");
delete("/system/app/Apollo.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.2")=="1") then ui_print("Desinstalando Browser");
delete("/system/app/Browser.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.3")=="1") then ui_print("Desinstalando Calculator");
delete("/system/app/Calculator.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.4")=="1") then ui_print("Desinstalando Calendar");
delete("/system/app/Calendar.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.5")=="1") then ui_print("Desinstalando CMFileManager");
delete("/system/app/CMFileManager.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.6")=="1") then ui_print("Desinstalando CMFileManagerThemes");
delete("/system/app/CMFileManagerThemes.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.7")=="1") then ui_print("Desinstalando CMUpdater");
delete("/system/app/CMUpdater.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.8")=="1") then ui_print("Desinstalando CMWallpapers");
delete("/system/app/CMWallpapers.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.9")=="1") then ui_print("Desinstalando DeskClock");
delete("/system/app/DeskClock.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.10")=="1") then ui_print("Desinstalando DSPManager");
delete("/system/app/DSPManager.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.11")=="1") then ui_print("Desinstalando Email2");
delete("/system/app/Email2.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.12")=="1") then ui_print("Desinstalando GenieWidget");
delete("/system/app/GenieWidget.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.13")=="1") then ui_print("Desinstalando Gmail2");
delete("/system/app/Gmail2.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.14")=="1") then ui_print("Desinstalando GoogleBackupTransport");
delete("/system/app/GoogleBackupTransport.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.15")=="1") then ui_print("Desinstalando GoogleServicesFramework");
delete("/system/app/GoogleServicesFramework.apk");;
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.16")=="1") then ui_print("Desinstalando HoloSpiralWallpaper");
delete("/system/app/HoloSpiralWallpaper.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.17")=="1") then ui_print("Desinstalando LatinIME");
delete("/system/app/LatinIME.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.18")=="1") then ui_print("Desinstalando LiveWallpapers");
delete("/system/app/LiveWallpapers.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.19")=="1") then ui_print("Desinstalando MagicSmokeWallpapers");
delete("/system/app/MagicSmokeWallpapers.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.20")=="1") then ui_print("Desinstalando PicoTts");
delete("/system/app/PicoTts.apk");;
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.21")=="1") then ui_print("Desinstalando SoundRecorder");
delete("/system/app/SoundRecorder.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.22")=="1") then ui_print("Desinstalando Talk");
delete("/system/app/Talk.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.23")=="1") then ui_print("Desinstalando Talkback");
delete("/system/app/Talkback.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.24")=="1") then ui_print("Desinstalando ThemeChooser");
delete("/system/app/ThemeChooser.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.25")=="1") then ui_print("Desinstalando ThemeManager");
delete("/system/app/ThemeManager.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.26")=="1") then ui_print("Desinstalando Torch");
delete("/system/app/Torch.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.27")=="1") then ui_print("Desinstalando Trebuchet");
delete("/system/app/Trebuchet.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.28")=="1") then ui_print("Desinstalando UserDictionaryProvider");
delete("/system/app/UserDictionaryProvider.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.29")=="1") then ui_print("Desinstalando VideoEditor");
delete("/system/app/VideoEditor.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.30")=="1") then ui_print("Desinstalando VisualizationWallpapers");
delete("/system/app/VisualizationWallpapers.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.31")=="1") then ui_print("Desinstalando VoiceDialer");
delete("/system/app/VoiceDialer.apk");
endif;
if (file_getprop("/tmp/aroma/app_choices.prop", "item.1.32")=="1") then ui_print("Desinstalando VoiceSearchStub");
delete("/system/app/VoiceSearchStub.apk");
endif;
set_perm_recursive(1000, 1000, 0775, 0644, "/system/app");
ui_print("Haciendo Wipe cache");
delete_recursive("/cache");
unmount("/system");
ui_print("Desinstalación completada");
set_progress(1);



¿Alguien me puede ayudar? No se dónde puede estar el error...

Última edición por Dharma1995 Día 25/02/13 a las 02:45:29