Page 1 sur 1

[android-sdk] Rooter mon Nexus S (résolu)

Publié : sam. 11 juin 2011, 21:49
par nicollivier
Bonsoir,

Depuis quelques jours j'ai un Nexus S, première expérience sous Android et franchement pas déçu.

Je cherche à installer un nouveau système, mais pour cela il faut faire quelques modifs, « rooter le téléphone », donc me donner les droits admin à l'ensemble des fichiers.

J'ai trouvé un tuto qui explique comment faire, mais bien sur c'est sur Ubuntu. Et donc je bloque.

Il se trouve ici: http://forum.xda-developers.com/showthread.php?t=883032

Et à l'étape 8, il y a ceci:
8. Now to set things up so adb and fastboot recognize your Nexus.

- Type this command into a terminal:

Code : Tout sélectionner

gksudo gedit /etc/udev/rules.d/51-android.rules
- Paste this into the blank file:

Code : Tout sélectionner

SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
- Click save and close.
- Then, type the following terminal command:

Code : Tout sélectionner

sudo restart udev
Est-ce quelqu'un comprendrait quelque chose et pourrait me dire comment l'adapter sur Arch ?!

Merci

Nico

Re: [android-sdk] Rooter mon Nexus S

Publié : sam. 11 juin 2011, 22:06
par tuxce
Les 2 premières commandes sont disponibles sous arch, néanmoins, udev-android-rules s'occupe de ça.
Pour le redémarrage d'udev, il n'y a pas de service udev sous arch, mais si t'as pas encore pluggé le télephone, il sera pris en compte, et au pire:

Code : Tout sélectionner

udevadm trigger

Re: [android-sdk] Rooter mon Nexus S

Publié : sam. 11 juin 2011, 22:25
par la_poigne
Perso avec mon HTC Legend j'ai pas eu à toucher à udev.
Un petit adb scan doit te doit donner le nom de ton téléphone.
Si là tu n'as rien de détecté, alors oui il faut faire une règle.

Re: [android-sdk] Rooter mon Nexus S

Publié : sam. 11 juin 2011, 22:57
par nicollivier
Merci beaucoup pour vos réponses, cependant j'ai toujours un souci :-\

La commande "adb scan" n'existe pas, voici le retour que j'ai :

Code : Tout sélectionner

[~/Téléchargements/Android/android-sdk-linux_x86/platform-tools] adb scan
Android Debug Bridge version 1.0.26

 -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 ocmmand 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] <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)
  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 help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

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.
J'ai ensuite installé le paquet "android-rules", mais là encore il n'y a rien qui change.
quand je tape la commande «fastboot oem unlock», j'ai un "waiting for device".

Re: [android-sdk] Rooter mon Nexus S

Publié : dim. 12 juin 2011, 00:29
par farvardin
je te conseille la méthode de Cyanogenmod (ainsi que cette ROM, même si je n'ai testé que sur HTC) :
http://wiki.cyanogenmod.com/index.php?t ... date_Guide

je pense que la commande en question n'est pas "adb scan" mais "adb devices"

As-tu activé le déboggage USB sur ton téléphone ? (mais il me semble que quand tu entres en mode recovery, ce n'est pas nécessaire)

Re: [android-sdk] Rooter mon Nexus S

Publié : dim. 12 juin 2011, 09:26
par nicollivier
Merci beaucoup pour ce tuto, vraiment complet et bien écrit :)

Alors j'ai aussi testé la commande adb devices, mais rien :-(

Voici ce que j'ai :

Code : Tout sélectionner

[~/Téléchargements/Android/android-sdk-linux_x86/platform-tools] adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached 

[~/Téléchargements/Android/android-sdk-linux_x86/platform-tools] ./fastboot oem unlock
< waiting for device >

J'ai bien activé le "débogage mode USB".

Une autre idée ?!

Re: [android-sdk] Rooter mon Nexus S

Publié : dim. 12 juin 2011, 09:40
par la_poigne
J'ai écrit de mémoire et c'est bien devices qu'il faut écrire :roll:
Tu as essayé de créer un fichier /etc/udev/rules.d/51-android.rules et mettre la règle dedans ?

Re: [android-sdk] Rooter mon Nexus S

Publié : dim. 12 juin 2011, 09:46
par nicollivier
En effet il fallait ajouter l'entrée dans le fichier /etc/udev/rules.d/51-android.rules .

Merci beaucoup :D

Nico