Error 255: can not install rom(s) - Moto G5S Plus Questions & Answers

Hi Guys!
I've just started customising the phone after receiving it Friday.
I've unlocked the bootloader and installed twrp.
But now when I try to install a rom, I get error 255 and the installation is terminated immediately.
I found two mentions of this error:
- Unmount partitions in twrp
- make a change to a text file inside the roms zip file before installing it
I unmounted all partitions except sd card, did not work.
I looked inside the textfile in the zip but could not find the line mentiond in the post I found (it was for a different phone)
So now I'm stuck.
I do have the phone running the stock rom again and it may even be rooted (installing magisk worked) but have to check after putting the backup back.
Any thoughts?
I have tried two versions of aospExtended and cosmic
Edit:
Maybe the stuff is still encrypted?

What twrp are you using?

Ah, maybe there is some sort of answer immediately, thanks for the quick reply.
I took it from this page from check yourscreen:
https://androidfilehost.com/?fid=889964283620777591
But now notice that ...9 is not the most recent.... I read 15 and 16 as 1.6
Will try again shortly.
Can I install the newer one through twrp or should I use fastboot?
EDIT: version 16 is working!

Thanks so much

Related

[Q] CWM, Dual-boot & Market issues...dazed and confused

Hi Everyone,
Sorry for this long-winded post. I've spent hours reading posts here, AndroidCentral and AndroidTablets.net forums, but have not found answers that work for me.
I hope someone can sort out the mess I've created on my rooted 1.1 Nook. Everything worked for 4-5 weeks after I rooted with Decad3nce method until...
A few days ago I decided to try 1.1G kernel. Read many threads about issues with Root Manager/ CWM; 3.0.0.5/3.0.0.6/SD CWM/EMMC CWM/Nook/Nook (old). When I booted into CWM, the version was 3.0.0.5. If I tried flashing CWM through Rom Manager, it said it 'flashed' 3.0.0.6 (tried both "Nook" and "Nook(old)"), but it never changed version of CWM I booted into. I also tried nemiths' "[RECOVERY] Official CWM 3.0.0.6 Update [BROKEN] (new fix soon!)" method to flash 3.0.0.6, but "adb shell busybox" always gave a 'can't get root' type error, so I gave up on that. I ended up using my current CWM to flash 1.1G kernel, and it worked very well. So I ignored the the CWM issues.
Then, I decided to try rookie1's dual-boot method so I could try out Honeycomb. I could never get 'prep_dualboot' zip to flash. It always gave an 'error in zip (status 0)'. His thread showed a few others getting same error, but none of the fixes given worked for me. I re-flashed that zip and ran the 'un-dualboot' zip many times with same result. I then found a "EMMC_CWM_3.0.0.6" zip and flashed that with my CWM. That actually gave me 3.0.0.6 CWM, but flashing dualboot still didn't work. I also again un-dualbooted, wipe cache partition, wipe dalvik cache, fix permissions with same result. So I gave up on that for now.
Then this morning, I found Market updates and downloads don't work anymore. It says 'about to download', then shows the arrows in status bar and nothing else happens. Saw threads regarding this issue and tried clearing Market cache and wiping whatever I could in CWM. Nothing I've found has helped so far.
As a side note in Rom Manager, "Recovery" section now shows 3.0.0.5 (before it wanted to flash 3.0.0.6). Tried flashing 3.0.0.5 there, but it doesn't seem to do anything (same as when it tried to flash 3.0.0.6). I can't understand the logic in Rom Manager. I also have Fascinate phone and RM has issues on that phone also.
I do have CWM backups and Titanium backups of all my stuff, so at worst I can do those. Looking for possibly easier way to get back to 'normal' so Market works and I can download the 'dual boot' zip and be happy again.
Some additional questions I have:
1) I saw in Decad3nce post that he left out 'root' for busybox in an early release, so that may be why mine won't work. I know I had used busybox before, but that may have been on earlier rooted 1.0.1. Is there a way to fix my current busybox without re-rooting?
2) What is the correct CWM I should use for 1.1 and will let me flash dual-boot zip? Also, where can I download it from and how can I replace the one I have?
3) I have saved my SD card to my computer many times and then re-formated it on the Nook. Is there some partition on it that format isn't cleaning that may contain some CWM image(s) causing at least some of my headaches?
Thanks in advance to anyone that can help with these issues. I may have tried a few other 'fixes' that I've since forgotten in the 5 hours last night trying to setup dual boot and quick hour this morning before work trying to sort out Market. Sorry (in advance) if you suggest something and I then say I tried it already. Possibly, just doing all the fixes I've tried previously in the correct sequence is what I need.
I seem to back to where I was before 'bad' versions of CWM skewered Market on me.
1) busybox: found that I just had to 'chmod 755' on my /system/xbin/busybox.
2) Saw that nemith posted a 3.0.0.9 version of CWM. Flashed that using his manual method. Didn't flash his kernel. Rebooted.
3) Tried clearing Market cache and didn't help. Wiped partition cache in CWM (or possibly Dalvik cache, not sure now...was going to do both but rebooted by mistake). After reboot, Market is working again.
Not sure if any of these affected Market, but I also unchecked/checked "Allow Non-Market Apps" and Unchecked/Checked "USB Debugging" and Unchecked "Auto Mount" in Settings.
Can't post in Dev area, so hope some there having same issue as me Market see this.
Now, gonna try the dual-boot again.
Alas, still getting (status 0) error flashing dual boot prep zip. Project for another night.
Sent from my LogicPD Zoom2 using XDA App
I'm getting that same error trying to flash the dual boot prep zip on my rooted Nook. Very frustrating.
jhoward88 said:
I'm getting that same error trying to flash the dual boot prep zip on my rooted Nook. Very frustrating.
Click to expand...
Click to collapse
From error logs it appears the sizes used in re-partitions may be the problem. Over weekend I'm going to try to find values that work. Could be the size differences reflect how NC was originally configured or how many re-roots/updates it has gone through and affect whether the prep works or not. Errors do occur on the 'remove dual boot' ZIP also.
vinal said:
From error logs it appears the sizes used in re-partitions may be the problem. Over weekend I'm going to try to find values that work. Could be the size differences reflect how NC was originally configured or how many re-roots/updates it has gone through and affect whether the prep works or not. Errors do occur on the 'remove dual boot' ZIP also.
Click to expand...
Click to collapse
No luck getting this to work
vinal said:
No luck getting this to work
Click to expand...
Click to collapse
Got a suggestion from Rookie1 to reformat my media partition. Prep now succeeded!
newfs_msdos -F 32 -L media /dev/block/mmcblk0p8

