Combination firmware. - General Questions and Answers

Hey guys and girls I'm really confused by combination firmware . I'm looking for some for a galaxy S10 lite .
Current firmware is g770fxxs4euf6
I've found some combination files but I'm not sure which one I need I read about numbers and codes having to match and don't want to get the wrong one so how do I know which is the right one please ?

hainguyenthao said:
Here it is G770FXXU4AUA1
But you will need pit token to flash it cause it is a new device model
Click to expand...
Click to collapse
Thank you appreciate it can I get that from original firmware ?

teamtatty11 said:
Hey guys and girls I'm really confused by combination firmware . I'm looking for some for a galaxy S10 lite .
Current firmware is g770fxxs4euf6
I've found some combination files but I'm not sure which one I need I read about numbers and codes having to match and don't want to get the wrong one so how do I know which is the right one please ?
Click to expand...
Click to collapse
If you look at the build number of a Samsung firmware, the 5th character from the right end of the build number is the "Binary version". In the build number of the firmware that you posted above, the 5th character from the right in that build number is a 4. This means that your firmware is a binary 4 firmware.
The binary version is important because it prevents a user from downgrading the firmware. When flashing a firmware file, if the binary version of what you are trying to flash is lower than the binary of the currently installed firmware, then you can not flash the lower binary firmware. You can only flash a firmware that has a binary version that is equal to or higher than the binary of the currently installed firmware.
In your case, you have a binary 4 firmware currently installed, this means you can not flash a binary 3, 2 or 1 firmware, you can only flash a binary 4 firmware or higher. If you ever flash a higher binary, for example, from binary 4 to binary 5, you could never go back to binary 4 and if you flash from binary 5 to binary 6, you could never go back to 5 or 4. You can never go back, you can stay where you are or go higher.

Droidriven said:
If you look at the build number of a Samsung firmware, the 5th character from the right end of the build number is the "Binary version". In the build number of the firmware that you posted above, the 5th character from the right in that build number is a 4. This means that your firmware is a binary 4 firmware.
The binary version is important because it prevents a user from downgrading the firmware. When flashing a firmware file, if the binary version of what you are trying to flash is lower than the binary of the currently installed firmware, then you can not flash the lower binary firmware. You can only flash a firmware that has a binary version that is equal to or higher than the binary of the currently installed firmware.
In your case, you have a binary 4 firmware currently installed, this means you can not flash a binary 3, 2 or 1 firmware, you can only flash a binary 4 firmware or higher. If you ever flash a higher binary, for example, from binary 4 to binary 5, you could never go back to binary 4 and if you flash. You can never go back, you can stay where you are or go higher.
Click to expand...
Click to collapse
Ahh thank you for the explanation I understand that now and have the correct firmware I believe .
Any idea how I can get a pit file ? I've got the stock firmware and tried adding .zip on the end but this didn't work for me .

teamtatty11 said:
Thank you appreciate it can I get that from original firmware ?
Click to expand...
Click to collapse
You should not need the PIT and if you do, it should be packed in the firmware file somewhere.
hainguyenthao said:
Here it is G770FXXU4AUA1
But you will need pit token to flash it cause it is a new device model
Click to expand...
Click to collapse

teamtatty11 said:
Ahh thank you for the explanation I understand that now and have the correct firmware I believe .
Any idea how I can get a pit file ? I've got the stock firmware and tried adding .zip on the end but this didn't work for me .
Click to expand...
Click to collapse
Your firmware should be in .tar format, if it isn't, you probably need to extract it until you get a .tar.md5, then flash that via Odin.

Droidriven said:
Your firmware should be in .tar format, if it isn't, you probably need to extract it until you get a .tar.md5, then flash that via Odin.
Click to expand...
Click to collapse
when i tried installing via odin it said i needed the pit file i'll keep playing and see where i can get appreciate the help .

teamtatty11 said:
when i tried installing via odin it said i needed the pit file i'll keep playing and see where i can get appreciate the help .
Click to expand...
Click to collapse
The PIT is usually packaged in the firmware file somewhere. Try extracting the files in the firmware then extract those files and keep extracting the files down, look through the extracted files until you find the PIT file.
Or
Do some Google searches for:
"PIT file for (your specific model number"
Or
If there are older versions of firmware for your model number that you can download, download one of them and extract it and keep extracting those files while looking through them until you find the PIT file.

teamtatty11 said:
when i tried installing via odin it said i needed the pit file i'll keep playing and see where i can get appreciate the help .
Click to expand...
Click to collapse
If none of that works, there is also a way to pull a PIT file from the device itself by using adb shell commands but I'm not sure if it requires rooting the device or not.
Yep, requires root.
https://www.getdroidtips.com/how-to-extract-pit-files-for-any-samsung-galaxy-device/

