Outils pour utilisateurs

Outils du site


Fiddling with Firefox OS on a ZTE Open C

20:51 < shtrom> I have an AU (Australia) Open C that I would like to root
20:52 < shtrom> which image should I use with the rooting tool?
20:52 < shtrom> (i.e., does the FR/EU matter more than cosmetics and I risk to brick my phone if I use either of them)

21:06 < shtrom> (at the moment, I can't see the device in ADB)
21:08 < Bonstra> That's why you need the developer image, there is a tool in the archive to root the device in a proper way (aka. without voiding your warranty)

21:15 < Bonstra> You can get into fastboot mode holding power+vol down, once done, run 'fastboot oem unlock' on the host, this should unlock fastboot, keep in mind that there is no way back.

21:17 < Bonstra> Once done, boot a rooted boot.img using "fastboot boot boot.img" and *make a full backup of all flash partitions*
21:17 < Bonstra> You can check the current state of the bootloader lock using 'fastboot oem device-info'

21:18 < shtrom> I guess I can now flash the boot.img that I should eventually get when compiling b2g?
21:19 < shtrom> hum
21:19 < shtrom> though I think I saw something cautioning against flasing using fastboot
21:22 < Bonstra> Do not flash, just boot the image without flashing
21:23 < Bonstra> Do you have a boot.im image around?
21:24 < Bonstra> *boot.img

21:26 < Bonstra> Ok, do not attempt to flash anything until you have a full backup of the stock system image
21:26 < Bonstra> You wouldn't have a way to recover from a mistake if you did
21:27 < shtrom> ok
21:27 < shtrom> hum
21:27 < Bonstra> First step is to boot a rooted boot.img from RAM so you can backup the stock partitions so that it's safe to flash later on

21:36 < shtrom> I guess the boot.img would be the same for all versions, or is there a reason in suggesting the EU rather than the FR images?
21:36 <~dattaz> shtrom: http://builds.firefoxos.mozfr.org/opencebay/FFOS_EU_EBAY_P821A10V1.0.0B06_LOG_DL.zip
21:36 < shtrom> thanks dattaz 
21:39 < Bonstra> shtrom: there is a slight difference in the device tree, something with the camera sensor iirc

21:55 < Porkepix> Bonstra: shtrom Not only that; FR device have light and proximity sensor while EU device don't
21:55 < shtrom> can I check what mine has from the running OS?
21:56 < shtrom> there is no option to auto-set the brightness, if that's any relevant
21:56 < Bonstra> If it can dim the screen backlight depending on the ambient light, it has a light sensor
21:56 < shtrom> and the screen doesn't turn off when next to my face
21:57 < Porkepix> There is something from ZTE to check that before flashing it, I just have to remember the code
21:57 < shtrom> Bonstra: nope, I don't think it can, only manually set
21:58 < Bonstra> Then the EU image seems more suitable than the FR one :)
21:59 < shtrom> sounds like it, yeah (:

22:01 < Bonstra> shtrom: You should prepare a µSD card with enough free space to perform a backup of the stock rom while you're downloading the archive

22:26 < Porkepix> shtrom: Not sure exactly of the code, but it's possible it was *983*0# if you want to check for some of those things
22:27 < shtrom> nope (:
22:30 < Porkepix> shtrom: Hum, strange, I found it back, it's supposed to be typing *983*0# and then calling this
22:30 < Porkepix> And an ugly test app pop from this
22:30 < shtrom> ha
22:30 < shtrom> calling it
22:30 < shtrom> ys
22:31 < Porkepix> And you've a test for sensors
22:32 < shtrom> only accelerometers
22:32 < Porkepix> Yep, so closer from EU and US OpenC than FR ones
20:21 < shtrom> j'ai téléchargé FFOS_EU_EBAY_P821A10V1.0.0B06_LOG_DL, le téléphone (AU) en fastboot
20:22 < shtrom> et fastboot boot boot.img
20:22 < shtrom> venant de cette archive
20:22 < shtrom> et ça ne semble que booter le système normalement
20:22 < shtrom> j'ai tenté le recovery.img qui m'a bien mis en recovery
20:22 < Bonstra> Si ça boote "normalement", c'est bon signe :)

20:25 < shtrom> Device Info/More Info/Developer
20:26 < Bonstra> Ensuite je ne sais plus trop comment c'est organisé, mais en gros tu dois faire un cp de /dev/block/mmcblk0p* vers ta carte SD.

20:28 < shtrom> Remote debugging
20:29 < shtrom> quand c'est activé, adb voit la téléphone
20:29 < shtrom> mais pas de permissions
20:30 < Bonstra> Essaye un 'adb kill-server' et réessaye un 'adb shell'. Il se peut que le téléphone demande confirmation
20:31 < shtrom> Yup!

20:32 < shtrom> entre temps j'ai rebooté sans le boot.img
20:32 < Bonstra> Ah, c'est sans doute pour ça
20:32 < shtrom> apparement, mon téléphone était peut-être rooté tout ce temps (:
20:33 < Bonstra> L'invite de commande se termine par un '#' ou un '$' ?
20:33 < shtrom> rah
20:33 < shtrom> $
20:33 < shtrom> pas un shell rootn

20:33 < shtrom> mais je peux retenter avec le boot.img
20:33 < Bonstra> Repars en fastboot et boot sur le boot.img du pack root :)
20:34 < shtrom> yep
20:35 < shtrom> cool
root@ZTE_P821E10:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=206088k,nr_inodes=51522,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,size=206088k,nr_inodes=51522,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,size=206088k,nr_inodes=51522,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,size=206088k,nr_inodes=51522,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:65 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
# ls -l /dev/block/platform/msm_sdcc.1/by-name/system /dev/block/platform/msm_sdcc.1/by-name/userdata /dev/block/platform/msm_sdcc.1/by-name/cache /dev/block/platform/msm_sdcc.1/by-name/persist /dev/block/platform/msm_sdcc.1/by-name/modem
lrwxrwxrwx root     root              1970-01-01 10:46 system -> /dev/block/mmcblk0p12
lrwxrwxrwx root     root              1970-01-01 10:46 userdata -> /dev/block/mmcblk0p13
lrwxrwxrwx root     root              1970-01-01 10:46 cache -> /dev/block/mmcblk0p15
lrwxrwxrwx root     root              1970-01-01 10:46 persist -> /dev/block/mmcblk0p14
lrwxrwxrwx root     root              1970-01-01 10:46 modem -> /dev/block/mmcblk0p1
# dd if=/dev/block/mmcblk0p12 of=/storage/sdcard1/FFOS_AU_ZTE_OPENCV1.0.0B01_mmcblk0p12_system
# dd if=/dev/block/mmcblk0p13 of=/storage/sdcard1/FFOS_AU_ZTE_OPENCV1.0.0B01_mmcblk0p13_userdata
# dd if=/dev/block/mmcblk0p15 of=/storage/sdcard1/FFOS_AU_ZTE_OPENCV1.0.0B01_mmcblk0p15_cache
# dd if=/dev/block/mmcblk0p14 of=/storage/sdcard1/FFOS_AU_ZTE_OPENCV1.0.0B01_mmcblk0p14_persist
# dd if=/dev/block/mmcblk0p1 of=/storage/sdcard1/FFOS_AU_ZTE_OPENCV1.0.0B01_mmcblk0p1_modem
projets/ffoszteopenc.txt · Dernière modification : 2016-03-08 10:36 de shtrom