Systemordner als IMG packen

Chillbreak

Active Member
Ich weiss nicht ob ich richtig liege aber ich hab das so im hinterkopf das durch das kopieren und einfügen die lese/schreibrrchte für bestimmte dateien fehlen. Ora hat das schon supi erklärt ich weiss jedoch nicht ob sich die venötigten dateien in dem tar aufhalten deshalb kann ich dir hier schlecht auskunft geben. Du müsstest mit zuemlicher sicherheit die berechtigungen der veränderten/hinzugefügten dateien anpassen
 

Ora

®
steht mir auch das *.tar zu Verfügung und habe darin die Daten schon getauscht.
Na dann bist Du ja schon fast am Ziel... nicht im tar tauschen sondern auf das Hand wie beschrieben mit ADB bringen! Bin gespannt auf das Ergebnis! Danke für die Info:)[DOUBLEPOST=1389133272,1389133136][/DOUBLEPOST]
Du müsstest mit zuemlicher sicherheit die berechtigungen der veränderten/hinzugefügten dateien anpassen
Klar, habe ich ja auch beschrieben erst "gucken" dann kopiere und wenn es neue sind dann ist 644 immer richtig! Oder spicken wie andere Files im gleichen Verzeichnis berechtigt sind.
 

Hirsch

Active Member
Geeenau :)

wollte damit nur sagen das ich lediglich die Daten aufm PC habe und nicht das eigentliche Handy hier liegt :)
 

Ora

®
wollte damit nur sagen das ich lediglich die Daten aufm PC habe
Dann ist doch alles in Butter! Dann brauchst du ja gar nicht "pullen" sondern nur pushen.. Schönen Dank für diesen netten Hinweis und Gute Nacht... morgen schreibst Du dann aber bitte wie Du die NAcht mit dem Pushen zurecht gekommen bist.... das musst Du jetzt mal ohne mich machen.... Hoffentlich verstehst Du Spaß...::
 

Hirsch

Active Member
Na klaaaa versteh ich Spaß... :)

Neee heut aber nich mehr... morgen ist auch noch ein Tag...

Danke dir un gn8
 

Hirsch

Active Member
Jetzt nochmal ne Frage :grin:

Woher weiß ADB bzw. welches Verzeichnis muss ich angeben, damit er genau den Ordner den ich möchte wieder auf das Phone packt ??

Also in welches Verzeichnis muss ich "System" verschieben damit ADB das erkennt...
 

Ora

®
ADB push <quellverzeichnis>\<quelldatei>.<extension> <zeilverzeichnis>/<zieldatei>.<extension>

auf Deinem PC auf dem Handy

zB.
ich_bin_einen_system_app.apk ---> /system/app/ich_bin_einen_system_app.apk <--- Eigenschaften rw-r--r-- (644)[DOUBLEPOST=1389208554,1389208060][/DOUBLEPOST]Um ehrlich zu sein... ich glaube gerade nicht, dass es Dir um das LErnen geht, sondern Dein gekauftes Telefon schein ein absolute Fehlgriff zu sein. Kommst Du nicht besser, wenn einfach Deine Proleme hier berichtest und dann könnte ich prüfen, ob es nicht einfachere und effektivere Hilfen als diese Bastelei und Shoutbox gibt. Scheinbar haben Dir meine Tipps auch nicht genutzt oder gefallen. Also bis dann...
 

Hirsch

Active Member
Ja doch, aber wenn ich etwas nicht verstehe frage ich auch nach.
Also sei nich beleidigt :)

Kann ich denn über "<quellverzeichnis>" auch den ganzen Ordner verschieben oder muss ich jede einzelne Änderung einzeln kopieren ?

Also wenn ich den Systemordner auf meinem Desktop liegen hab, kann ich dann also auch das ganze rüberschieben ?
 

Ora

®
Ich bin nie beleidigt... höchstens unpässlich... und dass wenn alles so unklar scheint und einer um den heißen Brei herumschleicht:)
All Frage zum ADB sind hier beantwortet:
Android Debug Bridge version 1.0.29

-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with
the given serial number. Overrides ANDROID_SERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.

device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
- push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
('--algo', '--key', and '--iv' mean the file is encrypted already)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.

adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>.
If no -f option is supplied then the data is written
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)

adb restore <file> - restore device contents from the <file> backup archive

adb help - show this help message
adb version - show version num

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:

- If <directory> is not specified, both /system and /data partitions will be updated.

- If it is "system" or "data", only the corresponding partition
is updated.

environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
also ja
 

Hirsch

Active Member
Vllt. können wir ja iwann ma ne Team Viewer Session machen, dann sehe ich das mal am lebenden Objekt ;)
 

yelupic

likes 2 abuse shells
Tipp: Fehler-Meldung beim Restore eines CWM-R-Backups: "Error MD5-Checksums bla, bla, bla ... cancelled"

Wenn jemand mal Schwierigkeiten hat/bekommt mit einem CWM-R Backup. weil die MD5-Checksums nicht passen (Entsprechende Fehlermeldung beim Restore und Abbruch), dann kann man das mit der adb.exe (Android Debug Bridge) auf dem Rechner versuchen, wieder gerade zu biegen, wie folgt:

0. Windows: Voraussetzung:
Korrekt installierte ADB-Treiber und adb.exe
(Android SDK Platform Tools et al., findet man überall im Netz oder hier Stichwort Rooten via ADB mot MotoChopper p. ä.)

1. Debug-Modus am Phone einschalten
2. Phone über USB mit dem Rechner verbinden

3. Windows: Kommando-Zeile öffnen

4. Windows: in das Verzeichnis mit der adb.exe wechseln

5. Windows: Eingabe:

adb shell
(Es öffnet sich eine adb shell und man befindet sich auf dem Phone)​

6. ADB Shell: Falls man noch nicht root ist (kann man aber auch weglassen) - Eingabe:

su

7. ADB Shell: Wechseln in den Backup-Ordner auf der SD Card mit Eingabe:

cd /sdcard/clockworkmod/backup/<Verzeichnis-Name_des_zu_korrigierenden_Backups>

9. ADB Shell: Vorhandene MD5-Checksum (falls vorhanden) löschen - Eingabe:

rm nandroid.md5

10. ADB Shell: Neue (korrekte) MD5-Checksums-Datei "bauen" - Eingabe:

md5sum *img > nandroid.md5

Und fertig ist die "Luzy" und das Restoren sollte wieder gehen.

Besser ist es, gleich ein Backup OHNE MD-Checksums zu machen. - Nur so als Tipp ...
 
  • Like
Wertungen: Ora
L

lauterohre

Guest
Tipp: Fehler-Meldung beim Restore eines CWM-R-Backups: "Error MD5-Checksums bla, bla, bla ... cancelled"
Wenn jemand mal Schwierigkeiten hat/bekommt mit einem CWM-R Backup. weil die MD5-Checksums nicht passen (Entsprechende Fehlermeldung beim Restore und Abbruch)
Hallo, bei solchen Problemen habe ich mir folgendemaßen geholfen:
Die nandroid.md5 Datei mit einem Texteditor z.B. ES-Dateiexplorer öffnen und den Dateiinhalt restlos löschen, die leere nandroid.md5 speichern.
Danach lief das Restore problemlos. :)
Gruß
 

Mitglieder

Keine Mitglieder online.

Neueste Beiträge

Statistik des Forums

Themen
54,353
Beiträge
836,573
Mitglieder
66,934
Neuestes Mitglied
j880001
Oben Unten