Home Forum Blog Private Support Courses Archive
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android flashed portet TWRP recovery, no sd card

flashed portet TWRP recovery, no sd card

flashed portet TWRP recovery, no sd card

Pages (2): Previous 1 2
hovatek
hovatek
hovatek
Administrator
51,076
11-11-2021, 05:07 PM
#11



(11-11-2021, 04:01 PM)f1cscari "Is this your ultimate goal? "

Yes of course, are you kidding me? it is the only reason why i am doing this, using TWRP. i found no other solution doing a full backup of my device, without later adjusting lots of  system settings, re-installing apps, re-configuring accounts and so on. it is only for personal use, backing up my device., I do this for 30 years with my PC´s, called imaging, started with Ghost, did it with my older mobile models for 10 years and wanna do the same also with my new phone, the MT6779. Any suggestions?

Ps. the OTG test nearly bricked my device, i tried from TWRP accesing the OTG, listed with (0) but the Hardware was not rly activated. I didn't knew this at that time, so i tried formatting the USB Stick and found out, it was the local boot Partition (32MB) which i formatted. The good news, with sp_tools i was able to reanimate the dead Blackview. i am rly close to sell this device and buy a 7 year old model because this sh* makes me nuts.

What you're after is your userdata and system then maybe boot if a kernel patch is involved.
While there are many other methods to backup, TWRP would be the easiest to restore so lets stick with TWRP for a little longer.
I'm assuming you've disabled userdata encryption.
What we can do is manually port another TWRP for you while we await more testers to confirm if they had this issue or not. None of our initial testers did though.

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
f1cscari
f1cscari
f1cscari
Enthusiastic Member
14
12-11-2021, 02:42 PM
#12
[Spoiler alert- Full story]
Normally with older models, i used SP_Flash Tools for doing backups.
Yes, the data partition is unencrypted, done by modifying the fstab.mt6779 in the vendor/etc folder. (encryptable)
I am able to do a full readback with SP_Flash Tools, but after restoring these backups to the device, its doing a factory reset.
The Full Backup includes 42 partitions, a restore only 24. i tested also restoring all 42 partitions without success. This device has 44 partitions, the last two flagged as reserved in the scatter file, flashinfo and sgpt, are dropped.
After all these failing tests with sp_flash tools, i thought as last option, here we are, i try it with TWRP. But meanwhile i believe also, even if we get the TWRP working with SD Card or a OTG Drive, the restore problem would resist. I see two option why its not working.

1. there is a second, hidden rom used, outside of the scatter file.
2. these two last partitions have additional informations, i cant backup or restore them, they are untouchable for sp_tools.
enabling them as readback or download results in errors. see story here - https://github.com/do1fmd/BV9900Pro-opti...n/issues/3

edit/update: i tried now a full backup in the TWRP, selected 36 partitions and backed it in /data/media/0/TWRP/BACKUPS/BV9900pro/2021-11-12--07-50-16
two line red errors
Failed to mount ´/system_root´(invalid arguments)
Updating partition details
...done
Again two line red errors
Failed to mount ´/system_root´(invalid arguments)

The rest of the log seems ok and ends with
Average backup rate for file system: 71 MB/sec
Average backup rate for image drives: 91 MB/sec
[3076 MB TOTAL BACKED UP]
Updating partition details...
...done
BACKUP COMPLETED in 72 Seconds

Now using SP_flash tools backing this all up again, restoring first with sp_flash, second with TWRP would work? idk yet... i am tired to find this out... it takes hours to do all the setting again. its a complete deploadet setup with a own notification service Wink
This post was last modified: 12-11-2021, 03:22 PM by f1cscari.
hovatek
hovatek
hovatek
Administrator
51,076
13-11-2021, 01:57 PM
#13
(12-11-2021, 02:42 PM)f1cscari ...
Updating partition details...
...done
BACKUP COMPLETED in 72 Seconds

Now using SP_flash tools backing this all up again, restoring first with sp_flash, second with TWRP would work? idk yet... i am tired to find this out... it takes hours to do all the setting again. its a complete deploadet setup with a own notification service Wink

Since you've been able to backup to the internal storage, the SD card / OTG issue can take a back seat for now.
What you're after are userdata, cache and metadata to backup and restore in TWRP. You can leave all others untouched. Lets see how that goes

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
f1cscari
f1cscari
f1cscari
Enthusiastic Member
14
13-11-2021, 04:23 PM
#14
Thank you for the feedback which partitions i have to focus on. I think i found the problem.
The default stocks rom scatter file creates a initial partition size which gets later in the initial startup re-formated and dynamicly resized.

linear_start_addr: 0x160800000
physical_start_addr: 0x160800000
partition_size: 0xc0000000

Which are 3 GB -> later resized to 111 GB

Backing /datas up with sp_tools and default scatter values can not succeed of course!
I had redone another Test with TWRP which has a "TWRP Backup" included, so the result became a bit larger..The TWRP Log shows this very nice:

/data | /dev/block/sdc41 | Size: 114036MB Used: 13866MB Free: 99562MB Backup Size: 13866MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Is_Encrypted Is_Decrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage
Symlink_Path: /data/media/0
Symlink_Mount_Point: /sdcard
Primary_Block_Device: /dev/block/sdc41
Display_Name: Data
Storage_Name: Internal Storage
Backup_Path: /data
Backup_Name: data
Backup_Display_Name: Data
Storage_Path: /data/media/0
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files
MTP_Storage_ID: 65537

/cache | /dev/block/sdc40 | Size: 402MB Used: 1MB Free: 401MB Backup Size: 1MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/sdc40
Display_Name: Cache
Storage_Name: Cache
Backup_Path: /cache
Backup_Name: cache
Backup_Display_Name: Cache
Storage_Path: /cache
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/metadata | /dev/block/sdc9 | Size: 32MB
Flags: Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/block/sdc9
Display_Name: metadata
Storage_Name: metadata
Backup_Path: /metadata
Backup_Name: metadata
Backup_Display_Name: metadata
Storage_Path: /metadata
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

Unfortunately in my case, because i have no external storage using the backups, TWRP can not write from /data/media/0 into /data Smile
So is there a way to recover the TWRP Backup with a connected PC and ADB?
Or can the TWRP Backup be converted to some kind of update.zip executed by magisk?
The most best would be, converted in a image file which can be used in sp_flash tool.

Meanwhile first test shows, the restore works with sp flash tools!
https://github.com/do1fmd/BV9900Pro-opti...-967795819
This post was last modified: 13-11-2021, 10:51 PM by f1cscari.
hovatek
hovatek
hovatek
Administrator
51,076
16-11-2021, 09:16 AM
#15

Hovatek Courses Hovatek Courses


(13-11-2021, 04:23 PM)f1cscari ...
Unfortunately in my case, because i have no external storage using the backups, TWRP can not write from /data/media/0 into /data Smile
..

TWRP doesn't backup internal storage so you should be able to backup and restore just fine

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
f1cscari
f1cscari
f1cscari
Enthusiastic Member
14
24-11-2021, 07:57 AM
#16
After weeks of looking for a solution, there is no need for TWRP anymore. 1. It does not work with newer Chipsets, secondly sp flash tools does its job very well. You just have to get the correct partition length, then you can backup any device, any partition in any state. Encrypted or not, it does not matter!

You can close this topic since you do not care anyway.
xerxes
xerxes
xerxes
Senior Member
10,420
29-11-2021, 05:41 PM
#17
Edith the ftab67 and Retry the format process with stock before flashing ur TWRP and ensure u flash disable force encryption TWRP using ur otg or memory card
Pages (2): Previous 1 2
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)