Issue with installation of rom with temporary cwm recovery by shaaan

I am having issues with the installation of a Custom ROM on my Galaxy S Advance.
I have done it before, and it went smoothly. But later I reverted back to official one.
Now I am doing it again. But having a few problems with the CWM recovery (v6.0.2.8). I am having an old file which was probably uploaded by Shaaan.
The file name is "update.zip".
I tried downloading the new file from one of his new threads, but that download infected my laptop with a large number of viruses, malwares and adwares that were on the host site. So I am using the old file itself.
So the issue is, I used the "root.zip" file to root my phone and it was done successfully as the Root Checker app also verified the root.
Later, I booted using the CWM Recovery.
Did the Wipe Data/ Fatory Reset.
Did Wipe Cache Data.
Did Wipe Dalvic Cache.
Then I moved to Installation of ROM.
When I select the option, "CHOOSE ZIP FROM SDCARD", there comes an error saying...
"E: Can't Mount /sdcard/"
I browsed the internet and found a solution that said CHANGING THE FILE SYSTEM OF THE SDCARD. So I did that too. Tried with NTFS as well as FAT32, but nothing happened.
I even tried to install by placing the ROM files in Internal Memory since they are not even getting cleaned after Wipe Data operation. But that too resulted in negative.
This is happening every time. By now, I have installed the official firmware 4 times, so as to start the process afresh, but no luck.
The ROM files are also not corrupted, as I have used them earlier.
Here are the images of the issue I am encountering. (Please tell how to upload images, as all that I can see is an option to add URL and not an image, also an error like posting 10 posts)
EXPECTING A SOLUTION TO IT ASAP, as the Official Jellybean version has again started to lag too much.

