CERCA
PER MODELLO
FullScreen Chatbox! :)

Utente del giorno: 9mm con ben 2 Thanks ricevuti nelle ultime 24 ore
Utente della settimana: 9mm con ben 14 Thanks ricevuti negli ultimi sette giorni
Utente del mese: 9mm con ben 35 Thanks ricevuti nell'ultimo mese

Pagina 1 di 2 12 ultimoultimo
Ultima pagina
Visualizzazione dei risultati da 1 a 10 su 16
Discussione:

[GUIDA] Sintassi Updater-script piu' creazione di zip flashabili da recovery

Se questa discussione ti è stata utile, ti preghiamo di lasciare un messaggio di feedback in modo che possa essere preziosa in futuro anche per altri utenti come te!
  1. #1
    Androidiani Power User L'avatar di cesco


    Registrato dal
    Sep 2010
    Località
    Bg
    Messaggi
    5,018
    Smartphone
    TYTN2,desire,desireHD, oneX

    Ringraziamenti
    54
    Ringraziato 1,346 volte in 724 Posts
    Predefinito

    [GUIDA] Sintassi Updater-script piu' creazione di zip flashabili da recovery

    ecco una guida completa sulla sintassi dell'updater-script e sulla creazione di zip flashabili in recovery.
    di seguito riporterò la sintassi in 2 versioni: AMEND(vecchio linguaggio usato nelle recovery) e EDIFY(linguaggio utilizzato attualmente nelle recovery)
    successivamente vi spieghero' anche come creare zip da flashare in recovery.

    come capire se la vostra recovery usa AMEND o EDIFY??

    amend: il nome del file e' UPDATE-SCRIPT
    edify: il nome del file e' UPDATER-SCRIPT

    ovviamente noi sul DHD utilizziamo script EDIFY ma questa guida puo' essere utile anche per chi ha terminali piu' vecchiotti!

    cominciamo!

    visualizzazione messaggio:
    codice:
    mancante...----------ui_print("messaggio da visualizzare...");

    Formattazione:
    codice:
    format SYSTEM:--------------------------format("MTD", "system");
    						
    format DATA:----------------------------format("MTD", "userdata");
    						
    format CACHE:---------------------------format("MTD", "cache");
    
    format SDEXT:---------------------------mancante per ora...
    Pulizia:
    codice:
    format("yaffs2", "MTD", "system");
    format("yaffs2", "MTD", "userdata");
    run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
    run_program("/sbin/busybox", "rm", "-rf", "/sd-ext/*");
    run_program("/sbin/busybox", "rm", "-rf", "/sdcard/.android_secure/*");
    run_program("/sbin/busybox", "umount", "/sd-ext");
    run_program("/sbin/e2fsck", "-pv", "/dev/block/mmcblk0p2");
    copiare file in /system o /data:
    codice:
    copy_dir PACKAGE:system SYSTEM:---------mount("MTD", "system", "/system");
    ........................................package_extract_dir("system", "/system");
    						
    copy_dir PACKAGE:data DATA:-------------mount("MTD", "userdata", "/data");
    ........................................package_extract_dir("data", "/data");
    copiare file su SD:
    codice:
    copy_dir PACKAGE:sdcard SDCARD:---------mount("vfat","/dev/block/mmcblk0p1","/sdcard");
    copiare su SD-EXT (ext /2/3/4):
    codice:
    copy_dir PACKAGE:SDEXT SDEXT:-----------run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
    ........................................package_extract_dir("sdext", "/sd-ext");
    
    OPPURE:
    
    copy_dir PACKAGE:SDEXT SDEXT:-----------mount("ext4","/dev/block/mmcblk0p2","/sd-ext");
    ........................................package_extract_dir("sdext", "/sd-ext");
    
    copy_dir PACKAGE:SDEXT SDEXT:-----------mount("ext3","/dev/block/mmcblk0p2","/sd-ext");
    ........................................package_extract_dir("sdext", "/sd-ext");
    
    copy_dir PACKAGE:SDEXT SDEXT:-----------mount("ext2","/dev/block/mmcblk0p2","/sd-ext");
    ........................................package_extract_dir("sdext", "/sd-ext");
    eliminare cartella:
    codice:
    delete_recursive DATA:app----------delete_recursive("/data/app");
    eliminare file:
    codice:
    delete DATA:percorso/file--------------delete("/percorso/file/da-eliminare");
    Permessi cartella:
    codice:
    set_perm_recursive 1000 1000 0771 0644 DATA:app---------set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
    Permessi file:
    codice:
    set_perm 2000 2000 0771 DATA:etc------------------------set_perm(2000, 2000, 0771, "/data/etc");
    Symlink file:
    codice:
    symlink /data/app/apps.apk SYSTEM:app/apps.apk----------symlink("/data/app/apps.apk", "/system/app/apps.apk");
    						
    symlink /data/etc/hosts SYSTEM:etc/hosts----------------symlink("/data/etc/hosts", "/system/etc/hosts");
    setup toolbox:
    codice:
    symlink toolbox SYSTEM:bin/date-------------------------symlink("toolbox", "/system/bin/date");
    Setup Busybox:
    codice:
    run_program PACKAGE:installbusybox----------------------run_program("installbusybox");
    ........................................................set_perm(0, 1000, 0755, "/system/xbin/busybox");
    Scrittura Boot:
    codice:
    format BOOT:-------------------------------------------package_extract_file("boot.img","/tmp/boot.img");
    write_raw_image PACKAGE:boot.img BOOT:..................write_raw_image("/tmp/boot.img", "boot");
    ........................................................delete("/tmp/boot.img");
    Flash Radio:
    codice:
    write_radio_image PACKAGE:radio.img----------------------assert(package_extract_file("radio.img", "/tmp/radio.img"),
    ........................................................write_firmware_image("/tmp/radio.img", "radio"));
    Setup Toolbox EDIFY:
    codice:
    symlink("toolbox", "/system/bin/cat","/system/bin/chmod",
    				"/system/bin/chown","/system/bin/chownto",
    				"/system/bin/cmp","/system/bin/date",
    				"/system/bin/dd","/system/bin/df",
    				"/system/bin/dmesg","/system/bin/getevent",
    				"/system/bin/getprop","/system/bin/hd",
    				"/system/bin/id","/system/bin/ifconfig",
    				"/system/bin/iftop","/system/bin/insmod",
    				"/system/bin/ioctl","/system/bin/ionice",
    				"/system/bin/kill","/system/bin/ln",
    				"/system/bin/log","/system/bin/ls",
    				"/system/bin/lsmod","/system/bin/mkdir",
    				"/system/bin/mount","/system/bin/mv",
    				"/system/bin/nandread","/system/bin/netstat",
    				"/system/bin/newfs_msdos","/system/bin/notify",
    				"/system/bin/printenv","/system/bin/ps",
    				"/system/bin/renice","/system/bin/rm",
    				"/system/bin/rmdir","/system/bin/rmmod",
    				"/system/bin/route","/system/bin/schedtop",
    				"/system/bin/sendevent","/system/bin/setconsole",
    				"/system/bin/setprop","/system/bin/sleep",
    				"/system/bin/smd","/system/bin/start",
    				"/system/bin/stop","/system/bin/sync",
    				"/system/bin/top","/system/bin/umount",
    				"/system/bin/vmstat","/system/bin/watchprops",
    				"/system/bin/wipe");
    
    set_perm(0, 0, 04755, "/system/bin/toolbox");

    continua nel secondo post!
    Ultima modifica di cesco; 02-11-11 alle 22:08
    Follow me on:
    <!-- Place this tag where you want the widget to render. -->
    <div class="g-person" data-width="180" data-href="//plus.google.com/113012341277613226011" data-theme="dark" data-rel="author"></div>

    <!-- Place this tag after the last widget tag. -->
    <script type="text/javascript">
    window.___gcfg = {lang: 'it'};

    (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
    </script>
    <br>
    <a class="twitter-timeline" href="https://twitter.com/xcesco89" data-widget-id="398762031488040960">Tweets di @xcesco89</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementB yId(id)){js=d.createElement(s);js.id=id;js.src=p+" ://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}} (document,"script","twitter-wjs");</script>
    Androidiani app
    Estensione Androidiani per Google Chrome

  2. I seguenti 12 Utenti hanno ringraziato cesco per il post:

    CristianCT46 (16-02-12),ezio (15-09-14),IlMaRcO92 (23-01-12),japoco_poz14 (13-02-14),Jeeko (18-03-13),mlazzarotto (12-05-13),rampa93 (21-06-12),Sammy854 (16-12-13),TheMasterIta (02-11-11)

  3.  
  4. #2
    Androidiani Power User L'avatar di cesco


    Registrato dal
    Sep 2010
    Località
    Bg
    Messaggi
    5,018
    Smartphone
    TYTN2,desire,desireHD, oneX

    Ringraziamenti
    54
    Ringraziato 1,346 volte in 724 Posts
    Predefinito

    Busybox Setup EDIFY:
    codice:
    symlink("busybox", "/system/xbin/[","/system/xbin/[[","/system/xbin/addgroup",
    				"/system/xbin/adduser","/system/xbin/adjtimex","/system/xbin/ar",
    				"/system/xbin/arp","/system/xbin/arping","/system/xbin/ash",
    				"/system/xbin/awk","/system/xbin/basename","/system/xbin/bbconfig",
    				"/system/xbin/beep","/system/xbin/blkid","/system/xbin/brctl",
    				"/system/xbin/bunzip2","/system/xbin/bzcat","/system/xbin/bzip2",
    				"/system/xbin/cal","/system/xbin/cat","/system/xbin/catv",
    				"/system/xbin/chat","/system/xbin/chattr","/system/xbin/chgrp",
    				"/system/xbin/chmod","/system/xbin/chown","/system/xbin/chpasswd",
    				"/system/xbin/chpst","/system/xbin/chroot","/system/xbin/chrt",
    				"/system/xbin/chvt","/system/xbin/cksum","/system/xbin/clear",
    				"/system/xbin/cmp","/system/xbin/comm","/system/xbin/cp",
    				"/system/xbin/cpio","/system/xbin/crond","/system/xbin/crontab",
    				"/system/xbin/cryptpw","/system/xbin/cttyhack","/system/xbin/cut",
    				"/system/xbin/date","/system/xbin/dc","/system/xbin/dd",
    				"/system/xbin/deallocvt","/system/xbin/delgroup","/system/xbin/deluser",
    				"/system/xbin/depmod","/system/xbin/devmem","/system/xbin/df",
    				"/system/xbin/diff","/system/xbin/dirname","/system/xbin/dmesg",
    				"/system/xbin/dnsd","/system/xbin/dnsdomainname","/system/xbin/dos2unix",
    				"/system/xbin/du","/system/xbin/dumpkmap","/system/xbin/echo",
    				"/system/xbin/ed","/system/xbin/egrep","/system/xbin/eject",
    				"/system/xbin/env","/system/xbin/envdir","/system/xbin/envuidgid",
    				"/system/xbin/ether-wake","/system/xbin/expand","/system/xbin/expr",
    				"/system/xbin/fakeidentd","/system/xbin/false","/system/xbin/fbset",
    				"/system/xbin/fbsplash","/system/xbin/fdflush","/system/xbin/fdformat",
    				"/system/xbin/fdisk","/system/xbin/fgrep","/system/xbin/find",
    				"/system/xbin/findfs","/system/xbin/fold","/system/xbin/free",
    				"/system/xbin/fsck","/system/xbin/fsck.minix","/system/xbin/fsync",
    				"/system/xbin/ftpd","/system/xbin/ftpget","/system/xbin/ftpput",
    				"/system/xbin/fuser","/system/xbin/getopt","/system/xbin/getty",
    				"/system/xbin/grep","/system/xbin/gunzip","/system/xbin/gzip",
    				"/system/xbin/halt","/system/xbin/hd","/system/xbin/hdparm",
    				"/system/xbin/head","/system/xbin/hexdump","/system/xbin/hostid",
    				"/system/xbin/hostname","/system/xbin/httpd","/system/xbin/hush",
    				"/system/xbin/hwclock","/system/xbin/id","/system/xbin/ifconfig",
    				"/system/xbin/ifdown","/system/xbin/ifenslave","/system/xbin/ifplugd",
    				"/system/xbin/ifup","/system/xbin/inetd","/system/xbin/init",
    				"/system/xbin/insmod","/system/xbin/install","/system/xbin/ionice",
    				"/system/xbin/ip","/system/xbin/ipaddr","/system/xbin/ipcalc",
    				"/system/xbin/ipcrm","/system/xbin/ipcs","/system/xbin/iplink",
    				"/system/xbin/iproute","/system/xbin/iprule","/system/xbin/iptunnel",
    				"/system/xbin/kbd_mode","/system/xbin/kill","/system/xbin/killall",
    				"/system/xbin/killall5","/system/xbin/klogd","/system/xbin/last",
    				"/system/xbin/length","/system/xbin/less","/system/xbin/linux32",
    				"/system/xbin/linux64","/system/xbin/linuxrc","/system/xbin/ln",
    				"/system/xbin/loadfont","/system/xbin/loadkmap","/system/xbin/logger",
    				"/system/xbin/login","/system/xbin/logname","/system/xbin/logread",
    				"/system/xbin/losetup","/system/xbin/lpd","/system/xbin/lpq",
    				"/system/xbin/lpr","/system/xbin/ls","/system/xbin/lsattr",
    				"/system/xbin/lsmod","/system/xbin/lzmacat","/system/xbin/lzop",
    				"/system/xbin/lzopcat","/system/xbin/makedevs","/system/xbin/makemime",
    				"/system/xbin/man","/system/xbin/md5sum","/system/xbin/mdev",
    				"/system/xbin/mesg","/system/xbin/microcom","/system/xbin/mkdir",
    				"/system/xbin/mkdosfs","/system/xbin/mkfifo","/system/xbin/mkfs.minix",
    				"/system/xbin/mkfs.vfat","/system/xbin/mknod","/system/xbin/mkpasswd",
    				"/system/xbin/mkswap","/system/xbin/mktemp","/system/xbin/modprobe",
    				"/system/xbin/more","/system/xbin/mount","/system/xbin/mountpoint",
    				"/system/xbin/msh","/system/xbin/mt","/system/xbin/mv","/system/xbin/nameif",
    				"/system/xbin/nc","/system/xbin/netstat","/system/xbin/nice",
    				"/system/xbin/nmeter","/system/xbin/nohup","/system/xbin/nslookup",
    				"/system/xbin/od","/system/xbin/openvt","/system/xbin/passwd",
    				"/system/xbin/patch","/system/xbin/pgrep","/system/xbin/pidof",
    				"/system/xbin/ping","/system/xbin/ping6","/system/xbin/pipe_progress",
    				"/system/xbin/pivot_root","/system/xbin/pkill","/system/xbin/popmaildir",
    				"/system/xbin/poweroff","/system/xbin/printenv","/system/xbin/printf",
    				"/system/xbin/ps","/system/xbin/pscan","/system/xbin/pwd","/system/xbin/raidautorun",
    				"/system/xbin/rdate","/system/xbin/rdev","/system/xbin/readahead",
    				"/system/xbin/readlink","/system/xbin/readprofile","/system/xbin/realpath",
    				"/system/xbin/reformime","/system/xbin/renice","/system/xbin/reset",
    				"/system/xbin/resize","/system/xbin/rm","/system/xbin/rmdir",
    				"/system/xbin/rmmod","/system/xbin/route","/system/xbin/rtcwake",
    				"/system/xbin/run-parts","/system/xbin/runlevel","/system/xbin/runsv",
    				"/system/xbin/runsvdir","/system/xbin/rx","/system/xbin/script",
    				"/system/xbin/scriptreplay","/system/xbin/sed","/system/xbin/sendmail",
    				"/system/xbin/seq","/system/xbin/setarch","/system/xbin/setconsole",
    				"/system/xbin/setfont","/system/xbin/setkeycodes","/system/xbin/setlogcons",
    				"/system/xbin/setsid","/system/xbin/setuidgid","/system/xbin/sh",
    				"/system/xbin/sha1sum","/system/xbin/sha256sum","/system/xbin/sha512sum",
    				"/system/xbin/showkey","/system/xbin/slattach","/system/xbin/sleep",
    				"/system/xbin/softlimit","/system/xbin/sort","/system/xbin/split",
    				"/system/xbin/start-stop-daemon","/system/xbin/stat","/system/xbin/strings",
    				"/system/xbin/stty","/system/xbin/sulogin","/system/xbin/sum",
    				"/system/xbin/sv","/system/xbin/svlogd","/system/xbin/swapoff",
    				"/system/xbin/swapon","/system/xbin/switch_root","/system/xbin/sync",
    				"/system/xbin/sysctl","/system/xbin/syslogd","/system/xbin/tac",
    				"/system/xbin/tail","/system/xbin/tar","/system/xbin/tcpsvd",
    				"/system/xbin/tee","/system/xbin/telnet","/system/xbin/telnetd",
    				"/system/xbin/test","/system/xbin/tftp","/system/xbin/tftpd",
    				"/system/xbin/time","/system/xbin/timeout","/system/xbin/top",
    				"/system/xbin/touch","/system/xbin/tr","/system/xbin/traceroute",
    				"/system/xbin/true","/system/xbin/tty","/system/xbin/ttysize",
    				"/system/xbin/tunctl","/system/xbin/udpsvd","/system/xbin/umount",
    				"/system/xbin/uname","/system/xbin/uncompress","/system/xbin/unexpand",
    				"/system/xbin/uniq","/system/xbin/unix2dos","/system/xbin/unlzma",
    				"/system/xbin/unlzop","/system/xbin/unzip","/system/xbin/uptime",
    				"/system/xbin/usleep","/system/xbin/uudecode","/system/xbin/uuencode",
    				"/system/xbin/vconfig","/system/xbin/vi","/system/xbin/vlock",
    				"/system/xbin/volname","/system/xbin/watch","/system/xbin/watchdog",
    				"/system/xbin/wc","/system/xbin/wget","/system/xbin/which",
    				"/system/xbin/who","/system/xbin/whoami","/system/xbin/xargs",
    				"/system/xbin/yes","/system/xbin/zcat","/system/xbin/zcip");
    				
    				
    set_perm(0, 1000, 0755, "/system/xbin/busybox");

    CREAZIONE DI UNO ZIP FLASHABILE:

    Zip vuoto da modificare a vostro piacimento gia' impostato:
    PacchettoRecoveryVuoto.zip

    la creazione e' molto semplice, dovrete semplicemente modificare il file updater-script nel percorso zip/META-INF/com/google/android e inserire i codici in base a cosa volete che la recovery faccia!

    la struttura dello zip deve essere simile a questa:


    questo e' solo un esempio, quindi, se volete che il vostro file, ipoteticamente, venga estratto in /data/app, dovrete lasciare intatta la cartella META-INF (e relativo contenuto ad eccezione dell'updater-script), creare una cartella data e all'interno di questa una cartella app.
    la stringa da inserire nell'updater-script sara' quindi:
    codice:
    package_extract_dir("data", "/data");
    in alternativa potete creare solo la cartella app ma dovrete correggere il comando in questo modo:
    codice:
    package_extract_dir("app", "/data/app");
    ecco un esempio completo di come deve essere scritto l'updater-script:

    codice:
    ui_print("---------------------------------");
    ui_print("|-------------------------------|");
    ui_print("| updater-script by cesco89 |");
    ui_print("|-------------------------------|");
    ui_print("---------------------------------");
    ui_print("monto system"); 
    run_program("/sbin/busybox", "mount", "/system"); 
    ui_print("installo WP7 fonts...."); 
    package_extract_dir("fonts", "/system/fonts"); 
    run_program("/sbin/busybox", "umount", "/system");
    ui_print("FATTO! ora puoi riavviare!");
    per modificare il file e' importante che utilizziate un editor come NOTEPAD++ su windows e un programma come KOMODO EDIT su mac.
    Ultima modifica di cesco; 02-11-11 alle 22:34
    Follow me on:
    <!-- Place this tag where you want the widget to render. -->
    <div class="g-person" data-width="180" data-href="//plus.google.com/113012341277613226011" data-theme="dark" data-rel="author"></div>

    <!-- Place this tag after the last widget tag. -->
    <script type="text/javascript">
    window.___gcfg = {lang: 'it'};

    (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
    </script>
    <br>
    <a class="twitter-timeline" href="https://twitter.com/xcesco89" data-widget-id="398762031488040960">Tweets di @xcesco89</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementB yId(id)){js=d.createElement(s);js.id=id;js.src=p+" ://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}} (document,"script","twitter-wjs");</script>
    Androidiani app
    Estensione Androidiani per Google Chrome

  5. I seguenti 9 Utenti hanno ringraziato cesco per il post:

    CristianCT46 (16-02-12),daimo (10-05-12),daniele89 (24-11-13),Ganzdroid (04-11-11),japoco_poz14 (13-02-14),TheMasterIta (02-11-11),thundericky (20-07-12)

  6. #3
    Androidiani Power User L'avatar di cesco


    Registrato dal
    Sep 2010
    Località
    Bg
    Messaggi
    5,018
    Smartphone
    TYTN2,desire,desireHD, oneX

    Ringraziamenti
    54
    Ringraziato 1,346 volte in 724 Posts
    Predefinito

    reserved 2
    Follow me on:
    <!-- Place this tag where you want the widget to render. -->
    <div class="g-person" data-width="180" data-href="//plus.google.com/113012341277613226011" data-theme="dark" data-rel="author"></div>

    <!-- Place this tag after the last widget tag. -->
    <script type="text/javascript">
    window.___gcfg = {lang: 'it'};

    (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
    </script>
    <br>
    <a class="twitter-timeline" href="https://twitter.com/xcesco89" data-widget-id="398762031488040960">Tweets di @xcesco89</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementB yId(id)){js=d.createElement(s);js.id=id;js.src=p+" ://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}} (document,"script","twitter-wjs");</script>
    Androidiani app
    Estensione Androidiani per Google Chrome

  7. Il seguente Utente ha ringraziato cesco per il post:

    berzan (05-09-14)

  8. #4
    Androidiano


    Registrato dal
    Apr 2011
    Messaggi
    96

    Ringraziamenti
    7
    Ringraziato 17 volte in 14 Posts
    Predefinito

    Vorrei sapere i codici per attribuire i permessi alle appliacazioni.Grazie

  9. #5
    Androidiano VIP L'avatar di lello83


    Registrato dal
    Jun 2012
    Località
    Napoli
    Messaggi
    1,647
    Smartphone
    OnePlus 3T

    Ringraziamenti
    40
    Ringraziato 254 volte in 211 Posts
    Predefinito

    ciao cesco, bella guida, davvero; io ho un galaxy s2 e mi interessa creare uno zip del genere per scopi personali, volevo chiederti una cosa che ancora non mi è chiara, nel codice cosa è la scritta rossa e la scritta blu?
    Nel file updater-script dobbiamo scrivere solo la scritta rossa? oppure solo la scritta blu? o entrambi????
    Grazie per la risposta

  10. #6
    Androidiano VIP L'avatar di wexus


    Registrato dal
    Feb 2011
    Messaggi
    2,398

    Ringraziamenti
    106
    Ringraziato 263 volte in 198 Posts
    Predefinito

    Ciao cesco volevo sapere se questa sintassi è giusta per poter flashre il file framework.apk
    resmount("MTD", "system", "/system");
    package_extract_dir("system", "/system");

    Ho fatto solo così ma non so se va bene,questa sintassi la devo inserire in che riga nel pacchetto vuoto che hai postato??
    codice:
    ui_print("-----------------------------");
    ui_print("|                           |");
    ui_print("| updater-script by cesco89 |");
    ui_print("|                           |");
    ui_print("-----------------------------");
    ui_print("monto system"); 
    run_program("/sbin/busybox", "mount", "/data"); 
    ui_print("installo pacchetto...."); 
    package_extract_dir("data", "/data"); 
    run_program("/sbin/busybox", "umount", "/data");
    ui_print("FATTO! ora puoi riavviare!");
    Ultima modifica di wexus; 14-11-12 alle 22:42
    Un THANKS al giorno leva il medico d'intorno!!!

  11. #7
    Androidiano VIP L'avatar di wexus


    Registrato dal
    Feb 2011
    Messaggi
    2,398

    Ringraziamenti
    106
    Ringraziato 263 volte in 198 Posts
    Predefinito

    Non c'è nessuno....Ma è stato dimenticato questo 3d dall'autore?????
    Ultima modifica di wexus; 16-11-12 alle 13:40
    Un THANKS al giorno leva il medico d'intorno!!!

  12. #8
    Androidiano VIP L'avatar di wexus


    Registrato dal
    Feb 2011
    Messaggi
    2,398

    Ringraziamenti
    106
    Ringraziato 263 volte in 198 Posts
    Predefinito

    Non capisco il perché cesco tu non rispondi,eppure sei on line e la risposta la sai sicuro,se no sembra il solito copia incolla e via.
    Un THANKS al giorno leva il medico d'intorno!!!

  13. #9
    Androidiano L'avatar di forart


    Registrato dal
    Sep 2013
    Messaggi
    233
    Smartphone
    VF-895N - Olipad100

    Ringraziamenti
    1
    Ringraziato 21 volte in 19 Posts
    Question

    Domandona per i più esperti: credete sia possibile creare uno script che aggiorni esclusivamente specifici files/directories ?

    L'idea sarebbe quella di reallizzare delle ROMs "generiche" per intere classi di devices (es. tutti quelli basati su MT65xx)...

    Ringrazio anticipatamente per gli eventuali suggerimenti/chiarimenti che potrete fornire.

  14. #10
    Sviluppatore Android L'avatar di Cuoco92


    Registrato dal
    Jul 2011
    Località
    Sardegna
    Messaggi
    3,481
    Smartphone
    #Z7-Z9 MAX #Z7 MINI #K3 NOTE

    Ringraziamenti
    1,061
    Ringraziato 3,958 volte in 1,624 Posts
    Predefinito

    Quote Originariamente inviato da wexus Visualizza il messaggio
    Ciao cesco volevo sapere se questa sintassi è giusta per poter flashre il file framework.apk
    resmount("MTD", "system", "/system");
    package_extract_dir("system", "/system");

    Ho fatto solo così ma non so se va bene,questa sintassi la devo inserire in che riga nel pacchetto vuoto che hai postato??
    codice:
    ui_print("-----------------------------");
    ui_print("|                           |");
    ui_print("| updater-script by cesco89 |");
    ui_print("|                           |");
    ui_print("-----------------------------");
    ui_print("monto system"); 
    run_program("/sbin/busybox", "mount", "/data"); 
    ui_print("installo pacchetto...."); 
    package_extract_dir("data", "/data"); 
    run_program("/sbin/busybox", "umount", "/data");
    ui_print("FATTO! ora puoi riavviare!");
    Ciao wexus, se devi installare il Framework lo script non è corretto perché il framework sta nella cartella system/framework

    Quindi lo script sarà cosi:

    ui_print("-----------------------------");
    ui_print("| |");
    ui_print("| updater-script by wexus |");
    ui_print("| |");
    ui_print("-----------------------------");
    ui_print("monto system");
    run_program("/sbin/busybox", "mount", "/system");
    ui_print("installo pacchetto....");
    package_extract_dir("system", "/system/framework");
    run_program("/sbin/busybox", "umount", "/system");
    ui_print("FATTO! ora puoi riavviare!");

    Questo lo copi nell' updater-script.

    Crea poi una cartella system e all'interno un'altra che chiamerai framework. All'interno ci andrà il framework.apk ☺


    Edit: spero che dopo due anni ci sia riuscito 😂😂 non avevo fatto caso alla datazione del post 😁
    Ultima modifica di Cuoco92; 08-08-14 alle 22:00
    Un piccolo GRAZIE non guasta mai

    SMARTPHONES SUPPORTATI:
    https://www.androidfilehost.com/?w=devices&uid=24533103863137898

Pagina 1 di 2 12 ultimoultimo
Ultima pagina

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire risposte
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Torna su
Privacy Policy