I have posted these in another thread, but thought it deserves its own thread.
These will be helpful for anyone creating themes for Haykuro's builds.
With these you can create non-wipe update.zip files for these builds.
H Build (Based on Hr4)
G Build (Based on Gr4)
Update: Fixed the issue with update-script
I just tried to flash this after dropping in my images and the update was shot down. I immediately signed your unmodified version, and attempted to flash it, and got the same error. Not sure what would be causing it, since I'm not one for modifying update-scripts, but here's the error.
Code:
Installing from sdcard...
Finding update package...
Opening update package...
Verifying update package...
Installing update...
Copying files...
E:Can't mount SYSTEM
E:Failure at line 1:
copy_dir PACKAGE:system SYSTEM
Installation aborted
Press Home+Back to reboot
bahnburner said:
I just tried to flash this after dropping in my images and the update was shot down. I immediately signed your unmodified version, and attempted to flash it, and got the same error. Not sure what would be causing it, since I'm not one for modifying update-scripts, but here's the error.
Code:
Installing from sdcard...
Finding update package...
Opening update package...
Verifying update package...
Installing update...
Copying files...
E:Can't mount SYSTEM
E:Failure at line 1:
copy_dir PACKAGE:system SYSTEM
Installation aborted
Press Home+Back to reboot
Click to expand...
Click to collapse
Which version did you try?
I think i missed a ":" in the H version.
I will update soon. Until then, it will work if you change the update-script to look like this.
Code:
copy_dir PACKAGE:system SYSTEM:
Update: I was also missing a new line after the command.
I am uploading new files now.
Thanks man. Like I said, I'm not much for modding update-scripts.
***EDIT***
I can download them
but is there another line in the update script needed??
and in the update script u said there is another command needed...
i only see one line...
copy_dir PACKAGE:system SYSTEM:
is there one after this?
bigballa said:
***EDIT***
I can download them
but is there another line in the update script needed??
and in the update script u said there is another command needed...
i only see one line...
copy_dir PACKAGE:system SYSTEM:
is there one after this?
Click to expand...
Click to collapse
No that is it.
And since you downloaded them now, i'm sure you downloaded the new version.
What was needed in the old version was an empty line after the first line.
Does your G template work for the new 5.0.2g build?
Does anyone have a update.zip with update-binary and updater-script, that installs apks into data/app? I cannot for the life of me make a working update.zip that installs apks into data/app folder. please help : (
no one knows? can anyone help:??
anyone help please?
please try to search for information yourself before you post here. a simple google search brought me to this thread @modaco : http://android.modaco.com/content/t.../writing-to-data-with-a-flashable-update-zip/
during recovery not all partitions are mounted and obviously /data/ is not! try to mount it in recovery (the "partitions" thingy in the menu or via adb) before you try to flash the update.zip. it's possible to do that out of the update script but i leave it to you to find out how
jodue said:
please try to search for information yourself before you post here. a simple google search brought me to this thread @modaco : http://android.modaco.com/content/t.../writing-to-data-with-a-flashable-update-zip/
during recovery not all partitions are mounted and obviously /data/ is not! try to mount it in recovery (the "partitions" thingy in the menu or via adb) before you try to flash the update.zip. it's possible to do that out of the update script but i leave it to you to find out how
Click to expand...
Click to collapse
I appreciate your reply. I spent countless hours trying to figure out the update.zip data mounting. I have tried "adb remount /data" command but I always get
remount failed: no such file or directory. I would love to mount data in the updater-script. I do not use update-script as that does not seem to work on my galaxy s. maybe I am doing it wrong, but I tried to make a update-script and it doesn't work.
I dont even have partitions menu in adb ;O
han.azuki said:
I appreciate your reply. I spent countless hours trying to figure out the update.zip data mounting. I have tried "adb remount /data" command but I always get
remount failed: no such file or directory.
Click to expand...
Click to collapse
you can
1) in the recovery: partitions menu->mount /data
OR
2) adb shell and then "mount -t rfs /dev/block/mmcblk0p2 /data"
i don't know about the updater script but http://forum.xda-developers.com/showthread.php?t=641223 should help you start. beware, the partitions are different on the sgs!
good luck!
jonidroid said:
I dont even have partitions menu in adb ;O
Click to expand...
Click to collapse
ups. i have overlooked your post.
the "partitions menu" option is only available in the clockwork recovery (but not int the stock one)...
is there a difference between updater-script and update-script? Thank you so much for the replies.
mount("MTD", "data", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data/app");
unmount("/data");
i tried that and it doesn't work
even the delete_recursive("/data/app"); doesn't work
Just been given the tip that the userdata mount isnt necessarily called data.
From terminal/adb shell "cat /proc/mtd" and you should see what the correct name is. On my g1 it's "userdata"
About to try and sort the script for my update now - will let you know how it goes.
han.azuki said:
mount("MTD", "data", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data/app");
unmount("/data");
i tried that and it doesn't work
even the delete_recursive("/data/app"); doesn't work
Click to expand...
Click to collapse
You can't you need to use clockworkmod for that.
I have managed to flash to /data/ on my G1 with the following...
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
unmount("/data");
I have a new evo updated. Rooted with unrevoked and running sprint lovers (PC3IMG) I installed clockworkmod and tried to flash a rom and had problems. I thought that clockworkmod was my problem so I flashed back to my RU recovery. I then went into recovery and wiped data, dalvick, and cache. I then chose install zip from sdcard and then I selected the new Fresh ROM zip. I tried to install it and it goes all the way to Writing boot.img and I get an error that says
assert failed: write_raw_image("/tmp/boot.img","boot")
E:error in /sdcard/fresh-evo-3.5.0.1.zip
(status 7)
Installation aborted.
So then I tried to install Myn’s Warm TwoPointTwo and I get to copying files and I get this error:
E:Can't symlink /system/xbin/[
E:Failure at line 15:
symlink busybox SYSTEM:xbin/[
Installation aborted
I am stumped and dont know what to try next. Anyone know whats going on with these errors?
Just tried to install pc36img from sdcard and I get this after it says installing update:
E:Can't find update script
Installation aborted.
I think that this will only work if I flash it at Hboot and select yes for the update? Either way, I would rather have Fresh as my ROM because I used it on my Hero and I loved it. Any help?
After reading other posts, many say it has to do with the HBOOT size not having enough space??? Its not seeing the boot.img correctly. I have no idea. Anyone have any ideas?
Hello, I have a problem when I try to flash the AOSP compiled for the HTC Desire,
I'm using the recovery ClockworkMod 2.5.0.7
and when I flash the update.zip I get the following error:
E: Can't chown/mod /system/keyspa.sh
(No such file or directory)
E:Failure at line 14:
set_perm 0 0 06755 SYSTEM:keyspa.sh
Installation aborted
somebody know what's happening?
Thanks in advance..
How about keeping it all in one thread as opposed to starting a new one for every problem?
EddyOS said:
How about keeping it all in one thread as opposed to starting a new one for every problem?
Click to expand...
Click to collapse
Sorry, Now I did it.
Just in this case I dont have any idea how can solve it.
Thanks in advance..
now the problem is the update-script / updater-script
I think the problem is the update-script. Well I try replacing the update-script by a updater-script from customized roms like Oxygen1.04 or CyanogenMod 6. But when I try to apply the update.zip I get the following error:
can't open /dev/tty0: No such file or directory
So I'm using the ClockworkMod recovery 2.5.0.7, and I don't know if that recovery can work with "updater-script" or just update-script.
Hope anybody can help me
how can I generate the update-binary for my updater-script
I figured that maybe the problem is because I dont have a udpate-binary file next to my updater-script.
someone can told how can I generate this file?
Thanks in advance..
Hi.
This is my first time working with ROMs, wanted to see if I could unpack and repack them and have them work, so I would know if my later changes cause problems. I've noticed if I unzip a ROM, then zip it again, without any changes made, I get this error within a few seconds of starting the flash. If I don't unpack and repack the zip, it flashes fine.
I use the Android Kitchen, to unpack/repack, and signed the zip. Anyone know what's going on?
Did a full wipe with TWRP before flash attempt.
Code:
Starting ADB Sideload feature...
Target: google/occam/mako:5.1.1/LMy48M/2167285:user/release-keys
detected filesystem ext4 for /dev/block/platform/msm_sdcc.1/by-name/system
Patching system image unconditionally...
E1001: Failed to update system image.
Updater process ended with ERROR: 7
Thank you,
Josh
Edit your updater-script
find this line
Code:
.... package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
change to :
Code:
.... package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat");
Just replace " ||" with ";" and delete line abort("blablabla"):
adislice said:
find this line
Code:
.... package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
change to :
Code:
.... package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat");
Just replace " ||" with ";" and delete line abort("blablabla"):
Click to expand...
Click to collapse
hey man when i deleted that line my phone booted in fastboot mode
I solved this by installing the latest version of TWRP and Oxygen OS.
Can anyone please help me correct error 7 with the following updater-script
The error i get is :
Installing zip file '/external_sd/lineage-15.1
20180524-UNOFFICIAL-Ocm.zip
Checking for Digest file...
Target: htc/ocmdtwl_01405/htc_ocmdtwl:8.0.0/OPR6.
170623.013/1010171.4:user/release-keys
detected filesystem ext4 for /dev/block/bootdevice/
by-name/system
Patching system image unconditionally...
E1001: Failed to update system image.
Updater process ended with ERROR: 7
Error installing zip file '/external_sd/lineage-15.
-20180524-UNOFFICIAL-ROm,zip'
Updating partition details...
... done
assert(getprop("ro.product.device") == "htc_ocm" || getprop("ro.build.product") == "htc_ocm" ||
getprop("ro.product.device") == "htc_ocndugl" || getprop("ro.build.product") == "htc_ocndugl" ||
getprop("ro.product.device") == "htc_ocmdtwl" || getprop("ro.build.product") == "htc_ocmdtwl" ||
getprop("ro.product.device") == "ocm" || getprop("ro.build.product") == "ocm" || abort("E3004: This package is for device: htc_ocm,htc_ocndugl,htc_ocmdtwl,ocm; this device is " + getprop("ro.product.device") + ".");
ui_print("Target: htc/ocmdtwl_01405/htc_ocmdtwl:8.0.0/OPR6.170623.013/1010171.4: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/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
show_progress(0.650000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/bootdevice/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.100000, 0);
ui_print("Patching vendor image unconditionally...");
block_image_update("/dev/block/bootdevice/by-name/vendor", package_extract_file("vendor.transfer.list"), "vendor.new.dat.br", "vendor.patch.dat") ||
abort("E2001: Failed to update vendor image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
if (getprop("ro.boot.mid") == "2Q4D20000" || getprop("ro.boot.mid") == "2Q4D10000") then
ui_print("This is a DS device - renaming radio props");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
rename("/vendor/lib64/libril-qc-ltedirectdisc.so", "/system/vendor/lib64/libril-qc-ltedirectdisc.so");
rename("/vendor/lib64/libril-qc-qmi-1.so", "/system/vendor/lib64/libril-qc-qmi-1.so");
rename("/vendor/lib64/libril-qc-radioconfig.so", "/system/vendor/lib64/libril-qc-radioconfig.so");
rename("/vendor/lib64/libril-qcril-hook-oem.so", "/system/vendor/lib64/libril-qcril-hook-oem.so");
unmount("/system");
endif;
set_progress(1.000000);
Any help is appreciated :s
Try using sideload insted of sd
i had the same error and i could do nothing...then I thought my sd maybe giving the error so i tried the sideload mode and believe me..........it worked
option 2:-if u have backed up your rom (or by anyhow if you can) try flashing another (in my case...an older) version of twrp. it also worked for me. would be glad if this helps you.
---------- Post added at 11:30 PM ---------- Previous post was at 11:05 PM ----------
[/COLOR]
SL.Pirate said:
i had the same error and i could do nothing...then I thought my sd maybe giving the error so i tried the sideload mode and believe......me it worked
but...at the moment i am having another problem...i'd appreciate if someone could help. the rom has been installed correctly (I guess) but...when it reboots,it says encryption unsuccessful. ther'es a key sayng reset phone but nothing happens after pressing it.i tried wiping all the partitions and reinstalling the rom and no use.
Click to expand...
Click to collapse
Solved...had some matters with the data partition.
SL.Pirate said:
Solved...had some matters with the data partition.
Click to expand...
Click to collapse
Such as?
I'm stuck at the same place as you were...
For the posterity :
in TWRP go to advanced > terminal, then create /cache/recovery with
mkdir /cache/recovery
solved the problem for me
Source : https://android.stackexchange.com/q...ineage-16-samsung-galaxy-note-2-gt-n7100-t03g
6mon said:
Such as?
I'm stuck at the same place as you were...
Click to expand...
Click to collapse
it said 'ENCRYPTION UNSUCCESSFULL'
if the samething happens to you....go to twrp,select wipe,advanced wipe and select (only) the data partition. then you gotta select repair or change file system select change file system and then select the correct format for the partition.(in and most of the cases...it is the EXT4 format.go ahead and reboot your device.this should probably work.If not...try other formats also from bottom to to. (HINT:-see what other partitions are formatted to).This should probably work if thats the case.
worked for me .thanks alot
It works!
6mon said:
For the posterity :
in TWRP go to advanced > terminal, then create /cache/recovery with
mkdir /cache/recovery
solved the problem for me
Source : https://android.stackexchange.com/q...ineage-16-samsung-galaxy-note-2-gt-n7100-t03g
Click to expand...
Click to collapse
Thank you so much! Before doing this, my Lenovo Vibe K5 Plus (A6020) wasn't able to install any ROM, but it's over! Now I can install custom ROMs with no flaws :good:
Worked for me as well and much easier than editing the update script. Thanks a lot!
If youre still getting error 7 e1001 then try this.
Boot twrp
Tap advanced tab
Tap file manager/explorer
Tap on /system
Tap + icon on the folder in bottom right corner to modify
Tap chmod 755 to enable r/w for system part.
Try to install again.
That is what worked for me
6mon said:
For the posterity :
in TWRP go to advanced > terminal, then create /cache/recovery with
mkdir /cache/recovery
solved the problem for me
Source : https://android.stackexchange.com/q...ineage-16-samsung-galaxy-note-2-gt-n7100-t03g
Click to expand...
Click to collapse
did the trick for me. Whoever has Error 7 / Error 1001 issues, try this first cant hurt!
6mon said:
For the posterity :
in TWRP go to advanced > terminal, then create /cache/recovery with
mkdir /cache/recovery
solved the problem for me
Source : https://android.stackexchange.com/q...ineage-16-samsung-galaxy-note-2-gt-n7100-t03g
Click to expand...
Click to collapse
Posterity works!!! I found your post by googling and it solved my issue, thanks again!
I have the same issue on S4 mini, but /cache/recovery/ dir is present.
Hello
I am having this issue installing /e/ os on samsung J5 J500F.
I tried making directory /cache/recovery and addind read and write rights to /system but it did not work.
I also tried different version of the os and build as well as different version of TWRP.
I tried removing the assert line in the updater script but the zip file generated then in refused by twrp, It gets me the error "invalid zip file format".
I tried making the zip file with winrar or 7zip using either relatie paths or absolute path, but i still get the same error.
Would someone have an idea ?
Thanks !
Sometimes it is caused due to corrupted file. While transferring file through MTP it is likely to corrupt large files. I had the same problem. Then I tried copying file while in TWRP (sure it is also MTP) and it worked.
HatMan22 said:
Sometimes it is caused due to corrupted file. While transferring file through MTP it is likely to corrupt large files. I had the same problem. Then I tried copying file while in TWRP (sure it is also MTP) and it worked.
Click to expand...
Click to collapse
Hello, thank you very much for your advice, I copied all files through TWRP, so it is probably coming from something else.
I tried downloading the file and and also flashing some other builds or different versions but I still get "failed to update system image error"
Gabriel-Roger said:
Hello, thank you very much for your advice, I copied all files through TWRP, so it is probably coming from something else.
I tried downloading the file and and also flashing some other builds or different versions but I still get "failed to update system image error"
Click to expand...
Click to collapse
Do you have latest TWRP installed? Old TWRP may also cause this issue.