If you are very interested in installing the latest & Official Andrlid 5.0.1 I9500XXUHOA7 Lollipop firmware on your galaxy s4 then follow the installing process which is given below.
?Install USB drivers for your Samsung Galaxy S4 on the computer
?Try to create a backup of your data with any custom recovery.
?Enable USB Debugging Mode on your device to connect it with the computer and use Android SDK. [Go to Settings>> Developer Options>> check the USB Debugging option.]
?Please make sure that your battery is above 80%.
? Device must be factory unlocked.
?The phone will loose the custom ROM which will be replaced with the Stock ROM
?Your Samsung Galaxy S4 will loose the rooted version after installing the Official ROM.
?Please nlte that Android 5.0.1 Lollipop I9500XXUHOA7 will work only with Galaxy S4 I9500.
?If you try to flash this in any other device/variat you device might be bricked & We are not responsible for that. Do it on your own risk.
How to install official Android 5.0.1 Lollipop I9500XXUHOA7 on Galaxy S4 (I9500)::
Step-1: Extract the downloaded firmware zip using any extracting tool
Step-2: Extract the Odin zip to get Odin3 v.3.09.exe with a few other files
Step-3: Power off the Galaxy S4
Step-4: Enter into Download Mode by pressing and holding Home, Power and Volume Down buttons together
Note: Ensure that you have installed the proper USB drivers installed on your PC.
Step-5: Launch Odin as Administrator on the computer. Click on the Odin tool then right-click and select Run as Administrator from the drop down menu
Step-6: Connect the S4 to the PC using USB cable while it is in Download mode. Wait for some time until Odin detects the device. When the phone is connected successfully, the ID: COM box in Odin will turn light blue with the COM port number. This step might take some time
Step-7: In Odin select the files in the following order
Tap on the BL button and select BL_I9500XXUHOA7-CL3943544_QB3767100_REV00-user_low_ship.tar.md5
Tap on AP button and select AP_I9500XXUHOA7-CL3943544_QB3767100_REV00-user_low_ship.tar.md5
Tap on CP button and select CP_I9500XXUHOA7-CL3943544_QB3767100_REV00-user_low_ship.tar.md5
Tap on CSC button and select CSC_SER_I9500SERHOA7_ CL3943544_ QB3767100_REV00-user_low_ship.tar.md5
Step-8: Enable Auto Reboot and F.Reset Time checkboxes in Odin. Ensure Re-Partition checkbox is not checked
Step-9: Double check everything and click the Start button in Odin
Step-10: The installation will start now. It would take about five minutes to complete the installation. Once the process is completed, the phone will restart automatically. When you see the home screen on the phone, disconnect the phone from the computer
Your Galaxy S4 should now be running I9500XXUHOA7 official build based on Android 5.0.1 Lollipop. Navigate to Settings>> About phone to verify the Android version of the handset.
If you any questions or something else please mention them under the comment section.