Xiaomi Redmi Note 4 - erfanoabdi/P_semiGSI GitHub Wiki

[Redmi Note 4] - [mido]

Hardware Support

  • Camera:

Fully working in DP3.

Partially working in DP4: the settings option in Google Camera force closes the app.

The front camera doesn't work in some apps like Instagram or Messenger.

You can flash a camera fix to fix all these bugs. Find it in the P Semi GSI Group, search for patch to fix front camera dp4.zip

  • Sensors

All working

  • Speaker / Microphone

Working

  • Bluetooth

Working, but the icon is missing in the status bar. It only shows up if a device is paired.

  • WiFi

Partially working. If Bluetooth is enabled while the Wi-Fi is on, the Wi-Fi will be disabled until you reboot.

  • SIM / Mobile Data / ingoing voice calls / outgoing voice calls

All working. If you experience issues with voice calls, flash incall sound fix

  • VoLTE

Working for some users after flashing this fix.zip

  • Fingerprint Reader

Working but saved fingerprints are deleted on every reboot. Temporary solution is explained below in Additional Notes.

  • 3.5mm audio jack

Working

  • Vibration

Working

  • USB OTG

Working


Working Tested Vendors

All vendor images available

Double tap to wake works with the AOSCP vendor image.


Additional Installation Notes

If you experience any issues with calls, mount system and vendor then flash incall2.zip

If you experience any lag, flash p-lag-fix.zip

If you experience any force closes on Google apps because of Google Play services, install this gmscore

For gesture-based Ambient display, flash Xiaomi Doze


Additional Notes

Temporary solution for fingerprint disappearing on reboot / registration error

The file /data/system/users/0/fingerprint-settings.xml holds reference for each finger that's in the fingerprint database. This settings file is for some reason removed every time the phone is rebooted. The OS now no longer knows about any of the fingers, but they're there in the database. As such, if you try to register them again, the enrollment will fail. Deleting the fingerprint database file /data/system/users/0/fpdata/user.db and rebooting will allow you to set up fingerprints again, until you reboot. This is a temporary solution until the problem is solved.

The device can take up to 2 or more seconds to wake up on some occasions. This can be improved by using a custom kernel, such as ElectraBlue (Treble)

The build is pretty stable, but if you encounter any bugs, please upload a logcat to the telegram group P semi-GSI


Tested By:

  • LilBlinx - P-DP3-sGSI - 2018/07/17 [Initial test]
  • LilBlinx - P-DP3-sGSI - 2018/07/19 [Revision 2]
  • xezrunner - P-DP4-sGSI - 2018/07/20 [Revision 2]
  • xezrunner - P-DP3-sGSI - 2018/07/18 [Revision 2]
  • xalexis - P-DP4-sGSI - 2018/07/21 [Revision 3]