[Q] Modify update script in new OTA? - Atrix 4G Q&A, Help & Troubleshooting

I just went back to 1.83 to download the new official 4.5.9.1 OTA and found this in the update-script:
Code:
ui_print("updating AP20 bootloader ...");
assert(package_extract_file("ap20bl.img", "/tmp/ap20bl.img"),
write_raw_image("/tmp/ap20bl.img","nvmotota"),
delete("/tmp/ap20bl.img"));
assert(ap20bl.set_bl_update(00300000));
assert(ap20bl.set_mb_update(00080000));
Anyone think it could be possible to remove this from the script and safely install the update without burning fuses?

I was thinking the same with the leaked OTA but it seems stock ANDROID RECOVERY do checksum to check the integrity of the file before proceed with the update
SolidHelix said:
I just went back to 1.83 to download the new official 4.5.9.1 OTA and found this in the update-script:
Code:
ui_print("updating AP20 bootloader ...");
assert(package_extract_file("ap20bl.img", "/tmp/ap20bl.img"),
write_raw_image("/tmp/ap20bl.img","nvmotota"),
delete("/tmp/ap20bl.img"));
assert(ap20bl.set_bl_update(00300000));
assert(ap20bl.set_mb_update(00080000));
Anyone think it could be possible to remove this from the script and safely install the update without burning fuses?
Click to expand...
Click to collapse
Sent from my MB860 using XDA App

Could Tenfar's CWM install it?

SolidHelix said:
Could Tenfar's CWM install it?
Click to expand...
Click to collapse
It would essentially be the same as samcripp's cwm fruitcake for 2.34 wouldn't it? Extracting the portions that are safe and putting them into a cwm zip or kenn's method of fastboot flashing the img...

Related

[Q] Need some help exactly where to go from here.

I have a phone on 4.1.57 running GreyBlur. The Android Version is 2.2.1
I haven't accepted any OTA updates, but I recently found out that Gingerbread is out.
What is the best way to go on about rooting the phone after the gingerbread update? Flash back to stock, then update, then root? If someone could point me in the right direction it'd be greatly appreciated.
thank you.
1) root your phone...using this guide...http://www.youtube.com/watch?v=sQVVqxvg4Go (files that you need are under description of that video..)
2) unlock bootloader...using this guide..http://forum.xda-developers.com/showthread.php?t=1136261
3) install Tenfar's CWM using this guide...http://forum.xda-developers.com/showthread.php?t=1138541
4) choose a rom and flash Via CWM
***Stay away from RSD as much as possible***
deziguy420 said:
1) root your phone...using this guide...http://www.youtube.com/watch?v=sQVVqxvg4Go (files that you need are under description of that video..)
2) unlock bootloader...using this guide..http://forum.xda-developers.com/showthread.php?t=1136261
3) install Tenfar's CWM using this guide...http://forum.xda-developers.com/showthread.php?t=1138541
4) choose a rom and flash Via CWM
***Stay away from RSD as much as possible***
Click to expand...
Click to collapse
Is RSD and CWM the same thing? I don't understand what these two are.
If I'm on 2.2.2, stock w/ root and side-loading enabled, do I skip #1?
why isn't pudding used in any of this?
yes skip #1
RSD is a flashing tool...
CWM is used for flashing too but it's much safer then RSD...
in order to unlock your phone's bootloader u have to do one step using RSD here is a pretty good video tutorial http://www.youtube.com/watch?v=H02N4p9vEg0 on how to unlock ur bootloader...
on my previous post...2nd link is referring to pudding is it not?
deziguy420 said:
1) root your phone...using this guide...http://www.youtube.com/watch?v=sQVVqxvg4Go (files that you need are under description of that video..)
2) unlock bootloader...using this guide..http://forum.xda-developers.com/showthread.php?t=1136261
3) install Tenfar's CWM using this guide...http://forum.xda-developers.com/showthread.php?t=1138541
4) choose a rom and flash Via CWM
***Stay away from RSD as much as possible***
Click to expand...
Click to collapse
1) I'm already rooted.
2) You say to stay away from RSD but to unlock the bootloader I need to use it correct?
3) I already have Tenfar's CWM.
4) Just choose a ROM that's updated with Gingerbread and Flash?
Thanks for your help
rAFTA! said:
1) I'm already rooted.
2) You say to stay away from RSD but to unlock the bootloader I need to use it correct?
3) I already have Tenfar's CWM.
4) Just choose a ROM that's updated with Gingerbread and Flash?
Thanks for your help
Click to expand...
Click to collapse
there are 2 versions of cwm. one for locked and one for unlocked. after you unlock you have to fastboot flash recovery to get the good CWM then you can flash roms properly.
RSD the 1.83 pudding
Fastboot oem unlock to unlock bootloader
fastboot flash recovery to get the unlocked CWM
CWM recovery to install roms
As long as you have not OTA to gingerbread then RSD is ok but not recommended. If youhave the OTA gingerbread then rsd will hard brick your device if you try to go back to an older build.
rAFTA! said:
1) I'm already rooted.
2) You say to stay away from RSD but to unlock the bootloader I need to use it correct?
3) I already have Tenfar's CWM.
4) Just choose a ROM that's updated with Gingerbread and Flash?
Thanks for your help
Click to expand...
Click to collapse
if you already have Tenfar's CWM..then wt r u waiting for ...go crazy and start flashing...

