How to make updater-script. - General Questions and Answers

Hi.
I have a samsung A70 device
I want to make a simple zip can to delete bloatware and install some app after reflash rom.
So, i try many time with updater-script file but seemlike it not working.
There is code example:
ui_print(" Starting ... ");
mount("ext4", "EMMC", "/dev/block/platform/soc/1d84000.ufshc/by-name/system", "/system");
ui_print(" ");
delete("/system/app/ARCore/ARCore.apk");
ui_print(" ");
delete("/system/app/ARCore/ARCore.apk");
Click to expand...
Click to collapse
I Zip it on update.zip file and when i flash it still running nomarly but nothing got delete in /system/app/arcore/
TWRP so me
script susseded: result was [0]
Click to expand...
Click to collapse
i think system partion is not mounted yet. I don't know extracly vartion "/dev/block/platform/soc/1d84000.ufshc/by-name/system" is correct or not. Or i must set permission for that.
Can somebody help me write updater-script. Thank you!

May be studying this helps:
[TUTORIAL] The updater-script completely explained
Hi all XDA Members :) This is not at all an updater-script guide but an explanation Example of updater-script: assert(getprop("ro.product.device") == "janice" || getprop("ro.build.product") == "janice" || getprop("ro.product.device") ==...
forum.xda-developers.com

xXx yYy said:
May be studying this helps:
[TUTORIAL] The updater-script completely explained
Hi all XDA Members :) This is not at all an updater-script guide but an explanation Example of updater-script: assert(getprop("ro.product.device") == "janice" || getprop("ro.build.product") == "janice" || getprop("ro.product.device") ==...
forum.xda-developers.com
Click to expand...
Click to collapse
i already read this topic but it still not working bro. the systax is true but can't working

So you know the EDIFY-script is correct.
Then why ask here for verify / correct it?
BTW:
This forum is wrong place for your issue. Getting helped typically is requested here:
Android Q&A, Help & Troubleshooting
This forum is for all of your questions about Android Development and Hacking. If you need help troubleshooting a problem, please be as specific as possible by describing your software configuration, including the ROM, kernel, and any modifications you've done.
forum.xda-developers.com

You could have FEC (error correction) on this partition.
You could mod it until you're blue in the face and not see any change.
If you're rooted, do a dd then look at the last 4096 bytes of that partition.

Related

Help me to flash Cyanogenmod 7.2 on my Huawei Ideos U8150

I would prefer to ask this in the [ROM][NIGHTLY] CyanogenMod 7.2-RC3+ for Huawei U8150 (June 11th) thread but I can't post in there since I am a noob.
I have a Huawei Ideos U8150 which I bought from aldi, locked to the virgin mobile network.
Today I decided to try and install a third-party firmware to get extra performance, because as stock the phone is very sluggish and drives me bonkers. Well... I have been at it for hours and have run into a hurdle that I can't get over. Hence me posting here.
I've tried with three different builds of Cyanogenmod 7.2, one build from june, the latest build, and the stable build.
I've tried to follow the instructions in the above mentioned thread as close as possible, had to do it slightly differently since I can't figure out how to
access the phone after doing the 3-button combo (some Android 1.0 driver I need to install, googled it, nothing specific to my phone).
I downloaded and installed z4root, and successfully obtained root access.
I duplicated the problem just before for the purposes of this post, attempting to install the Cyanogenmod 7.2 stable build.
I downloaded and installed clockworkmod rom manager, opened it, pressed Flash ClockworkMod Recovery to install that, and I think this might be part of my problem, it says: Confirm Phone Model and the only option is Huawei U8160, I figure close enough.
Let it do its thing, pops up with the root access confirmation screen, I hit Allow, then it says successfully flashed clockworkmod revoery! I hit OK, then I hit reboot into Recovery.
I let it do a backup, then I do wipe data/factory reset as well as wipe cache partition as per the above mentioned thread (except doing it inside clockwork recovery instead of doing it using the 3 button method), then hit install from sdcard zip, hit choose zip from sdcard, browse to the cyanogenmod zip file (cm-7.2.0-u8150.zip), say Yes, and it ****s itself. Great, I wiped all my data, now I have to set my phone up again from scratch with the stock rom. Grrrr!
The important part of the log:
Code:
-- Installing: /sdcard/cm-7.2.0-u8150.zip
mtd: successfully wrote block at fffffd6800000000
I:Set boot command "boot-recovery"
Finding update package...
I:Update location: /sdcard/cm-7.2.0-u8150.zip
Opening update package...
Installing update...
script aborted: assert failed: getprop("ro.product.device") == "u8150" || getprop("ro.build.product") == "u8150" || getprop("ro.product.board") == "u8150" ||
getprop("ro.product.device") == "ideos" || getprop("ro.build.product") == "ideos" || getprop("ro.product.board") == "ideos" ||
getprop("ro.product.device") == "U8150" || getprop("ro.build.product") == "U8150" || getprop("ro.product.board") == "U8150"
assert failed: getprop("ro.product.device") == "u8150" || getprop("ro.build.product") == "u8150" || getprop("ro.product.board") == "u8150" || getprop("ro.product.device") == "ideos" || getprop("ro.build.product") == "ideos" || getprop("ro.product.board") == "ideos" || getprop("ro.product.device") == "U8150" || getprop("ro.build.product") == "U8150" || getprop("ro.product.board") == "U8150"
E:Error in /sdcard/cm-7.2.0-u8150.zip
(Status 7)
Installation aborted.
result was NULL, message is: assert failed: install_zip("/sdcard/cm-7.2.0-u8150.zip")
I have put the whole log into a pdf as well as a doc and attached it.
In one of my several attempts to do this, I made sure I ran the "Fix Permissions" tool before trying to install the ROM in the hope that would make it work but it made no difference (same error).
I have no idea what I've done wrong, it seems like I have done everything correctly but it just won't work because it hates me. Maybe it's because it is a Virgin Mobile phone, maybe it is because clockworkmod thinks it is a U8160 when it is really a U8150? Who knows.
Hopefully somebody can think of some trick I can apply to try and get around this issue.
Sorry for such a long post, I just wanted to make sure I was as thorough as possible to make sure there isn't some tiny little thing I am doing wrong that is screwing it up for me.
Should I try installing Cyanogenmod 6.x.x tomorrow to see if it likes that any better?
Should I try downgrading to an earlier version of Clockworkmod ROM manager (if that is even possible)?
Is there some other straight-forward way of installing Cynaogenmod on my phone other than Clockworkmod?
Thanks very much,
VirginIdeos
CWM 5.0.2.7 used.
recruit said:
CWM 5.0.2.7 used.
Click to expand...
Click to collapse
So, I have to use an earlier version of clockwork mod? It's easy to install the latest version, but were do I download an earlier version from? Or are you just posting this for information?
Bump: Got it working. You have to flash Clockworkmod recovery version 3.0.2.7 onto the device, the latest will not work with the U8150 (should work with the U8160). I will throw up a how-to when I have enough posts.
But I'm still having issues: WiFi does not work, even though it is supposed to be fixed in Cyanogenmod 7.2. This is a pity, because it means I won't be able to stream video from my helmet cam to my Ideos without using the stock software pre-installed on the Ideos, which is very very sluggish. It already took me a lot of frigging around to be able to download the app for this from google play.
There is a wifi fix here: http://forum.xda-developers.com/showthread.php?t=1177650 but the link to download Salsa Slide Final is no longer active (I'm not sure that the files would work with the Ideos anyway) AND the wifi fix flashable zip won't work because it requires an early version of clockwork mod recovery which will not work on the Ideos U8150. ARGH!! And I'm not sure that the zip would flash correctly onto the Ideos anyway. The only way this could work would be for someone to update the zip so it works with clockworkmod recovery 3.0.2.7, and port the changes to the Ideos (if need be). Beyond my abilities, especially the porting part!
Even more frustratingly, there are people who are posting in the CM 7.2 Ideos U8150 thread whose wifi seems to be working just fine. Blast them!
Bump:
If I had known CWM9 was out for the U8150, I would not have even bothered with 7.2.
So I've installed CWM9 on my Ideos. Everything works great, including WiFi , so I'm rapt. It is a little more sluggish than 7.2 in some respects, but much smoother and snappier in others, and the UI and startup screen are a lot cooler.
As an aside, the ActionConnect app for connecting an Android phone to the new Ego 727 helmet camera doesn't work fully with the U8150. I can connect with the app and change the camera's settings, but when trying to view the live stream, the app exits. I had to trick the Google servers into thinking I had a Samsung Galaxy S in the first place to be able to download the app (even tricking them into thinking I had a Nexus S did not work). I've contacted tech support about this and the compatibility list issue. I'll throw up a separate thread including the APK for those who are having trouble downloading the app.

[GUIDE] Fix Status 7 while flashing ROMs

I assume at least half of Android users get Error status 7 while flashing ROMs. This can be explained in 2 reasons.
Number 1:The developer of the ROM was too stupid to fix this mistake
Click to expand...
Click to collapse
or
Number 2: You are tying to port a ROM and those errors come to you
Click to expand...
Click to collapse
So lets start fixing Status 7.
This can happen because the ROM isn't meant for your device. To fix this extract the ROM open META-INF com google android updater-script with Notepad++Find the line assert(getprop("ro.product.device") == "device namer" || getprop("ro.build.product") == "devicename" ||. Change the device name to the name of your device. Example change assert(getprop("ro.product.device") == "flyer" || getprop("ro.build.product") == "flyer" || to assert(getprop("ro.product.device") == "grouper" || getprop("ro.build.product") == "grouper" ||
Click to expand...
Click to collapse
If you don't know Grouper is the code name for the nexus 7. So you need to find the code name for your device. It can be found easyly on the web.
And that's it. Hope i helped. leave a tnx or donate if I helped.

[ROM][4.4.4] AICP For Shield Tablet (WiFI Only) (wx_na_wf) [8/28/14]

Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
This is a build of AICP for the Shield Tablet (WiFi Only) (wx_na_wf)
You need to have CWM recovery installed on your device See Here for instructions install CWM. Try this version of CWM when flashing
Or use PhilZ
Instructions on installing:
Make a backup of your current ROM (Optional but highly recommended)
Wipe --> Factory Reset (Data, Cache, and Dalvik Cache)
Flash ROM
Flash Gapps
Reboot
Downloads:
8/28/14 ROM
8/25/14 ROM
8/23/14 ROM
8/22/14 ROM
Gapps
Bugs
You tell me
Kernel Source
XDA:DevDB Information
AICP for Shield Tablet (WiFi Only), ROM for the Nvidia Shield Tablet
Contributors
joshuabg, Unjustified Dev For making the device tree compatible
ROM OS Version: 4.4.x KitKat
Based On: AOKP
Version Information
Status: Testing
Created 2014-08-22
Last Updated 2014-12-20
Reserved
Reserved
OK I done a full wipe factory reset/cache in the latest recovery then tryed flashing had an error saying
This package is wx_na_wf this device is shield tablet
Error status 7
I'm not much of a dev but will look through the build prop or meta data to see if its a simple name change?
MRobbo80 said:
OK I done a full wipe factory reset/cache in the latest recovery then tryed flashing had an error saying
This package is wx_na_wf this device is shield tablet
Error status 7
I'm not much of a dev but will look through the build prop or meta data to see if its a simple name change?
Click to expand...
Click to collapse
Just got to edit the META-INF/com/google/android/updater-script
proably have to change wx_na_wf to shieldtablet in line 2
I can do it and reupload the whole zip f you want
Edit: You could just erase that line
joshuabg said:
Just got to edit the META-INF/com/google/android/updater-script
proably have to change wx_na_wf to chield tablet in line 2
I can do it and reupload the whole zip f you want
Click to expand...
Click to collapse
That's OK I can do that give me 10 mins
MRobbo80 said:
That's OK I can do that give me 10 mins
Click to expand...
Click to collapse
OK, just edit the updater script, you should be able to just delete the second line without an issue.
Deleted second line and did not have any luck so this second line below just change
"wx_na_wf" to ,"shieldtablet "
").");
assert(getprop("ro.product.device") == "wx_na_wf" || getprop("ro.build.product") == "wx_na_wf" || abort("This package is for \"wx_na_wf\" devices; this is a \"" + getprop("ro.product.device") + "\".");
MRobbo80 said:
Deleted second line and did not have any luck so this second line below just change
"wx_na_wf" to ,"shieldtablet "
").");
assert(getprop("ro.product.device") == "wx_na_wf" || getprop("ro.build.product") == "wx_na_wf" || abort("This package is for \"wx_na_wf\" devices; this is a \"" + getprop("ro.product.device") + "\".");
Click to expand...
Click to collapse
What happened when you deleted the second line? It might be easier if you join the IRC channel so I can walk you though everything.
Deleted second line and did not have any luck so this second line below just change
"wx_na_wf" to ,"shieldtablet "
").");
assert(getprop("ro.product.device") == "wx_na_wf" || getprop("ro.build.product") == "wx_na_wf" || abort("This package is for \"wx_na_wf\" devices; this is a \"" + getprop("ro.product.device") + "\".");
So it should look like this
").");
assert(getprop("ro.product.device") == "shieldtablet" || getprop("ro.build.product") == "shieldtablet" || abort("This package is for \"shieldtabley\" devices; this is a \"" + getprop("ro.product.device") + "\".");
MRobbo80 said:
Deleted second line and did not have any luck so this second line below just change
"wx_na_wf" to ,"shieldtablet "
").");
assert(getprop("ro.product.device") == "wx_na_wf" || getprop("ro.build.product") == "wx_na_wf" || abort("This package is for \"wx_na_wf\" devices; this is a \"" + getprop("ro.product.device") + "\".");
So it should look like this
").");
assert(getprop("ro.product.device") == "shieldtablet" || getprop("ro.build.product") == "shieldtablet" || abort("This package is for \"shieldtabley\" devices; this is a \"" + getprop("ro.product.device") + "\".");
Click to expand...
Click to collapse
What happened when you flashed this?
Says
Installing
Installation aborted
MRobbo80 said:
Says
Installing
Installation aborted
Click to expand...
Click to collapse
Do you have zip signature verification checked?
No I did not, now I enabled that I tried flashing the original rom it seems to start of by going through the normal process of flashing, then stalls with the first error message to start with. When I change the second line (name change) in the update script to (shieldtablet) it the gives me an error saying the footer is in correct when trying to flash. Think it is a very simple fix to get this going but having a dipstick trying to help you is not much kop sorry m8
Hold on think I know what I done
@joshuabg You have to upload your recovery.img that compiled with it. I changed name because we shouldn't be using shieldtablet name in custom roms that's common to all versions.
Unjustified Dev said:
@joshuabg You have to upload your recovery.img that compiled with it. I changed name because we shouldn't be using shieldtablet name in custom roms that's common to all versions.
Click to expand...
Click to collapse
I'll upload that tommorow.
Unjustified Dev said:
@joshuabg You have to upload your recovery.img that compiled with it. I changed name because we shouldn't be using shieldtablet name in custom roms that's common to all versions.
Click to expand...
Click to collapse
My ROM is made for wx_na_wf. The bad thing about that is that aicp checks to see if the device is a wx_na_wf before it flashes. The stock os shows the device is a shieldtablet. So you have to remove that line in the updater-script.
sorry man got it sort of working got it to flash but stuck in a boot loop, now I can not enter recovery or so far get adb working
Here's my recovery.img that generated with AICP (wx_na_wf)
https://s.basketbuild.com/filedl/devs?dev=joshuabg&dl=joshuabg/wx_na_wf/recovery.img
Unjustified Dev said:
@joshuabg You have to upload your recovery.img that compiled with it. I changed name because we shouldn't be using shieldtablet name in custom roms that's common to all versions.
Click to expand...
Click to collapse
https://s.basketbuild.com/filedl/devs?dev=joshuabg&dl=joshuabg/wx_na_wf/recovery.img

[Q&A] [ROM] [5.0] Samsung Galaxy S3 [d2usc][Nightly] LiquidSmooth Lollipop

Q&A for [ROM] [5.0] Samsung Galaxy S3 [d2usc][Nightly] LiquidSmooth Lollipop
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [ROM] [5.0] Samsung Galaxy S3 [d2usc][Nightly] LiquidSmooth Lollipop. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
htrowpiks said:
First!... Androidfilehost says need to sign in and I don't have access to the folder....
Click to expand...
Click to collapse
Maybe they are working on a new nightly build.
liquidsmooth on d2mtr
@vuzedroid
I tried to answer your question in the liquidsmooth thread, but I get directed here because I have less than 10 posts. Anyways, I hope you see this...
I have this rom installed on my d2mtr. It works well, but I loose audio every once in a while and just have to reboot to get it back. Also install open camera if you need the camera.
Here's how to install it on the d2mtr. I recommend the 02/08 build since it has the cm theme engine instead of layers...
Unzip the package and open the "updater script" and change the "assert" line at the top from this...
Code:
assert(getprop("ro.product.device") == "d2usc" || getprop("ro.build.product") == "d2usc" || getprop("ro.product.device") == "d2lte" || getprop("ro.build.product") == "d2lte" || abort("This package is for device: d2usc,d2lte; this device is " + getprop("ro.product.device") + "."););
To this...
Code:
assert(getprop("ro.product.device") == "d2usc" || getprop("ro.build.product") == "d2usc" || getprop("ro.product.device") == "d2lte" || getprop("ro.build.product") == "d2lte" || getprop("ro.product.device") == "d2mtr" || getprop("ro.build.product") == "d2mtr" || abort("This package is for device: d2usc,d2lte,d2mtr; this device is " + getprop("ro.product.device") + "."););
Then zip it back up and wipe then flash the rom and gapps. I used the PA Pico gapps.
Before rebooting use the file manager in twrp recovery and go to "/system/priv-app" and delete "cmsetupwizard" then you can reboot. If you don't delete it then it will keep crashing during initial setup and not let you get to the home screen. That's it enjoy.
GameTheory. said:
@vuzedroid
I tried to answer your question in the liquidsmooth thread, but I get directed here because I have less than 10 posts. Anyways, I hope you see this...
I have this rom installed on my d2mtr. It works well, but I loose audio every once in a while and just have to reboot to get it back. Also install open camera if you need the camera.
Here's how to install it on the d2mtr. I recommend the 02/08 build since it has the cm theme engine instead of layers...
Unzip the package and open the "updater script" and change the "assert" line at the top from this...
Code:
assert(getprop("ro.product.device") == "d2usc" || getprop("ro.build.product") == "d2usc" || getprop("ro.product.device") == "d2lte" || getprop("ro.build.product") == "d2lte" || abort("This package is for device: d2usc,d2lte; this device is " + getprop("ro.product.device") + "."););
To this...
Code:
assert(getprop("ro.product.device") == "d2usc" || getprop("ro.build.product") == "d2usc" || getprop("ro.product.device") == "d2lte" || getprop("ro.build.product") == "d2lte" || getprop("ro.product.device") == "d2mtr" || getprop("ro.build.product") == "d2mtr" || abort("This package is for device: d2usc,d2lte,d2mtr; this device is " + getprop("ro.product.device") + "."););
Then zip it back up and wipe then flash the rom and gapps. I used the PA Pico gapps.
Before rebooting use the file manager in twrp recovery and go to "/system/priv-app" and delete "cmsetupwizard" then you can reboot. If you don't delete it then it will keep crashing during initial setup and not let you get to the home screen. That's it enjoy.
Click to expand...
Click to collapse
I just noticed this message, thanks a ton! I think I can do all this xD I'll let you know once I try :good:
Unable to start camera after resotring backup
Hi,
I have install your ROM and it's nice but have some bugs. specially volume. It does not reduce volume to lower level. In min. level it is too loud. So I decided to revert. I reverted my old OS backup, after that my primary camera is unable to start. I thought it might have some issue so tried different ROM, But camera won't work.
I tried Open Camera, it says
FAILED TO OPEN CAMERA.
CAMERA MAY BE IN USE
BY ANOTHER APPLICATION?
Front camera is working with Open Camera application. Standard camera application stops by saying "camera failed".
Is there any hardware damage.
Please help me out. I am stuck.
LiquidSmooth Lollipop GApps zip file
Hello and thank you for the Lollipop ROM for the US Cellular SGS3! I've been having fun playing with that today. One question, however: when I download the GApps zip file from the drdrvs website:
drdevs.com
devs
teamliquid
Gapps
lollipop
gapps-L-2-25-15.zip
(Sorry, new members can't post outside URLs...)
unzip claims that it's not a complete archive:
$ unzip -l gapps-L-2-25-15.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
I've attempted to download it several times, just to make sure my browser isn't truncating the file. The downloader page says it's 10.9MB, which jives with ls:
10887168 Apr 10 14:44 gapps-L-2-25-15.zip
Thought you might want to check it out on your end.
Grouchicarpo
Dark UI
How do I find and enable the dark ui? I am coming from SlimKat and loved that darkness it had.
I am on LS-LP-v4.1-2015-05-14-liquid_d2usc version of LiquidSmooth.
Also, Mobile network WORKS FINE, but it complains about not having an APN and won't send MMS messages....
LiquidSmooth d2usc
I too eagerly await an update for my GSIII on USCellular. This phone runs Lollipop really well. My only real complaint is the long boot time on LiquidSmooth and the resultant (unsettling) looping of the boot animation.
Thanks Orion116
I just wanted to say thanks and for all your hard work on the quickly dying d2usc or all usc variants. I currently have the "LS-LP-v4.1-2015-05-14-liquid_d2usc" from the liquidsmooth website. Is this the most recent update?
يريد ت

[Completed] Status error 7

I've searched XDA (and the web) without finding an answer but apologies if I've missed it somewhere. I have a Lenovo tab 3 10 inch tablet that is rooted. A new update has become available but I'm getting a "status error 7" so can't update. There is a XDA thread that tells how to modify the updater script to remove assert but there is no assert comments in the script. Can anyone please tell me what to remove in the script below to make it work? Thanks.
ui_print("Verifying current system...");
getprop("ro.build.fingerprint") == "Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S22_160606_Q1241_ROW:user/release-keys" ||
getprop("ro.build.fingerprint") == "Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S23_161201_Q1241_ROW:user/release-keys" ||
abort("Package expects build fingerprint of Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S22_160606_Q1241_ROW:user/release-keys or Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S23_161201_Q1241_ROW:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
apply_patch_check("EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d") || abort(""EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d" has unexpected contents.");
apply_patch_check("EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2") || abort(""EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2" has unexpected contents.");
show_progress(0.250000, 40);
if block_image_verify("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") then
ui_print("Verified system image...");
else
(range_sha1("/dev/block/bootdevice/by-name/system", "2,0,1") == "036c26f0f24f832a038a451242a578a49940cab6") || (range_sha1("/dev/block/bootdevice/by-name/system", "2,0,1") == "e2a3cb2dc451ef93e253c536c7bf190219814a15") || abort("/dev/block/bootdevice/by-name/system has been remounted R/W; reflash device to reenable OTA updates");
(range_sha1("/dev/block/bootdevice/by-name/system", "80,0,32770,32929,32931,33443,65535,65536,65538,66050,98303,98304,98306,98465,98467,98979,131071,131072,131074,131586,163839,163840,163842,164001,164003,164515,196607,196608,196610,197122,229375,229376,229378,229537,229539,230051,262143,262144,262146,262658,294911,294912,294914,295073,295075,295587,327679,327680,327682,328194,360447,360448,360450,360962,393215,393216,393218,393730,425983,425984,425986,426498,458751,458752,458754,459266,490994,491520,491522,492034,524287,524288,524290,524802,527229,557056,557058,589824,589826,622592,622594") == "8b2860bc3e2860a7efe6417a1132884f8fa19b89") ||
abort("system partition has unexpected contents");
endif;
show_progress(0.500000, 60);
ui_print("Patching system image after verification.");
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Patching boot image...");
show_progress(0.100000, 10);
apply_patch("EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d",
"-", c4378aa55de3d480fba1cfebc73a207bc3d84e1d, 12869024,
83911ae0e88ec1762a0dbffaf8f0898e040d5721, package_extract_file("patch/boot.img.p"));
ui_print("Patching recovery image...");
apply_patch("EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2",
"-", eda6d93b41c0fe93023b7e992f5fcbf4861719c2, 13350308,
c744e76f582f781f5a19d0e3ac59093b5d605d98, package_extract_file("patch/recovery.img.p"));
show_progress(0.150000, 4);
package_extract_file("NON-HLOS.bin", "/dev/block/bootdevice/by-name/modem");
package_extract_file("emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/aboot");
package_extract_file("rpm.mbn", "/dev/block/bootdevice/by-name/rpm");
package_extract_file("tz.mbn", "/dev/block/bootdevice/by-name/tz");
package_extract_file("sbl1.mbn", "/dev/block/bootdevice/by-name/sbl1");
set_progress(1.000000);​
tmarsh12345 said:
I've searched XDA (and the web) without finding an answer but apologies if I've missed it somewhere. I have a Lenovo tab 3 10 inch tablet that is rooted. A new update has become available but I'm getting a "status error 7" so can't update. There is a XDA thread that tells how to modify the updater script to remove assert but there is no assert comments in the script. Can anyone please tell me what to remove in the script below to make it work? Thanks.
ui_print("Verifying current system...");
getprop("ro.build.fingerprint") == "Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S22_160606_Q1241_ROW:user/release-keys" ||
getprop("ro.build.fingerprint") == "Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S23_161201_Q1241_ROW:user/release-keys" ||
abort("Package expects build fingerprint of Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S22_160606_Q1241_ROW:user/release-keys or Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S23_161201_Q1241_ROW:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
apply_patch_check("EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d") || abort(""EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d" has unexpected contents.");
apply_patch_check("EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2") || abort(""EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2" has unexpected contents.");
show_progress(0.250000, 40);
if block_image_verify("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") then
ui_print("Verified system image...");
else
(range_sha1("/dev/block/bootdevice/by-name/system", "2,0,1") == "036c26f0f24f832a038a451242a578a49940cab6") || (range_sha1("/dev/block/bootdevice/by-name/system", "2,0,1") == "e2a3cb2dc451ef93e253c536c7bf190219814a15") || abort("/dev/block/bootdevice/by-name/system has been remounted R/W; reflash device to reenable OTA updates");
(range_sha1("/dev/block/bootdevice/by-name/system", "80,0,32770,32929,32931,33443,65535,65536,65538,66050,98303,98304,98306,98465,98467,98979,131071,131072,131074,131586,163839,163840,163842,164001,164003,164515,196607,196608,196610,197122,229375,229376,229378,229537,229539,230051,262143,262144,262146,262658,294911,294912,294914,295073,295075,295587,327679,327680,327682,328194,360447,360448,360450,360962,393215,393216,393218,393730,425983,425984,425986,426498,458751,458752,458754,459266,490994,491520,491522,492034,524287,524288,524290,524802,527229,557056,557058,589824,589826,622592,622594") == "8b2860bc3e2860a7efe6417a1132884f8fa19b89") ||
abort("system partition has unexpected contents");
endif;
show_progress(0.500000, 60);
ui_print("Patching system image after verification.");
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Patching boot image...");
show_progress(0.100000, 10);
apply_patch("EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d",
"-", c4378aa55de3d480fba1cfebc73a207bc3d84e1d, 12869024,
83911ae0e88ec1762a0dbffaf8f0898e040d5721, package_extract_file("patch/boot.img.p"));
ui_print("Patching recovery image...");
apply_patch("EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2",
"-", eda6d93b41c0fe93023b7e992f5fcbf4861719c2, 13350308,
c744e76f582f781f5a19d0e3ac59093b5d605d98, package_extract_file("patch/recovery.img.p"));
show_progress(0.150000, 4);
package_extract_file("NON-HLOS.bin", "/dev/block/bootdevice/by-name/modem");
package_extract_file("emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/aboot");
package_extract_file("rpm.mbn", "/dev/block/bootdevice/by-name/rpm");
package_extract_file("tz.mbn", "/dev/block/bootdevice/by-name/tz");
package_extract_file("sbl1.mbn", "/dev/block/bootdevice/by-name/sbl1");
set_progress(1.000000);​
Click to expand...
Click to collapse
Greetings and welcome to assist. Be very careful about removing the asserts check, it is there because the firmware you are flashing is not for your device and may brick your device. The get prop limes of the updater script are where your model is being checked
Regards
Sawdoctor
tmarsh12345 said:
Greetings and welcome to assist. Be very careful about removing the asserts check, it is there because the firmware you are flashing is not for your device and may brick your device. The get prop limes of the updater script are where your model is being checked
Click to expand...
Click to collapse
Thanks for the welcome! It is the correct update as I downloaded it from the system OTA alert. Not sure which lines to remove.
tmarsh12345 said:
Thanks for the welcome! It is the correct update as I downloaded it from the system OTA alert. Not sure which lines to remove.
Click to expand...
Click to collapse
Do you have root ? If you do edit your buildprop to match that in the first 2 lines of the script or edit the getprop lines in the script to match your buildprop
sawdoctor said:
Do you have root ? If you do edit your buildprop to match that in the first 2 lines of the script or edit the getprop lines in the script to match your buildprop
Click to expand...
Click to collapse
I'll try to edit the script I think but don't know what to replace. The script has 3 getprops, the buildprop has a series of ro.build commands, how do I match them?
tmarsh12345 said:
I'll try to edit the script I think but don't know what to replace. The script has 3 getprops, the buildprop has a series of ro.build commands, how do I match them?
Click to expand...
Click to collapse
Sorry for the late reply but I found this
https://forum.xda-developers.com/thinkpad-tablet/general/update-fail-t3531794
it seems like you are not the only one having this issue and it is a problem with lenovo
Good Luck
Sawdoctor
tmarsh12345 said:
Sorry for the late reply but I found this
https://forum.xda-developers.com/thi...-fail-t3531794
it seems like you are not the only one having this issue and it is a problem with lenovo
Good Luck
Sawdoctor
Click to expand...
Click to collapse
Thanks Sawdoctor. I noticed on lenovo's site that there may be an update to Marshmallow so I think the better solution is to revert to stock, run the update and wait for 6. So, if I do that, do I need to flash a stock rom or will a factory reset do it? Does a factory reset remove root?
tmarsh12345 said:
Thanks Sawdoctor. I noticed on lenovo's site that there may be an update to Marshmallow so I think the better solution is to revert to stock, run the update and wait for 6. So, if I do that, do I need to flash a stock rom or will a factory reset do it? Does a factory reset remove root?
Click to expand...
Click to collapse
A factory reset may not remove root as it is a system modification and you are only wiping data so I would flash stock rom first yes
Good Luck
Sawdoctor

Categories

Resources