UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Useful feature of XRN7 in Android for UT

    Scheduled Pinned Locked Moved Xiaomi Redmi Note 7
    1 Posts 1 Posters 262 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • M Offline
        Markatrafik
        last edited by

        On the Xiaomi Redmi Note was an interesting feature, the ability to control equipment from the IR port. All sorts of TVs, air conditioners and other hardware. And in fact, since it uses Android HAL, it can be done in UT as well. I don't know if other phones have such a port, if some do, you can do something in common. Here's what you can see in the system, some strings in "dmesg":

        init: Parsing file /vendor/etc/init/android.hardware.ir@1.0-service.rc...
        init: starting service 'vendor.ir-hal-1-0'...
        

        some file on filesystem:

        /var/lib/lxc/android/rootfs/system/lib/vndk-28/android.hardware.ir@1.0.so
        /var/lib/lxc/android/rootfs/system/lib/vndk-26/android.hardware.ir@1.0.so
        /var/lib/lxc/android/rootfs/system/lib64/vndk-28/android.hardware.ir@1.0.so
        /var/lib/lxc/android/rootfs/system/lib64/vndk-26/android.hardware.ir@1.0.so
        /var/lib/lxc/android/rootfs/system/lib64/vndk-27/android.hardware.ir@1.0.so
        /android/system/lib/vndk-28/android.hardware.ir@1.0.so
        /android/system/lib/vndk-26/android.hardware.ir@1.0.so
        /android/system/lib64/vndk-28/android.hardware.ir@1.0.so
        /android/system/lib64/vndk-26/android.hardware.ir@1.0.so
        /android/system/lib64/vndk-27/android.hardware.ir@1.0.so
        /android/vendor/bin/hw/android.hardware.ir@1.0-service
        /android/vendor/lib/hw/android.hardware.ir@1.0-impl.so
        /android/vendor/etc/init/android.hardware.ir@1.0-service.rc
        /android/vendor/lib64/hw/android.hardware.ir@1.0-impl.so
        

        Maybe some kind of existing software can be used?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post