Hi everyone,
I just got a cheap chinese tablet with android 9.0, i tried to root it with the available tools but no success, so i'm thinking of making my own twrp image, therefor this question: is it safe to readback the recovery.img file using spfalsh tool (and since all the scatter files of its chip MT6580 have the same address and length for the recovery.img file), then make my own twrp, flash it, and if it fails, reflash the "original" recovery i extracted? will this work?
fateh.ah said:
Hi everyone,
I just got a cheap chinese tablet with android 9.0, i tried to root it with the available tools but no success, so i'm thinking of making my own twrp image, therefor this question: is it safe to readback the recovery.img file using spfalsh tool (and since all the scatter files of its chip MT6580 have the same address and length for the recovery.img file), then make my own twrp, flash it, and if it fails, reflash the "original" recovery i extracted? will this work?
Click to expand...
Click to collapse
You can backup the recovery file using MTK Droid Tools, yes, but you must install a custom recovery that can fit into the recovery partition. You can find the recovery partition size on the scatter file. If you want a bigger custom recovery, you must edit EBR{1,2} and MBR files.
efec said:
You can backup the recovery file using MTK Droid Tools, yes, but you must install a custom recovery that can fit into the recovery partition. You can find the recovery partition size on the scatter file. If you want a bigger custom recovery, you must edit EBR{1,2} and MBR files.
Click to expand...
Click to collapse
MTK Droid Tools does not work properly with this tablet, it gives me this error
--- ERROR : --- TotalBytesPerChunk Not Found. Set default Page/Spare=2048/64 !!!
Click to expand...
Click to collapse
so, will spflash tool by itself suffice?
Related
Wondering if someone could help. I have a Timmy E82 Android 4.3 MTK MT6582 device and been unable to fully root it with any tools, due to /system refusing to mount. My device is true 4.3 it seems.
I'm using:
SP_Flash_Tool_v3.1332.0.187
MTK Droid tools v2.5.1
I made completed all the steps to get a scatter, it created a patched recovery, which I renamed to recovery.img and put both the scatter and the recovery in the same folder.
But then I'm getting error 8038.
Reading here: http://www.phcorner.net/threads/fix-...sh-tool.64302/
And a few other places it suggests the issue is a mis match in the scatter file. What is it I need to modify in the scatter to get it working so I can flash a custom recovery? I honestly don't know what value the SP log is e
Also I read the pre-loader needs to be able to in the same folder, as the scatter and recovery, does also also need to be ticked during the custom recovery flashing process?
Please see my attached scatter file and log with SP tools.
I'm build TWRP recovery for e4g(e2003).
tested and working all funtions.
Needs:
-pc
-fastboot and drivers
-unlocked bootlader
1. Unlock bootloader (developer.sonymobile.com/unlockbootloader/)
2. install android fastboot drivers (find in net or forum)
3. download recovery.img file and copy fastboot folder.
4. connect your phone in fastboot mode (hold volume up and plug in usb)
5. open command line in fastboot folder(hold shift and right click)
6. type "fastboot flash recovery recovery.img"
7. Wait until you see the phone OK.
8. unplug phone and start in to recovery mode (hold volume down and power)
download link
TWRP_2.8.7.0_for_E4g
Wow thanks n_s218 for your awesome work:good:
Perfect!
Nice work
@n_s218 Can we port lollipop based rom from elephone p6000 or other same CPU and GPU phones to e4g?
Like this thread: http://forum.xda-developers.com/android/development/guide-how-to-port-lollipop-based-roms-t3223938
shinyghosts said:
@n_s218 Can we port lollipop based rom from elephone p6000 or other same CPU and GPU phones to e4g?
Like this thread: http://forum.xda-developers.com/android/development/guide-how-to-port-lollipop-based-roms-t3223938
Click to expand...
Click to collapse
we can try
Flashtool
I can flash this recovery with Flashtool or not?
no question, i forgot tha flashtool cant flash recovery. sorry for spam.
n_s218 said:
we can try
Click to expand...
Click to collapse
I found this rom for Elephone P6000 We can maybe port this to e4g. http://www.needrom.com/download/elephone-p6000-3/
and all rom for P6000: http://www.needrom.com/category/elephone/p6000/
How Can we get E4g stockboot.img and META-INF folder for port this MIUI7 rom?
Thanks:good:
This app works great for backing up partitions, in options change it to (img) http://forum.xda-developers.com/android/apps-games/app-partitions-backup-t3003599
shinyghosts said:
I found this rom for Elephone P6000 We can maybe port this to e4g. http://www.needrom.com/download/elephone-p6000-3/
and all rom for P6000: http://www.needrom.com/category/elephone/p6000/
How Can we get E4g stockboot.img and META-INF folder for port this MIUI7 rom?
Thanks:good:
Click to expand...
Click to collapse
If MIUI, then there's a newer version on MIUI pro.
You can back up boot image as @pryerlee said or via Flashify. For META-INF, we can take it from Elephone (as it's newer Android version so might be different) and just modify some lines (like the partition id's or the getprop lines at the beginning).
@n_s218 thank you, works great! This might be the beginning of custom ROMs for this device :victory:
Tomi_Ohl said:
If MIUI, then there's a newer version on MIUI pro.
You can back up boot image as @pryerlee said or via Flashify. For META-INF, we can take it from Elephone (as it's newer Android version so might be different) and just modify some lines (like the partition id's or the getprop lines at the beginning).
@n_s218 thank you, works great! This might be the beginning of custom ROMs for this device :victory:
Click to expand...
Click to collapse
Thanks:good: I have backup boot image with Partitions Backup & Restore app but this backup is 32mb so it is very big file elephone's miui boot image only 7mb.
and I have a another question Can we get boot.img in ftf file? but E4g's ftf doesn't contain kernel.sin but we have a boot.sin Can we getting boot image from this boot sin(elf)? look this thread:
http://forum.xda-developers.com/showthread.php?t=2699858
shinyghosts said:
Thanks:good: I have backup boot image with Partitions Backup & Restore app but this backup is 32mb so it is very big file elephone's miui boot image only 7mb.
and I have a another question Can we get boot.img in ftf file? but E4g's ftf doesn't contain kernel.sin but we have a boot.sin Can we getting boot image from this boot sin(elf)? look this thread:
http://forum.xda-developers.com/showthread.php?t=2699858
Click to expand...
Click to collapse
1. most of file empty (look at with hex editor) actually ~8 mb
2.boot partition backup file(boot.img) you must rename boot.elf and extract with flashtool elf extractor . you will get two file : boot.elf.0 = kernel , boot.elf.1=ramdisk
Thanks man...
n_s218 said:
1. most of file empty (look at with hex editor) actually ~8 mb
2.boot partition backup file(boot.img) you must rename boot.elf and extract with flashtool elf extractor . you will get two file : boot.elf.0 = kernel , boot.elf.1=ramdisk
Click to expand...
Click to collapse
Thanks:good: so that boot backup is a boot image? Is this right?:laugh:
Any recovery for e4 dual...
Can someone help with e4 dual e2115 for recovery....
shinyghosts said:
Thanks:good: so that boot backup is a boot image? Is this right?:laugh:
Click to expand...
Click to collapse
yes. right.
also you can boot.sin in ftf file ectract with flashtool sin editor
So I've tried to port Euphoria OS from P6000 using this guide.
I've done the ROM part, the updater script was also fine, but I've failed to port kernel: tried both tools mentioned there, Michfood's tool gave error for p6000 boot IMG, carliv's for both.
I've tried to flash the ROM with stock boot IMG, but with it the phone shuts down after Sony logo.
BTW I've backed up stock boot IMG via TWRP, but this shouldn't matter imo.
So can anyone help me with kernel?
EDIT: I'll try if the kernel in MIUI gives error too.
EDIT2: yes, same... Carliv's kitchen says unsupported archive format for ramdisk, Michfood's says something about that end offset is lower than start...
EDIT3: found this alternative for stock boot IMG. Still no solution for p6000 one
EDIT4: successfully decompiled P6000 kernel via Carliv's kitchen 1.0, by choosing regular Android (not mtk) mode. So now both kernels are decompiled but via different tool, so the output is not the same... Still didn't try the tool from EDIT3, it might be the solution.
EDIT5: I have no idea how to use tool from EDIT3 Now I'm downloading ftf, will see if I can do sth... Also I'll try this other tutorial for 64bit.
n_s218 said:
yes. right.
also you can boot.sin in ftf file ectract with flashtool sin editor
Click to expand...
Click to collapse
Thanks for information:good:
I did everything right. but not working. I think problem in boot.img
I working solve problem
n_s218 said:
1. most of file empty (look at with hex editor) actually ~8 mb
2.boot partition backup file(boot.img) you must rename boot.elf and extract with flashtool elf extractor . you will get two file : boot.elf.0 = kernel , boot.elf.1=ramdisk
Click to expand...
Click to collapse
this confused me,u read my mind,man,ty
but i cant follow this,can i use boot.sin file?
zokipfc said:
this confused me,u read my mind,man,ty
but i cant follow this,can i use boot.sin file?
Click to expand...
Click to collapse
yes. extract boot.sin via flashtool sin editor. Do you get boot.elf(boot.img)
Hii.. All , I'm using A Lyf wind mobile , I have my my orginginel ( system.img ) file I don't have PC Computer . , I'm using TWRP 3.0 .. Somebody help me how to flash a System.img using TWRP
_ THANKS _
vinay durva said:
Hii.. All , I'm using A Lyf wind mobile , I have my my orginginel ( system.img ) file I don't have PC Computer . , I'm using TWRP 3.0 .. Somebody help me how to flash a System.img using TWRP
_ THANKS _
Click to expand...
Click to collapse
TWRP can flash .img files without having to do anything special.
Sent from my SM-S903VL using Tapatalk
Droidriven said:
TWRP can flash .img files without having to do anything special.
Click to expand...
Click to collapse
Sir .. I was tried , there was only 2 options in TWRP 1st one recovery & 2cond one boot .. Which 1 ican select ,, I need to flash system.img
vinay durva said:
Sir .. I was tried , there was only 2 options in TWRP 1st one recovery & 2cond one boot .. Which 1 ican select ,, I need to flash system.img
Click to expand...
Click to collapse
I dont think you've booted into TWRP yet, I think you're looking at bootloader, select recovery and see if it boots to TWRP.
TWRP has more than just 2 options, are you sure you have TWRP? What version is it? Does it look like this?
http://cloud.tapatalk.com/s/58a730280544c/Screenshot_2017-02-17-12-15-48.png?
If that's what you have, select Install then find your .img and flash it.
Sent from my SM-S903VL using Tapatalk
Droidriven said:
I dont think you've booted into TWRP yet, I think you're looking at bootloader, select recovery and see if it boots to TWRP.
TWRP has more than just 2 options, are you sure you have TWRP? What version is it? Does it look like this?
http://cloud.tapatalk.com/s/58a730280544c/Screenshot_2017-02-17-12-15-48.png?
If that's what you have, select Install then find your .img and flash it.
Click to expand...
Click to collapse
Yes sir I'm Booting Into TWRP , Then > install > install images >. I found 2 options 1st one BOOT 2cond RECOVERY , but I won't to flash SYSTEM.img
vinay durva said:
Yes sir I'm Booting Into TWRP , Then > install > install images >. I found 2 options 1st one BOOT 2cond RECOVERY , but I won't to flash SYSTEM.img
Click to expand...
Click to collapse
I remember now that TWRP doesn't flash system.img correctly, system.img isn't a standard .img, you need PC and use fastboot.
Sent from my SM-S903VL using Tapatalk
Thanks Sir.. Any Another way to flash system , i don't have A PC
vinay durva said:
Thanks Sir.. Any Another way to flash system , i don't have A PC
Click to expand...
Click to collapse
I wouldn't try it without PC
Sent from my SM-S903VL using Tapatalk
vinay durva said:
Thanks Sir.. Any Another way to flash system , i don't have A PC
Click to expand...
Click to collapse
I know it is too late, but you can enter in Advaced > Terminal and then run this command:
dd if=/sdcard/system.img of=/dev/block/bootdevice/by-name/system
If your mobile phone doesnt have by-name symlinks you will need to enter the correct partition.
Aex12 said:
I know it is too late, but you can enter in Advaced > Terminal and then run this command:
dd if=/sdcard/system.img of=/dev/block/bootdevice/by-name/system
If your mobile phone doesnt have by-name symlinks you will need to enter the correct partition.
Click to expand...
Click to collapse
hi aex, I have the same problem but I dont have the folder
/bootdevice/by-name............
can you help me?
it will not work.
try to make a folder and "mount -o loop file in it.
and it will be not mounted also if you specify file system type.
(if it work probably you can use the file)
so ,i don't know how fastboot write in partition or probably
in to file system.
however if you do a dd of your current system partition in a file , after will be correctly mounted , or rewrited correctly in the original partition if you need.
then probably you cannot use fastboot system.img directly in twrp shell (using dd)
this is my experience (e2303 sony / pexorom 3.0 twrp 3.1.1)
if you are searching a fast way to know system partition device block
cat /etc/fstab
and look for system
or just mount system in twrp , then in a terminal do a
df -h
and search for system
for e2303 was /dev/block/mmcblk0p30
(example)
twrp have busybox and light kernel.
so , is linux.
for better support try to ask
tonystark88
u need to use simg2img
(sparse file format compression)
system partition device name can be different on other phones.
done.
img can be write by twrp whitout pc/fastboot.
c'ya
giuseppe
just go to file manager and search for system partition, and on first part type your system.img location and 2 part type just system location
I did this Steps on my Huawei P8. Sim2Img reported a non sparse image, so i moved directly to the DD steps. But after writing the image to the partition, the /system Partition cannot get mountet...
What the hell iam doing wrong ????
I extracted the system.img from an update.app Firmware file.
Its the same Firmware file i flashed before with the dload method.
I want to install TWRP on my Phone with an faulty USB Port. So i have no PC / ADB. I Installed the Firmware via the official Dload Method from Huawai. Then i used this crappy Kingroot to get root and installed TWRP. Now i wanted to flash the stock system partition to get rid of Kingroot for Safetynet.
But why i cant just flash the systempartition ?
Or is there another way to gain root for 15 seconds without traces ?
chr2002 said:
I did this Steps on my Huawei P8. Sim2Img reported a non sparse image, so i moved directly to the DD steps. But after writing the image to the partition, the /system Partition cannot get mountet...
What the hell iam doing wrong ????
I extracted the system.img from an update.app Firmware file.
Its the same Firmware file i flashed before with the dload method.
I want to install TWRP on my Phone with an faulty USB Port. So i have no PC / ADB. I Installed the Firmware via the official Dload Method from Huawai. Then i used this crappy Kingroot to get root and installed TWRP. Now i wanted to flash the stock system partition to get rid of Kingroot for Safetynet.
But why i cant just flash the systempartition ?
Or is there another way to gain root for 15 seconds without traces ?
Click to expand...
Click to collapse
Why not just use the settings in Kingroot to remove root? Or convert from Kingroot to SuperSu then use SuperSu app settings to remove root?
You don't have to flash the stock system to remove root.
Sent from my LGL84VL using Tapatalk
Kingroots uninstall leaves traces in /system/xbin and Safetynet wont work. Why i did not try Supersu ? :-/
But i managed to flash the system.img without problems.
First i tryed an extracted system.img from the Huawei Firmware extractor and Sim2img reported an invalid sparse image. So i thought it must be a raw image.....And this was my mistake. It is a useless image for TWRP.
So i created a flashable zip (TWRP cant flash this, too and the /system partition is not mountable after flashing / installing this zip.
BUT, the system.img INSIDE this zip is a spase image, which sim2img can handle. It gave me a nice raw image which i just dd´d to /system and BINGO, my phone starts up normally
The Short Version :
- Create a FLASHABLE ZIP with the Huawei Firmware Extractor
- use SIM2IMG in TWRP Terminal to get a RAW Image.
- dd´it to the /system partition
System img
You use the restore in twrp to flash your system img, you just until the other boxes
Edit: Sorry wrong thread
Lenovo K5 Pro ROM img
After flashing img file (using TWRP 3.3.1) the phone (Lenovo k5 pro) starts in bootloader mode. Everyone can help?
Help u
Hi u can download a deodexed rom because ais doesn't support some stock roms for ex ch Samsung roms. then decompile it.then decompile it with rar or zarchiver or etc. Then install android image studio (ais) from google
Then open it and tap unpack/mount and select system.img or system.img.ext4 file in decompiled rom . After mounting, copy all files to a directory for ex emulated/0/system/system or another. Attention if you copy it in another directory, rename it as (system) now copy the boot.img from decompiled rom into emulated/0/system .then download this file
https://forum.xda-developers.com/an...oid-o-beta-redesigned-emoji-set-t3608280/amp/
Extract meta-inf file into emulated/0/system using winrar or zarchiver or etc. Now you need to have a system folder,boot.img file and a Meta-inf in diractory emulated/0/system. Now compress system,boot.img and meta-inf into one archive and after completing, turn of your device and boot it into twrp recovery and wipe data and cache without wipping internal storage then select install. Then tap select storage and select internal storage.then go to the file and select it and turn off zip singuature verification and install it after installing tis rom, install root zip file and wipe cache/dalvik art and then reboot your device. It may take between 5-25 minutes to boot. Enjoy your new rom
#issues
Sometimes your device maybe take bootloop so you need to install your stock boot.img file and after installing your root zip file choose wipe cache/dalvik art and then reboot your system.
#Alert
1.Don't install the recovery.img file which exists in the decompiled rom because it takes your device into recovery mod and not boot anymore and after you need to install the stock rom using PC
2.your device maybe take bootloop in this method so do it with your own risk
---------- Post added at 07:58 AM ---------- Previous post was at 07:53 AM ----------
ShmuelCohen said:
After flashing img file (using TWRP 3.3.1) the phone (Lenovo k5 pro) starts in bootloader mode. Everyone can help?
Click to expand...
Click to collapse
Reboot your device and install twrp official app and open it and select flash image from a directory and select your own twrp and reboot your device [root]
Connect your phone to a PC and install stock rom using ADB or another app which was made for your smartphone [no root]
Hello,
I have an ASUS K01A tablet with a blank system partition and unusable recovery. I can flash img files to their respective partitions just fine (boot.img, droidboot.img) in fastboot, but 'system' in the stock firmware zip is a directory instead of a flashable image. Of course, this (and other reasons) means I can't just flash the stock firmware in fastboot, nor flash over the entire 'system' directory.
I need a system.img to recover my tablet from softbrick, but I can't for the life of me compile one. I've exhausted every method and tool I could find in both Windows and Ubuntu.
I beseech the community; if there is anyone reading this who could build such a file for me, I would be eternally grateful. I believe I only need the system.img to recover the tablet.
The stock firmware is at the ASUS website. Here is the download link: UL-K01A-WW-12.8.1.41-user.zip.
Thanks in advance!
Why not extract the system folder of the ZIP linked to, then pack it into a ZIP what you then convert to IMG using an online-convertor that does the job?
jwoegerbauer said:
Why not extract the system folder of the ZIP linked to, then pack it into a ZIP what you then convert to IMG using an online-convertor that does the job?
Click to expand...
Click to collapse
"Why not" indeed; that sounds like it would more than suffice. Can you please recommend one?
Anyone? I have been unable to find this "online-converter" despite days of searching; still at square one.
Only as example ( found via Google search !!! )
Archive Converter - Convert your a7z, rar, zip, gzip, bzip2, tar archives to another format online
Free Archive Converter. Convert your archive files to a7z, rar, zip, gzip, bzip2, tar format online for free using OnlineConvertFree.
onlineconvertfree.com
jwoegerbauer said:
Only as example ( found via Google search !!! )
Archive Converter - Convert your a7z, rar, zip, gzip, bzip2, tar archives to another format online
Free Archive Converter. Convert your archive files to a7z, rar, zip, gzip, bzip2, tar format online for free using OnlineConvertFree.
onlineconvertfree.com
Click to expand...
Click to collapse
Thank you, but I've tried this one and all the others on Google, and none will handle the filesize (~650 MB). It must be purpose-made for Android .img files it seems, which I've been unable to find.
Kehkou said:
Hello,
I have an ASUS K01A tablet with a blank system partition and unusable recovery. I can flash img files to their respective partitions just fine (boot.img, droidboot.img) in fastboot, but 'system' in the stock firmware zip is a directory instead of a flashable image. Of course, this (and other reasons) means I can't just flash the stock firmware in fastboot, nor flash over the entire 'system' directory.
I need a system.img to recover my tablet from softbrick, but I can't for the life of me compile one. I've exhausted every method and tool I could find in both Windows and Ubuntu.
I beseech the community; if there is anyone reading this who could build such a file for me, I would be eternally grateful. I believe I only need the system.img to recover the tablet.
The stock firmware is at the ASUS website. Here is the download link: UL-K01A-WW-12.8.1.41-user.zip.
Thanks in advance!
Click to expand...
Click to collapse
maybe that video helps you...
good luck
solong
speedson
I built it finally using IMGBurn to create the raw img and Sparse Converter to convert it to sparse img fragments.
But now the tab has formatting error, and with -u option, flashing errors (all partitions and imgs now). Ah, well.
Thank you to everyone! Hopefully someone else reading this will have better luck than me.
Kehkou said:
I built it finally using IMGBurn to create the raw img and Sparse Converter to convert it to sparse img fragments.
But now the tab has formatting error, and with -u option, flashing errors (all partitions and imgs now). Ah, well.
Thank you to everyone! Hopefully someone else reading this will have better luck than me.
Click to expand...
Click to collapse
Download the attached file from the link at the bottom of this post and unzip it somewhere on your PC. It is a temporary recovery launcher. We'll come back to it in a moment. Based on your original post I'm assuming you already have your stock firmware downloaded as well as ADB and Fastboot setup. From your stock firmware unpack the following files: fastboot.img, splashscreen.img, and boot.img and place them in your ADB/Fastboot folder. Copy the stock firmware to your sd card (in its original, unzipped form...the way it was when you first downloaded it). Put the tablet in fastboot mode. Run the following fastboot commands from a command prompt.
- fastboot flash fastboot fastboot.img
- fastboot flash boot boot.img
- fastboot flash splashscreen splashscreen.img
Reboot back to fastboot mode. Go to wherever you unzipped the temp recovery that you downloaded earlier. Double click on launcher.bat. Type accept in the window, then type T2 and your device should boot into CWM recovery. Now choose install zip>install from se card>and choose the stock firmware.zip that you previously copied to your sd card then let it do its thing. Once its finished go back to the first page of the CWM recovery that you're in and select reboot system now>no>no. You should be golden now. Post back if you have any issues.
Download Disposable Recovery
Is there any program that can edit / modify recoveries?
I have tried to make cwm and twrp for a Panasonic KX-PRX150 by unpacking replacing files and repacking but nothing the phone's screen remains black when booting to recovery mode.
I have also tried to flash the stock recovery and it is not in recovery.img format but in recovery-from-boot.p and a install-recovery.sh flashing it on recovery mode.
Try this guide. I've never tested it.
How to Create and Port TWRP Recovery to any Android Device
In this tutorial, we will show you detailed steps to create and port TWRP Recovery for any Android Device using Android Image Kitchen tool.
www.droidwin.com
Thank you. But I was thinking about Editing my stock recovery.
I'm fond of my own ImgUtil.exe (in the sig) which can modify boot images without taking them all apart and putting them back.
I usually start with stock recovery and replace adbd with a rooted adbd, add a service for it in init.rc (if there is none).
This should all work fine unless you have issues with AVB.