Comments (12)
Fully Implemented
let me know if all is ok.
from newflasher.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Its clean, thank you! I'm clossing this.
from newflasher.
Related Issues (20)
- Xperia 1 III (XQ-BC72) error, no sync response HOT 6
- Hi, I have some problem when I flash my phone ,could you help me? HOT 2
- ERROR: Error CreateFile! failed with error code 5 as follows: HOT 1
- 'libusb.h' file not found (on M1 Macs) HOT 1
- Protocol error HOT 33
- Has chosen to skip userdata but userdata.sin is still flashed HOT 3
- Xperia 1 III(XQ-BC72) baseband lost HOT 1
- Support to switch between slots HOT 3
- libusb problems on M1 mac HOT 1
- pre-compiled arm builds does not flash on Raspberry Pi 4 HOT 4
- Can't flash a second hand xperia 10 iii HOT 4
- Add support for command line options HOT 1
- Xperia 1 III (XQ-BC72) flash failed HOT 3
- Newflasher stucks on MacOS Ventura with M1 HOT 1
- Flashing custom ROMs (or TWRP) HOT 1
- No usb device with vid:0x0fce pid:0xb00b tried bootloader,fastboot,recovery HOT 12
- Allow custom PID and VID HOT 1
- Can't compile into an exe using mingw HOT 2
- I/O issue when finishing flashing HOT 1
- Newflasher HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newflasher.