Flash phone by using command "fastboot flashall -w" then I can't turn the phone on - Google Pixel 3a Questions & Answers

Environment:
ubuntu :14.04
android 9 AOSP download : repo init -u https://android.googlesource.com/platform/manifest -b android-9.0.0_r47
source code build Q3B.190801.002
source code tag:android-9.0.0_r47
driver binaries ixel 3a binaries for android 9.0.0(PQ3B.190801.002 )
phone:pixel 3a, Europe, unlocked ( Factory ImageQ3B.190801.002, Aug 2019 )
1、source ./build/envsetup.sh
2、lunch aosp_sargo-userdebug
After the compilation succeeded , I flashed phone by using command "fastboot flashall -w" and the teminal told me that it was successful.
is this a problem?
( target reported max download size of 268435456 bytes Erase successful,
but not automatically formatting.
File system type raw not supported.
Erase successful, but not automatically formatting.
File system type raw not supported. )
When I turned the phone on ,it failed . The phone was all on the state of bootloader and it can not be into the Android. AndI don't know what I could do next.
Could anyone help me solve this ? Please , Please .
sorry for my poor English

Related

[Q] Problem flashing recovery.

Hi guys.
I have been trying to root my HTC One S for hours now without any luck.
I have been using this guide,(http://forum.xda-developers.com/showthread.php?t=1583427) and have managed to get all the way to the last step in the "recovery"-section.
But when I try to flash the recovery, this is what I get:
c:\fastboot>fastboot recovery clockwork-touch.img
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default:
2048
How can this be?
Thanks in advance for your help
Type the following command
c:\fastboot>fastboot recovery recovery clockwork-touch.img
Thanks for your reply, frazzeld.
It didn't work. Sorry. Still the same text coming up.
Maybe there is something wrong with have a managed my fastboot-folder.
Because I am a new member I cant post a picture of my folder :/
But it is set up like this:
(folder)add-ons
(Folder)platforms
Folder)tools
adb
adbWinapi.dll
AVD Manager
clockwork-touch.img
fastboot.exe
SDK Manager
SDK Readme
Unlock-code
Never mind.
It worked after all. Don't know what I did wrong the first 50 times.
Thank you
which clockwork are you trying to install?
Edit: I see you've sorted it now
Are you in fastboot mode? Also the recovery image has to be in the same folder as fastboot.exe is.
To point to the correct folder its "cd"
e.g.
cd c:\fastboot
And the correct command is;
fastboot flash recovery name_of_the_recovery.img
Thats all i can see from what you've posted
edit: too slowwww, glad you got it sorted
Big_Den said:
...
fastboot flash recovery name_of_the_recovery.img
...
Click to expand...
Click to collapse
This.
Just in case someone else stumbles across this thread.
Unconn said:
This.
Just in case someone else stumbles across this thread.
Click to expand...
Click to collapse
From the proper directory. It's not C:\ for everyone... Some have their fastboot.exe in C:\Android and some even C:\Android\platform-tools for example.
Point being, make sure u know where your fastboot.exe is located
Sent from my HTC VLE_U using xda premium

Semi-bricked sensation (corrupt IMEI?)

