Code Monkey home page Code Monkey logo

Comments (12)

munjeni avatar munjeni commented on July 28, 2024 4

Fully Implemented

196bcf9
and
814bb78

let me know if all is ok.

from newflasher.

kholk avatar kholk commented on July 28, 2024 1

You keep the same structure for flashing. The system_other partition always gets flashed to the "other" slot. If current the current slot is A, then system_other goes on system_b. If current slot is B, then system_other goes on system_a.

You just have to replicate the commits that have been done in the FSC scripts, aka flashing XBL, bluetooth, dsp, modem, rdimage ALWAYS on both A and B slots.

from newflasher.

munjeni avatar munjeni commented on July 28, 2024

Hi, is it safe? I didn't see git commits on flashtool about flashing booth slots at the same time, can you point me to the right direction? I can add an prompt like I done for flashing persist sin file, but what about sin files with string "other" ? Its flashed to diferent slots when e.g. curront slot is a other is flashed to slot b and vice versa, see https://github.com/newflasher/newflasher/blob/master/newflasher.c#L1729 is it safe to flash "other "to booth slots?

from newflasher.

MartinX3 avatar MartinX3 commented on July 28, 2024

Hey
The commits are here
Androxyde/devices#98
Androxyde/devices#99
Androxyde/devices#100
I hope they explain enough :)

PS: A prompt asking if I want to flash it to both slots with a warning would be wonderful. :D

from newflasher.

munjeni avatar munjeni commented on July 28, 2024

I can add prompt e.g. press 'a' for sot a, press 'b' for slot 'b' instead of auto slot detection, in that case you would be abble to repeat flashing in order to flash to another slot. Is that enought? I no want make newflasher to flash booth slots in the same time since it will mess newflasher and probably many users will flash system_other to system partition or in worst case brick their phone, newflasher must be keept simple.

from newflasher.

MartinX3 avatar MartinX3 commented on July 28, 2024

is it possible to write "all" if you want to flash both partitions?
so you don't execute it by accident and only people will do it who know what they do.
So we devs could as example get a coffee and come back with both slots flashed. :)

from newflasher.

munjeni avatar munjeni commented on July 28, 2024

Its complicated because of e.g. system_other, its flashed always to diferent slot. E.g. if current slot is 'a', system is flashed to 'a' but system_other is flashed to slot 'b' always. So if you flash booth system_other will owerwrite system and vice versa. I no want to complicate newflasher, it must be keept simple. Implem,entation ca be done simple by making prompt 'a' or 'b' instead of autodetection, in that case you would be abble to flash to slot choice but not in booth, in order to flash to another slot you would need to set another slot in next flashing session, so you woul need two flashing sessions. Its what I can implement. Again I'm sorry I no want to complicate newflshaer.

from newflasher.

munjeni avatar munjeni commented on July 28, 2024

Only that five? Can you tell me reason or an link to the description about why it is need to be flashed to the booth slots, just need to make an warn prompt which will point user to the right description...

On the other side problem might be xbl, xbl is part of the bootloader.sin, that sin is whole flashed. How can I flash only xbl? Can I include whole bootloader.sin? Can I include modemst1 and modemst2 with modem?

from newflasher.

kholk avatar kholk commented on July 28, 2024

Should be fine. Though, I don't get why are you giving a choice, since that's a totally safe thing to do :D

from newflasher.

munjeni avatar munjeni commented on July 28, 2024

Nwflasher is based on usb sniff log, I just found that sony didn't flash booth slots and I didn;t implemented too. Can you tell me why this 5 things need to be on booth sloots? Anyway there should be always somebody who flash old bootloader to booth slots than flash new bootloader to one slots and want to keep old bootloader on diferent slot, I know that :)

from newflasher.

kholk avatar kholk commented on July 28, 2024

Let's say that you are not on a stock ROM and let's say that you have a custom Android system.
Your custom Android system implements A/B OTA, so, when an update is available, like a stock ROM, it installs the newly downloaded OTA on the other slot seamlessly from Android itself: this will switch your slot from A to B or vice versa.

After you switch your slot, your phone will load not only the OS from the newly selected slot, but also the other things, for example, it will load the bootloader that is present on that slot, with the firmwares present on that slot.

If you flash a new stock firmware, the modem, for example, or one of the other firmwares may be incompatible with an old bootloader (and that's why you need to flash all this stuff along with bootloader on both slots).

Regarding the bootloader itself, which is reason #1, on the Tama platform, the first release has a bad bug regarding slot B: this will be unable to boot a custom kernel image due to signature verification failing (the OEM unlock state is respected only on slot A in this case!).
New bootloader releases are addressing this bug.

Now, you get that, if you flash the new bootloader only on slot A, you will still have the bug on slot B!

That's not the only reason to update the xbl on both slots: there are many other reasons that I will not explain in order to stop writing an entire book on updates here on github :P

from newflasher.

munjeni avatar munjeni commented on July 28, 2024

Its clean, thank you! I'm clossing this.

from newflasher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.