- First, you need to root your coolpad F1 8297W mobile phone.
- Install Custom Recovery. You can install eitherCWM or TWRP.
- Copy the ROM zip file to your 8297W mobile's SD card.
- Turn off the phone.
- Hold Volume Up and Power buttons to get into recovery mode.
- In the main menu of the recovery mode, select "wipe data/factory reset" to clear all user data.
- In the main menu of the recovery mode, select "wipe cache partition" to clear cache.
- In the main menu of the recovery mode, select "install zip from sdcard" then select the ROM zip file from SD card to install.
- Complete flashing. First reboot may take a while.
Search This Blog
Coolpad F1 8297W: ROM Update Guide
Python: calculate crc32 checksum for a file
import zlib import sys BUFFER_SIZE=8192 def get_crc32(path): with open(path, 'rb') as f: crc = 0 while True: data = f.read(BUFFER_SIZE) if not data: break crc = zlib.crc32(data, crc) return crc def main(): for f in sys.argv[1:]: crc32 = get_crc32(f) crc32hex = hex(crc32)[2:] print(f'{f}: {crc32hex}') if __name__ == '__main__': main()
Usage
% python3 crc32.py my-file.dat ./my-file.dat: 780acc19
Generate a self-signed multiple domain (UCC) SSL certificate
- Option 1: using openssl
- Find openssl.cnf
sudo find / | grep openssl.cnf
- On Mac OS X, it is /System/Library/OpenSSL/openssl.cnf
- On Ubuntu Linux, it is /usr/lib/ssl/openssl.cnf
- Make a copy of openssl.cnf to /tmp/openssl.cnf
cp /usr/lib/ssl/openssl.cnf /tmp/openssl.cnf
- Edit /tmp/openssl.cnf and append following line in [v3_ca] section:
[v3_ca] ... ... ... subjectAltName = @alternate_names
then append [alternate_names] section:[alternate_names] DNS.1 = mediaflux.localhost DNS.2 = daris.localhost
Also, modifycopy_extensions = copy
It ensures the SANs are copied into the certificate. - Generate private key:
openssl genrsa -out private.key 3072 -nodes openssl req -new -x509 -key private.key -sha256 -config /tmp/openssl.cnf -out public.crt -days 730 -subj "/C=AU/ST=Victoria/L=Melbourne/O=W/OU=WL/CN=localhost"
- Option 2: using Java keytool
keytool -selfcert -genkeypair -keystore /tmp/certs -alias mflux -storepass password -keyalg "RSA" -validity 3650 -dname "cn=localhost, ou=WL, o=W, l=Melbourne, st=Victoria, c=AU" -ext san=dns:daris.localhost,dns:mediaflux.localhost
see also
Subscribe to:
Posts (Atom)