In 2019, the installation of the Brother DCP-7065DN proves much easier than back in 2011, when I did it last time, since all printing and scan functionalities are provided by the brlaser and brascan4 packages from AUR
The option -set filename:f ‘%t’ sets the property filename:f to the current filename without the extension. Properties beginning with filename: are a special case that can be referenced in the output filename. Here we set it to ../’%[filename:f].jpg, which ends up being the image filename with the extension replaced with _re.jpg in the parent directory.
This guide helps you upgrade your Xiaomi Mi 4 (and Mi 3, which are both codenamed by CyanogenMod as “cancro”) from the stock ROM or CyanogenMod 12 (based on Android “Lollipop” 5.0.x) to CyanogenMod 13 (based on Android “Marshmallow” 6.0.x) without data loss.
A and B are preparatory measures, before the actual installation process can take palce in steps 1 to 6.
A. Install fastboot
In Arch Linux, install the following package from AUR:
Find further information on fastboot in the CyanogenMod documentation, including how you can install it on other operating systems.
Now boot the device into bootloader (fastboot) mode by rebooting and simultaneously pressing “volume down” and “power”. Connect the phone to your computer with a USB cable.
Check whether fastboot detects your device by running as root or with sudo:
$ sudo fastboot devices
If the command returns a device ID and no error message, you are good to go.
Optionally, you may choose to root your device and/or install Google Apps, which are not shipped with the basic CyanogenMod image:
SuperSU root manager: It is recommended to get a stable release.
Open GApps: Depending on your preference as to what you want to be included, select pico (minimal Google Play functionality), nano, micro, mini, full, stock or super (all Google Apps).
Copy (or download directly) the CM13, SuperSU and gapps zip files to your device, as they will be installed from recovery.
In my experience, adb did not work. It is therefore easier to simply download the files to the device or transfer them via USB or FTP (i.e. File Manager from Cheetah Mobile).
1. Install TWRP
TWRP will be flashed with fastboot to the device. Connect your device to the computer in fastboot mode, then run:
CM 13 needs a different baseband (4.x) than CM 12 (3.x) or the Lollipop based stock ROM.
Flashing a Marshmallow based ROM with baseband 3.x will not work!
Check your version under Settings > About phone > Baseband version
Connect your device to the computer in fastboot mode, then run the following script from the extracted cm13Upgrade.zip file:
$ sudo sh flash_all.sh
3. Install CyanogenMod from recovery
Boot your device to TRWP recovery mode by rebooting and simultaneously pressing “volume up” and “power”. Wipe only the cache and Dalvik/ART (select Advanced Wipe). A factory reset, as described in the official guide, is not required, if you want to keep your data and apps!
Navigate to Install and select the CM13 image file you copied/downloaded to your device.
If you want to install GApps and/or TRWP, DO NOT BOOT YET!
4. Root the device
In TRWP, navigate to Install and select the SuperSU image file you copied/downloaded to your device.
If you want to install GApps, DO NOT BOOT YET!
5. Flash GApps
In TRWP, navigate to Install and select the GApps image file you copied/downloaded to your device.
Reboot to the system and enjoy your beautiful CM 13!
During startup, you will see the notification “optimizing apps”
After booting into your shiny new ROM, you might encounter the pop-up “unfortunately google play services has stopped”. This is annoying, as it virtually renders your installation useless.
This may happen if you use an unstable nightly ROM, or, most probably you didn’t wipe /data, /cache and /system partitions when upgrading to a new Android version (as from CM13 to CM14), or
As of Android Kitkat 4.4.4, the People app will only let you create contacts which are synchronized with a google account by default. It doesn’t let you create a local “Phone contact”, unless you disable “Google Contacts Sync”.
This may be desired if you want to use Android without Google services. You can then choose your preferred groupware solution (kolab, mykolab, openexchange, …) to synchronise your contacts, calendar, etc.
Here is how to do it:
Settings -> Apps -> Tab “All”
“Google Contacts Sync” -> Disable
Create a new contact. It will be marked “Phone only, unsynced contact”
The “Google Contacts Sync” will now show up in a new “Disabled” tab in Settings -> Apps, where it can be re-enabled if need should be.