Noob alert : flashing custom ROM problem

Hi all
I hope there's someone can help to better understand flashing HC ROM from rooted GB stock ROM.
And so I read globatron ( http://forum.xda-developers.com/showthread.php?t=1358758) :
If you are already S-OFF on gingerbread, or ran *this* procedure previously skip to Part 2.
Click to expand...
Click to collapse
SO I skip to PART 2:
I assume myself did the below since mine is rooted:
Rooted
Busybox
Secure flag turned off on the boot image
Stock recovery replaced by CWM
Click to expand...
Click to collapse
1. So I just connect to PC, double click ARUWizard.exe and it's done for stock Honeycomb?
Let's say I want to do install custom ROM.
I download:
3G-Wifi: f1a04839f7b187887c77b4ab552cc2fb HC-3G-light.zip
Click to expand...
Click to collapse
Here's my question. Why do I need to download HC-3G-light.zip?
I go to one of the HC custom ROM thread: http://forum.xda-developers.com/showthread.php?t=1409296
I read the instruction:-
Instructions:
1. Make sure you are running the correct Radio & Hboot, Follow GLOBATRON Guide or Paul Obrien Guide
2. Boot into recovery
3. Nandroid/Backup Current ROM
4. Flash Cool_ROM.zip
Click to expand...
Click to collapse
2. Can I just download the custom ROM, boot into recovery, backup current ROM, and then flash the Cool_ROM without using PC?
Is it because I need to flash using HC-3G-light.zip RUU (I assume there's ARUWizard.exe inside the HC-3G-light.zip) first before flashing the using method 2 as below:-
Method 2: Using bootloader - NOTE I strongly recommend using method 1.
Rename the downloaded file PG41IMG.zip
Transfer the file to the root of your SD card
Reboot to hboot, which will detect and install the update.
Note it will require two passes to complete the upgrade due to hboot change
Click to expand...
Click to collapse
At the end, it says:
If you used the light image now restore your nandroid backup or flash your custom ROM now - then you are finished.
Click to expand...
Click to collapse
Is this part that I use the custom ROM that I want?
Thanks guys. I got confused here with flashing ROM using RUU and flashing ROM using CWM...
If you do the full s off aru wizard you can flash roms freely without the light package. Disregard flashing boot.img if you have s off
Flyer
mcord11758 said:
If you do the full s off aru wizard you can flash roms freely without the light package. Disregard flashing boot.img if you have s off
Flyer
Click to expand...
Click to collapse
Please pardon my noobness.
The last time I did it is to s-off, install CWM and root only. I still using stock GB. So I didn't do any ARUWIZARD.exe thingy.
So.......
What is the first step I do? I did download the light package and I didn't see any ARUWIZARD in it. I guess I need to download the big file?
If on s off gingerbread, run the aru wizard. You will then be on honeycomb with s off. At that point in time you can freely flash honeycomb and ics roms
Flyer

[Q] Root

Hi,to everyone:
so,i'm newb,and i dont leave in the us,and i'm a proud owner of a Droid Dna.
As i dont be on the us,i cant have na OTA update,so i'm stock 1.15
And i have a few questions,help:
1) I'm going to do the Unlock using the Supercid,and do the htcdev process.
flash a new recovery,and install superuser.Correct?
the questions are:
1) Doing the unlock,i can place a ROM even the stock rom (deodexed or other)?
2) The process will be: remove the boot.img from the rom zip file
flash it manually,and them place the rom.zip file on the phone and flash it in recovery.
I think that the rom will not have the new kernel,so i think that i have to install it manually,will i be unrooted?
In this Post http://forum.xda-developers.com/showthread.php?t=2080200) it says that is the new update Rom,but does it have the original kernel,or i have to install it via recovery or manually??
Thanks for all the help you guys can give me!
sued said:
Hi,to everyone:
so,i'm newb,and i dont leave in the us,and i'm a proud owner of a Droid Dna.
As i dont be on the us,i cant have na OTA update,so i'm stock 1.15
And i have a few questions,help:
1) I'm going to do the Unlock using the Supercid,and do the htcdev process.
flash a new recovery,and install superuser.Correct?
the questions are:
1) Doing the unlock,i can place a ROM even the stock rom (deodexed or other)?
2) The process will be: remove the boot.img from the rom zip file
flash it manually,and them place the rom.zip file on the phone and flash it in recovery.
I think that the rom will not have the new kernel,so i think that i have to install it manually,will i be unrooted?
In this Post http://forum.xda-developers.com/showthread.php?t=2080200) it says that is the new update Rom,but does it have the original kernel,or i have to install it via recovery or manually??
Thanks for all the help you guys can give me!
Click to expand...
Click to collapse
1, I believe the answer is yes
2. In most cases, the boot.img is provided along with the rom as a separate download so no need of extraction. It has to be flashed using adb from your pc -usually right before you install the rom.
3. If you allow the ota update before you root you can not root, If after you've rooted and bootloader is unlocked, it will download but won't install-at least it did not for me. If you relock the bootloader and flash a to stock, I heard you can get the ota but you will not be able to unlock it again. Not sure on that part. Rumor says that this will get fixed soon but as f right now no.
Thanks
rootntootn said:
1, I believe the answer is yes
2. In most cases, the boot.img is provided along with the rom as a separate download so no need of extraction. It has to be flashed using adb from your pc -usually right before you install the rom.
3. If you allow the ota update before you root you can not root, If after you've rooted and bootloader is unlocked, it will download but won't install-at least it did not for me. If you relock the bootloader and flash a to stock, I heard you can get the ota but you will not be able to unlock it again. Not sure on that part. Rumor says that this will get fixed soon but as f right now no.
Click to expand...
Click to collapse
Thanks for your hep,at least you give me a hand.
I thank you from my heart

