[GT-I9505G] 4.3 OTA update fails on APNHLOS assert - Error: Status 7

Search This thread

marcindpol

Senior Member
Jul 28, 2011
75
7
Yes, please guys make it happened. Wish we could install stock android on gt-i9505 int. And be always able to do OTA's just like Google edition owners. Not to mention having the same partition but that's probably not gonna happen..

Sent from my GT-I9505G using xda app-developers app
 

SamuriHL

Senior Member
Aug 5, 2010
3,418
2,200
Great work

---------- Post added at 08:29 PM ---------- Previous post was at 08:21 PM ----------



Great Work I have updated the OP in the GUIDE HERE now on to the next issue and the next. LOL, Can i use your modem package for the 4.2.2 odin firmware package that way we have something with everything?

Hell yeah. I'll upload the 4.2.2 modem files when I get to my laptop. I'll also teach everyone exactly what I did so people can do this on their own for future updates. I'm very glad I was able to contribute to the Samsung community!

Sent from my Xoom using Tapatalk 4
 

ChaoticUnreality

Senior Member
Jul 23, 2013
209
47
Okay read most of this thread and understood some of it. So questions
I have a GE S4 that all I have done is unlock the bootloader + root and then change the recovery. Then I took a recovery image before changing the rom which I just restored to. What exactly would I need to do to get the 4.3 OTA update.

My baseband version is 19505GUEUAMFD and the build number is JDQ39.I9505GUEUAMFD. I would like to get the 4.3 update so I can move my stock backups to 4.3
 

SamuriHL

Senior Member
Aug 5, 2010
3,418
2,200
You need stock recovery for 4.2.2 and then given the version you're on you should be able to just take the ota.

Sent from my Xoom using Tapatalk 4
 
  • Like
Reactions: illogic6

ChaoticUnreality

Senior Member
Jul 23, 2013
209
47
You need stock recovery for 4.2.2 and then given the version you're on you should be able to just take the ota.

Sent from my Xoom using Tapatalk 4

Good to know. Is there a link to get the stock recovery? I didn't think to back that up when I started all this. I found this thread but someone posted that using those doesn't get OTA updates but I'm not sure what else they have done to their phone through.
 

SamuriHL

Senior Member
Aug 5, 2010
3,418
2,200
You found the right thread. You only need the recovery img from that zip. That's what I used to restore my recovery partition to stock for 4.2.2.

Sent from my Xoom using Tapatalk 4

---------- Post added at 09:24 AM ---------- Previous post was at 08:48 AM ----------

http://www.mediafire.com/download/dtgrcyv9ux8g4u8/modem_422.tar.md5

There is a 4.2.2 baseband odin flash. It should work to downgrade the baseband in theory. It's different than the ones provided in the 4.2.2 full dump. A little explanation is in order. (Ok, so, this is going to be a long explanation with a lot of technical details.)

What I've done is rip open the update ota and look at the scripts contained within. The one I was originally looking for was how they build the recovery img. Simply put, they apply a recovery-from-boot.p to the boot.img file that's contained within the update zip. That one was fairly trivial to perform. Basically copy the boot.img and the recovery-from-boot.p to your /sdcard and run the applypatch command in a su shell to spit out the recovery.img file. The applypatch command for that looks like this:
Code:
su
cd /sdcard
applypatch boot.img recovery.img 6a1bef2e13ea3b9a4284565d560f7a2c0a17bf5d 9775360 07f4bc5b3cb20428a40d74dd0cff8a147d7155ef:recovery-from-boot.p

The baseband files were more complicated. The ones extracted from 4.2.2 and included in the 4.2.2 full dump didn't match the sha1 hash for the applypatch commands in the update-script. Here's the relevant lines from the update-script:

Code:
ui_print("Patching NON-HLOS modem image...");
apply_patch("EMMC:/dev/block/platform/msm_sdcc.1/by-name/apnhlos:9018112:de2de0523a88ce0781eb125b563ac0bb176bcb7e:9181952:c15e52d975b0b46478798a436c3feca3d4b755d7",
            "-", c15e52d975b0b46478798a436c3feca3d4b755d7, 9181952,
            de2de0523a88ce0781eb125b563ac0bb176bcb7e, package_extract_file("patch/NON-HLOS.bin.p"));