Droidriven said:
The PIT is usually packaged in the firmware file somewhere. Try extracting the files in the firmware then extract those files and keep extracting the files down, look through the extracted files until you find the PIT file.
Or
Do some Google searches for:
"PIT file for (your specific model number"
Or
If there are older versions of firmware for your model number that you can download, download one of them and extract it and keep extracting those files while looking through them until you find the PIT file.
Click to expand...
Click to collapse
Thank you the person above who commented said that only people with access to Samsung servers can get the pit file and it will cost 64 dollars so I'm not sure . I did try extract from firmware I got from sammobile but it was password protected and I couldn't seem to find a password anywhere . I'll keep digging though I've not got anything to lose at this point . All a learning curve . Really appreciate the help

Related

Failed Downgrading J700F

Hi all. I have Samsung Galaxy J7 2015 (SM-J700F). I just received the recent update (April 2017). However, I don't like it and want to downgrade to the previous one. I have downloaded Odin and the firmware which is J700FXXU2BPH3_J700FOLB2BPH2_XID or whatever you call it. It failed after trying to execute cm.bin file. I have done some research and I found that Samsung has locked the bootloader in order to prevent downgrading process. However, in those threads, they only mentioned about downgrading from Android 6 to Android 5. In my case, I just want to downgrade from the previous security update/patch in the same Android version which is Android 6. Is this still possible in my case to do downgrading to my desired version?
Samsung locks older bootloaders from being flashed. It is possible to downgrade the OS without downgrading the bootloader by just flashing all the .tar.md5 files in Odin EXCEPT for the "BL" one since that one is the bootloader. Good luck friend
NullaVisus said:
Samsung locks older bootloaders from being flashed. It is possible to downgrade the OS without downgrading the bootloader by just flashing all the .tar.md5 files in Odin EXCEPT for the "BL" one since that one is the bootloader. Good luck friend
Click to expand...
Click to collapse
Thanks for your reply. What do you mean by "BL"? I am new on this Odin thing.
alphamorpho said:
Thanks for your reply. What do you mean by "BL"? I am new on this Odin thing.
Click to expand...
Click to collapse
See attached picture. Your stock ROM should be a zip containing multiple files. ending in ".tar.md5" and beginning with "BL, AP, CP, and CSC" respectively. You just add and check all of the appropriate files EXCEPT for "BL"
NullaVisus said:
See attached picture. Your stock ROM should be a zip containing multiple files. ending in ".tar.md5" and beginning with "BL, AP, CP, and CSC" respectively. You just add and check all of the appropriate files EXCEPT for "BL"
Click to expand...
Click to collapse
My zip file only contains 1 file. And from the tutorial I have watched it belongs to AP section. But, I have resolved this problem by removing 3 files, sboot.bin, cm.bin & modem.bin.

Please help I wiped my note 9 from TWRP and Odin is stuck at recovery.img