Root/Xposed - OTA

After taking root I'll still be able to update my phone using OTA? If so, the update will remove the root?
As updates OTA behave in relation to Xposed? Is everything going to work?
Sorry for the English, I used Google translator.
kubixmaster3009 said:
After taking root I'll still be able to update my phone using OTA? If so, the update will remove the root?
As updates OTA behave in relation to Xposed? Is everything going to work?
Sorry for the English, I used Google translator.
Click to expand...
Click to collapse
Unfortunately you can't update via OTA if your device is rooted.
To install OTA,
recover the ROM backup ( that you ''hopefully" made before rooting using TWRP ) from TWRP and then, install the OTA.
Edit: Or , (if you are patient enough to download the full ROM) you can dirty flash the full ROM and then install OTA.
When you do this, custom recovery (eg., twrp) will be replaced by stock oneplus recovery . Hence, you should again flash the custom recovery img through adb.
What if we extract the update file and only take the files that will not effect the recovery (the really updated files), make them into a flashable zip and overwrite the current system files?
Just dirty flash the full ROM, then the OTA zip(s) and after that root it again, flash Xposed or whatever you want.
There's no need to restore any backup or reflash recoveries etc.
Firefly1337 said:
Just dirty flash the full ROM, then the OTA zip(s) and after that root it again, flash Xposed or whatever you want.
There's no need to restore any backup or reflash recoveries etc.
Click to expand...
Click to collapse
You are right about dirty flashing the full ROM zip.
But, the recovery will be replaced by stock oneplus recovery when you install OTA update as of my experience.
sankarshan said:
You are right about dirty flashing the full ROM zip.
But, the recovery will be replaced by stock oneplus recovery when you install OTA update as of my experience.
Click to expand...
Click to collapse
Why should it be?
I can confirm from personal experience that this won't happen.
//Edit: Do you actually mean 'install' OTAs with the official updater in android itself? If so, then I don't know.
But by flashing the OTA zip (in recovery) it won't replace your recovery.
Firefly1337 said:
//Edit: Do you actually mean 'install' OTAs with the official updater in android itself? If so, then I don't know.
But by flashing the OTA zip (in recovery) it won't replace your recovery.
Click to expand...
Click to collapse
1.Yeah, I meant updating via "official updater".
2. That's one of the reasons why they(manually flashable OTA zips) are made. aren't they?
@sankarshan Yes you're right. I thought you meant flashing them as zip because I specifically spoke of flashing the OTA zips
winesh said:
What if we extract the update file and only take the files that will not effect the recovery (the really updated files), make them into a flashable zip and overwrite the current system files?
Click to expand...
Click to collapse
That's a great idea @winesh I also wonder if it is possible.
winesh said:
That's a great idea @winesh I also wonder if it is possible.
Click to expand...
Click to collapse
Are you talking to yourself? LOL

Manually Flash OTA Updates?

hey,
today i got notification about a new OTA update (H85010D)
but my phone is on TWRP Recovery so it's not possible to intall OTA.
is there any way to install this OTA update manually? or can i find it as zippable file?
The KDZ needs to be downloaded, extracted and made flashable in TWRP for that to work... Otherwise, you have to flash it with the LG Flash tool or LGUP.
I recommend waiting for autoprime to create a flashable h850 zip if you're not in a hurry.
karendar said:
The KDZ needs to be downloaded, extracted and made flashable in TWRP for that to work... Otherwise, you have to flash it with the LG Flash tool or LGUP.
I recommend waiting for autoprime to create a flashable h850 zip if you're not in a hurry.
Click to expand...
Click to collapse
Not necessarily. OTA could be flashed with TWRP, if we knew where the OTA zip is.
fonix232 said:
Not necessarily. OTA could be flashed with TWRP, if we knew where the OTA zip is.
Click to expand...
Click to collapse
That too, but then again, it's much cleaner to have a TWRP flashable zip. As to get the OTA flashed, you need to have an unrooted, unmodified system partition. The OTA does a diff on files and if you have any modifications, might just fail or cause other nonsense on your phone.
I personally just LGUP'ed my phone to V10d... Battery life is surprisingly better.
karendar said:
That too, but then again, it's much cleaner to have a TWRP flashable zip. As to get the OTA flashed, you need to have an unrooted, unmodified system partition. The OTA does a diff on files and if you have any modifications, might just fail or cause other nonsense on your phone.
I personally just LGUP'ed my phone to V10d... Battery life is surprisingly better.
Click to expand...
Click to collapse
Rooting is now systemless Except if you upgrade from a ROM that does /system modifications.
fonix232 said:
Rooting is now systemless Except if you upgrade from a ROM that does /system modifications.
Click to expand...
Click to collapse
Let me rephrase that to avoid further confusion:
You need an unmodified boot image (Which is modified by a SuperSU flash), an unmodified system partition (Removing system apps and files) and depending on the update, an unmodified recovery partition (Flashing TWRP). In other words, if you modify from stock ANYTHING, OTA has a chance of failing, even if flashed in TWRP... The OTA simply patches existing files and partitions. So it's really a waste of time to bother with the OTA version unless you're full stock. You're better off getting a TWRP flashable zip, it's much less of a headache.
karendar said:
Let me rephrase that to avoid further confusion:
You need an unmodified boot image (Which is modified by a SuperSU flash),
Click to expand...
Click to collapse
False. Boot.img is overwritten without checking previous version.
karendar said:
an unmodified system partition (Removing system apps and files) and depending on the update, an unmodified recovery partition (Flashing TWRP).
Click to expand...
Click to collapse
This is correct. However... Systemless SU and Xposed do not modify the system partition, thus making a pure OTA possible, through stock recovery.
karendar said:
In other words, if you modify from stock ANYTHING, OTA has a chance of failing, even if flashed in TWRP... The OTA simply patches existing files and partitions. So it's really a waste of time to bother with the OTA version unless you're full stock. You're better off getting a TWRP flashable zip, it's much less of a headache.
Click to expand...
Click to collapse
A TWRP flashable ZIP will result the same as an OTA - patches the system partition (without removing any additional files, e.g. new ringtones, apps, etc.), overwrites boot (and possibly recovery). If you root with the systemless option, you'll have to flash the root zip again, otherwise you should be fine.
I unlocked the bootloader, i'm in v20b, is possible have root?
danielg90 said:
I unlocked the bootloader, i'm in v20b, is possible have root?
Click to expand...
Click to collapse
850? Then yes.
Sent from my LGE LG-H830 using XDA Labs
Nick216ohio said:
850? Then yes.
Sent from my LGE LG-H830 using XDA Labs
Click to expand...
Click to collapse
How?

Categories

Resources