custom update.zip

ok... lests start... these are windows instructions but you need basic linux knowledge

you need:
from: drop.io MilestoneUpdateZIP

Milestone 2.0.1 update.zip - this is the unmodified update (DONT apply)
volez-winBIN.zip - my compiled version (to save you time)
cygwin Cygwin Information and Installation

maybe:
volez-src-20091211.tar.gz http://zenthought.org/content/project/volez

----------

1) install cygwin
* OPTINAL add make, gcc and cpp if you want to compile volez

2) with windows explorer go where you installed cygwin
then home/YOUR-usersname
I.E.: c:\cygwin\home\luismanson

3) extract volez-winBIN.zip


you will also have 2 new directories, you need to put your files inside there...
just look the hacked update.zip to understand

so, if you were to create the root patch you would:
put "su" in \system\bin
and "Superuser.apk" in \system\app

that way they would be copied to system/app and system/bin (with some help)

there is also a file in META-INF\com\google\android named updater-script

thats the file you need to edit, it contain the update actions, in my case i had to delete 2 Facebook files, this is what i did:

Code:
mount("MTD", "system", "/system");
ui_print("Deleting Facebook...");
delete("/system/app/Facebook.apk");
delete("/system/app/Facebook.odex");
ui_print("listo el borrado...");
unmount("/system");

if you want to learn a bit more open the original update.zip and read the same file in the same path

4) add those 2 directories to a new zip called payload.zip
* BASIC zip has to work, in store mode, no compression


5) copy "Milestone 2.0.1 update.zip" and rename it to original.zip where volez.exe is

6) start cygwin shell and cd into the volez directory

7) ./volez.exe -o tail.bin -x "*" original.zip payload.zip
* run ./volez.exe to see parameters

you will now have a new file named tail.bin

8) cat signed-update.zip tail.bin > update.zip

there is... now go and flash the new update.zip


* i hope i did not forget anything...
 
  • Danke
Reaktionen: RobK, Archer und mojo
Wie groß darf Die playload.zip sein?
 
maximal 63kbyte
Man kann ja aber problemlos Daten auf der sdcard auslagern und dann entsprechend kopieren und rechte für ausführbarkeit etc setzen.
 
sharky schrieb:
maximal 63kbyte
Man kann ja aber problemlos Daten auf der sdcard auslagern und dann entsprechend kopieren und rechte für ausführbarkeit etc setzen.

Wie lautet denn der copy Befehl für das Updateskript?
 
lass per updatescript einfach nen sh script auf der sdcard ausführen, ist derleichteste weg denke ich mal, und du mußt nicht für jede änderung ne neue update.zip erstellen ;)
 
Danke, gute Idee.
Wie lautet dann der Befehl dazu? Einfach
Code:
sh /sdcard/script.sh?
-FuFu- schrieb:
lass per updatescript einfach nen sh script auf der sdcard ausführen, ist derleichteste weg denke ich mal, und du mußt nicht für jede änderung ne neue update.zip erstellen ;)
 
hier ist mal nen ausschnitt aus dem updatescript der OpenRecovery
Code:
ui_print("Installing busybox...");
run_program("/sdcard/OpenRecovery/sbin/busybox", "cp", "/sdcard/OpenRecovery/sbin/busybox", "/sbin/busybox");
set_perm(0, 0, 0755, "/sbin/busybox");
run_program("/sbin/busybox", "--install", "-s", "/sbin");
set_perm(0, 0, 4755, "/sbin/su");

ui_print("Launching open recovery tool...");
run_program("/sbin/sh","/sdcard/OpenRecovery/bin/switch.sh");

Wie du da siehst, ist es vom vorteil, wenn man entweder vorher busybox irgendwo installiert, oder du mountest /system um das zu umgehen
 
gut, busybox ist ja bereits installiert, in /system/xbin/.
Die system Partition muss ich ehe mounten, da ich framework-res.apk hinkopieren möchte.
Mal schauen...
Danke für die Infors.

Gruß,
Lado
 
nix zu danken, dann viel glück bei den bastelarbeiten ;)
 

Ähnliche Themen

P
Antworten
8
Aufrufe
1.914
-FuFu-
-FuFu-
DeeMore
Antworten
6
Aufrufe
1.671
-FuFu-
-FuFu-
P
Antworten
182
Aufrufe
18.009
thedoginthewok
thedoginthewok
Zurück
Oben Unten