Hi guy I am panicking here I accidentally wiped everything from my samsung note 9 and there is no OS on the phone. I tried to flash older firmware but Odin is stuck at recovery and the phone shows a red line saying "SW REV. CHECK FAIL(BOOTLOADER) DEVICE: 6, BINARY:5
PLEASE SOMEONE HELP ME
Skulper said:
Hi guy I am panicking here I accidentally wiped everything from my samsung note 9 and there is no OS on the phone. I tried to flash older firmware but Odin is stuck at recovery and the phone shows a red line saying "SW REV. CHECK FAIL(BOOTLOADER) DEVICE: 6, BINARY:5
PLEASE SOMEONE HELP ME
Click to expand...
Click to collapse
The firmware that you flashed has a lower binary than the firmware that you had on the device before you modified it. You need to flash a firmware that has the same binary as what you had before you modified the device, or you need to flash a firmware that has a higher/newer binary than what you had.
See where the error says that your device is binary 6 but the firmware that you flashed has binary 5? You need a binary 6 or higher firmware. You can identify the binary by looking at the 5th character from the right end of the firmware build number.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
The firmware that you flashed has a lower binary than the firmware that you had on the device before you modified it. You need to flash a firmware that has the same binary as what you had before you modified the device, or you need to flash a firmware that has a higher/newer binary than what you had.
See where the error says that your device is binary 6 but the firmware that you flashed has binary 5? You need a binary 6 or higher firmware. You can identify the binary by looking at the 5th character from the right end of the firmware build number.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
i think i might be in love with you,(not in a weird way) this reply here saved my ass,i was stuck on odin wondering what was wrong & just this simple explanation helped me a lot
brokboi said:
i think i might be in love with you,(not in a weird way) this reply here saved my ass,i was stuck on odin wondering what was wrong & just this simple explanation helped me a lot
Click to expand...
Click to collapse
Be aware, once you flash a firmware that upgrades your device binary to a higher binary, you can not go back to the lower binary. A lot of times, flashing a firmware that upgrades the binary also upgrades the bootloader to a more secure bootloader that can't be unlocked, this kills virtually any chance of rooting the device or flashing TWRP custom recovery and/or custom ROMs. Then you're stuck with a device that you can't modify the way you want.
Droidriven said:
Be aware, once you flash a firmware that upgrades your device binary to a higher binary, you can not go back to the lower binary. A lot of times, flashing a firmware that upgrades the binary also upgrades the bootloader to a more secure bootloader that can't be unlocked, this kills virtually any chance of rooting the device or flashing TWRP custom recovery and/or custom ROMs. Then you're stuck with a device that you can't modify the way you want.
Click to expand...
Click to collapse
Ya i had that in mind so i flashed accordingly & i have unlocked bootloader with twrp not that i needed it though, cuz i just wanted to use samsung dex
brokboi said:
Ya i had that in mind so i flashed accordingly & i have unlocked bootloader with twrp not that i needed it though, cuz i just wanted to use samsung dex
Click to expand...
Click to collapse
Have you used TWRP to create a android backup of your stock ROM after you got it fixed? If not, do so, then store a copy of the backup on a PC or USB flashdrive, external sdcard, etc.. That backup can be used to restore your device, if needed.

Downgrade Samsung Galaxy A6 from Android 10 to Android 8

Hello,
We have a big issue. We have a custom application that was installed on Samsung Galaxy A6 phones. After upgrading Android the application won't install anymore.
I need to downgrade operating system from Android 10 to Android 8 on these phones, as they came original.
The big issue is I cannot downgrade the bootloader in order to install stock firmware of Android 8 from sammobile.com
Can anybody help me?
Thank you
Doesn't the stock firmware contain bootloader?
Tab E said:
Doesn't the stock firmware contain bootloader?
Click to expand...
Click to collapse
Yes, contain bootloader but I cannot revert from a higher bootloader version to a previous bootloader version using Odin
Oh yes you will get SW REV. CHECK FAIL. DEVICE: 3. BINARY: 2." error
Extract the andorid 8 firmware with 7 zip. Delete all files ending with
".bin" repack the firmware to ".tar and flash it with odin
Tab E said:
Extract the andorid 8 firmware with 7 zip. Delete all files ending with
".bin" repack the firmware to ".tar and flash it with odin
Click to expand...
Click to collapse
the stock files have extension .tar.md5(5 files: BL, AP, CP, CSC)
I tried what you said, but when I repack with .tar extension ODIN do not read the files. Anyway, I did not found system.bin, image.bin, recovery.bin or files like this. Are just two .bin files(modem.bin and another one)
robertanisoiu said:
the stock files have extension .tar.md5(5 files: BL, AP, CP, CSC)
I tried what you said, but when I repack with .tar extension ODIN do not read the files. Anyway, I did not found system.bin, image.bin, recovery.bin or files like this. Are just two .bin files(modem.bin and another one)
Click to expand...
Click to collapse
Delte the BL
This is the bootloader file.
Tab E said:
Delte the BL
This is the bootloader file.
Click to expand...
Click to collapse
And I load in Odin only AP, CP and CSC files wihout any modification?
robertanisoiu said:
And I load in Odin only AP, CP and CSC files wihout any modification?
Click to expand...
Click to collapse
Yes
Tab E said:
Yes
Click to expand...
Click to collapse
I tried but, unfortunately, I receive the error: "kernel rev check fail device 6 binary 2(boot)". The actual bootloader is 5, the Android 8 bootloader version is 2.

Downgrading Bootloader in Samsung

Does anyone know how to downgrade bootloader in Samsung (M51)? I'm trying to rollback to OneUI 2.5 from 3.1 but it keeps giving me sw error
Wondering what sense it would make to downgrade phone's bootloader:
A bootloader helps to load the operating system or runtime environment to add programs to memory and provide access for components. It is needed to run the startup process, initialize the hardware, and pass control to the kernel, which initializes the operating system.
AlanDias17 said:
Does anyone know how to downgrade bootloader in Samsung (M51)? I'm trying to rollback to OneUI 2.5 from 3.1 but it keeps giving me sw error
Click to expand...
Click to collapse
No, you can't downgrade bootloader on Samsung unless the downgraded bootloader has a binary version equal to the binary version of your currently installed bootloader. For example, if the binary version of your currently installed bootloader is binary 4, you can flash the downgraded bootloader if it is also binary 4 but you cannot flash a bootloader that is binary 3, 2 or 1.
xXx yYy said:
Wondering what sense it would make to downgrade phone's bootloader:
A bootloader helps to load the operating system or runtime environment to add programs to memory and provide access for components. It is needed to run the startup process, initialize the hardware, and pass control to the kernel, which initializes the operating system.
Click to expand...
Click to collapse
Downgrading bootloader in order to flash custom recovery or root the device is a common practice if the currently installed bootloader can't be unlocked or does not allow flashing TWRP or rooting.
xXx yYy said:
Wondering what sense it would make to downgrade phone's bootloader:
A bootloader helps to load the operating system or runtime environment to add programs to memory and provide access for components. It is needed to run the startup process, initialize the hardware, and pass control to the kernel, which initializes the operating system.
Click to expand...
Click to collapse
Rationally speaking I'd rather stay on stable version of Android 10 OneUI 2.5 than on Android 11 OneUI 3.1. For me, it's buggy and camera quality got worsen. Updated bootloader isn't the issue but it's the reason I can't downgrade my OS.
Droidriven said:
No, you can't downgrade bootloader on Samsung unless the downgraded bootloader has a binary version equal to the binary version of your currently installed bootloader.
Click to expand...
Click to collapse
So now it's impossible in my situation since bootloader versions don't match since September security patch. Now that sucks.
AlanDias17 said:
So now it's impossible in my situation since bootloader versions don't match since September security patch. Now that sucks.
Click to expand...
Click to collapse
That is usually the case for Samsung owners. In the past, downgrading was possible but not on today's device's. It is rare and few and far between that a Samsung can be downgraded these days. Virtually impossible across the board. This is something to consider when buying Samsung devices and when a stock update is possible.
Me personally, I never update a device with stock updates unless things start having issues or stop working due to not updating to keep up with changing technology. I don't update unless absolutely necessary, I put the update off as long as possible.
My current device has been notifying me for months that an update is available but I have it paused so that it doesn't download. Maybe I'll update at some point in the future, maybe not.
AlanDias17 said:
So now it's impossible in my situation since bootloader versions don't match since September security patch. Now that sucks.
Click to expand...
Click to collapse
There is one potential workaround to downgrade, you can try extracting the system.img from the downgraded firmware then convert it to an Odin flashable .tar using 7zip to compress the file .tar format, select the highest level of compression. After extracting the system.img but before converting to .tar, try extracting the system.img itself then find where the kernel is packaged in the system.img then try finding what the binary version of the kernel is, if the kernel's binary version is lower than the binary version of the currently installed kernel, you will not be able to flash the extracted system.img with the kernel packaged inside it, you will have to try removing it then convert to .tar as I described. Once you verified binary versions, convert the file to .tar then flash the system.img.tar.md5 via Odin, place the system.img.tar.md5 in the AP slot.
Basically, it works like this, if you boot into download mode and look at the revision values, you should see something like this:
swREV B: x K: x S: x
B is for bootloader binary version, K is for kernel binary version and S is for system binary version. If B is lower than your currently installed B version, you can't flash it, if K is lower than your currently installed K version, you can't flash it, if S is lower than your currently installed S version, you can't flash it. See if you can find out what the binary version of your currently installed bootloader, kernel and system are, then compare them to the binary version of the downgraded firmwares bootloader, kernel and system. B, K and S can be independent different values, for example, a firmware could have a B value of 4, a K value of 6 and a S value of 5, they do not always all 3 have the same value in a single firmware. Some updates may come with an updated B binary and an updated K binary but not an S binary, or any combination. In my example above, if a device has values of B: 4 K:6 S:5 and that device receives an update that has B:5 and S7 but no updated K value, after flashing, the device would have B:5 K:6 and S:7.
If any of the parts of the downgraded firmware have a binary version that is equal to its corresponding currently installed component, it can be flashed, but if any of them are lower than their corresponding currently installed components, they can't be flashed.
Sorry to be so long winded, just trying to explain how binary version works and can possibly be manipulated to downgrade each individual element, if the binary versions correspond correctl.
Droidriven said:
There is one potential workaround to downgrade, you can try extracting the system.img from the downgraded firmware then convert it to an Odin flashable .tar using 7zip to compress the file .tar format, select the highest level of compression. After extracting the system.img but before converting to .tar, try extracting the system.img itself then find where the kernel is packaged in the system.img then try finding what the binary version of the kernel is, if the kernel's binary version is lower than the binary version of the currently installed kernel, you will not be able to flash the extracted system.img with the kernel packaged inside it, you will have to try removing it then convert to .tar as I described. Once you verified binary versions, convert the file to .tar then flash the system.img.tar.md5 via Odin, place the system.img.tar.md5 in the AP slot.
Basically, it works like this, if you boot into download mode and look at the revision values, you should see something like this:
swREV B: x K: x S: x
B is for bootloader binary version, K is for kernel binary version and S is for system binary version. If B is lower than your currently installed B version, you can't flash it, if K is lower than your currently installed K version, you can't flash it, if S is lower than your currently installed S version, you can't flash it. See if you can find out what the binary version of your currently installed bootloader, kernel and system are, then compare them to the binary version of the downgraded firmwares bootloader, kernel and system. B, K and S can be independent different values, for example, a firmware could have a B value of 4, a K value of 6 and a S value of 5, they do not always all 3 have the same value in a single firmware. Some updates may come with an updated B binary and an updated K binary but not an S binary, or any combination. In my example above, if a device has values of B: 4 K:6 S:5 and that device receives an update that has B:5 and S7 but no updated K value, after flashing, the device would have B:5 K:6 and S:7.
If any of the parts of the downgraded firmware have a binary version that is equal to its corresponding currently installed component, it can be flashed, but if any of them are lower than their corresponding currently installed components, they can't be flashed.
Sorry to be so long winded, just trying to explain how binary version works and can possibly be manipulated to downgrade each individual element, if the binary versions correspond correctl.
Click to expand...
Click to collapse
can you try If it is possible to downgrade like this, I would like to downgrade the s10e and s7 versions. It would be great if you could make a guide for it.
kullanici32 said:
can you try If it is possible to downgrade like this, I would like to downgrade the s10e and s7 versions. It would be great if you could make a guide for it.
Click to expand...
Click to collapse
I don't think you get the bigger picture.
I was not saying "you absolutely CAN downgrade if you do it like this".
I was saying "IF it is even possible, you can TRY doing it like this".
I don't know if it would work or not on your specific model number, there are too many variables involved in whether it will be successful or not.
I don't own this specific model number so I cant test anything to see if it will work, not to mention that I'm not doing all that research or putting that kind of time, work and energy into making anything for a device that I don't own or use.
I've just given the idea and "possibility" of downgrading based on how some other Samsung devices have been able to successfully downgrade the OS(system) by extracting the system.img from the downgraded firmware and flashing the system.img by itself without flashing the rest of the firmware. This is not the same as downgrading the whole firmware, you're only replacing the upgraded system with the previous version of system but only "IF" the binary versions for system and kernel do not conflict.
If you want to know how to do this or if it will even work on your specific model number, you will have to do your own research, your own thinking and your own hard work to figure it out based on how other Samsung owners have done it.
There are threads here that describe doing this on various other Samsung models. They don't all go about it exactly the same, there are differences in the details and methods based on various device specific software requirements and restrictions. You might or might not be successful, you could even brick your device if you get something wrong. Find other threads that describe how others did it and then try the methods that they used but use your firmware files to make the changes that they made.
Droidriven said:
I don't think you get the bigger picture.
I was not saying "you absolutely CAN downgrade if you do it like this".
I was saying "IF it is even possible, you can TRY doing it like this".
I don't know if it would work or not on your specific model number, there are too many variables involved in whether it will be successful or not.
I don't own this specific model number so I cant test anything to see if it will work, not to mention that I'm not doing all that research or putting that kind of time, work and energy into making anything for a device that I don't own or use.
I've just given the idea and "possibility" of downgrading based on how some other Samsung devices have been able to successfully downgrade the OS(system) by extracting the system.img from the downgraded firmware and flashing the system.img by itself without flashing the rest of the firmware. This is not the same as downgrading the whole firmware, you're only replacing the upgraded system with the previous version of system but only "IF" the binary versions for system and kernel do not conflict.
If you want to know how to do this or if it will even work on your specific model number, you will have to do your own research, your own thinking and your own hard work to figure it out based on how other Samsung owners have done it.
There are threads here that describe doing this on various other Samsung models. They don't all go about it exactly the same, there are differences in the details and methods based on various device specific software requirements and restrictions. You might or might not be successful, you could even brick your device if you get something wrong. Find other threads that describe how others did it and then try the methods that they used but use your firmware files to make the changes that they made.
Click to expand...
Click to collapse
Can you put or give us a link to such a thread or post, we will follow the steps for our own device firmware.
What would be a way to use a TWRP backup with a v3 on a device that has say a v5 boot
Packtlike said:
What would be a way to use a TWRP backup with a v3 on a device that has say a v5 boot
Click to expand...
Click to collapse
If using TWRP, you should, "in theory", be able to flash whatever you want, including an older backup.
Droidriven said:
After extracting the system.img but before converting to .tar, try extracting the system.img itself then find where the kernel is packaged in the system.img
Click to expand...
Click to collapse
Could you please explain how do I go about "extracting the system.img iself"?
Droidriven said:
No, you can't downgrade bootloader on Samsung unless the downgraded bootloader has a binary version equal to the binary version of your currently installed bootloader. For example, if the binary version of your currently installed bootloader is binary 4, you can flash the downgraded bootloader if it is also binary 4 but you cannot flash a bootloader that is binary 3, 2 or 1.
Click to expand...
Click to collapse
What does "unless" mean in the first sentence above? I mean, if the only possibility for replacing an installed bootloader is using another bootloader with equal or higher binary version, then we are not downgrading anything, or are we? I am a bit confused.
zogoibi said:
Could you please explain how do I go about "extracting the system.img iself"?
Click to expand...
Click to collapse
Extract the contents from the firmware file to get to the various .img/bin files in the firmware, find the system.img file, extract it's contents to get to the various files/folders in the system img. Then you find whatever parts of the system.img that you want/need then do whatever it is that you need to do with them.
zogoibi said:
What does "unless" mean in the first sentence above? I mean, if the only possibility for replacing an installed bootloader is using another bootloader with equal or higher binary version, then we are not downgrading anything, or are we? I am a bit confused.
Click to expand...
Click to collapse
It means that it is possible to have a firmware that has a lower "bootloader" version than the firmware currently installed on a device but an equal "binary"version as the firmware currently installed. For example, if a device has firmware installed on it that has bootloader "y" with binary 4, they could flash a firmware that has bootloader "x"(x being lower than y) and the same binary 4, equivalent binary but lower actual bootloader version, which downgrades the bootloader version but not the binary version. If it had bootloader "x" but had binary 3 or lower, then, yes, what you say would apply.
Droidriven said:
Extract the contents from the firmware file to get to the various .img/bin files in the firmware, find the system.img file, extract it's contents to get to the various files/folders in the system img. Then you find whatever parts of the system.img that you want/need then do whatever it is that you need to do with them.
Click to expand...
Click to collapse
Thank you. I already got that I have to gut apart system.img. But my question was: how do I do that? Anyway, I already found the answer: using simg2img command to transform system.img to raw format, then loopmounting it. But now, how do I find the kernel file as per your comment above: "find where the kernel is packaged in the system.img" ? There are one thousand files inside, and none of them seem to qualify as the kernel. Besides, on a developer forum I've read that the kernel is not inside system.img, but inside boot.img. And how to gut apart boot.img?
After a good deal of search, it seems I got the answer to that question too: getting a copy of android_booting_tools, which has the command unpackbootimg (since abootimg couldn't do the job and exited with error "not a valid Android Boot image") Once unpacked boot.img, voilá, the kernel is there (and definitely not inside system.img): the file named boot.img-zimage.
BUT!! Now, what do I want the kernel file for, if what I need is to downgrade the bootloader? Your instructions are a bit unclear in that point.
Droidriven said:
It means that it is possible to have a firmware that has a lower "bootloader" version than the firmware currently installed on a device but an equal "binary"version as the firmware currently installed. For example, if a device has firmware installed on it that has bootloader "y" with binary 4, they could flash a firmware that has bootloader "x"(x being lower than y) and the same binary 4, equivalent binary but lower actual bootloader version, which downgrades the bootloader version but not the binary version. If it had bootloader "x" but had binary 3 or lower, then, yes, what you say would apply.
Click to expand...
Click to collapse
OK. I think I understood this part. Thanks.
zogoibi said:
Thank you. I understood what you meant: gut apart system.img. But my question was: how do I do that? Anyway, I already found the answer: using simg2img command to transform system.img to raw format, then loopmounting it. But now, how do I find the kernel as per your comment above: "find where the kernel is packaged in the system.img" ? There are one thousand files inside, and none of them seem to qualify as the kernel. Besides, as I've searched out there, in a developer forum I've read that the kernel is not in system.img, but in boot.img. And how to gut apart boot.img?
It seems I got the answer to that question either: downloading android_booting_tools, which has the command unpackbootimg (since abootimg couldn't do the job and exited with error "not a valid Android Boot image") Once unpacked boot.img, voilá, the kernel is there (and definitely not in system.img): the file named boot.img-zimage.
BUT!! Now, what the heck do I do with the kernel file, if what I need is to downgrade the bootloader? Your instructions are a bit unclear in that point.
OK. I think I understood this part. Thanks.
Click to expand...
Click to collapse
I use 7zip.
You asked how to extract the system.img, not the kernel.
The boot.img is not the bootloader. If you're trying to downgrade the bootloader then you should be trying to use the bootloader, but you may or may not need other parts of the downgraded firmware also in order for the bootloader to not cause the device to hard rock or block the flash. What you would or wouldn't need, I don't know, it usually requires tinkering to find the right recipe. Trial and error, experimenting with mixing different parts of each firmware to see what will or won't work together.
Also, it may require unlocking the bootloader and/or using a modified version of Odin to flash a modified firmware or modified .img files.
That is all "IF" it is even possible or safe to attempt Your milage may vary.
Droidriven said:
You asked how to extract the system.img, not the kernel.
Click to expand...
Click to collapse
I begun by quoting a post where you supposedly explained a 'potential' workaround for downgrading the bootloader (I qhote: "there is one potential workaround to downgrade"). As per your instructions, one should first extract 'system.img itself' in order to get hold of the kernel. And that's why I asked how to do it. Obviously the end point was to find the kernel, as per your instructions. But it turned out the kernel is not in system.img. I wonder what Is, then, the point in that part of your instructions.
Droidriven said:
The boot.img is not the bootloader.
Click to expand...
Click to collapse
Obviously not. I haven't said that. I just said that I found out that kernel is inside boot.img, not inside system.img.
Droidriven said:
If you're trying to downgrade the bootloader then you should be trying to use the bootloader
Click to expand...
Click to collapse
Well, I can also say: "if you're trying to help people downgrading the bootloader (which is the title of this thread), then you should be trying to help people downgrading the bootloader."
Droidriven said:
There is one potential workaround to downgrade, you can try extracting the system.img from the downgraded firmware then convert it to an Odin flashable .tar using 7zip to compress the file .tar format, select the highest level of compression. After extracting the system.img but before converting to .tar, try extracting the system.img itself then find where the kernel is packaged in the system.img then try finding what the binary version of the kernel is, if the kernel's binary version is lower than the binary version of the currently installed kernel, you will not be able to flash the extracted system.img with the kernel packaged inside it, you will have to try removing it then convert to .tar as I described. Once you verified binary versions, convert the file to .tar then flash the system.img.tar.md5 via Odin, place the system.img.tar.md5 in the AP slot.
Basically, it works like this, if you boot into download mode and look at the revision values, you should see something like this:
swREV B: x K: x S: x
B is for bootloader binary version, K is for kernel binary version and S is for system binary version. If B is lower than your currently installed B version, you can't flash it, if K is lower than your currently installed K version, you can't flash it, if S is lower than your currently installed S version, you can't flash it. See if you can find out what the binary version of your currently installed bootloader, kernel and system are, then compare them to the binary version of the downgraded firmwares bootloader, kernel and system. B, K and S can be independent different values, for example, a firmware could have a B value of 4, a K value of 6 and a S value of 5, they do not always all 3 have the same value in a single firmware. Some updates may come with an updated B binary and an updated K binary but not an S binary, or any combination. In my example above, if a device has values of B: 4 K:6 S:5 and that device receives an update that has B:5 and S7 but no updated K value, after flashing, the device would have B:5 K:6 and S:7.
If any of the parts of the downgraded firmware have a binary version that is equal to its corresponding currently installed component, it can be flashed, but if any of them are lower than their corresponding currently installed components, they can't be flashed.
Sorry to be so long winded, just trying to explain how binary version works and can possibly be manipulated to downgrade each individual element, if the binary versions correspond correctl.
Click to expand...
Click to collapse
Hi, I know this thread is quite old. But i have a Rooted Galaxy M23 (SM-M236B) and in odin it says B:2 K:2 S:2. I was waiting for an software update and sawed that there was one update in that it says that is bit is 3, Questions: 1. If I install the bit 3 software i would not be able to install again a 2 bit software? 2. My bootloader is unlocked, does applying the update locks the bootloader? And 3. How do I know if the update makes my bootloader locked permanently?
Mr. Electrinix said:
Hi, I know this thread is quite old. But i have a Rooted Galaxy M23 (SM-M236B) and in odin it says B:2 K:2 S:2. I was waiting for an software update and sawed that there was one update in that it says that is bit is 3, Questions: 1. If I install the bit 3 software i would not be able to install again a 2 bit software? 2. My bootloader is unlocked, does applying the update locks the bootloader? And 3. How do I know if the update makes my bootloader locked permanently?
Click to expand...
Click to collapse
1) yes, if you flash the binary 3 update, you will not be able to downgrade to a 2 binary, UNLESS the bootloader is unlocked and you use "patched Odin" or Cosmy's Odin to flash the downgraded firmware.
2) I don't know if flashing the update will lock the bootloader or not, you would have to research that yourself to see what results other users of your exact same model got after flashing the exact same update build number that your update has.
3) You would have to find other users that have the exact same model number device that you have and find a user that has flashed the exact update that you are asking about.
***Note***
If the update that you are asking about is a atock OTA update via the system update option in system settings, you will have to unroot the device then boot into recovery and wipe the cache partition (but not factory reset) then reboot the device, then do the update via settings. Stock OTA updates cannot safely be applied on devices that have been rooted, modified system partition or have custom recovery installed. You have to have clean, unrooted, unmodified stock firmware with stock recovery.
If you are manually flashing the update via Odin, you do not need to unroot before flashing the update, flashing via Odin "should" take care of that for you, depending on whether the update is a full update with a new system partition or a partial, incremental update.
Droidriven said:
1) yes, if you flash the binary 3 update, you will not be able to downgrade to a 2 binary, UNLESS the bootloader is unlocked and you use "patched Odin" or Cosmy's Odin to flash the downgraded firmware.
Click to expand...
Click to collapse
You can NEVER downgrade the bootloader/binary/bit level, even if you've bootloader unlocked it. OEM Unlock does NOT magically enable you to downgrade the binary

[Samsung] downgrade to android 9 Although different binary

Hello everyone
Is there any solution to downgrade my a750fn under android 10 and bootloader u5 to android 9
Found a problem in Android 10
I need Android 9 U5
Please help me . I searched a lot, I did not find
I'm starting to lose hope
Is there a solution or should I stop searching?
Alihero123 said:
Hello everyone
Is there any solution to downgrade my a750fn under android 10 and bootloader u5 to android 9
Found a problem in Android 10
I need Android 9 U5
Please help me . I searched a lot, I did not find
I'm starting to lose hope
Is there a solution or should I stop searching?
Click to expand...
Click to collapse
There probably isn't a binary 5 android 9. If you can unlock the boooader, you can use the modified version of Odin and flash Android 9 regardless of what binary it has.
Droidriven said:
There probably isn't a binary 5 android 9. If you can unlock the boooader, you can use the modified version of Odin and flash Android 9 regardless of what binary it has.
Click to expand...
Click to collapse
Yes, the bootloader is unlocked. But what do you mean by "modified version of odin"
Thanks for your reply
Alihero123 said:
Yes, the bootloader is unlocked. But what do you mean by "modified version of odin"
Thanks for your reply
Click to expand...
Click to collapse
There is this:
Patched Odin 3.13.1
For those looking for a modified, modded, or patched odin that is a newer build than all the fake and renamed prince comsy 3.12.3 versions floating around. I patch recent Odin versions to offer similar functionality to the princecomsy; in that...
forum.xda-developers.com
And there is the "Prince Comsy" version.
Droidriven said:
There is this:
Patched Odin 3.13.1
For those looking for a modified, modded, or patched odin that is a newer build than all the fake and renamed prince comsy 3.12.3 versions floating around. I patch recent Odin versions to offer similar functionality to the princecomsy; in that...
forum.xda-developers.com
And there is the "Prince Comsy" version.
Click to expand...
Click to collapse
Now just flash the software, despite the difference of binary
Alihero123 said:
Now just flash the software, despite the difference of binary
Click to expand...
Click to collapse
Try it, it can only work and you get what you want or it fails to flash and nothing happens. If it ifails and won't reboot, flash your Android 10 firmware and it should restore your device then you can try again. You may or may not need to/want to try extracting the Android 9 firmware files and the Android 10 firmware files then putting together your own modified Android 9 firmware using different parts of the Android 9 and the Android 10 firmware, mixing and matching the bootloader, kernel and system .img files until you get a combination that works.
Droidriven said:
Try it, it can only work and you get what you want or it fails to flash and nothing happens. If it ifails and won't reboot, flash your Android 10 firmware and it should restore your device then you can try again. You may or may not need to/want to try extracting the Android 9 firmware files and the Android 10 firmware files then putting together your own modified Android 9 firmware using different parts of the Android 9 and the Android 10 firmware, mixing and matching the bootloader, kernel and system .img files until you get a combination that works.
Click to expand...
Click to collapse
Thank you very much my friend

Categories

Resources