[Solved!] I want to update TWRP, but ...

Hi!
I have a Nook HD+ running CM 12.1 (Android 5.1.1). The tablet is not rooted. Right now I have TWRP v2.7.1.0 installed, but would like to update to a newer version.
Installing v2.7.1.0 was a breeze. I booted into recovery mode (ClockWorkMod at the time), then flashed an Ovation TWRP ZIP file that I downloaded online. Looking for the most recent Ovation version, it seems it's only available as an IMG file. I can't find a version of TWRP more recent than v2.7.1.0 for Ovation in a ZIP format. Since the tablet is not rooted, I can't flash the newer version using Flashify or similar apps (as far as I can tell, that is) since they all require root access. And I can't flash an IMG file with v2.7.1.0, since that feature wasn't included until a later version (v2.8.5.0 I think). Therein lies the problem. I need a newer version to update, but I can't update until I have a newer version!
I've struggled with the suggested methods of installing TWRP from an IMG file, and would really like to simply flash a ZIP file (I'm already pretty good at doing that). So I've come up with a possible method that sounds too easy and too good to be true. Examining the ZIP folder for v2.7.1.0 (using Linux Archive Manager), I can see that there is a recovery IMG file and a folder labeled META-INF. If I replaced the v2.7.10 recovery IMG file with a more recent TWRP IMG file and left the META-INF file as is, would that work? Or, does the META-INF folder only support v2.7.1.0?
Thanks for your help ... and for not laughing at my possibly nutty idea
MaydayMalone said:
Hi!
I have a Nook HD+ running CM 12.1 (Android 5.1.1). The tablet is not rooted. Right now I have TWRP v2.7.1.0 installed, but would like to update to a newer version.
Installing v2.7.1.0 was a breeze. I booted into recovery mode (ClockWorkMod at the time), then flashed an Ovation TWRP ZIP file that I downloaded online. Looking for the most recent Ovation version, it seems it's only available as an IMG file. I can't find a version of TWRP more recent than v2.7.1.0 for Ovation in a ZIP format.
Click to expand...
Click to collapse
More recent versions of TWRP in flashable zip for HD+ (ovation) are available at https://notredame.app.box.com/s/26a4bygh9vbaw7jjq08xr5evomvaw5ww/folder/3332706778, but you should check for their compatibility with your CM12.1 ROM.
...
I've struggled with the suggested methods of installing TWRP from an IMG file, and would really like to simply flash a ZIP file (I'm already pretty good at doing that). So I've come up with a possible method that sounds too easy and too good to be true. Examining the ZIP folder for v2.7.1.0 (using Linux Archive Manager), I can see that there is a recovery IMG file and a folder labeled META-INF. If I replaced the v2.7.10 recovery IMG file with a more recent TWRP IMG file and left the META-INF file as is, would that work? Or, does the META-INF folder only support v2.7.1.0?
...
Click to expand...
Click to collapse
I have successfully updated flashable recovery zip files (for both the Nook NT and Nook HD+) with more updated recovery images by using an archive manager tool (mostly Windows 7-zip) to swap the recovery img files, just as you're contemplating -- see my brief discussion of this at https://forum.xda-developers.com/showpost.php?p=71402570&postcount=270.
There is a possibility that the update-binary and updater-script in the given flashable zip are not compatible with the newer recovery file image (in which case one would get an error trying to flash it) but I have yet to encounter it, presumably because the versions of old and new recovery images involved have been relative close to one another.
digixmax said:
More recent versions of TWRP in flashable zip for HD+ (ovation) are available at https://notredame.app.box.com/s/26a4bygh9vbaw7jjq08xr5evomvaw5ww/folder/3332706778, but you should check for their compatibility with your CM12.1 ROM.
I have successfully updated flashable recovery zip files (for both the Nook NT and Nook HD+) with more updated recovery images by using an archive manager tool (mostly Windows 7-zip) to swap the recovery img files, just as you're contemplating -- see my brief discussion of this at https://forum.xda-developers.com/showpost.php?p=71402570&postcount=270.
There is a possibility that the update-binary and updater-script in the given flashable zip are not compatible with the newer recovery file image (in which case one would get an error trying to flash it) but I have yet to encounter it, presumably because the versions of old and new recovery images involved have been relative close to one another.
Click to expand...
Click to collapse
Thanks for your response. You told me exactly what I needed to know.
I have viewed D. Andrei Măceș dropbox in the past, but I neglected to check it for TWRP updates (my bad). I'll keep this in mind the next time I want to explore new possibilities for my HD+.
The idea of creating my own zip was a temptation that I couldn't resist (since I was now feeling confident that I wouldn't brick my tablet, blow up Pittsburgh, or be responsible for something equally catastrophic). So, instead of downloading a zip file from the dropbox, I used Linux Archive Manager (I switched to Linux Mint some time ago to escape the more-frequent-than-I-could-bear crashes with Windows), to delete the file named recovery.img in the v2.7.1.0 zip, then inserted a recovery.img file for TWRP v3.1.1.0 in it's place. It worked perfectly, and I feel like a genius (I'm very easily impressed)!
Thanks for letting me know that my idea wasn't as dumb as I feared it might be.
digixmax said:
More recent versions of TWRP in flashable zip for HD+ (ovation) are available at https://notredame.app.box.com/s/26a4bygh9vbaw7jjq08xr5evomvaw5ww/folder/3332706778, but you should check for their compatibility with your CM12.1 ROM.
I have successfully updated flashable recovery zip files (for both the Nook NT and Nook HD+) with more updated recovery images by using an archive manager tool (mostly Windows 7-zip) to swap the recovery img files, just as you're contemplating -- see my brief discussion of this at https://forum.xda-developers.com/showpost.php?p=71402570&postcount=270.
There is a possibility that the update-binary and updater-script in the given flashable zip are not compatible with the newer recovery file image (in which case one would get an error trying to flash it) but I have yet to encounter it, presumably because the versions of old and new recovery images involved have been relative close to one another.
Click to expand...
Click to collapse
Hello,
I tried using the TWRP 3.0.1.0 - ovation and 2.8.7.5. and they both receive the status 7 error:
"This package is for device: ovation ; this device is .
E: Error in /external+sd/twrp-3.0.1-0-ovation.zip
(Status 7)
Installation aborted"
I currently run on CWM Recovery 6.0.4.6, with cyanogenbootloader, lineage os 14.1. Unfortunately I cannot turn off my device (Nook HD+) no matter what, it keeps turning itself on until it empties battery (if I don't pay attention).
I keep trying to install the zips from CWM Recovery but I cannot do it.
Is there any way for me to install TWRP from CWM?
Thank you
pnkye said:
Hello,
I tried using the TWRP 3.0.1.0 - ovation and 2.8.7.5. and they both receive the status 7 error:
"This package is for device: ovation ; this device is .
E: Error in /external+sd/twrp-3.0.1-0-ovation.zip
(Status 7)
Installation aborted"
Click to expand...
Click to collapse
Did you use one of the flashable TWRP zip files from https://www.mediafire.com/#6a4rivb8kkdfu?
I currently run on CWM Recovery 6.0.4.6, with cyanogenbootloader, lineage os 14.1. Unfortunately I cannot turn off my device (Nook HD+) no matter what, it keeps turning itself on until it empties battery (if I don't pay attention).
Click to expand...
Click to collapse
Did you tried holding down the power button for 30+ sec?
Thank you for the answer.
1. The link doesn't work (https://www.mediafire.com/#6a4rivb8kkdfu?) leads me to an upload page.
2. I tried all the options I could find online. If I let it be for 1 week (I use it for reading and sometimes youtube) it turns itself on at some point and the battery goes empty. And it is so hard to turn it on again. When I plug it for charging the battery and is completely empty, the led stays green - instead of orange - for a long time and is not responsive to anything I do until it reaches 80%+ , so I let it be for 2hrs while plugged.
3. What I try to do is actually root it for overclocking or make it a little bit faster because it lags in every thing I do with it. Although in some variants of the Android which I installed over the years it used to be more responsive.
Unfortunately I cannot root it because CWM doesn't recognize the install of SuperSU zip from Lineage website. Do you have any advice on that?
Thanks
pnkye said:
...
The link doesn't work (https://www.mediafire.com/#6a4rivb8kkdfu?) leads me to an upload page.
Click to expand...
Click to collapse
Try this link: https://www.mediafire.com/folder/6a4rivb8kkdfu/Nook+HD+
digixmax said:
Try this link: https://www.mediafire.com/folder/6a4rivb8kkdfu/Nook+HD+
Click to expand...
Click to collapse
Thank you very much! You really helped me with this one!
I just did it! Flashed it with the cwm.flashable.twrp zip from your link!
I run now the TWRP 3.0.1-0.
I couldn't flash any higher versions (3.2.x) directly from this installed version
Anyway my booting time is faster and so far (1min time) the turning on/off procedure works normal, as it should be.
What lineage OS version is the best one for the nook hd+?
I just installed the 14.1 version from the lnos-ovation-ota-NJH47F.181223.zip found at: https://notredame.app.box.com/s/26a4bygh9vbaw7jjq08xr5evomvaw5ww/folder/3332706778
This version, however, has landscape mode as default viewing mode and it keeps spinning here and there.
At the moment I find myself in the latest stage of my process: rooting the device so I can try and overclock it.
Trying to install the official lineage "addonsu-14.1-arm-signed.zip" , from their website (https://download.lineageos.org/extras), but it doesn't work.
I mean it installs it successfully in the TWRP recovery. It is enabled in the developer options for both Apps and Adb. But the root checker app says it is not rooted.
Is there a proper way to root it? If so could you please share a solution when you have time?
Also any ideas on how to properly overclock (make the tablet a little snappier, besides the animation scale option from dev options)?
Cheers!
pnkye said:
I just did it! Flashed it with the cwm.flashable.twrp zip from your link!
I run now the TWRP 3.0.1-0.
I couldn't flash any higher versions (3.2.x) directly from this installed version
Click to expand...
Click to collapse
There should be an option in TWRP to "flash image" you can use to directly flash .img binary of a newer TWRP version.
What lineage OS version is the best one for the nook hd+?
I just installed the 14.1 version from the lnos-ovation-ota-NJH47F.181223.zip found at: https://notredame.app.box.com/s/26a4bygh9vbaw7jjq08xr5evomvaw5ww/folder/3332706778
This version, however, has landscape mode as default viewing mode and it keeps spinning here and there.
Click to expand...
Click to collapse
You should be able to disable auto-rotation in Settings->Display.
At the moment I find myself in the latest stage of my process: rooting the device so I can try and overclock it.
Trying to install the official lineage "addonsu-14.1-arm-signed.zip" , from their website (https://download.lineageos.org/extras), but it doesn't work.
I mean it installs it successfully in the TWRP recovery. It is enabled in the developer options for both Apps and Adb. But the root checker app says it is not rooted.
Click to expand...
Click to collapse
Try disabling and exit Settings->Developer Options, then come back and re-enable it.
digixmax said:
There should be an option in TWRP to "flash image" you can use to directly flash .img binary of a newer TWRP version.
You should be able to disable auto-rotation in Settings->Display.
Click to expand...
Click to collapse
My device is with default landscape. If I disable it it stays in landscape and never goes to portrait.
digixmax said:
Try disabling and exit Settings->Developer Options, then come back and re-enable it.
Click to expand...
Click to collapse
It still doesn't work.
Thanks for the overall guidance!

Can not Extract Zip

I've posted before/then it worked (once)/I deleted etc.
I read in another post to try to install busybox, I can not from the Manager.
I thought I'd screwed up the system R/W in TWRP (this is LineageOS 16.x on a Galaxy S5) but it is R/W.
It's not a critical thing, but does bug me. It's taken a month of twiddling everyday to get the phone JUST where I want it and everything working JUST the way I want them to - except this.
I've been looking for a zip of 19.3 (this did work fine with 18.x) to install via TWRP, but can not find one - I'm assuming that there might have been an error installing 19.x through the manager.
As I'm going to put the whole enchilada on my wifes phone this weekend (I REALLY don't need that to backfire ...), I'd like to figure this out. I have NOT tried installing the zips from recovery, but copied to a PC they are intact and the zip is not damaged.
MANY THANKS!

Magisk on XDA Pro 5g RMX2075

Is there a version of Magisk that works on the realme Pro 5g RMX2075?
I tried the version 20.4 after unlocking the bootloader and installing recovery-TWRP-3.4.1B-04-17-realme-x50-pro-wzsx150, but it fails the signature. If I disable checking the signature on TWRP, it loads but bricks the phone until I re-install the stock boot.img, and then Magisk is not installed.
Providing the install log is usually a good first step when troubleshooting.
And, if you can't get the stable release installed it's usually a good idea to try the Canary release since it might have been updated with more compatibility.
Didgeridoohan said:
Providing the install log is usually a good first step when troubleshooting.
And, if you can't get the stable release installed it's usually a good idea to try the Canary release since it might have been updated with more compatibility.
Click to expand...
Click to collapse
I'm not sure how to find the log, but I'll try the Canary release first, thank you very much for the quick answer.
Being a bit paranoiac (a LOT in fact), I have 2 RMX2075, so bricking is not catastrophic. I can take my time to find how to unbrick it.
Since some manips like unlocking the bootloader wipes everything, it make easier to restore using the clone phone app.
I know, I know, I should get a life...
Edit: just saw the log was a link, I will provide with the canary if it fails too.
Ok, some info I failed to provide:
realme X50 Pro 5G RMX2075
Android 10
realme UI version 1.0
TRWP installed with recovery-TWRP-3.4.1B-04-17-realme-x50-pro-wzsx150, and with the file EN_Recovery-twrp-oneclick-EN.bat.
I need to run this .bat file every time I want to use TRWP, Up (or Down) + Power does not work and gives me the standard bootloader, which I unlocked with the deep testing app.
With Magisk-v20.4.zip the signature test failed. I had the brilliant idea to disable checking it, and it installed and bricked my phone until I used again EN_Recovery-twrp-oneclick-EN.bat to re-install boot.img in the bot partition.
The signature failed also with magisk-debug.zip. I did not try to install without checking it first, once bitten...
The oppo_log directory is empty. Please let me know if there is another place to look. I don't have an ADVANCED directory in TRWP. I checked before rebooting, so instead, I send a screen cap.
I don't see how to attach a file, so here is a link:
https://postimg.cc/py17ct1q
You have to disable zip signature validation in TWRP or you won't be able to flash a Magisk zip at all.
The actually recovery log is completely necessary to be able to troubleshoot. The ADVANCED part in TWRP isn't a directory, but one of the buttons on the main page. You'll then be able to save a log and you'll find it in /sdcard. The log has to be saved directly after flashing the zip, or it won't show the info we need.
Didgeridoohan said:
You have to disable zip signature validation in TWRP or you won't be able to flash a Magisk zip at all.
The actually recovery log is completely necessary to be able to troubleshoot. The ADVANCED part in TWRP isn't a directory, but one of the buttons on the main page. You'll then be able to save a log and you'll find it in /sdcard. The log has to be saved directly after flashing the zip, or it won't show the info we need.
Click to expand...
Click to collapse
OK, I'll try later. Thanks for the info.
Didgeridoohan said:
You have to disable zip signature validation in TWRP or you won't be able to flash a Magisk zip at all.
The actually recovery log is completely necessary to be able to troubleshoot. The ADVANCED part in TWRP isn't a directory, but one of the buttons on the main page. You'll then be able to save a log and you'll find it in /sdcard. The log has to be saved directly after flashing the zip, or it won't show the info we need.
Click to expand...
Click to collapse
Same problem with the debug version, unable to reboot.
I used TWRP to create a log.
I'm not sure where it went exactly, here are all the logs I could find in various places, I don't have a /sdcard directory:
https://wetransfer.com/downloads/3f...4d3d4ca52a615682f34f182520200725060951/875fb2
If I missed the correct log, please let me have some info where to find it exactly and I'll try again. Now that I could unbrick twice my phone, I feel safer!
Thanks.

Categories

Resources