set_progress(0.894324);
ui_print("Patching MDM modem image...");
apply_patch("EMMC:/dev/block/platform/msm_sdcc.1/by-name/mdm:51976960:14ce52dce17261030fa5807a4d6d02b2ad061370:51944192:a43358aa04912437a98f3348a63d9bc88f3d7af4",
            "-", a43358aa04912437a98f3348a63d9bc88f3d7af4, 51944192,
            14ce52dce17261030fa5807a4d6d02b2ad061370, package_extract_file("patch/modem.bin.p"));

So what they're doing is patching the baseband partitions with the .p patch files. Basically, what we wanted to do is apply the patch files to the extracted baseband files. But since the hashes didn't match, the applypatch wasn't going to work. Frack! Then I realized...they include a size param in the apply patch. When you use dd to extract the partitions, it extracts the whole thing. So, I took just the number of bytes from the dd extracted file that the applypatch uses and BOOM! Sha1 hashes match the expected for the new files. Now for the applypatch commands. Like before, I copied the files to my /sdcard and then ran:

Code:
su
cd /sdcard
applypatch NON-HLOS.bin NON-HLOS_43.bin c15e52d975b0b46478798a436c3feca3d4b755d7 9181952 de2de0523a88ce0781eb125b563ac0bb176bcb7e:NON-HLOS.bin.p
applypatch modem.bin modem_43.bin a43358aa04912437a98f3348a63d9bc88f3d7af4 51944192 14ce52dce17261030fa5807a4d6d02b2ad061370:modem.bin.p

I copied them back off the /sdcard, renamed them, and followed the standard process for creating an odin tar md5 from them. That's how I've created them and the process we can use going forward for both recovery and baseband updates. Enjoy!
 

taney

Senior Member
Jan 30, 2007
248
71
Los Angeles
THANK YOU ALL!! I went from MG8 to MH1 without any issues!!! Will install stock recovery and try to update to 4.3 again.

YOU ARE ALL AMAZING! =)

mh1.png


Here's an update (without wiping!) =)

jwr66n.png
 
Last edited:

hamed.n.g1992

Member
Apr 10, 2019
9
0
odin APNHLOS error (NON-HLOS.bin)

WE HAVE A FIX

- See this post: http://xdaforums.com/showpost.php?p=44329396&postcount=35 (Mirror for the modem here.)

- Then this post: http://xdaforums.com/showpost.php?p=44332874&postcount=54

- i9505g_mfd_stock.tar.md5 can be found here: http://xdaforums.com/showthread.php?t=2388504

Obviously, these flashes are all done at your own risk. If you break your phone, we will laugh at you. Please shower @SamuriHL with your thanks.

~~~~~~~~~~~~~~~~~~~

The other thread was beginning to become difficult to read, so let's use this as our main hub for tackling this issue.

If you flashed one of the GT-I9505G 4.3 leaks, and cannot apply the 4.3 OTA, you are probably affected by this issue. Attached is a photo of what this error looks like.

I will do my best to continually update the first two posts with up to date information.

Here are the MH1 4.3 modem files: https://mega.co.nz/#!FsozybQD!AvrykxBO2jvx7hJL8mehmBl8GohfM5HerQ73nOeTh6Y
Here are the MFD 4.2.2 modem files: https://mega.co.nz/#!SdwWnIQK!CMGuL2Q0cNSRPJKJyPTicA6sW0JykFRU8xyhdo7bWMk

Here are the mount points for the GT-I9505g:

Code:
aboot -> /dev/block/mmcblk0p6
apnhlos -> /dev/block/mmcblk0p1
backup -> /dev/block/mmcblk0p24
boot -> /dev/block/mmcblk0p21
cache -> /dev/block/mmcblk0p18
efs -> /dev/block/mmcblk0p10
fota -> /dev/block/mmcblk0p23
fsg -> /dev/block/mmcblk0p25
m9kefs1 -> /dev/block/mmcblk0p13
m9kefs2 -> /dev/block/mmcblk0p14
m9kefs3 -> /dev/block/mmcblk0p15
mdm -> /dev/block/mmcblk0p2
misc -> /dev/block/mmcblk0p19
modemst1 -> /dev/block/mmcblk0p11
modemst2 -> /dev/block/mmcblk0p12
pad -> /dev/block/mmcblk0p9
param -> /dev/block/mmcblk0p20
persdata -> /dev/block/mmcblk0p27
persist -> /dev/block/mmcblk0p17
recovery -> /dev/block/mmcblk0p22
rpm -> /dev/block/mmcblk0p7
sbl1 -> /dev/block/mmcblk0p3
sbl2 -> /dev/block/mmcblk0p4
sbl3 -> /dev/block/mmcblk0p5
ssd -> /dev/block/mmcblk0p26
system -> /dev/block/mmcblk0p16
tz -> /dev/block/mmcblk0p8
userdata -> /dev/block/mmcblk0p28
~~~~~~~~~~~~~~~~~~~

