Android-dev.it Community

 
Annunci

:arrow: Benvenuto!, se non sei ancora un utente registrato: puoi registrati qui, oppure effettua il login
:arrow: Apri un forum sul tuo nuovo smartphone Android e collabora con noi! (dettagli)

www.agendadigitale.org
Image


Sponsor
It is currently Tue May 22, 2012 7:48 am

All times are UTC + 1 hour


 Topics   Replies   Views   Last post 
No new posts На интернет-витрине

by popowahgjfghjoiuyt on Sat May 19, 2012 2:25 pm in Amministrazione

0

12

Sat May 19, 2012 2:25 pm

popowahgjfghjoiuyt

No new posts Apri un forum sul tuo nuovo smartphone Android!

[ Go to page: 1, 2, 3 ]

by ReattileGar on Fri May 18, 2012 5:27 pm in Amministrazione

27

12514

Fri May 18, 2012 5:27 pm

ReattileGar

No new posts Новый: базы для хрумера - профессиональный софт для СЕО.

by Renatafe on Fri May 18, 2012 3:14 pm in Amministrazione

0

17

Fri May 18, 2012 3:14 pm

Renatafe

No new posts Pace is undoubtedly the vital affordable Jerseys Wholesale d

by barnettmmolive2012 on Wed May 16, 2012 7:36 am in Amministrazione

1

47

Wed May 16, 2012 7:36 am

barnettmmolive2012

No new posts with all of the association that congenita

by ienae on Tue May 15, 2012 4:55 am in Android

0

15

Tue May 15, 2012 4:55 am

ienae




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [GUIDA] Come creare un package update.zip
PostPosted: Mon Nov 15, 2010 11:47 am 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Ciao,
come sapete in Android gli archivi zip particolari (che di solito vengono chiamati update.zip) che possono essere flashati usando l'opzione “Flash zip from sdcard” dopo aver avviato l'immagine di recovery.

Per creare un archivio del tipo "update.zip" con dentro gli aggiornamenti che volete rilasciare, basta fare così:
- creare una directory di lavoro vuota <workdir>
- creare la stessa struttura delle directory presente nel filesystem Android in funzione dei file che volete includere nell'archvio (es. <workdir>/system/app)
- copiate i vari files nelle directory (es. copiare test.apk in <workdir>/system/app)
- creare l'apposita directory per lo script update-script : <workdir>/META-INF/com/google/android
- creare ed editate il file <workdir>/META-INF/com/google/android/update-script aggiungendo le istruzioni necessarie per copiare i diversi file nel filesystem della ROM del telefono. Ad esempio, per copiare tutto il contenuto di /system/app, aggiungere:
Code:
show_progress 0.1 0

copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10

- assicurarsi di lasciare una riga vuota come ultima istruzioni dello script
- zippare il contenuto di <workdir> (es. chiamate l'archivio update-nosign.zip), includendo solo le sottodirectory di <workdir> ovvero senza includere il folder <workdir> medesimo
- fare il sign del pacchetto (java -classpath <SDK>/tools/sign/testsign.jar" testsign update-nosign.zip update.zip)

La sintassi dello script di update (update-script) è la seguente (XDA topic:***URLs are hidden from guests, please register and login to view the hyperlink***):

Quote:
update-script syntax reference (definitions from recovery.c android source code):

copy_dir
Syntax: copy_dir <src-dir> <dst-dir> [<timestamp>]
Copy the contents of <src-dir> to <dst-dir>. The original contents of <dst-dir> are preserved unless something in <src-dir> overwrote them.
Ex: copy_dir PACKAGE:system SYSTEM:

format
Syntax: format <root>
Format a partiti0n
Ex: format SYSTEM:, will format entire /system . Note: formatting erases data irreversibly.

delete
Syntax: delete <file1> [... <fileN>]
Delete file.
EX: delete SYSTEM:app/Calculator.apk, will delete Calculator.apk from system/app directory.

delete_recursive
Syntax: delete_recursive <file-or-dir1> [... <file-or-dirN>]
Delete a file or directory with all of it’s contents recursively
Ex: delete_recursive DATA:dalvik-cache, will delete /data/dalvik-cache directory with all of it’s contents

run_program
Syntax: run_program <program-file> [<args> ...]
Run an external program included in the update package.
Ex: run_program PACKAGE:install_busybox.sh, will run install_busybox.sh script (shell command) included in the update package.

set_perm
Syntax: set_perm <uid> <gid> <mode> <path> [... <pathN>]
Set ownership and permission of single file or entire directory trees, like ‘chmod’, ‘chown’, and ‘chgrp’ all in one
Ex: set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh

set_perm_recursive
Syntax: set_perm_recursive <uid> <gid> <dir-mode> <file-moe> <path> [... <pathN>]
Set ownership and permission of a directory with all of it’s contents recursively

Ex: set_perm_recursive 0 0 0755 0644 SYSTEM:app

show_progress
Syntax: show_progress <fraction> <duration>
Use of the on-screen progress meter for the next operation, automatically advancing the meter over <duration> seconds (or more rapidly if the actual rate of progress can be determined).
Ex: show_progress 0.1 0

symlink
Syntax: symlink <link-target> <link-path>

Create a symlink (like ‘ln-s’). The <link-path> is in root:path format, but <link-target> is
for the target filesystem (and may be relative)


Top
 Profile  
 
 Post subject: Re: [GUIDA] Come creare un package update.zip
PostPosted: Mon Nov 15, 2010 6:51 pm 
Offline
User avatar

Joined: Thu Dec 27, 2007 3:12 pm
Posts: 174
Punti Android: 187
grazie Verix,
per creare un archivio update.zip, può risultare utile anche questo script (per windows): ***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
 Post subject: Re: [GUIDA] Come creare un package update.zip
PostPosted: Mon Jan 24, 2011 9:32 am 
Offline
User avatar

Joined: Mon Jan 24, 2011 9:21 am
Posts: 2
Cellulare Android: HTC Tattoo
Operatore: Vodafone
Punti Android: ?
can i create that all versions of android? if yes so thanks for that

_________________
***URLs are hidden from guests, please register and login to view the hyperlink***
***URLs are hidden from guests, please register and login to view the hyperlink***


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB SEO

All trademarks and logos used in this site are of properties of their respective owners.