[GUIDE] how to make a flashable package (update.zip)


Neue Antwort erstellen
Erstellt
Jul. '11
letzte Antwort
1
Antwort
3,2 T.
Aufrufe
0
„Gefällt mir“
0
Abos
Kefir
FAQ-Schreiber
FAQ-Schreiber


Anm. Datum: 01.01.2001
Beiträge: 14285
Wohnort: Belgien
Handy: Alle Möglichen zum Testen
BeitragMi 20. Juli, 2011 12:41
Antworten mit Zitat


http://forum.xda-developers.com/showthread.php?t=732957

Zitat:
thanks to this page for teaching me: http://www.robmcghee.com/android/cre...e-zip-package/
note: although i am copying this from the page, this isnt a straight ctrl+c, ctrl+p from it. ive rewritten it with slightly more english. ok alot more.

before we start, grab ppcgeeks auto signer here, or nothing will flash anyway. its the easiest method since its drag, drop, and click.
also i recommend 7-zip but its not necessarily needed.

first step, make the folder structure.
ive included prebuilt updates to make it a little faster for you. they contain no actual files, just the appropriate folder structure and update script. they must be resigned if you add files and expect to flash them.

if what your looking for isnt included, make a folder and name it "workdir". this will contain your work.
this is just to make it easier to organize all your stuff. if you feel so inclined you can name it whatever you want, it doesnt really matter.
next youll need to make folders inside the workdir according to where your flashing stuff, ie if your flashing wallpapers youd need to make a structure that looks like this: "workdir/system/customize/resource"

next to make the update-script. this tells the system what to do.
first make this folder structure: "workdir/META-INF/com/google/android"
make sure you capitalize "META-INF"
now put a text file into the "android" folder and call it "update-script"
the easiest way to code it would be to copy this into it:

Code:
show_progress 0.1 0
copy_dir PACKAGE:(x) (X):
set_perm_recursive 0 0 0755 0644 (X):(y)
show_progress 0.1 10


replace the (x) with the directory in the root your flashing to in lowercase, ie system or data or sdcard.
replace the (X)'s with the same thing as (x) except in UPPERCASE such as SYSTEM or DATA or SDCARD.
replace the (y) with the next directory in lowercase like media or app or customize.
note: if your adding to the root of (X) folder then leave this blank, no spaces or anything.

if your flashing an app it should look something like this:

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


after youve done that, save and close the file. now you need to take the extension off of the text file. simply delete the .txt at the end of the file.
if there is no extension showing, make sure you have "hide extensions for known file types" unchecked in tools> folder options> "view" tab.

second to last step! compress the workdir contents into a zip file, not the actual workdir though. it should look like this inside the zip: "update.zip/(folders)" not "update.zip/workdir/(folders)"

finally, sign the zip with the auto signer and put it into the root of the sd card.
boot into recovery and flash it up! with a bit of luck, it should work.

if you have any questions, problems, or concerns just post them. i have instant subscription to this thread and will be notified every 30 min when my evo fetches my mail.

Warum willst Du den Post von Kefir melden?




Angehängte Datei
Update-Notifications-signed.zip (2.11 KB, 1 mal)

MD5: b6ae91134775ba5c5b21d57366620ee2
SHA1: d104710ab63ce96195c473725f21539ffda2ace5
CRC32: ace9ce02

Angehängte Datei
Update-Apps-signed.zip (2.11 KB, 5 mal)

MD5: d8c5aaab8444eeab58ac35924a03ec86
SHA1: 60b77d60ea9cdb3e37d410f8f9dc7a87b8198266
CRC32: 3ee185d9

Angehängte Datei
Update-Wallpapers-signed.zip (2.12 KB, 1 mal)

MD5: 62ae072716377486994628583d3dd1d4
SHA1: 48cb1df5ebed17d7e1cebc92b6b19ce86592b987
CRC32: 17cc59e4

Benutzer-Profile anzeigen Private Nachricht senden

 Post #1

Werbung
World4You Webhosting

Kefir
FAQ-Schreiber
FAQ-Schreiber


Anm. Datum: 01.01.2001
Beiträge: 14285
Wohnort: Belgien
Handy: Alle Möglichen zum Testen
BeitragMi 20. Juli, 2011 12:41
Antworten mit Zitat


...

Warum willst Du den Post von Kefir melden?




Angehängte Datei
Update-Ringtones-signed.zip (2.11 KB, 2 mal)

MD5: b6ae91134775ba5c5b21d57366620ee2
SHA1: d104710ab63ce96195c473725f21539ffda2ace5
CRC32: ace9ce02

Benutzer-Profile anzeigen Private Nachricht senden

 Post #2

Beiträge der letzten Zeit anzeigen:      

Neue Antwort erstellen

Ähnliche Themen:
Neues PS5-Update macht alles lauter und doch eleganter
Update auf iOS 17.4 macht Barometer-Apps unbrauchbar
Update empfohlen: Kritische Sicherheitslücken in Android
22H2: Windows-11-Update wird länger unterstützt
Microsoft testet bahnbrechende Änderung bei Windows-Update
Auto: Kein Navi-Update vier Jahre nach Kauf
Beyoncés “Act II”: Make Country Great Again!
Galaxy Buds: Samsung verteilt KI-Update für In-Ear-Kopfhörer
Schülervertretung für Update in Sexualkunde
Nächstes Windows-Update könnte schon Windows 12 sein

Kurze URL:

Du hast bereits für diesen Post angestimmt...

;-)




Alle Zeiten sind GMT + 1 Stunde

Top