Things we've tried to flash baseband MH1:

  1. Packaging NON-HLOS.bin and modem.bin in a tar and flashing with Odin. Flash errors out with a Fail(Auth) message.
  2. Pushing these two bins by Heimdall to the appropriate devs. Both fail. Will grab the specific error message when I get home.
  3. Zipping and flashing the BINs in TWRP. Flash completed successfully for me. Still shows old baseband when you reboot to system.
  4. DD'ing bins to appropriate devs with root ADB shell. Appears to write successfully. Still shows old baseband in About Phone menu.
  5. Fastboot oem lock, fastboot oem unlock, then attempting to flash the baseband


Hi, good time ,,,I am a home user , i have samsung j510f and upgrade this J510FXXU2BRB2 4file next flashed 1154TWRP_3.0.2_SM_J5_2016_Nougat_7.1.1 by odin And installed tis packages last year:
1154XposedInstaller_3.1.4 - Greenify-ROOT-4.0.1-Mod
it worked well but yesterday i wanted to upgrade again the mistake started from here!!! I took my mobile to the recovery mod and delet every data and reset factory from recovery mod!!!!!!!!next stoped on samsung logo!!!!
i go download mod that flash by new rom THR-J510FXXU2BRE2-J510FOJV2BRD1 4file but error APNHLOS!!!
i try many rom 4file , 1file by odin does not work and error APNHLOS!!!
next try Z3X_SAMSUNG_TOOL_PRO_29.5_Crack that did not work!!!error APNHLOS!!!
next download COMBINATION_FA60_J510FXXU2AQB2 and flash bye ODIN 307 Justttttt and only by ODIN 307!!!!!now it turns on but if try flash again warns error APNHLOS!!!
What should I do to correct?Please help me....Thank you very much
I send the results flash for you in link
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    WE HAVE A FIX

    - See this post: http://xdaforums.com/showpost.php?p=44329396&postcount=35 (Mirror for the modem here.)

    - Then this post: http://xdaforums.com/showpost.php?p=44332874&postcount=54

    - i9505g_mfd_stock.tar.md5 can be found here: http://xdaforums.com/showthread.php?t=2388504

    Obviously, these flashes are all done at your own risk. If you break your phone, we will laugh at you. Please shower @SamuriHL with your thanks.

    ~~~~~~~~~~~~~~~~~~~

    The other thread was beginning to become difficult to read, so let's use this as our main hub for tackling this issue.

    If you flashed one of the GT-I9505G 4.3 leaks, and cannot apply the 4.3 OTA, you are probably affected by this issue. Attached is a photo of what this error looks like.

    I will do my best to continually update the first two posts with up to date information.

    Here are the MH1 4.3 modem files: https://mega.co.nz/#!FsozybQD!AvrykxBO2jvx7hJL8mehmBl8GohfM5HerQ73nOeTh6Y
    Here are the MFD 4.2.2 modem files: https://mega.co.nz/#!SdwWnIQK!CMGuL2Q0cNSRPJKJyPTicA6sW0JykFRU8xyhdo7bWMk

    Here are the mount points for the GT-I9505g:

    Code:
    aboot -> /dev/block/mmcblk0p6
    apnhlos -> /dev/block/mmcblk0p1
    backup -> /dev/block/mmcblk0p24
    boot -> /dev/block/mmcblk0p21
    cache -> /dev/block/mmcblk0p18
    efs -> /dev/block/mmcblk0p10
    fota -> /dev/block/mmcblk0p23
    fsg -> /dev/block/mmcblk0p25
    m9kefs1 -> /dev/block/mmcblk0p13
    m9kefs2 -> /dev/block/mmcblk0p14
    m9kefs3 -> /dev/block/mmcblk0p15
    mdm -> /dev/block/mmcblk0p2
    misc -> /dev/block/mmcblk0p19
    modemst1 -> /dev/block/mmcblk0p11
    modemst2 -> /dev/block/mmcblk0p12
    pad -> /dev/block/mmcblk0p9
    param -> /dev/block/mmcblk0p20
    persdata -> /dev/block/mmcblk0p27
    persist -> /dev/block/mmcblk0p17
    recovery -> /dev/block/mmcblk0p22
    rpm -> /dev/block/mmcblk0p7
    sbl1 -> /dev/block/mmcblk0p3
    sbl2 -> /dev/block/mmcblk0p4
    sbl3 -> /dev/block/mmcblk0p5
    ssd -> /dev/block/mmcblk0p26
    system -> /dev/block/mmcblk0p16
    tz -> /dev/block/mmcblk0p8
    userdata -> /dev/block/mmcblk0p28
    ~~~~~~~~~~~~~~~~~~~

    Things we've tried to flash baseband MH1:

    1. Packaging NON-HLOS.bin and modem.bin in a tar and flashing with Odin. Flash errors out with a Fail(Auth) message.
    2. Pushing these two bins by Heimdall to the appropriate devs. Both fail. Will grab the specific error message when I get home.
    3. Zipping and flashing the BINs in TWRP. Flash completed successfully for me. Still shows old baseband when you reboot to system.
    4. DD'ing bins to appropriate devs with root ADB shell. Appears to write successfully. Still shows old baseband in About Phone menu.
    5. Fastboot oem lock, fastboot oem unlock, then attempting to flash the baseband
    6
    Well I'm not gonna be back home for a couple hours but if you do figure it out please share

    Sent from my GT-I9505G using Tapatalk 2

    I just need information. I have a patched modem.bin and patched NON-HLOS.bin. I want to make an ODIN flashable file for someone to try. NOTICE I SAID TRY!!! :) Whoever does this, it's going to be experimental until someone has the, uh, nerve to try flashing it.

    Info I need. Which file is added to the tar first? modem.bin or NON-HLOS.bin?

    ---------- Post added at 11:04 PM ---------- Previous post was at 10:31 PM ----------

    WARNING: This is completely untested! Flash at your OWN RISK!!!

    http://www.mediafire.com/?xtp9844uj42ov58

    That is my ODIN flashable modem updater for 4.3. It should bring you up to the MH1 baseband if it works. The modem.bin and NON-HLOS.bin were created from patched 4.2.2 files using applypatch...the same as what the OTA update does.

    Seriously, though, I have not tested this so I really only want someone WAY more experienced in S4 land than I am to flash this. I'm not new to android by any means, but, my experience up to this point has been in Motorola land. I genuinely hope this works and if it does I'll document how I created this and the recovery img fully for everyone's amusement.
    5
    You found the right thread. You only need the recovery img from that zip. That's what I used to restore my recovery partition to stock for 4.2.2.

    Sent from my Xoom using Tapatalk 4

    ---------- Post added at 09:24 AM ---------- Previous post was at 08:48 AM ----------

    http://www.mediafire.com/download/dtgrcyv9ux8g4u8/modem_422.tar.md5

    There is a 4.2.2 baseband odin flash. It should work to downgrade the baseband in theory. It's different than the ones provided in the 4.2.2 full dump. A little explanation is in order. (Ok, so, this is going to be a long explanation with a lot of technical details.)

    What I've done is rip open the update ota and look at the scripts contained within. The one I was originally looking for was how they build the recovery img. Simply put, they apply a recovery-from-boot.p to the boot.img file that's contained within the update zip. That one was fairly trivial to perform. Basically copy the boot.img and the recovery-from-boot.p to your /sdcard and run the applypatch command in a su shell to spit out the recovery.img file. The applypatch command for that looks like this:
    Code:
    su
    cd /sdcard
    applypatch boot.img recovery.img 6a1bef2e13ea3b9a4284565d560f7a2c0a17bf5d 9775360 07f4bc5b3cb20428a40d74dd0cff8a147d7155ef:recovery-from-boot.p

    The baseband files were more complicated. The ones extracted from 4.2.2 and included in the 4.2.2 full dump didn't match the sha1 hash for the applypatch commands in the update-script. Here's the relevant lines from the update-script:

    Code:
    ui_print("Patching NON-HLOS modem image...");
    apply_patch("EMMC:/dev/block/platform/msm_sdcc.1/by-name/apnhlos:9018112:de2de0523a88ce0781eb125b563ac0bb176bcb7e:9181952:c15e52d975b0b46478798a436c3feca3d4b755d7",
                "-", c15e52d975b0b46478798a436c3feca3d4b755d7, 9181952,
                de2de0523a88ce0781eb125b563ac0bb176bcb7e, package_extract_file("patch/NON-HLOS.bin.p"));
    set_progress(0.894324);
    ui_print("Patching MDM modem image...");
    apply_patch("EMMC:/dev/block/platform/msm_sdcc.1/by-name/mdm:51976960:14ce52dce17261030fa5807a4d6d02b2ad061370:51944192:a43358aa04912437a98f3348a63d9bc88f3d7af4",
                "-", a43358aa04912437a98f3348a63d9bc88f3d7af4, 51944192,
                14ce52dce17261030fa5807a4d6d02b2ad061370, package_extract_file("patch/modem.bin.p"));

    So what they're doing is patching the baseband partitions with the .p patch files. Basically, what we wanted to do is apply the patch files to the extracted baseband files. But since the hashes didn't match, the applypatch wasn't going to work. Frack! Then I realized...they include a size param in the apply patch. When you use dd to extract the partitions, it extracts the whole thing. So, I took just the number of bytes from the dd extracted file that the applypatch uses and BOOM! Sha1 hashes match the expected for the new files. Now for the applypatch commands. Like before, I copied the files to my /sdcard and then ran:

    Code:
    su
    cd /sdcard
    applypatch NON-HLOS.bin NON-HLOS_43.bin c15e52d975b0b46478798a436c3feca3d4b755d7 9181952 de2de0523a88ce0781eb125b563ac0bb176bcb7e:NON-HLOS.bin.p
    applypatch modem.bin modem_43.bin a43358aa04912437a98f3348a63d9bc88f3d7af4 51944192 14ce52dce17261030fa5807a4d6d02b2ad061370:modem.bin.p

    I copied them back off the /sdcard, renamed them, and followed the standard process for creating an odin tar md5 from them. That's how I've created them and the process we can use going forward for both recovery and baseband updates. Enjoy!
    4
    I just need information. I have a patched modem.bin and patched NON-HLOS.bin. I want to make an ODIN flashable file for someone to try. NOTICE I SAID TRY!!! :) Whoever does this, it's going to be experimental until someone has the, uh, nerve to try flashing it.

    Info I need. Which file is added to the tar first? modem.bin or NON-HLOS.bin?

    ---------- Post added at 11:04 PM ---------- Previous post was at 10:31 PM ----------

    WARNING: This is completely untested! Flash at your OWN RISK!!!

    http://www.mediafire.com/?xtp9844uj42ov58

    That is my ODIN flashable modem updater for 4.3. It should bring you up to the MH1 baseband if it works. The modem.bin and NON-HLOS.bin were created from patched 4.2.2 files using applypatch...the same as what the OTA update does.

    Seriously, though, I have not tested this so I really only want someone WAY more experienced in S4 land than I am to flash this. I'm not new to android by any means, but, my experience up to this point has been in Motorola land. I genuinely hope this works and if it does I'll document how I created this and the recovery img fully for everyone's amusement.

    Amazeballs. I flashed this via ODIN and it successfully updated my firmware (confirmed with the RootBox ROM I was running). Then I ODIN flashed i9505g_mfd_stock.tar.md5, factory reset, and rebooted into recovery. Applied the OTA zip without error. Now I'm all up and running on MH1, etc. Note: I did not need to unroot. When the OTA had finished, the SuperSU installer still came up (damn frog).

    So THANK. YOU.
    2
    Great work

    ---------- Post added at 08:29 PM ---------- Previous post was at 08:21 PM ----------



    Great Work I have updated the OP in the GUIDE HERE now on to the next issue and the next. LOL, Can i use your modem package for the 4.2.2 odin firmware package that way we have something with everything?

    Hell yeah. I'll upload the 4.2.2 modem files when I get to my laptop. I'll also teach everyone exactly what I did so people can do this on their own for future updates. I'm very glad I was able to contribute to the Samsung community!

    Sent from my Xoom using Tapatalk 4