[GUIDE] How to check the INTERGITY of a ROM - Android Software Development

Hello everyone !
Many a times it happens that we get "Status 7 Error" in Recovery while trying to Flash a Rom or sometimes it may happen that Rom is working fine for everyone but when we try to install the same Rom it gets stuck at Boot or some components don't work as they should .
*What to do in such cases ???
-Well the FIRST thing to do in such situations is check the Integrity of the Rom file that you have downloaded rather than blaming the developer or spamming threads.
*What is File Integrity ???
-State of a computer (electronic) file in which no alteration, addition, or deletion has been made, and which is exactly the way it was stored by its originator.
So in simple words , the Rom file is same as the Author has uploaded it on server and is not altered i.e. corrupted while downloading .
Here I'll Explain three methods to test the integrity of the Rom that you have downloaded :
1.Using 7-Zip or WinRar (Extremely Easy).
2.Using a software to check the MD5-Check sum (Moderately Easy).
3.Using a file explorer to check the MD5-Check sum (Extremely Easy).
Using 7-Zip​
1.Download :
So first of all you need to download the 7-zip compression software which is Open Source (which means FREE!!!) and is one of the Best and reliable compression Tool for Windows/Linux
[Download Link : http://www.7-zip.org/download.html ]
2.Install :
duh ...! Obviously now you have to install 7-zip
3.Perform Integrity check on Rom file :
Go to the location where the Rom that you desire to install is present .
Now,
Right Click on the Rom File > Select 7-zip > Select "Test Archive"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If the result dialog box shows "No Errors" then your Rom file is perfectly fine !
Using MD5 Check Sum​
*What is MD5 Checksum ???
-The MD5 message-digest algorithm is a widely used cryptographic hash function producing a 128-bit (16-byte) hash value, typically expressed as a 32 digit hexadecimal number. MD5 has been utilized in a wide variety of security applications. It is also commonly used to check data integrity..
In Simple words MD5 is a mathematical algorithm which performs the calculation on the File and out comes a long hexedecimal number which is refered to as the MD5 checksum.
On PC :
1.Download & Install :
Get any software which calculates MD5 checksum .
Or you can use online tool as well .
2.Perform Integrity check on Rom file :
Select the Rom file and gets it's MD-5 Check Sum value .
for eg. you get it as D93975A6E8CDA54EB61B29A801FA82E9
3.Compare the values with original one :
Now Compare the value that you got in above step with the one given by the Rom's developer or in the Hosting Site .
If they are same then your file is not corrupted !
In the following video I'll demonstrate how to Check the File Integrity using online MD5 Calculation Tool :
​
On phone :
1.Download & Install :
Get any app that checks the Md5 checksum
(I'm using a file explorer here : Explorer)
2.Perform Integrity check on Rom file :
Select the Rom file and long press it > Go to properties > last option is the MD5 checksum.
for eg. you get it as D93975A6E8CDA54EB61B29A801FA82E9
3.Compare the values with original one :
Now Compare the value that you got in above step with the one given by the Rom's developer or in the Hosting Site .
If they are same then your file is not corrupted !
NOTE:
*If your checksum matches the one posted by the dev, you can be sure you have an accurate copy of the downloaded file. If they don't match, then your download is either corrupt, or possibly some kind of trojan.
*You should never install any software if the MD5 sum does not match the one provided by the dev. Instead, try downloading the file again, perhaps from a different mirror. If all else fails, contact the dev as it's possible they might have posted an incorrect checksum, or may have an alternate means by which you can obtain the file.
REMEMBER : Do this procedure twice (Any of the two methods):
1. When you download the Rom(or any file) on PC
2. After transferring the Rom(or any file) to your device .

Hi The "A" Factor. A very good and clear guide, to check the integrity of every downloaded and transferred file could do our life easier, avoiding lots of unnecessary problems.
Thanks a lot.
Cheers.
Sent from my LG P76020L-EUR-XX unlocked and rooted

Related

[APP]Auto sign multiple APKs and ZIPs v1.2.2 (08/08/2011)

Hello, XDA-members
I have created a GUI application (based on signapk.jar) which sign multiple APKs and ZIPs very quickly, in one clic!
INSTALLATION INSTRUCTIONS:
1. Extract Archive 'Sign+.zip'
2. Launch 'Sign+.exe'
3. Choose files (APKs and ZIPs together it's possible and clic on "Sign files"
SCREENSHOOT:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
CHANGELOG :
08/08/2011 v1.2.2 :
- Fixed deleting of dirs that should be not removed
08/07/2011 v1.2.1 :
- Fixed bugs with files's names
03/05/2011 v1.2 :
- Add the "Change keys function",
- Works with ANDROIDD files,
- Some bugs are now fixed
18/03/2011 v1.1 :
- Add the drag and drop function
17/03/2011 v1.0 :
- Initial Release
Download v1.2.2 : here or here
Download v1.2.1 : here or here
Download v1.2 : here or here
Download v1.1 : here (in this moment the link is down, but I don't know why! )
To follow the application update, follow me on Twitter : here
Sorry, I have few time, in this moment, to make any update of this software, but if you get bugs, please report me them and I fix them when I'll have time.
You can make new key with openssl command (just change NAME and PASSWORD):
Code:
openssl genrsa -3 -out NAME.pem 2048
openssl req -new -x509 -key NAME.pem -out NAME.x509.pem -days 10000 \
-subj "/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]"
openssl pkcs8 -in NAME.pem -topk8 -outform DER -out NAME.pk8 -passout PASSWORD
Thanx for this.
This will be a very, very handy tool. Definitely trying this out when I get home.
Just 2 questions-
Is drag and drop possible?
Also how about signing with different keys like signaptic?
The drag and drop is not possible for the moment I try to add in the next version!
For signing with other I don't know the application use signapk.jar with privatekey.pk8 and publickey.x509.pem so if you want to use another keys just replace the two key file and rename it with the same name (privatekey.pk8 and publickey.x509.pem)
Thx for this
Sent from HTC Knight using MikShift..because CM7 got overrated like CWM
Can you also make this for a mac (Osx 10.x) ?
Thanj you.
I don't know if I make this for OS X and Linux too! Maybe in few week!
is this supported to sign ROM?
i use this to sign CM7.0.0 ROM after i remove some media files (notification/ringtone) and install to HTC Desire, all is good, but whenever i try to flash UOT theme zip, my phone stuck at static boot screen.
is there anything about signing will cause this problem? or the problem is about something else?
anyone have a mirror for the files? fileserve shows as file not there. thx!
Thanks for this and fixing the links.
Very nice tool, this will come in handy!
Other DL links maybe ? This one is not working for me
Flawless. Thanks. I will be following you on Twitter for updates.
Error
when i try to apply sing for my apk file unsigned...the program said " 0 operation(s) success on1 ".
What's happens???? any solution please???
Not signing zip file
stefanoccio said:
when i try to apply sing for my apk file unsigned...the program said " 0 operation(s) success on1 ".
What's happens???? any solution please???
Click to expand...
Click to collapse
Apk was signed (not yet tested), but same error when trying to sign a zip file
Awesome! Been signing my update.zips without problem
Sent from my HTC Hero using XDA App
stefanoccio said:
when i try to apply sing for my apk file unsigned...the program said " 0 operation(s) success on1 ".
What's happens???? any solution please???
Click to expand...
Click to collapse
same problem here
stefanoccio said:
when i try to apply sing for my apk file unsigned...the program said " 0 operation(s) success on1 ".
What's happens???? any solution please???
Click to expand...
Click to collapse
I'm getting the same error. Any solutions?
I noticed the developer hasn't been active lately. Is this project still active?
I'm not active for the moment but I have noticed the bug and I release a new version in few weeks!
Release updated in 1.2.1, fixed the bugs with file's name
malware found when i tried to extract it and run it....
3. Choose files (APKs and ZIPs together it's possible and clic on "Sign files"
What that mean?
Apk is from original file?
And Zip is from apk that was adited?
I new here and need more detail.
Thank

[DRIVERS]Latest HTC Drivers [4.2.0.001]

Latest HTC Drivers
Latest HTC Drivers extracted from HTC Sync v3.3.21 and HTC Sync Manager v2.0.61.0
Latest Driver Version (HTC Sync): 4.0.1.001
Latest Driver Version (HTC Sync Manager): 4.2.0.001
BMP Drivers are the same for both sets of drivers.
For those who don't want to have to download 120 some MB of bloatware called HTC Sync
Instructions:
Determine if your system is 32-bit or 64-bit
Download the BMP Driver for your OS type (x86 version if on 32-bit, x64 if on 64-bit)
Download the newest HTCDrivers file (choose either the "EXE" or "MSI" driver file, but not both)
Disable any antivirus program(s) present
Run both files downloaded above (the BMP.msi and the HTCDriver file)
Re-enable your antivirus program(s)
Click to expand...
Click to collapse
Links
ALL DRIVER FILES: www.mediafire.com/?o10b16j5b3r3o
OEM SETUP FILES: www.mediafire.com/?1rwmleoe17akd
Updated on 6.6.13
HTCDriver_4.2.0.001.exe
SyncManager_2.0.61.0.exe
Updated on 4.23.13
HTCDriver_4.1.0.001.msi
HTCDriver_4.1.0.001.exe
HTCPluginChecker.exe
HTCSync_3.3.21.exe
SyncManager_2.0.53.0.exe
SyncManager_2.0.53.0_STRIPPED.exe
Updated on 4.02.13
RemoveOldHTCDriver3.exe (packaged in HTC Sync Manager v2.0.41.0)
Removed duplicate x86 BMP Driver
Updated instructions with link to determine if on 32-bit or 64-bit
Updated on 3.31.13
HTCDriver_4.0.1.002.exe
HTCDriver_4.0.1.002.msi
IPTInstaller_4.0.8.msi
Updated on 3.6.13
HTC_BMP_USB_Driver_x86_1.0.5375.msi
HTC_BMP_USB_Driver_x64_1.0.5375.msi
HTCDriver_4.0.1.001.exe
HTCDriver_4.0.1.001.msi
Updated on 11.28.12
HTC BMP USB Driver_x86.msi DELETED: Turned out to be the same 1.0.5375 as above. Download from link above.
HTCDriver_3.0.0.023.msi
Click to expand...
Click to collapse
------------
MD5 CHECKSUMS
Sometimes downloading from the internet can yield a corrupt download. To prevent this, make sure you always check the md5 checksum (also known as "md5sum") of the file. This method verifies the digital integrity of the file by verifying its digital signature with the MD5 algorithm.
After you download each file, make sure to check that the md5sum matches what is given.
Code:
[LIST]
[*]25912deacc5d55528e223ec7b99705cc [B]*HTCDriver_3.0.0.023.msi[/B]
[*]220c41f3b03f42190899db8cb081b5c6 [B]*HTCDriver_4.0.1.001.exe[/B]
[*]a578d837343fe2542ecf405a630d46a0 [B]*HTCDriver_4.0.1.001.msi[/B]
[*]8223ec1c2aa71503b431a0daabb23154 [B]*HTCDriver_4.0.1.002.exe[/B]
[*]4dfbd4ae8662124d06e0a04db2065069 [B]*HTCDriver_4.0.1.002.msi[/B]
[*]bf24b0adc2f792ee4180ca545e4b60a0 [B]*HTC_BMP_USB_Driver_x32_1.0.5375.msi[/B]
[*]7b461095d56f9a6814d8f3e14cac0859 [B]*HTC_BMP_USB_Driver_x64_1.0.5375.msi[/B]
[*]96e6d181192a995214493a6828e4287d [B]*IPTInstaller_4.0.8.msi[/B]
[*]92bd34ec7787e631231c68aba392b6e7 [B]*RemoveOldHTCDriver3.exe[/B]
[*]f281d8994ab9f1315828ac2226a9bb75 [B]*HTCDriver_4.1.0.001.exe[/B]
[*]ed6d5fc5cc7dcca653f7a0beab01035d [B]*HTCDriver_4.1.0.001.msi[/B]
[*]96589c02be46fd7b85160d5b15f4c88a [B]*HTCPluginChecker.exe[/B]
[*]36ba2c8627ba18c6540bfa25be3b67fc [B]*HTCSync_3.3.21.exe[/B]
[*]a356e5c828c7cb3869dc67058e5bbc2c [B]*SyncManager_2.0.53.0.exe[/B]
[*]da1e40e478725d3e829243e84043d21f [B]*SyncManager_2.0.53.0_STRIPPED.exe[/B]
[/LIST]
Click to expand...
Click to collapse
How to check the md5sum of a file:
Windows:
For windows you need to download the md5sum binary. I recommend the one from my dev-host.
After that, copy the file you're trying to verify to the directory where where you downloaded the "md5sum.exe"
Once that is finished, do SHIFT+RIGHT CLICK (inside the folder window) and choose "Open command window here"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then type the following ("fileNameHere" must include the extension):
Code:
md5sum fileNameHere
That will output a hash, which you can compare to the ones above.
Linux: No need to download anything, md5sum binaries are included in all distros, as far as I know.
Open a terminal and type the following ("fileNameHere" must include the extension):
Code:
$ cd path/to/download/folder
$ md5sum fileNameHere
Two important notes:
This method can be used with any files you download, as long as the download site (or the dev themself) provides the correct md5sum.
If any of the digits do not match exactly, you need to download the file again.
Awesome, man! Thanks!
Bump
Updated Drivers to version 4.1.0.001.
Two important note, from here on out I will also be including fast links for the Sync setup files (HTC Sync and Sync Manager), as well as a SyncManager_XXXXX_STRIPPED.exe which will literally be ONLY the Sync Manager program, all drivers stripped out from it (as in, it won't install any drivers, hence a much smaller file size).
You will now be able to find the FULL setup files for HTC Sync and Sync Manager inside the Original HTC Sync Folder of the linked mediafire folder in the OP. This will provide a much faster download if you do want to install either one, rather than a capped speed download from the HTC site itself.
Well here's the changelog
Updated on 4.23.13
HTCDriver_4.1.0.001.msi
HTCDriver_4.1.0.001.exe
HTCPluginChecker.exe
HTCSync_3.3.21.exe
SyncManager_2.0.53.0.exe
SyncManager_2.0.53.0_STRIPPED.exe
Updated on 6.6.13
HTCDriver_4.2.0.001.exe
SyncManager_2.0.61.0.exe
Download link not working

[Tool]Apk File Manager v2.5.0.0[Windows][30/4/2014]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introducing Apk File Manager, a tool engineered for android phone user. If you have lots of apps scattered all over your pc, you can use this tool to categorize and find duplicate apps with their version and package name. So, you can find out the latest version of any app easily. This tool can do hours of boring works in a minute.
Main Features :
Fully unicode supported
AFM can deal with unlimited apk file
Drag and drop files/folders to load apk files
Full control on apk file renaming format
You can choose, AFM will save the process log or not
If you want AFM will remember your last used output path
It's your choice that apk files will be copied in output path or will create folders with their package names in output path then copy the files in the respective folders.
There is a option to select that same version apk file will be replaced or will be renamed like apkfile-1.apk, apkfile-2.apk
You can select if AFM will remove source apk files or not
Changelog :
v3.0.0.0 :
More defined logs
API names and versions updated
Now you can choose your own separator for renaming
Reset preferences to default button added
Application is now totally resizable
v2.5.0.0 :
Illegal character bug fixed
Output folder not exist bug fixed
Drag and drop files/folders to load apk files
Now apk list will show only apk file name
New preference window
Full control on apk file renaming format
v2.0.0.0 :
Fully unicode supported
Now AFM can remove source apk files also
Two type of apk file renaming option in preference
v1.0.0.0 :
Initial Release
Bugs :
You should find and let me know (I DIDN'T FIND ANY)
Download :
v3.0.0.0 :
Apk File Manager v3.0.0.0 By BDFreak.rar
MD5: 573a8f8c20359a84279af08425e29ce1
XDA:DevDB Information
Apk File Manager, a Tool/Utility for the Android General
Contributors
BDFreak
Version Information
Status: Stable
Current Stable Version: v3.0.0.0
Stable Release Date: 2020-04-03
Created 2014-03-31
Last Updated 2020-04-03
How To Use and Video Tutorial
How To Use :
Extract the downloaded rar file into your PC
Run the Apk File Manager.exe
Click on Load to select as much Apps as you want to select (You can drag and drop files/folders)
Define Output Path
Click on Go!!!
Go to your Output folder to find categorized apk's
Video Tutorial :
Coming soon...
Screenshots
Screenshots :
v3.0.0.0 :
v2.5.0.0 :
v2.0.0.0 :
v1.0.0.0 :
Wow, a time saving, snappy n fast apk management tool
Thanks for this bro
Ayush Singh said:
Wow, a time saving, snappy n fast apk management tool
Thanks for this bro
Click to expand...
Click to collapse
You are welcome...
Seems awesome,gonna try it soon!
BDFreak said:
Introducing Apk File Manager...
Click to expand...
Click to collapse
Why ask for the password to rar?
Amazing tool! Really great concept!
Sent from my SM-N900 using Tapatalk
I am waiting for this tool.. Finally u release it.. Thanks alot.. U deserve a portal.
Really awesome. Hope this would save my hard disk space n my Time..
Thanks mate.
Sent from my GT-N7000 using Tapatalk
BDFreak said:
Screenshots :
v1.0.0.0 :
Click to expand...
Click to collapse
Thanks you ^^
Who are having password problem, please download the file again.
Really cool BD! Looks awesome, easy to use, what else to expect?! Perfect
Great job as always you do. I have used this tool and tested every feature this tool has. All works perfectly and it's now really easy to deal with apk's
So useful thanks
Sent from my LG-P920
Dev Jaskirat said:
Amazing tool! Really great concept!
Sent from my SM-N900 using Tapatalk
Click to expand...
Click to collapse
++++1
Very helpful
@BDFreak :good:Great program:good:
@BDFreak: My virus scanner tells me I should not run it because of "TrojWare.Win32.Krap.T", see screenshot
defim said:
@BDFreak: My virus scanner tells me I should not run it because of "TrojWare.Win32.Krap.T", see screenshot
Click to expand...
Click to collapse
I can assure you that it's totally false positive detection.
Finally On Portal
http://www.xda-developers.com/android/categorize-your-apps-with-apk-file-manager/
Congro My Brother :good:

How to flash a rom on jiayu s3

I'm a newbie in flashing roms, it will be very helpful some one to do a full tutorial of most of the ways for flashing rom for example =>flashing a custom rom, upgrading, downgrading , recovery, going from KK to lolipop, for people like me it will be extremely useful and to have full forum we needed more treads , this will be great start!
Download the desired rom.
Download the latest flash tool: I can not post links yet
Run the file of Flash_tool.exe in the tool folder
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1.Run Flash Tool,click Scatter –loading to choose the file of Scatter in the rom,and then click D or double click the file
2.Click “Download Only”,to choose“Firmware-upgrade”
To check DA DL
Click options-----download----Check DA DL All with checksum
Click download
Then turn off the phone and connect to the computer, then it will download to the phone
Bangsat86 said:
Download the desired rom.
Download the latest flash tool: I can not post links yet
Run the file of Flash_tool.exe in the tool folder
1.Run Flash Tool,click Scatter –loading to choose the file of Scatter in the rom,and then click D or double click the file
2.Click “Download Only”,to choose“Firmware-upgrade”
To check DA DL
Click options-----download----Check DA DL All with checksum
Click download
Then turn off the phone and connect to the computer, then it will download to the phone
Click to expand...
Click to collapse
Most of the roms for jiayu s3 can be found here... http://www.needrom.com/category/jiayu/s3-jiayu/ Thanks for helping!
Sp-Flash tools=> https://yadi.sk/d/3niZ3G1Ye9QR9
Thanks for the info above, is there a tool or set of instructions that can be followed on a mac?
Don't know man sry..!
Sent from my JY-S3 using XDA Free mobile app
scatter.txt
Bangsat86 said:
Download the desired rom.
Download the latest flash tool: I can not post links yet
Run the file of Flash_tool.exe in the tool folder
1.Run Flash Tool,click Scatter –loading to choose the file of Scatter in the rom,and then click D or double click the file
2.Click “Download Only”,to choose“Firmware-upgrade”
To check DA DL
Click options-----download----Check DA DL All with checksum
Click download
Then turn off the phone and connect to the computer, then it will download to the phone
Click to expand...
Click to collapse
Hello,
when i click on "scatter loading" i don't get a file with scatter.txt.
Can you help me out please?
Thanks,
Alex
Problem with program
iOceanAlex said:
Hello,
when i click on "scatter loading" i don't get a file with scatter.txt.
Can you help me out please?
Thanks,
Alex
Click to expand...
Click to collapse
When flashing my smartphone I get an error (S_DA_EMMC_FLASH_NOT_FOUND)
Can I copy the scatter.txt from RC5 to whichever ROM i want as long as it is for the same phone? Basically I have the RC5 but I experienced that the battery is horrible so I wanted to try a different newer OS. Somehow there is an error installing via TWRP the other roms I have in zip but flashtool works fine. These files do not have a scatter-file though.
Thank`s for the instructions
I will thank for the instruction, because I breaked my phone while trying to flash madOS 8.1.0 (update from april). Before my Jiayu S3 basic (16 GB, 2 GB) worked fine with madOS 8.1 from 2017-12-30. I surely made a big mistake, therefore the phone was dead - no reaction any more.
I found this solution to flash back the stock rom 5.1.1 with twrp. Phone is alive and works.
I think, I have done a big mistake, because all trials to flash madOS 8.1 from april ended with boot into TWRP. I tried flashing to madOS for a long time, isn`t possible any more. Maybe also my old phone has a failure.
Therefore I have to thank for Your excellent work. Thanks.
Hi!
I'm trying to flash my S3Adv. (3GB RAM, Kitkat, TWRP 2.8.4.0) with madOS_8.1.0_s3_h560_20180422.zip, but, the "Zip signature verification failed". Before, the MD5 sum is checked and matches. I also checked the file with "zip -T" on my Linux machine and it reports "OK". When the "Zip file signature verification" is turned off, TWRP reports "error executing updater binary in zip ..." What's going wrong? Anybody here who can help?
Thanks in advance
Frank
Nearby: I wiped system, dalvik, cache and data.
Solution:
- Install Flash Tool
- Flash Android 5.1.1 (RC5_S3_16GB.zip)
- Start 5.1.1 to do a basic configuration
- Boot into TWRP recovery which was included in RC5
- Install twrp_20180417.img
- Boot into TWRP recovery
- Install madOS_8.1.0_s3_h560_20180422.zip
(a full wipe is, may be, necessary, but, I don't know, when the full wipe should be done within my procedure - I did it earlier)

How to Avoid Error 28 When You Flash a ROM

Hi, everyone. Maybe here's some people that have problem with their Mi A2/Mi 6X when flashing ROM and get Error 28 in TWRP no matter what version. Recently I got this error when flashing.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It give pain on my head since I'm sure the ROM isn't broken, even I tried to test it and redownload it but still get same Error. But, today I can flash my phone with no problem and 'Error 28'. Then let me write what's I do before I can fix it and what's the culprit that makes this problem. In this case I'll use ViperOS ZIP that I downloaded recently since latest ZIP that I downloaded is broken (it's perfect so I can tell you the problem more detail)
0. Make sure if your ZIP File of Flashable ROM isn't damaged (corrupted, tampered, etc.) with checking it use WinRAR/7Zip in-built tester (in this case, I use WinRAR in-built test since it have similar feature with other zip tester).
1.A. IF it ended with line 'No errors found during test operation', then you can go to step 2
on PC, or
on your Phones
1.B. BUT IF it ended with showing WinRAR diagnostic message on title like this
in your PC, or
in your Phone
then you need to redownload it again
1.C. Additional :
It very recommended to test checksum if you're not sure about the test above or you're not sure about your ZIP integrity. You can use any checksum tester that you can search in google, in this case I'll use "HashTab" from Implbits since it simpler. I'll check the MD5 checksum here since it faster (maybe. you can try SHA1 too if you curious)
You need to check the ZIP checksum that you downloaded in ROM's website (Sourceforge, etc.) like this
Then you can use Checksum software to match it checksum from website and file that you downloaded. If your ZIP have same checksum like this (matching checksum with last image above)
Then you can go to next step, but if it not same like this
Then you need to redownload it again from source.
2.A. If you're already have good ROM's Flashable ZIP that in your Mi A2/Mi 6X (I'll assume your phone have OS and usable) then you can flash it from TWRP and will not face 'Error 28' again (and you can ended this tutorial here since your problem was fixed). BUT ...
2.B. If you download it from your PC/Laptop/Other devices that need USB cable to transfering to your Mi A2/Mi 6X, then you aware about two things:
- USB Cable
- USB Port from PC/Laptop/Other Devices
In My case, my USB Cable is the culprit of my problem that always give me 'Error 28'. Changing with other USB Cable fix my problem (I was test the ROM again with WinRAR in-built tester and it can flashed properly), it have 99% chances to give error. 1% other is your USB Port in your PC/Laptop/Other Devices since.
3. What if you get that ROM from other devices using app like ShareIT, MiDrop, Bluetooth, etc.? Then you need to check it integrity again use checksum tool/WinRAR in-built tool to verify if it ZIP is OK like in step 1.
That's all that I know to solve Error 28 in my Mi A2/Mi 6X. Hope it will fix your problem too and sorry if I can't good thread and have bad english. If you have any question or something else that you know, please comment below. Thank you.
I spent 6 hours trying to flash a ROM, and for the first time after months of flashing, I could not get past error 28. After trying every possible solution, I could not imagine that using a different usb cable would solve the issue. Thank you very very much sir for this post.
you sir are a godsent, spent ****ing millenia on this and everytime error 1/7/28 whathaveyou its was making me insane and i just couldnt live with ****ty xiaomi joke of a buggy piece of **** "software"
Just plug the cable into the back of your PC where the motherboard is.
It helped me.
Used:
Mi A2 4/64
Stock USB-C cable
Asus PRIME H310M-R R2.0 motherboard
Android 11 custom ROM

Categories

Resources