FORUMS
Remove All Ads from XDA

[DEV][N][DP2][CRACKLING]Android N Developer Preview

93 posts
Thanks Meter: 179
 
Post Reply Email Thread
14th March 2016, 03:48 PM |#11  
Member
High Wycombe
Thanks Meter: 6
 
More
Quote:
Originally Posted by cleversokol

I've tried this firmware on my phone and I'd like to share both experience and expressions.

Main laptop is MacBook Air, so it was quite hard to find working fastboot, adb ot GUI utilities.
Finally, I've installed them with command:

Code:
bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)
Then I tried to unlock the bootloader and flash images:
Code:
Sergeys-MacBook-Air:tools cleversokol$ adb devices
List of devices attached
adb server is out of date.  killing...
adb I  4550 408520 usb_osx.cpp:259] Found vid=2970 pid=2282 serial=bf2ecad9
adb I  4550 408520 usb_osx.cpp:259] 
* daemon started successfully *
bf2ecad9	unauthorized

Sergeys-MacBook-Air:tools cleversokol$ adb reboot bootloader
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
Sergeys-MacBook-Air:tools cleversokol$ adb reboot bootloader
Sergeys-MacBook-Air:tools cleversokol$ fastboot devices
bf2ecad9	fastboot
Sergeys-MacBook-Air:tools cleversokol$ fastboot -i 0x2970 oem unlock-go
< waiting for any device >
^C
Sergeys-MacBook-Air:tools cleversokol$ fastboot devices
bf2ecad9	fastboot


As you can see, I had failed unlocking the bootloader and I did not install TWRP. Also, without TWRP I had not done wipe.
Code:
Sergeys-MacBook-Air:tools cleversokol$ fastboot reboot
rebooting...

finished. total time: 0.002s
Sergeys-MacBook-Air:tools cleversokol$ fastboot devices
Sergeys-MacBook-Air:tools cleversokol$ adb reboot bootloader
Sergeys-MacBook-Air:tools cleversokol$ fastboot devices
bf2ecad9	fastboot
Sergeys-MacBook-Air:tools cleversokol$ fastboot -i 0x2970 oem unlock-go
< waiting for any device >
^C
Sergeys-MacBook-Air:tools cleversokol$ fastboot flash boot boot.img
target reported max download size of 268435456 bytes
sending 'boot' (18457 KB)...
OKAY [ 0.667s]
writing 'boot'...
OKAY [ 1.835s]
finished. total time: 2.502s
Sergeys-MacBook-Air:tools cleversokol$ fastboot flash oem oem.img
target reported max download size of 268435456 bytes
sending 'oem' (6128 KB)...
OKAY [ 0.224s]
writing 'oem'...
OKAY [ 0.734s]
finished. total time: 0.958s
Sergeys-MacBook-Air:tools cleversokol$ fastboot flash system system.img
target reported max download size of 268435456 bytes
erasing 'system'...
OKAY [ 1.131s]
sending sparse 'system' (262140 KB)...
OKAY [ 11.011s]
writing 'system'...
OKAY [ 21.393s]
sending sparse 'system' (262140 KB)...
OKAY [ 11.789s]
writing 'system'...
OKAY [ 20.547s]
sending sparse 'system' (262140 KB)...
OKAY [ 11.854s]
writing 'system'...
OKAY [ 20.591s]
sending sparse 'system' (262140 KB)...
OKAY [ 11.522s]
writing 'system'...
OKAY [ 20.518s]
sending sparse 'system' (262140 KB)...
OKAY [ 11.106s]
writing 'system'...
OKAY [ 21.263s]
sending sparse 'system' (23028 KB)...
OKAY [ 0.978s]
writing 'system'...
OKAY [ 1.729s]
finished. total time: 165.433s
Sergeys-MacBook-Air:tools cleversokol$ fastboot reboot
rebooting...

finished. total time: 0.001s
Sergeys-MacBook-Air:tools cleversokol$ fastboot reboot
< waiting for any device >

I've had the opposite experience. Fastboot works without fail on Mac and Linux. Windows- not so much with the Swift.

Flash TWRP manually - fastboot flash recovery your_recovery_image.img (replace with the file name for TWRP)
You've just installed the patched oem.img (to allow code name "seed" images) along with boot and system. Can't boot to recovery if you don't have one

Steer away from flashing other files from the Android One stock image (it will be even messier hardbrick and you would have to follow the instructions from the other thread).
If you want to return to stock COS, follow the instructions from these awesome people : http://forum.cyanogenmod.org/topic/1...ck-cyanogenos/

PS: For some reason, unlocking the bootloader for me worked with: fastboot oem unlock-go
but not with:
fastboot -i 0x2970 oem unlock-go
Locking with: fastboot oem lock-go , worked as expected
 
 
14th March 2016, 05:00 PM |#12  
Junior Member
Thanks Meter: 0
 
