This should work for Android devices that comes with IR blaster. This is a remote controller compatible with LEGO Power Functions. It emulates the functions of LEGO IR Remote Control.
Should now work with different version of Android (4.4.2 and below, 4.4.3 and above)
Tested with Samsung S4 and Samsung Note 3.
The codes are available on: https://github.com/redfishlab/Samsung-S4-Lego-PF-Remote
Disclaimer: LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this site. We are NOT affiliated with LEGO in any way. This is a purely non-profit hobbyist project.
Upon request from some users, I had modified the display so that non-S4 can display it correctly (dimension wise). MAY work for non-S4 Samsung devices; but try it at your own discretions.