E3004 this package is for device как исправить

TWRP: “E30004: This package is for “grus” devices; this is a “”. ”

Hey I don’t know if this is the right forum to ask this question, but I’m trying to update to a newer xiaomi .eu rom on my Xiaomi Mi 9 SE.

I originally put the zip file on my phone and then went to update > choose file manually and it just straight up took me to TWRP recovery, but when I tried to install it just gave me this error: “E30004: This package is for “grus” devices; this is a “”.” . As you can see my phone apparently doesn’t have a code name??

after extracting the zip file on my PC and looking thru the files in …META-INFcomgoogleandroid I noticed that the first line in the ‘updater-script’ file was literally the check that gave me the error ( getprop(“ro.product.device”) == “grus” || abort(“E3004: This package is for “grus” devices; this is a “” + getprop(“ro.product.device”) + “”.”); ) so in a high iq move I decided to change the == to a != and compress to a zip file again but unfortunately that just gave me a ” Invalid zip file format! Error installing zip file” error.

Any clues on how to go about this?

EDIT: for future people looking at this post I FOUND THE SOLUTION! just go to main menu in TWRP > Advanced > Terminal, and write the following lines in there:

setprop ro.product.device grus

setprop ro.build.product grus

and now flash as usual. THATS IT.



Оракул

(91720),
закрыт



2 года назад

Дополнен 3 года назад

Как исправить ошибку 7 при прошивке в TWRP?
Скопируйте ZIP-файл ROM на свой компьютер и извлеките его, используя привычный для вас архиватор (например, 7-zip).
После распаковки найдите папку META-INF и пройдите по цепочке META-INF / com / google / android. В последней папке вы найдете два файла под названием «update-binary» и «updater-script». Нас интересует последний.
Переименуйте «updater-script» в «updater-script.txt» и откройте свой любимый редактор текстовых файлов (как вариант, Notepad++).
Избавьтесь от строк, начинающихся с «assert» до точки с запятой. Обычно это первая или несколько первых строк в верхней части текстового файла. Просто удалите их.
Сохраните файл.

Дополнен 3 года назад

что тут удалить какую запятую епты

Дополнен 3 года назад

assert(getprop(“ro.product.device”) == “m0” || getprop(“ro.build.product”) == “m0” ||
getprop(“ro.product.device”) == “i9300” || getprop(“ro.build.product”) == “i9300” ||
getprop(“ro.product.device”) == “GT-I9300” || getprop(“ro.build.product”) == “GT-I9300” || abort(“E3004: This package is for device: m0,i9300,GT-I9300; this device is ” + getprop(“ro.product.device”) + “.”););
ui_print(“Target: samsung/m0xx/m0:4.3/JSS15J/I9300XXUGMJ9:user/release-keys”);
ifelse(is_mounted(“/system”), unmount(“/system”));
package_extract_dir(“install”, “/tmp/install”);
set_metadata_recursive(“/tmp/install”, “uid”, 0, “gid”, 0, “dmode”, 0755, “fmode”, 0644);
set_metadata_recursive(“/tmp/install/bin”, “uid”, 0, “gid”, 0, “dmode”, 0755, “fmode”, 0755);
mount(“ext4”, “EMMC”, “/dev/block/platform/dw_mmc/by-name/SYSTEM”, “/system”, “”);
run_program(“/tmp/install/bin/backuptool.sh”, “backup”, “/system”);
unmount(“/system”);
show_progress(0.750000, 0);
ui_print(“Patching system image unconditionally…”);
block_image_update(“/dev/block/platform/dw_mmc/by-name/SYSTEM”, package_extract_file(“system.transfer.list”), “system.new.dat.br”, “system.patch.dat”) ||
abort(“E1001: Failed to update system image.”);
show_progress(0.020000, 10);
mount(“ext4”, “EMMC”, “/dev/block/platform/dw_mmc/by-name/SYSTEM”, “/system”, “”);
run_program(“/tmp/install/bin/backuptool.sh”, “restore”, “/system”);
unmount(“/system”);
show_progress(0.050000, 5);
package_extract_file(“boot.img”, “/dev/block/platform/dw_mmc/by-name/BOOT”);
show_progress(0.200000, 10);
set_progress(1.000000);

Context

While trying to sideload this LineageOS from this link, on a Samsung J530F I’m getting the error:

E3004 This package is for device: j5y17ltexx; this device is .

Normally that message can be used to indicate you are trying to install the wrong/an incompatible operating system on the phone. However, in this case the this device is . does not show what the device type actually is. And when I rebooted the phone into its original recovery mode, it said on top:

Phone type is:
j5y171texx/j5y171te.

So I think the lineageOS package is the right one for the right phone.

Image with Error:

enter image description here

TWRP version

TWRP version is: 3.1.1-0 from the Team Win Recovery Project

Question

Why does the phone not indicate what type it is/how can I ensure the lineageOS file is installed anyways?

/e/OS community

Loading

2018-05-18 ::

#Note 
#Android 
#CustomROM 
#LineageOS 
#TWRP 

I have recently installed LineageOS custom ROM on my OnePlus2 device to keep on trying new android versions as they come. While installing/updating the OS, I was getting below error on TWRP recovery screen.

script aborted: E3004: This package is for device: OnePlus2,oneplus2; this device is .

To fix this, I updated to the lastest version of TWRP for OnePlus2.

Добавить комментарий