yashsingh1/xdaforums huggingface dataset:
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] androcheck:
Another (failed) try:

Instead of writing our own infrared HAL implementation, I thought it might be easier to just look at the implementation of other devices.

I came across the Xiaomi Mi 5 ("gemini") which also has an infrared device, the same ro.product.board (msm8996) and the same architecture.

I just replaced the HAL implementation file on the LePro3 (/system/lib64/hw/consumerir.default.so) with the one from the latest Cyanogenmod nigthly build (the file there is named: /system/lib64/hw/consumerir.msm8996.so).

First success: The .so file was loaded successfully, but the Consumer IR Service failed to start, as the Xiaomi HAL implementation uses LIRC to communicate with the infrared blaster (using the device file /dev/lirc0) which is not provided by the default kernel of the LePro 3.

As the Consumer IR Service failed to start, the device stuck in a bootloop, logging regularly this error:

11-24 16:24:02.459 I/SystemServer( 1570): Consumer IR Service
11-24 16:24:02.460 E/ConsumerIrLirc( 1570): fail to open /dev/lirc0 error -1
11-24 16:24:02.460 E/ConsumerIrService( 1570): Can't open consumer IR transmitter, error: -1
11-24 16:24:02.460 E/System ( 1570): ******************************************
11-24 16:24:02.461 E/System ( 1570): ************ Failure starting core service
11-24 16:24:02.461 E/System ( 1570): java.lang.RuntimeException: FEATURE_CONSUMER_IR present, but no IR HAL loaded!
11-24 16:24:02.461 E/System ( 1570): at com.android.server.ConsumerIrService.<init>(ConsumerIrService.java:51)
11-24 16:24:02.461 E/System ( 1570): at com.android.server.SystemServer.startOtherServices(SystemServer.java:508)
11-24 16:24:02.461 E/System ( 1570): at com.android.server.SystemServer.run(SystemServer.java:282)
11-24 16:24:02.461 E/System ( 1570): at com.android.server.SystemServer.main(SystemServer.java:180)
11-24 16:24:02.461 E/System ( 1570): at java.lang.reflect.Method.invoke(Native Method)
11-24 16:24:02.461 E/System ( 1570): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-24 16:24:02.461 E/System ( 1570): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

So, if somebody could compile a kernel which provides a lirc interface (/dev/lirc0), we could just use the HAL from Xiaomi and the problem also would be solved.
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] Joms_US:
Tremendous effort my friend but I am just wondering why can't you use LeEco's default IR app? You can add a predefined remote controls (like thousand brands?) and define your own. I created mine that will control my cable box, Samsung TV and Sound bar all in one remote control.
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] umOuch:
1) it doesn't have all of my devices.

2) the interface is clunky

3) features not as rich as Anymote, for example.

4) i, for example, am using it to control a minimal amount of my stuff... But would rather be using one of my third party apps.

That's just some reasons I think it's a worthwhile venture.
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] androcheck:
Hi [MENTION=7367957]Joms_US[/MENTION], thank you for leaving your feedback. Maybe you should try to see this more from a developer's perspective: Yes, of course I can (and I already do) use the default IR app. But I will try to point out some reasons why somebody still might want to work on getting the official Android API working:

programmability: of course, the original Remote App can do a lot, but there might be other usages for an infrared emitter besides remote controlling media devices. As a developer you have the freedom to do whatever you want with the capabilities of your hardware by writing your own application. In my personal opinion this is the main feature which makes today's mobile platforms so powerful: external developers might bring new features (in form of apps) to your device which the original manufacturer never might have even thought of. But without an API you cannot do this.

standard APIs: Since API level 19 (Android 4.4 - Kitkat) the official Android API includes the ConsumerIrManager class, which offers a generic way to transmit infrared patterns over an infrared emitter. Interestingly LeEco fully included the ConsumerIrManager API into EUI (so apps can use it), but their implementation simply does nothing (it's just a dummy). That's an interesting choice. They could have just ommited this API at all, but they didn't. On the other hand this might make it easier to implement the missing features (and is one more reason to try it).

building ground for other developers: like with all open development projects, if a single programmer finds a solution to a problem others might build on this knowledge. In this concrete case: if someone finds out how the infrared hardware can be controlled others can use this, for example to make the IR blaster also work in other ROMs, like cyanogenmod.

curiosity: finally, as a developer I'm just curious how things are working, and often it's a lot of fun to find out. Also besides that you gain a lot of knowledge for free on the way by doing so. :)

Don't forget, if people would have never been curious and started playing around we wouldn't have great projects like cyanogenmod or even Linux (and as a result also no Android).

And where would be the best place to discuss development, if not on xda developers. ;)
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] serc:
Hi i am very very happy, that people like androcheck are working on this problem.

i have the le max2 and the same problem 3party IR apps dont running with lemax2.

i have the siswoo r8 monster and the same problem

i want to use rCoid app from playstore in future i hope

thankyou androcheck for your work

hi joms

Leecos IR remote wants to know my contacts and phonecalls why ????

without permission it is not running why ???

i have paid for IR hardware but it is not running free !!!
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] Joms_US:
Well it's not like it will steal your contact information. The LeEco remote can do voice activated control I think hence it is asking for call access (which uses microphone).
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] androcheck:
I don't think that LeEco is doing something bad here, but to be honest I also find it a little bit frightening what permissions the remote app is claiming. It seems like a lot of these permissions aren't used, but I didn't really look into this.

Also for voice control you don't need the CALL_PHONE permission. The RECORD_AUDIO permission would be sufficient for that.

Here is the full list of permissions the LeEco remote app is claiming in its Manifest:

android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_MOCK_LOCATION
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_WIFI_STATE
android.permission.AUTHENTICATE_ACCOUNTS
android.permission.BLUETOOTH
android.permission.BLUETOOTH_ADMIN
android.permission.CALL_PHONE
android.permission.CHANGE_NETWORK_STATE
android.permission.CHANGE_WIFI_STATE
android.permission.GET_ACCOUNTS
android.permission.INTERNET
android.permission.MANAGE_ACCOUNTS
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
android.permission.READ_CONTACTS
android.permission.READ_EXTERNAL_STORAGE
android.permission.READ_PHONE_STATE
android.permission.READ_PHONE_STATE
android.permission.RECORD_AUDIO
android.permission.SEND_SMS
android.permission.SYSTEM_ALERT_WINDOW
android.permission.SYSTEM_OVERLAY_WINDOW
android.permission.USE_CREDENTIALS
android.permission.VIBRATE
android.permission.WAKE_LOCK
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.WRITE_SETTINGS
com.android.alarm.permission.SET_ALARM
com.letv.android.account.permission.ACCOUNT_RELEVANT
com.letv.android.remotecontrol.permission.PUSH_RECEIVER
com.letv.android.remotecontrol.permission.SEND_CONTROL
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] androcheck:
Ok, I found another possible way to use the Infrared blaster (for sending):

Instead of directly communicating over the serial line, I tried to bind to the QuickSet SDK service from within my own test-app. As the QuickSet SDK service is not protected with a permission this should be possible and indeed, binding the service worked flawlessly.

Unfortunately I forgot that there is still the "masterswitch" to turn on or off the MAXQ616 IR controller chip.

This is done by writing a "1" or a "0" into the file /sys/remote/enable which normally is done by the LeEco remote app:

# power on IR controller:
echo 1 > /sys/remote/enable

# power-off IR controller:
echo 0 > /sys/remote/enable

This file is provided by the "ir_maxq616" driver in the kernel and just sets a GPIO to 1 or 0 (which I guess is connected to the IR controller chip to power it down or a least go to a power-save mode):

// snippet from: kernel/drivers/misc/ir_maxq616.c

if (enable == 0) {
if (irdata->power_on) {
gpio_set_value(irdata->en_gpio, 0);
irdata->power_on = 0;
}
} else {
if (irdata->power_on == 0) {
gpio_set_value(irdata->en_gpio, 1);
msleep(1500);
irdata->power_on = 1;
}
}

The SELinux policy only allows the original LeEco remote app to write into this kernel sys-file. So if we want to write this file from other apps (for turning the IR chip on), unfortunately we will need to be root (or globally set SE policy to "permissive").

Nevertheless, taking all this into account I made a small test-app, and voila, I was able to trabsmit my own custom IR pattern from my own test app. :)

I guess, that's a first step in the right direction. :D

Here is a short video demonstrating that the IR blaster really is emitting infrared signals: Short demo video

(I published my proof-of-concept app on Github as reference for interested developers: https://github.com/johnzweng/QuickSetSDKProofOfConcept)
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] umOuch:
Should I be concerned that LeEco requires my location in order to use my REMOTE app
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] androcheck:
I don't know. I could imagine that you might want to access coarse location so that the app can offer you remotes for cable providers in your region? Also, I could imagine internet access might be needed for downloading new remotes and speech recognition.

But I didn't really look what exactly is going on there. The app is pretty huge and includes some 3rd party libraries and packages. Maybe some of these are requiring some of the permissions.
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] androcheck:
First breakthrough:

I've created a (still very, very alpha) Xposed module which hooks the ConsumerIrService class and tries to bind the QuickSet SDK service to send the Infrared commands which it has received over the standard Android Infrared API using the QuickSet SDK API (so it acts like a bridge between the two APIs).

And it works!! :victory: (in principle)

There are still a lot of edges, but if want to try it out yourself, I've attached an alpha-version of the Xposed module to this posting so you could try yourself with your favorite remote control app.

It does NOT YET WORK OUT OF THE BOX! You have to follow these steps before it will work:

Install the Xposed module, enable it in Xposed app, reboot

After reboot, open the original LeEco remote app one time and press some buttons (we still need this step here, to turn on the IR blaster. The LeEco remote app just does this here: "echo 1 > /sys/remote/enable"). You could also do this yourself in a terminal (as root). Should only be necessary once after every reboot.

Then open the system settings -> go to "Apps" -> search for "UEI Android Services SDK(LeTV)" -> click "Force Stop" (I am still not sure why this step is necessary, somehow the SDK service needs to be restarted once after every reboot..)

Open any app which uses standard Infrared API and SUCESSS! :) Check with a digital camera (or another phone's camera) if the IR blaster really is emitting infrared.

If I find some time over the weekend, I will try to get these things fixed.

Here a short demonstration video.

As you can see in the video I tested this with three different apps and it worked with my Samsung TV. I just randomly chose these apps from Play Store: ZaZa Remote-Universal Remote, ASmart Remote IR and IR Universal Remote

Also, I have just tested this only on EUI 5.8.018S (WAXCNFN5801811012S)!

So if you are running a different (newer) version of EUI, please give feedback if it's working or not! Thanks! :good:

[edit]removed attachement, as there is now a working 1.0 version[/edit]
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] androcheck:
It was less work than expected. Now it seems to work for me perfectly. I cleaned up the code, published it on Github and made a new thread for the Xposed module (I think this thread should stay more focused on the technical backgrounds while the new thread will be dedicated to the Xposed module).

Head over here:

[MOD][Xposed] Make Infrared Blaster working with all 3rd party apps :)
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] andr68rus:
Hi. Thanks for your work! This info help me to run Remote Control on Cyanogen(Mokee).
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] androcheck:
You're welcome! :)
[LeEco Le Pro3 ROMs, Kernels, Recoveries, & Other D] quasarswastik:
I have a question about LeEco built in remote control app. The question is that why is that app having feature such as 'Mock Location'. Is there any possible reason for that as per your knowledge.
[G 2014 Q&A, Help & Troubleshooting] jayusd:
Paranoid Android!!
[X Play Q&A, Help & Troubleshooting] yigal66:
Hi. I am running rooted MM6.0.1 version MDP24.107-52 on Brazilian XT1563.

Few days ago I started to receive security update message.

Is it safe to install it or it will brick my phone?

Thx
[X Play Q&A, Help & Troubleshooting] bablu048:
No, you'll brick it.. you need to be fully stock to install updates.
[X Play Q&A, Help & Troubleshooting] diegomartinezlovey:
if only you have install TWRP or another recovery, you will brick
[X Play Q&A, Help & Troubleshooting] yigal66:
Thx . Any way to stop this annoying message ?
[Palm Treo 750] DocKill:
I have previously upgraded to RWE wm6, now the official ATT upgrader says "you have a newer version of this software" and wont update to the latest ROM. Any suggestions to fool the updater and install official WM6 release?

Thanks in advance- this forum always amazes me!!

Is a simple edit of the payload file all thats needed here?
[Palm Treo 750] reyjabs:
File Edit

Yes.:D

http://xdaforums.com/showthread.php?t=345531
[Palm Treo 750] DocKill:
Thanks

Awesome as always!! Thanks!!!!

Next question....Installer gets through initial phase, treo gets 4 dark colored bars, then connection is lost and install cant complete. I tried removing the SD card-no luck. Advice ?

Thanks again
[Palm Treo 750] fnction22:
I got the same problem , after the erase all data it just froze up ..... is it bricked. hopefully someone can help
[Palm Treo 750] moderndayfire:
I also had the same problem with my device but what i did is switch computers with Windows xp and with Activesync 4.5 that should do the trick
[Palm Treo 750] DocKill:
fixed

installed from XP instead of Vista...no problem at all. Appears Vista has trouble with recognizing the treo after loses activesync connection
[Palm Treo 750] fnction22:
seems my problem had to do with the unit, i did the sdupdater recovery tool from palm to no avail, finally i removed the battery and reinserted it and bam WM6 appeared after numerous attempt at upgrade and different ROMS tried. I asume the original upgrade got stuck and the removal of the battery, helped it finish.:confused: Who knows at least its not bricked:D
[OnePlus 3 Guides, News, & Discussion] mks693:
Here are some highlights:

Added 1080P 60FPS video recording.

Added emergency calling for India (Triple press of power button to trigger).

Optimization of Snapchat, fixed video calling and scrolling lags.

November 1 security patch

Increased system stability.

General bug fixes.

Set VPN to Canada to get the update now.
[OnePlus 3 Guides, News, & Discussion] otonieru:
I supposed it also update the security patch to november one?

Can anyone confirm ?
[OnePlus 3 Guides, News, & Discussion] mks693:
yes, November 1 security patch.
[OnePlus 3 Guides, News, & Discussion] Nishidh:
(Update)One plus 3 oxygen os 3.2.8(MM) Installing/Xposed/recovery

One plus Europe has announced the release of oxygen os 3.2.8 today 24th November 2016links will be up as soon as it releases

Image says

"Good news #OnePlus 3 users! The oxygenOS 3.2.8 OTA Will be available today. Get ready for the update!"

Hi all,

We are starting the incremental roll-out of OxygenOS 3.2.8 for the OnePlus 3. Here are the changes for this build.

Here are some highlights:

Added 1080P 60FPS video recording

Added emergency calling for India (Triple press of power button to trigger)

Optimization of Snapchat, fixed video calling and scrolling lags

Increased system stability

General bug fixes

For those who were on previous versions for the OnePlus 3, we appreciate your active feedback and attempts to reach out to us. With your help, we have been able to better optimize and improve several key areas. Thank you for your patience and as always, we look forward to hearing your continued feedback.

As always, this OTA will be incremental. The OTA will reach a small percentage of users today, and we'll begin a broader rollout in a few days.

Your feedback is appreciated. We may not always be able to respond to every comment in the forums, but please be assured that we take your comments and feedback seriously. Hope you enjoy!

Never Settle.

Source OnePlus forums

Xposed:http://xdaforums.com/oneplus-3/how-to/link-xposed-beta-7-november-1-patch-t3505416

Recovery:Twrp mod will work for rooted users

3.2.6 to 3.2.8 OTA : https://drive.google.com/file/d/0B8X49dK5s31MZEVSLWU3eGs3MTg/view?usp=drivesdk

3.2.7 to 3.2.8 OTA: soon

Rom full update zip: Coming soon
[OnePlus 3 Guides, News, & Discussion] TNSMANI:
In that case, Xposed may not work. We will need the test1 zip of Xposed released by rovo89.
[OnePlus 3 Guides, News, & Discussion] otonieru:
Yes, no worry, test 1 work fine, even on 5 november security patch
[OnePlus 3 Guides, News, & Discussion] Nishidh:
Awesome update
[OnePlus 3 Guides, News, & Discussion] AcmE85:
It was YOU who created a thread after this one here, so your thread should be deleted. Open your eyes man...

What a bad move of yours, smh

Reported
[OnePlus 3 Guides, News, & Discussion] twtysvn:
thx mate, just updated with FreeCanadaVPN. couldn't wait no more.
[OnePlus 3 Guides, News, & Discussion] Prattham:
How do i update it if i am stock rooted
[OnePlus 3 Guides, News, & Discussion] juginkrebs:
Anyone can Upload ?

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
[OnePlus 3 Guides, News, & Discussion] ndrsgan:
I thought that the next oxygen os update would be the 3.5 version, but not ?

Enviado desde mi ONEPLUS A3003 mediante Tapatalk
[OnePlus 3 Guides, News, & Discussion] mks693:
Download from official forum and flash through twrp.

Edit : sorry. There is no flashable zip as of now. Though it should be available in the forum but no.
[OnePlus 3 Guides, News, & Discussion] tintin1892:
Just updated in the UK. Just changed my region using VPN and boom! Update.
[OnePlus 3 Guides, News, & Discussion] panopticum:
Turbo VPN Set to Canada Works fine. Downloadin 1.3 gb Update right Now. Ty and regards
[OnePlus 3 Guides, News, & Discussion] bonczas:
GDRIVE

OTA Update 34Mb

3.2.7.->3.2.8.

Downloaded using OperaVPN set to Canada

Updating right now
[OnePlus 3 Guides, News, & Discussion] superiscch:
Next big update will be 4.0. Is you want 3.5.x just flash community builds.
[OnePlus 3 Guides, News, & Discussion] naparajito:
Hi,

i tried updating from your zip as well as my own zip, unfortunately gives error 7.
[OnePlus 3 Guides, News, & Discussion] immi803:
full rom zip link ?

hi,

please link for full zip?
[OnePlus 3 Guides, News, & Discussion] gro0vr:
Incremental OTA's anyone?
[OnePlus 3 Guides, News, & Discussion] Ludzik1993:
https://www.androidfilehost.com/?fid=24591000424945457

Sorry, miss letter it is 3.0.2-0

And when you are in Install in TWRP you should have on the right side of the screen option to change install form zip to Image, because this is image file, and then you are chose partition - Recovery, and slide to install.

---------- Post added at 08:37 AM ---------- Previous post was at 08:34 AM ----------

3.0.2-0

Send from my awesome OnePlus 3 ?
[OnePlus 3 Guides, News, & Discussion] Prattham:
What are the dpi you guys are using?
[OnePlus 3 Guides, News, & Discussion] dhruvpaul:
Any noticeable improvements after 3.2.8 update?
[OnePlus 3 Guides, News, & Discussion] HIshan Pavidu:
No idk if its for me theres a problem with mobile radio active for all apps when using mobile data
[OnePlus 3 Guides, News, & Discussion] NOSTALGIA:
camera at 1080p at 60fps is so smooth
[OnePlus 3 Guides, News, & Discussion] abhibnl:
Yes, the system is quite smooth than before. It also has a new camera mode, but I'm enjoying this smooth UI experience.

Mobile radio bug is a bug introduced in Lollipop 5.0 and has not been fixed by Google as of to today.
[OnePlus 3 Guides, News, & Discussion] ritchiedrama:
horrible drains with 3.2.8, clean flashed it twice :]
[OnePlus 3 Guides, News, & Discussion] dhruvpaul:
Yeah well it's smooth!
[OnePlus 3 Guides, News, & Discussion] dustintinsley:
My hotspot tethering will not work with 3.2.8. I can connect to hotspot but have no data.
[OnePlus 3 Guides, News, & Discussion] Alttu:
Would not it be awesome to have all of the download links in OP? The full rom and incremental ota links... And maybe the modded TWRP allso, with a little explanation maybe?

Just for the community right.. ;)
[OnePlus 3 Guides, News, & Discussion] GCbard:
Not bad battery life
[OnePlus 3 Guides, News, & Discussion] neeraj679:
Open beta 7 to 3.2.8

I'm on open beta 7 will I get update to 3.2.8 which is latest ??:confused:;)
[OnePlus 3 Guides, News, & Discussion] nikhil.agrawal:
Beta doesnt get oss updates. The next update you'll get is open beta 8 which hopefully should be based on android 7.
[OnePlus 3 Guides, News, & Discussion] luloo:
Looking for some help/clairification. I have read this thread and just wanted to confirm what I need to do to upgrade to 3.2.8.

I have a new OP3 that came with OOS 3.2.5. I have unlocked the bootloader but I am not rooted with TWRP 3.0.2-1.

Step 1: Flash full 3.2.8 ROM (or should I flash the incremental updates 3.2.6, 3.2.7 and 3.2.8)

Step 2: Flash TWRP 3.0.2-23

Also, currently the OTA update doesn't work with TWRP 3.0.2-1 but will the OTA update work with TWRP 3.0.2-23?

If someone can provide some guidance it would be greatly appreciated.
[OnePlus 3 Guides, News, & Discussion] nikhil.agrawal:
Yes, you need the modified twrp 3.0.2-23. you can just flash the modified twrp first and dirty flash the full rom and thats it. OTA dont go well with root and custom recoveries so its advisable to download the full rom.
[OnePlus 3 Guides, News, & Discussion] luloo:
Great! Thanks for clearing that up for me! Was a little confused on what to do but that sounds easy enough.
[OnePlus 3 Guides, News, & Discussion] caccolino:
How do i update it if i am stock rooted, twrp and xposed??
[OnePlus 3 Guides, News, & Discussion] tathagatab:
Read this thread, you'll get all answers.
[OnePlus 3 Guides, News, & Discussion] soniprifti:
After updating in all my apps the photos doesnt show even when i edit them they get to big and even if i zoom out they dont get to normal. DPI to 400. How can i solve this ?
[OnePlus 3 Guides, News, & Discussion] GCbard:
Great battery with this version
[OnePlus 3 Guides, News, & Discussion] neeraj679:
Link to twrp 3.0.2-23?? Can I install it on twrp 3.0.2
[OnePlus 3 Guides, News, & Discussion] nikhil.agrawal:
Its from the dev of bluesparks kernel. You can get the link from there. You can either flash the recovery through adb or if yoju're rooted you can also install it via flashfire.
[OnePlus 3 Guides, News, & Discussion] Imotep95:
I flashed latest oos3.2.8+ex kernel via official twrp from site, no issues.