Failed to map file ошибка

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Closed

Unkn0wnM3m3 opened this issue

Dec 31, 2017

· 21 comments

Comments

@Unkn0wnM3m3

I got a Samsung Galaxy Note 4 T-Mobile. I Tried to flash a ROM on my phone and it simply said,

Failed to map file ‘/externel_sd/1-HAX/RaceRom_N7_Port_V13_Aroma_by_LocDog_and_keki7.zip Error installing zip file ‘/externel_sd/1-HAX/RaceRom_N7_Port_V13_Aroma_by_LocDog_and_keki7.zip’

I am new to this stuff, can someone explain to me what I did wrong and how I can solve it?

Unkn0wnM3m3, Mikaela, softwarecreations, tomaluca95, TheJJ, SailReal, tuxayo, and RahmatAliMalik5 reacted with thumbs up emoji
Unkn0wnM3m3, pgonin, Bee777, and softwarecreations reacted with confused emoji

@Unkn0wnM3m3

Also, in updater-script, it does not identify a specific model. So, I don’t think that it has to do with that.

@Unkn0wnM3m3

If it helps it’s an aroma Rom

@Unkn0wnM3m3

But I can’t flash gapps either

@pgonin

I have a Galaxy S3 (i9305) and I also get this error message when trying to install a ROM
I had the issue with LineageOS and Resurrection Remix OS ROMs
I tried on both external SD and internal stroage (/sdcard/)

@pgonin

I can track the error in the code to minzip/SysUtil.h

Apparently the zip file cannot be mapped into memory

/*
 * Map a file into a private, read-only memory segment.  If 'fn'
 * begins with an '@' character, it is a map of blocks to be mapped,
 * otherwise it is treated as an ordinary file.
 *
 * On success, "pMap" is filled in, and zero is returned.
 */
int sysMapFile(const char* fn, MemMapping* pMap);

@pgonin

and I am actually using twrp-3.2.1-1-i9305
but I don’t think it makes a big difference

@Atexor

I encountered the same problem with LOS and AICP on my gt-i9305.

edit: flashed older version of TWRP — 3.0.2.1 — flashing works. Latest version is broken for S3.

@pgonin

Same for me flashing works with older version of TWRP — 3.0.2.1

@Atexor thanks for sharing !

@rojanor

Same here, twrp 3.0.2.1 works fine, the newer versions give the failed to map error when installing lieageos

@ripee

I apologize for not seeing the existing feedback sooner. If you haven’t already, please direct your attention to build 3.2.1-2 linked in my thread, and give any feedback. I came across this issue thread here entirely by accident, so please leave feedback on XDA.

@pgonin

@ripee no problem regarding feedback, especially since we had a workaround.
I can give build 3.2.1-2 a shot but sorry for the dumb question, what do you call your ‘thread’ ?

@ripee

@pgonin, this is my thread: https://forum.xda-developers.com/galaxy-s3/development-i9305/recovery-twrp-3-2-1-0-t3741413

I set out to build an officially supported twrp so that new versions would be built automatically with minimal changes to the source code in the long term. This mapping problem is also plaguing my Galaxy S2 i9100 twrp, I’m mentioning it here because both the i9305 and i9100 use the same kernel.

I suspect this has something to do with either the partition sizes or the way my build handle the external SD card.

For those of you experiencing problems with my builds, are you able to flash anything from internal storage or is it impossible to flash from either internal or your SD card?

@ripee

I’ve just completed work on the Galaxy S2 GT-I9100, which uses the same kernel as the GT-I9305. I managed to overcome the «Failed to map» error by first extracting the boot.img file from the zip of the rom I intend to flash, flashing it in 3.2.1-1, then flashing the rom zip as usual.

The reason this is necessary is that twrp 3.2.1 is ahead of its time lol. Unless and until Oreo comes to the S3 and I can update my twrp device tree accordingly, this is the best way to migrating to 3.2.1 to ensure Oreo compatibility in the future.

@DaGeRe

I had a stock Galaxy S2, installed TWRP and boot using
sudo heimdall flash --repartition --pit Part-i9100-sys2gb-apps4gb-data8gb.pit --KERNEL boot.img --RECOVERY twrp-3.2.2-0-i9100.img
and afterwards tried to install LineageOS by first swiping cache, system and data and then installed lineage-14.1-20180329-nightly-i9100-signed.zip from an SD-Card, and I also got the error.

A workaround is to download twrp 3.1.0, to execute
sudo heimdall flash --repartition --pit Part-i9100-sys2gb-apps4gb-data8gb.pit --KERNEL boot.img --RECOVERY twrp-3.1.0-0-i9100.img in download mode and to install everything from there.

It would be realy nice if this would be working with newest twrp again.

@kwah-gh

Faced the same issue with Galaxy S2 i9100 and twrp-3.2.3-0-i9100.img
Initial attempt was to follow official LineageOs guide, which failed (don’t remember exactly all the reasons already, but one of them — I had hard time replacing ClockworkMod recovery with TWRP)… Then found this detailed explanation on reddit and started experimenting with repartitioning.

Well… After some failed attempts faced with «failed to map» file errors and found this issue.

In the end followed suggestion of @rojanor and went all the way to 3.0.2-1, which did work!

So, here is the winning sequence (in my case):
heimdall flash --repartition --pit I9100_1.5GB-System_6GB-Data_512MB-Preload_by-the.gangster.pit --KERNEL boot.img --RECOVERY twrp-3.0.2-1-i9100.img
followed by
adb sideload lineage-14.1-20180920-nightly-i9100-signed.zip

@ripee: Could you please mention in your [RECOVERY][OFFICIAL] TWRP 3.2.3-0 [I9100] that this specific version not always works? If you need help with testing recovery fixes on i9100 — just ping ;)

@montvid

Faced the same issue with Galaxy S2 i9100 and twrp-3.2.3-0-i9100.img. Solved by twrp-3.0.2-1-i9100.img. Any fix down the pipe?

@TheJJ

My solution for this was to repackage the zip file…..

# downloaded zip file that fails to map
$ file firmware_5.1.7_oneplus5t.zip
firmware_5.1.7_oneplus5t.zip: Zip archive data, at least v2.0 to extract

# extract it
$ unzip firmware_5.1.7_oneplus5t.zip
$ ls
firmware_5.1.7_oneplus5t.zip  firmware-update  META-INF  RADIO
# remove old zip
$ rm firmware_5.1.7_oneplus5t.zip
# repack new zip
$ zip -r firmware_5.1.7_oneplus5t_repackaged.zip *
[...]
$ file firmware_5.1.7_oneplus5t_repackaged.zip
firmware_5.1.7_oneplus5t_repackaged.zip: Zip archive data, at least v1.0 to extract

The latter file succeeds to map and install.

The actual problem seemed to be that my adb push somehow didn’t upload the original file:

-rw-rw----  1 root sdcard_rw  63795954 2018-12-27 19:13 firmware_5.1.7_oneplus5t_repackaged.zip
-rw-rw----  1 root sdcard_rw         0 2018-12-27 18:32 firmware_5.1.7_oneplus5t.zip

=> make sure the file was properly sent to your device!

@AxelBoldt

Note that the official TWRP 3.2.3-0 [I9100] FAQ addresses the issue of «fails to map file» when trying to flash a ROM on Samsung Galaxy S2 i9100 using TWRP 3.2.3: you need to extract the boot.img file from the ROM’s zip, flash this boot.img first, then flash the ROM.

(Alternatively, as several people above have said, you can also downgrade your twrp by flashing TWRP 3.0.2 or 3.1.0, rebooting into recovery, and then flashing the ROM.)

@ghost

I have a Samsung Galaxy S2 i9100 with TWRP 3.2.3. I successfully flashed boot.img, but then when I try flashing the LineageOS zip archive it still fails with the «Failed to map file» error.

@bigbiff

Closing. Please re-open a new ticket if this targets 3.3.0

@munum

Same error in 3.3.x for i9305.

By this 4pda post you need to check your board name (after disassembling a tv box). If your board name look like this — MXQ-RK3328-D4_A, then your img name should be called like that — mxq_rk3328_d4_8.1_8189-6051_20180828_r1.img. If your board name without d4, then you should find img build without d4 postfix name.

Board name

Also should be mentioned, when I upgrade by OTA — zip file. I have a recovery.img file with zip one. And you can’t do zip build just by zipping img. They differs and while building Android build by SDK, this files are separate in output directory.

All tools should be run with admin permission.

As ts18056 mentioned, find a button inside the AV port.

  • Download and install Android Console Tool.
  • Open Android Console Tool -> Upgrade firmware -> Firmware.
  • Choose your img build/firmware.
  • Activate Fastboot mode by pressing button inside AV port, install USB while pressing this button (E2E USB A cable into the USB port near HDMI port).
  • Below should be the message Found One LOADER Devices after that stop pushing the AV port button.
  • Press UPGRADE.
  • Go to the TV and install the TV STB (First turn on will take 3-5 mins).

You can find firmware here and other instructions / upgrade methods.

Maybe you can burn it with like Amlogic board, but I’m not sure with that.

In case of Amlogic boards you need a CP2102 USB UART Board (type A) with E2E USB A cable. After a UART connection to the board, through kermit tool set the board to burn mode. Then you can burn an img build with Amlogic USB Burning Tool or with this bash script.

Asus PadFone S — Официальная прошивка
PF500KL, ASUS_T00N
Описание | Обсуждение » | FAQ | Официальная прошивка » | Кастомные прошивки » | Покупка » | Аксессуары »

Если после прошивки рекавери или кастома или ещё после чего либо, появляется «ERROR: Can not load Invalid boot image!» или просто тело висит на заставке ASUS — нужно прошить «CrowLock_RC3».
CrowLock_RC3.zip ( 62.64 КБ )

Настоятельно рекомендую перед всеми этими манипуляциями сделать полный бэкап через twrp!
recovery.img ( 14.02 МБ )

Сообщение отредактировал destroyer71 — 20.12.19, 07:08

Shadow326159,
Да это и ответом назвать нельзя и вообще я как бы
помню слава богу,спрашиваю у других умельцев,не один
же тут мастер,как бы,если что.
Может кто поддержит мою просьбу,вещь то нужная,или тут
рьяно тока миуи требовать можно :rofl:

Сообщение отредактировал DeDroiD’off — 29.11.14, 19:26

fjfalcon,
nand.zip ( 33.1 МБ )

Сообщение отредактировал iAltair — 30.11.14, 08:21

fjfalcon,
Не запускается, на заставке Asus вверху пишет «ERROR: Can not load Invalid boot image!!»
Установка прошла нормально
После этого в рековери зайти возможно только со 2го раза, чёрный экран, подсветка горит.

Сообщение отредактировал iAltair — 30.11.14, 16:28

fjfalcon,
да, все по инструкции wipe, asusunlock, перезагрузка, прошивка, перезагрузка

Логи, как просили

fastboot oem device-info.txt ( 439 байт )

Сообщение отредактировал iAltair — 30.11.14, 17:21

у тебя то получилось?

По результатам тестов:

Все скачиваем с Сайт Quarx2k
Ставим cwm.img
Ставим CrowLock_RC3.zip
Перезапускаем cwm.
Ставим cm*.zip.
Ставим gapps
Делаем полный вайп.

Не забываем, что телефон у quarx’a сломалося, так что будет неплохо, если вы задонатите немного за его работу(и на новый телефон).
Кого благодарить, можете посмотреть в профиле или на сайте

Так же выражается огромная благодарность за подготовку кода автопатчера balika011.

Ссылка, чтобы задонатить ему: balika011

Сообщение отредактировал fjfalcon — 30.11.14, 20:21

Источник

Android Mx10 Tv Box update error E: failed to map file

I bought a MX10 TV Box exactly the fallowing, as in geekbuying, and I want to update it. I don’t know how to connect by USB it has not micro USB. I’ve tried End to END USB A cable but it is not identifying by RKBatchTool-v1.8 tool and when I using SD card .img images are not visible. I read that image should be in zip file. I’ve compressed them but when using Android Recovery The fallowing error shows up.

used cable

2 Answers 2

Press the reset button inside the AV port and keep it pressed Connect the TV Box via USB to PC (A-A blue USB cable) Let go reset button

By this 4pda post you need to check your board name (after disassembling a tv box). If your board name look like this — MXQ-RK3328-D4_A, then your img name should be called like that — mxq_rk3328_d4_8.1_8189-6051_20180828_r1.img. If your board name without d4, then you should find img build without d4 postfix name.

Also should be mentioned, when I upgrade by OTA — zip file. I have a recovery.img file with zip one. And you can’t do zip build just by zipping img. They differs and while building Android build by SDK, this files are separate in output directory.

All tools should be run with admin permission.

As ts18056 mentioned, find a button inside the AV port.

  • Download and install Android Console Tool.
  • Open Android Console Tool -> Upgrade firmware -> Firmware.
  • Choose your img build/firmware.
  • Activate Fastboot mode by pressing button inside AV port, install USB while pressing this button (E2E USB A cable into the USB port near HDMI port).
  • Below should be the message Found One LOADER Devices after that stop pushing the AV port button.
  • Press UPGRADE.
  • Go to the TV and install the TV STB (First turn on will take 3-5 mins).

You can find firmware here and other instructions / upgrade methods.

Maybe you can burn it with like Amlogic board, but I’m not sure with that.

In case of Amlogic boards you need a CP2102 USB UART Board (type A) with E2E USB A cable. After a UART connection to the board, through kermit tool set the board to burn mode. Then you can burn an img build with Amlogic USB Burning Tool or with this bash script.

Источник

TWRP 3.2.1-0 fails to map file #1136

Unkn0wnM3m3 commented Dec 31, 2017

I got a Samsung Galaxy Note 4 T-Mobile. I Tried to flash a ROM on my phone and it simply said,

Failed to map file ‘/externel_sd/1-HAX/RaceRom_N7_Port_V13_Aroma_by_LocDog_and_keki7.zip Error installing zip file ‘/externel_sd/1-HAX/RaceRom_N7_Port_V13_Aroma_by_LocDog_and_keki7.zip’

I am new to this stuff, can someone explain to me what I did wrong and how I can solve it?

The text was updated successfully, but these errors were encountered:

Unkn0wnM3m3 commented Dec 31, 2017 •

Also, in updater-script, it does not identify a specific model. So, I don’t think that it has to do with that.

Unkn0wnM3m3 commented Jan 3, 2018

If it helps it’s an aroma Rom

Unkn0wnM3m3 commented Jan 3, 2018

But I can’t flash gapps either

pgonin commented Feb 9, 2018

I have a Galaxy S3 (i9305) and I also get this error message when trying to install a ROM
I had the issue with LineageOS and Resurrection Remix OS ROMs
I tried on both external SD and internal stroage (/sdcard/)

pgonin commented Feb 9, 2018 •

I can track the error in the code to minzip/SysUtil.h

Apparently the zip file cannot be mapped into memory

pgonin commented Feb 9, 2018

and I am actually using twrp-3.2.1-1-i9305
but I don’t think it makes a big difference

Atexor commented Feb 11, 2018 •

I encountered the same problem with LOS and AICP on my gt-i9305.

edit: flashed older version of TWRP — 3.0.2.1 — flashing works. Latest version is broken for S3.

pgonin commented Feb 12, 2018

Same for me flashing works with older version of TWRP — 3.0.2.1

@Atexor thanks for sharing !

rojanor commented Feb 18, 2018

Same here, twrp 3.0.2.1 works fine, the newer versions give the failed to map error when installing lieageos

ripee commented Feb 28, 2018

I apologize for not seeing the existing feedback sooner. If you haven’t already, please direct your attention to build 3.2.1-2 linked in my thread, and give any feedback. I came across this issue thread here entirely by accident, so please leave feedback on XDA.

pgonin commented Feb 28, 2018

@ripee no problem regarding feedback, especially since we had a workaround.
I can give build 3.2.1-2 a shot but sorry for the dumb question, what do you call your ‘thread’ ?

ripee commented Mar 8, 2018

I set out to build an officially supported twrp so that new versions would be built automatically with minimal changes to the source code in the long term. This mapping problem is also plaguing my Galaxy S2 i9100 twrp, I’m mentioning it here because both the i9305 and i9100 use the same kernel.

I suspect this has something to do with either the partition sizes or the way my build handle the external SD card.

For those of you experiencing problems with my builds, are you able to flash anything from internal storage or is it impossible to flash from either internal or your SD card?

ripee commented Jun 8, 2018

I’ve just completed work on the Galaxy S2 GT-I9100, which uses the same kernel as the GT-I9305. I managed to overcome the «Failed to map» error by first extracting the boot.img file from the zip of the rom I intend to flash, flashing it in 3.2.1-1, then flashing the rom zip as usual.

The reason this is necessary is that twrp 3.2.1 is ahead of its time lol. Unless and until Oreo comes to the S3 and I can update my twrp device tree accordingly, this is the best way to migrating to 3.2.1 to ensure Oreo compatibility in the future.

DaGeRe commented Jul 6, 2018

I had a stock Galaxy S2, installed TWRP and boot using
sudo heimdall flash —repartition —pit Part-i9100-sys2gb-apps4gb-data8gb.pit —KERNEL boot.img —RECOVERY twrp-3.2.2-0-i9100.img
and afterwards tried to install LineageOS by first swiping cache, system and data and then installed lineage-14.1-20180329-nightly-i9100-signed.zip from an SD-Card, and I also got the error.

A workaround is to download twrp 3.1.0, to execute
sudo heimdall flash —repartition —pit Part-i9100-sys2gb-apps4gb-data8gb.pit —KERNEL boot.img —RECOVERY twrp-3.1.0-0-i9100.img in download mode and to install everything from there.

It would be realy nice if this would be working with newest twrp again.

kwah-gh commented Sep 26, 2018

Faced the same issue with Galaxy S2 i9100 and twrp-3.2.3-0-i9100.img
Initial attempt was to follow official LineageOs guide, which failed (don’t remember exactly all the reasons already, but one of them — I had hard time replacing ClockworkMod recovery with TWRP). Then found this detailed explanation on reddit and started experimenting with repartitioning.

Well. After some failed attempts faced with «failed to map» file errors and found this issue.

In the end followed suggestion of @rojanor and went all the way to 3.0.2-1, which did work!

So, here is the winning sequence (in my case):
heimdall flash —repartition —pit I9100_1.5GB-System_6GB-Data_512MB-Preload_by-the.gangster.pit —KERNEL boot.img —RECOVERY twrp-3.0.2-1-i9100.img
followed by
adb sideload lineage-14.1-20180920-nightly-i9100-signed.zip

@ripee: Could you please mention in your [RECOVERY][OFFICIAL] TWRP 3.2.3-0 [I9100] that this specific version not always works? If you need help with testing recovery fixes on i9100 — just ping 😉

Источник

Файлы, отображаемые в память

#include
void *mmap( void *addr, size_t len, int prot, int flag, int filedes, off_t off);

Она возвращает адрес начала участка отображаемой памяти или MAP_FAILED в случае неудачи.
Первый аргумент — желаемый адрес начала участка отбраженной памяти. Не знаю, когда это может пригодится. Передаём 0 — тогда ядро само выберет этот адрес.
len — количество байт, которое нужно отобразить в память.
prot — число, определяющее степень защищённости отображенного участка памяти(только чтение, только запись, исполнение, область недоступна). Обычные значения — PROT_READ, PROT_WRITE (можно кобминировать через ИЛИ). Не буду на этом останавливаться — подробнее читайте в манах. Отмечу лишь, что защищённость памяти не установится ниже, чем права, с которыми открыт файл.
flag — описывает атрибуты области. Обычное значение — MAP_SHARED. По поводу остальных — курите маны. Но замечу, что использование MAP_FIXED понижает переносимость приложения, т.к. его подержка является необязательной в POSIX-системах.
filedes — как вы уже догались — дескриптор файла, который нужно отобразить.
off — смещение отображенного участка от начала файла.

Важное замечание. Если вы планируете использовать MMF для записи в файл, перед маппингом необходимо установить конечный размер файла не меньше, чем размер отображенной памяти! Иначе нарвётесь на SIGBUS.

Ниже приведён пример(честно стырен из замечательной книжки «Unix. Профессиональное программирование») программы, которая копирует файл с использованием MMF.

Источник

TWRP 3.3.1-0 fails to map file #1500

tuxayo commented Aug 18, 2019

  • I am running an official build of TWRP, downloaded from https://twrp.me/Devices/
  • I am running the latest version of TWRP
  • I have read the FAQ (https://twrp.me/FAQ/)
  • I have searched for my issue and it does not already exist

Device codename: i9100
TWRP version: 3.3.1-0-i9100

Context: followup of #1136

Please re-open a new ticket if this targets 3.3.0

WHAT STEPS WILL REPRODUCE THE PROBLEM?

  • extract boot.img from the zip of lineageOS 14.1
  • flash it to boot partition
  • reboot into TWRP
  • try to flash the lineageOS zip
  • «Failed to map file»
  • flash TWRP 3.1.0-0
  • reboot
  • try to flash lineageOS zip
  • it works

WHAT IS THE EXPECTED RESULT?

it should have worked in version 3.3.1

Should it have worked without even having to extract and flash boot.img separately?

Q: Whenever I try flashing any ROM, I get a Fail to map file error.
A: This error appears whenever you try to flash a rom zip file without first flashing the boot.img file from the rom zip file before attempting to flash the rom itself (see instructions below).

Is that still expected?

WHAT HAPPENS INSTEAD?

«Failed to map file»

ADDITIONAL INFORMATION

The text was updated successfully, but these errors were encountered:

billux commented Aug 30, 2019

I can confirm the issue on my i9100. It fails with TWRP 3.3.1-0 but succeeds with TWRP 3.1.0-0.

tlaurion commented Oct 17, 2019 •

@TeamWin-Gerrit
Confirm that I had to revert to https://dl.twrp.me/i9305/twrp-3.0.2-1-i9305.img (tested all others available in between 3.3.1 down to 3.0.2-1) to be able to flash https://images.ecloud.global/dev/i9305/e-0.7-n-2019101026749-dev-i9305.zip. else getting the the same error.

Coming from Replicant recovery and flashing from adb shell with:

munum commented Nov 2, 2019

Same issue here. i9305.

ximpr commented Jan 16, 2020

I also got an «Failed to map file» error with TWRP-3.3.1-0 on my GT-I9300 when trying to install an unofficial Lineage OS 16 beta via adb sideload . After reverting to TWRP-3.2.3-0 I could flash the custom ROM without issues.

duttyend commented Feb 10, 2020

I also got an «Failed to map file» error with TWRP-3.3.1-0 on my GT-I9300 when trying to install an unofficial Lineage OS 16 beta via adb sideload . After reverting to TWRP-3.2.3-0 I could flash the custom ROM without issues.

Exactly the same for me (for the same ROM on the same device)

jbbandos commented Apr 11, 2020

I also got an «Failed to map file» error with TWRP-3.3.1-0 on my GT-I9300 when trying to install an unofficial Lineage OS 16 beta via adb sideload . After reverting to TWRP-3.2.3-0 I could flash the custom ROM without issues.

Exacttly the same on a i9300 with unofficial Lineage 15 and 16 betas and two other ROMs. Reverting to 3.2.3 worked.

joxon commented Apr 13, 2020

  1. Reverted TWRP 3.3.1 to 3.2.3: https://dl.twrp.me/i9300/twrp-3.2.3-0-i9300.img.html
  2. Flashed LOS 17.1: https://forum.xda-developers.com/galaxy-s3/development/rom-lineageos-17-1-t4047715
  3. Worked

tlaurion commented Apr 19, 2020 •

Coming from Replicant recovery and flashing from adb shell with:

camp0s commented May 12, 2020

Same error, same TWRP 3.3.1-0-i9100, dropping down to 3.0.2-1-i9100 to install Lineage-14.1.

YeapGuy commented Jun 13, 2020

Can reproduce, I’ll be reverting to an older version of TWRP then.

tlaurion commented Jun 17, 2020 •

@TeamWin @TeamWin-Gerrit : Any plan to fix and have TWRP support multiple encryption modes to support LineageOS 14.1 and more recent versions?

CaptainThrowback commented Jun 17, 2020

@TeamWin @TeamWin-Gerrit : Any plan to fix and have TWRP support multiple encryption modes to support LineageOS 14.1 and more recent versions?

I don’t understand how this comment relates to this issue, and what’s more, TWRP fully supports decryption of LOS 14.1 and has for some time. It also supports decryption of newer Android versions. If there’s an actual issue you’re trying to report, please open a new one or find an existing relevant issue and report it there with logs.

DahBenni commented Jul 25, 2020

Same issues for me, but can confirm that twrp-3.2.3-0-i9300 with lineage-16.0-20200208-UNOFFICIAL-i9300 worked for me 👍

I also got an «Failed to map file» error with TWRP-3.3.1-0 on my GT-I9300 when trying to install an unofficial Lineage OS 16 beta via adb sideload . After reverting to TWRP-3.2.3-0 I could flash the custom ROM without issues.

Источник

Adblock
detector

I am trying to update my su binary. I previously used SuperSU, but switched to CWM SuperUser and now it is telling me to update my su binary. It tells me to reboot to recovery mode which works and tries automaticaly to flash the zip. But when viewing the log, an error message shows:

Failed to map file: /cache/superuser.zip
Flashing zip failed.

I have tried manually copying the su binary but SuperUser still prompts me to update it. I have tried moving the zip file and flashing it from a different location, but I still get Failed to map file.... I am using TWRP 3.0.2-2 on SM-G900F (Samsung Galaxy S5 [klte] International) with stock Android 6.0.1.

TWRP 3.3.1 fails to map file for Magisk

I’m using TWRP 3.3.1 to install Magisk post flashing LineageOS 17 and every time I try to flash the zip I get the «failed to map file» error. Any advice?

Edit: an article from TWRP which may in part explain the issue

The consensus of advice I’ve received elsewhere is to manually patch boot img. I have since patched the boot image manually and flashed it in TWRP

Понравилась статья? Поделить с друзьями:
  • Failed to load il2cpp rust ошибка
  • Failed to launch downloader cisco anyconnect ошибка
  • Failed to initialize steam как исправить ошибку
  • Failed to initialize direct3d ошибка
  • Failed to get client billing interface ошибка