More
Can I use this TWRP? I did not found Wileyfox Swift among supported devices.
14th March 2016, 05:06 PM |#13  
Member
High Wycombe
Thanks Meter: 6
 
More
Quote:
Originally Posted by cleversokol

Can I use this TWRP? I did not found Wileyfox Swift among supported devices.

I believe this is the one I've used.

In case the Windows tool for Wileyfox works for you (I'm missing some C# utilities on mine and can't deal with it atm), you can add TWRP from there as well.
PS: I used it only to install initially this preview. I haven't used it after.
14th March 2016, 07:27 PM |#14  
Junior Member
Thanks Meter: 0
 
More
Sucessfully installed TWRP3.0 (CM13-nightly-recovery did not work for me. Keep getting image of Android with red exclamation mark), wiped cache, data and installed CM13-nightly + GAPPS Mini. Booted into CM, did basic setup. After that I wanted to re-lock the bootloader.
With
Code:
fastboot oem lock-go
it worked, but after this command I got brick-phone again.
Only replacing the battery + re-unlocking the device helped to restore it.
Is there a way to keep device working with locked bootloader?
14th March 2016, 08:24 PM |#15  
Member
High Wycombe
Thanks Meter: 6
 
More
Lock the bootloader only if you'll be using stock signed images of CyanogenOS. That is in case you will have to return the device due to hardware fault- dead pixels, non functioning microphones/ speakers, etc. Another reason as of why you might want to relock, is to ensure that you'll be using CyanogenOS recovery and no problems with future OTAs (no guarantee there as encrypted devices had problems with first official update but things are looking nice for future official OTAs).



If you want to use custom recovery- TWRP/CMRecovery by itself or along with CyanogenMod13 or any other custom ROM- do not lock the bootloader.

These are your options Keep the bootloader unlocked unless you have the need/ desire to return it to true stock.
15th March 2016, 06:13 AM |#16  
Senior Member
Flag Johannesburg
Thanks Meter: 31
 
More
I tried to install it again and it doesn't work. I flashed stock and unlocked my bootloader. I managed to flash OEM and BOOT but it doesn't want to flash the system partition at all. I tried everything. I tried 4pda method too. Am I missing something?
15th March 2016, 09:39 AM |#17  
mermigas's Avatar
Senior Member
Thanks Meter: 321
 
More
Quote:
Originally Posted by yasteellutch

I tried to install it again and it doesn't work. I flashed stock and unlocked my bootloader. I managed to flash OEM and BOOT but it doesn't want to flash the system partition at all. I tried everything. I tried 4pda method too. Am I missing something?

System img is big and post propably your fastboot installer cannot handle it.
Try this fastboot installer
http://forum.xda-developers.com/show....php?t=2588979
15th March 2016, 02:26 PM |#18  
Senior Member
Flag Johannesburg
Thanks Meter: 31
 
More
This is the one I'm using. Mininimal adb and and fastboot . it won't work. Even tried with android studio

---------- Post added at 12:26 PM ---------- Previous post was at 12:25 PM ----------

Quote:
Originally Posted by yasteellutch

This is the one I'm using. Mininimal adb and and fastboot . it won't work. Even tried with android studio

It keeps on saying sending sparse system img(0kb)
15th March 2016, 02:37 PM |#19  
mermigas's Avatar
Senior Member
Thanks Meter: 321
 
More
Quote:
Originally Posted by yasteellutch

This is the one I'm using. Mininimal adb and and fastboot . it won't work. Even tried with android studio

---------- Post added at 12:26 PM ---------- Previous post was at 12:25 PM ----------


It keeps on saying sending sparse system img(0kb)

Just try this
http://androidhost.org/P2XKs

unzip to your root directory - copy Android N images to this directory and give it a try.
15th March 2016, 03:43 PM |#20  
Senior Member
Flag Johannesburg
Thanks Meter: 31
 
More
Quote:
Originally Posted by mermigas

Just try this
http://androidhost.org/P2XKs

unzip to your root directory - copy Android N images to this directory and give it a try.

This is what I get
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	144
Size:	140.0 KB
ID:	3683871  
15th March 2016, 05:57 PM |#21  
Senior Member
Flag Johannesburg
Thanks Meter: 31
 
More
Quote:
Originally Posted by mermigas

Just try this
http://androidhost.org/P2XKs

unzip to your root directory - copy Android N images to this directory and give it a try.

Funny. When I get the OEM variable it says Device tampered : False but Device Unlocked : True. Could this be the issue?

---------- Post added at 03:57 PM ---------- Previous post was at 03:41 PM ----------

Quote:
Originally Posted by yasteellutch

Funny. When I get the OEM variable it says Device tampered : False but Device Unlocked : True. Could this be the issue?


C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem device-info
...
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Charger screen enabled: false
OKAY [ 0.013s]
finished. total time: 0.014s
Post Reply Subscribe to Thread

Tags
android, beta

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread