Discussion in 'Archive 2011' started by MarkHUK, Jul 4, 2011.

  1. MarkHUK Founder / Server Admin
    Staff Member

    Nov 6, 2010
    IT Security Consultant (HIPAA, NIST, PCI DSS)
    Guangdong, China
    <p>Download MIUI ROMs from the list of links below, ensure you select the appropriate device, dont forget to download the language pack to ensure your device will display MIUI in English.</p>
    <p>Support for these devices will remain in the forums. Bug should be reported in the correct thread.</p>


    $current_rel = "1.7.1 (MIUI Android)";

    // Function to get files name is correct to our rom /pack
    function check_files_name($file, $marker)
    return strpos($file, $marker) === 0;
    // EF

    // Function to get device name from file name
    function device_name($file)
    $device = substr($file, 12, 33);
    $device = substr($device, 0, -10);
    return $device;

    // Function to get device name from file name
    function device_name2($file)
    $device = substr($file, 18, 33);
    $device = substr($device, 0, -10);
    return $device;

    // Deodex ROM
    if ( ($handle = opendir('/home/miuiandroid/public_html/rom-dev/output/')) )
    // Start table
    echo '<table border="0" cellspacing="0" cellpadding="0" width="500">

    while( false !== ($file = readdir($handle)) )
    // Sort files

    if(check_files_name($file, 'miuiandroid'))
    // Loop table for devices
    echo '<tr>
    <td><img src="'.device_name($file).'.png" width="115" height="201" /></td>
    <td valign="top">';
    echo '<h3>'.device_name($file).' '.$current_rel.'</h3>' . "\n";
    echo '<p><a href="'.$file.'">Download deodex</a></p>';
    echo '<p><a href="'.device_name($file).'">Download language pack</a></p>';
    echo '<p>Chinese deodex MD5: '.md5_file("/home/miuiandroid/public_html/rom-dev/output/".$file).'</p>';
    echo '<p>Language pack MD5: '.md5_file("/home/miuiandroid/public_html/rom-dev/packs/miuiandroid-1.7.1_".device_name($file)."").'</p>';
    echo '</td>
    echo '</tbody>
    </table>' . "\n";

    // close directory


    <p><strong>Language pack license information:</strong></p>
    <p>MIUI Android English Translations (Started August 2010 by Mark Hedley) by Mark Hedley / MIUI China is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License, based on a work at <a href="" target="_blank"></a>.</p>
    <p>Permissions beyond the scope of this license may be available at <a href="" target="_blank"></a></p>