Just over half a year ago (January 2012) I have unlocked my sensation with rev. h-boot, installed 4 ext recovery and flashed Android Revolution. I've been using the phone in a number of countries since, with no problems. A couple of days (9/08) back, when I returned to the UK my sensation started behaving as if it had been IMEI blocked, and after fiddling around for a while I discovered that the IMEI android reports is different that the one printed under the battery/on the box. Given it doesn't seem I have any backup (bear in mind it worked like a charm for past half a year) is there any way of repairing that corrupt IMEI? Is it (so naive) stored in more than one place on the phone so I could access the factory IMEI or anything of that sort? I've tried using the fastboot oem writeimei command, as well as the root terminal emulator command that have been posted on these forums a number of times but neither of them worked.
Go to shop where you get it
Sent from my HTC Sensation using xda premium
From the dialler which one does *#06# report ?
Your fastboot might be neutered (can't issue write commands properly) if you upgraded the HBOOT using the universal firmware packages posted in the Dev section, even though it is still s-off.
When you boot into the bootloader, does it say *** LOCKED *** or Revolutionary in the very top left? If it's *** LOCKED ***, you need to reinstall the Revolutionary HBOOT.
If it says Revolutionary, issue the following commands from Windows to fix your IMEI:
Code:
fastboot getvar imei
[shows old imei]
fastboot oem writeimei 123456789012345
fastboot reboot-bootloader
fastboot getvar imei
[shows new imei]
krazykipa said:
Your fastboot might be neutered (can't issue write commands properly) if you upgraded the HBOOT using the universal firmware packages posted in the Dev section, even though it is still s-off.
When you boot into the bootloader, does it say *** LOCKED *** or Revolutionary in the very top left? If it's *** LOCKED ***, you need to reinstall the Revolutionary HBOOT.
If it says Revolutionary, issue the following commands from Windows to fix your IMEI:
Code:
fastboot getvar imei
[shows old imei]
fastboot oem writeimei 123456789012345
fastboot reboot-bootloader
fastboot getvar imei
[shows new imei]
Click to expand...
Click to collapse
Is this not a little illegal ?
Sent from my HTC Sensation XE with Beats Audio Z715e using xda app-developers app
*shrugs* just suggesting a solution, maybe using the phone as he has it right now is illegal... !
This works it is ilegal, kinda.
Sent from my HTC Sensation Z710e using xda premium
not really
I dont believe its illegal if he's repairing/restoring IMEI back to original, if he/she's "changing" a valid IMEI then yes.
My fastboot doesn't give the option of the command ' writeimei' .
Only:
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default:
2048
freelanc45 said:
My fastboot doesn't give the option of the command ' writeimei' .
Only:
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default:
2048
Click to expand...
Click to collapse
It needs a custom fastboot binary (Revolutionary) and you are (technically) legally limited to restoring a damaged IMEI on your own consent. As explained, creating a false IMEI is illegal. Just a heads-up.

[Q] Do I still need a special fastboot.exe for TF300T?

I have 3 HTC devices and 2 TF300T's. I have all the drivers for HTC's devices and TF300T
along with the SDK tools for ICS and JB. The two SDK directories are in my Win 7 Pro x64
PATH so I can run them from any cmd.exe window. I remember seeing a special
version of fastboot for the ASUS tablets and wondered if that was needed for
use of fastboot mode on the TF300T?
If I do, can someone past a download URL for it?
Thanks
fuzzynco said:
I have 3 HTC devices and 2 TF300T's. I have all the drivers for HTC's devices and TF300T
along with the SDK tools for ICS and JB. The two SDK directories are in my Win 7 Pro x64
PATH so I can run them from any cmd.exe window. I remember seeing a special
version of fastboot for the ASUS tablets and wondered if that was needed for
use of fastboot mode on the TF300T?
If I do, can someone past a download URL for it?
Thanks
Click to expand...
Click to collapse
The fastboot.exe is the same for all android devices.
Funny thing happening to me: fastboot devives doens't return serial no. but it does work when I flash ...
fuzzynco said:
I have 3 HTC devices and 2 TF300T's. I have all the drivers for HTC's devices and TF300T
along with the SDK tools for ICS and JB. The two SDK directories are in my Win 7 Pro x64
PATH so I can run them from any cmd.exe window. I remember seeing a special
version of fastboot for the ASUS tablets and wondered if that was needed for
use of fastboot mode on the TF300T?
If I do, can someone past a download URL for it?
Click to expand...
Click to collapse
Ti2 said:
Funny thing happening to me: fastboot devives doens't return serial no. but it does work when I flash ...
Click to expand...
Click to collapse
If you have got a problem with your adb or fastboot or recovery....it's very simply and faster
use this:
Download this file "fastboot.zip"
Install this file somewhere in one folder which is named "fastboot" on your PC
=> disk C: root
Unzipped this file on the folder "fastboot" and you will find 3 files:
- adb.exe
- AdbWinApi.dll
- fastboot.exe
and when you need to push something by the bootloader, you can use it.
Don't forget to push on this folder the file that you need. For exemple: boot.img or a recovery.img, etc...
The line command is :
Code:
c:\fastboot>
Enter
Code:
c:\fastboot>fastboot flash recovery recovery.img
Enter
If you want to flash the "recovery.img" file
******************************************************************
******************************************************************
If you want to know all lines of command
Code:
c:\fastboot>fastboot
Code:
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default: 2048
Ti2 said:
Funny thing happening to me: fastboot devives doens't return serial no. but it does work when I flash ...
Click to expand...
Click to collapse
fastboot devives or fastboot devices?
RangerLG said:
fastboot devives or fastboot devices?
Click to expand...
Click to collapse
The latter of course eheh. Doesn't return serialno, yet yesterday I flashed twrp 2.4 w/o issues.

Fastboot Driver

I am trying to put a ROM on the TF300. I have Unlocked the tablet and installed the ADB driver. When I boot into recovery and the USB icon it asks for a driver for fastboot. I can't seem to get that anywhere. I have the Android SDK installed and java etc. Where is the driver located? I look in the USB driver folder but its not in their...
If you need just fastboot, use this guide, that you will find in the index for tf300 (General & Dev forums)
HELP FOR FLASH MORE FASTER WHEN YOU USE FASTBOOT LINE COMMAND​
If you have got a problem with your adb or fastboot or recovery....it's very simply and faster
use this:
Download this file "fastboot.zip"
Install this file somewhere in one folder which is named "fastboot" on your PC
=> disk C: root
Unzipped this file on the folder "fastboot" and you will find 3 files:
- adb.exe
- AdbWinApi.dll
- fastboot.exe
and when you need to push something by the bootloader, you can use it.
Don't forget to push on this folder the file that you need. For exemple: boot.img or a recovery.img, etc...
The line command is :
Code:
c:\fastboot>
Enter
Code:
c:\fastboot>fastboot flash recovery recovery.img
Enter
If you want to flash the "recovery.img" file
******************************************************************
******************************************************************
If you want to know all lines of command
Code:
c:\fastboot>fastboot
Code:
usage: fastboot [ ]
commands:
update reflash device from update.zip
flashall flash boot + recovery + system
flash [ ] write a file to a flash partition
erase erase a flash partition
getvar display a bootloader variable
boot [ ] download and boot kernel
flash:raw boot [ ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message
options:
-w erase userdata and cache
-s specify device serial number
-p specify product name
-c override kernel commandline
-i specify a custom USB vendor id
-b specify a custom kernel base address
-n specify the nand page size. default: 2048
And if you have some problems with your drivers, you can use this : How to install Universal Naked Drivers
Sent from my N7 3G with DroiDevs premium between sky and earth.
I got it to work thanks!

[SOLVED] GSI on BV 4900 Pro: "Cannot load Android system. Your data may be corrupt. "

tl;dr: I followed the procedure to flash Android's Generic System Image (gsi_gms_arm64-exp-TP1A.220624.014-8819323-8a77fef1) on my Blackview BV 4900 Pro, but I am stuck in a bootloop that ends with "Cannot load Android system. Your data may be corrupt."
In details:
Prep​I made sure that my phone could support GSI​
$adb shell getprop ro.treble.enabled
true
$adb shell cat /system/etc/ld.config.29.txt | grep -A 20 "\[vendor\]"
…
namespace.default.isolated = true
…
$adb shell getprop ro.product.cpu.abi
arm64-v8a
Additional Checks​
Bootloader is unlocked.
Device was launched with Android 9 or higher (it was launched with Android 10)
Android 13 GSIs was downloaded (build Build: TP1A.220624.014) was downloaded from https://developer.android.com/topic/generic-system-image/releases and checksum for ARM64+GMS was confirmed to be 8a77fef1842da4a4cff68e36802f779d65e52ae0cfce024a33901d5dc48d47d0.
The phone has Android Verified Boot (AVB):
$adb shell getprop ro.boot.veritymode
enforcing
Flashing​
I followed the official tutorial for flashing GSIs but changed a couple of things (I may have the order wrong, but I essentially did, once I was in fastboot mode
fastboot flashing unlock # To unlock bootloader
fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img # Disable secure boot
fastboot reboot fastboot # Restart in fastbootd
fastboot delete-logical-partition product # I didn't have enough space for Resizing 'system' (I had FAILED (remote: 'Not enough space to resize partition'))
fastboot erase system
fastboot format:ext4 system # because when I tried to flash system.img the first time, I had "Invalid sparse file format at header magic"
fastboot flash system system.img
fastboot format:ext4 userdata
fastboot erase userdata
fastboot format:ext4 metadata
fastboot erase metadata
fastboot erase cache
But when I restart, I am always prompted with
Android Recovery
Blackview /BV4900Pro_US/BV4900Pro10/…
user/release-keys
Use volume up/down and power
Can't load Android system. Your data
may be corrupt. If you continue to get
this message, you may need to perform a
factory data reset and erase all user
data stored on this device
-------------------------
Try again
Factory data reset
-------------------------
Supported API:3
I have tried to reset factory data and to reboot, but I always have the same message…
$ adb --version
Android Debug Bridge version 1.0.41
Version 33.0.3-8952118
I just realized / remembered that this phone uses super.img instead of system.img, maybe I need to repack the system.img into a super.img, following this procedure?
tl;dr: Yes, repacking the system.img into a super.img and then flashing it was key to success.
I have essentially followed what I have described here: https://forum.xda-developers.com/t/...n-blackview-bv-4900-pro.4453955/post-87029001
Except that the three images I used were the original vendor.img, the original product.img, and
aosp_arm64-exp-TP1A.220624.014-8819323-996da050/system.img (available at
Generic System Images (GSIs) | Platform | Android Developers
developer.android.com
)
I used the command
python3 lpmakesimple.py lpbinary/binary/lpmake ./super_20220510.img 4294967296 system=system.img,vendor=./vendor.img,product=./product.img
(4294967296 being picked semi-randomly: it's a multiple of the block size (65536), less than the size of the super partition but more than the size of the three images combined + some more).
That's it: I flashed that super_20220510.img using fastboot flash super super_20220510.img and it was all good!

Categories

Resources