irplus-remote / irplus-codes.github.io

Code updates for irplus
75 stars 47 forks source link

Convert ZazaRemote IR codes to IrPlus #645

Open Strato156 opened 10 months ago

Strato156 commented 10 months ago

Hi. Congrats for the great app.

I'm trying to import the infrared codes from the ZazaRemote app (because I'm using the Tiqiaa micro USB infrared dongle on an Android smartphone, and Zaza is the only app that can learn codes from other remotes) but I cannot recognize the format/protocol in which Zaza stores the infrared code. Zaza stores the infrared codes as blob data inside an SQL database, and it seems like Hex data, but i cannot recognise the format. Here's an example:

Key "Vol+" from Panasonic plasma TV 2003-2007, as learned from the original remote by ZazaRemote:

3f a8 7a 07 df c2 e3 8d 7d aa ae 15 44 00 d2 72 79 81 5a f2 b2 8d 3d 08 65 2f a3 3a b1 e9 dc f1 c8 10 08 3b ee 71 0d d8 3d 6f 77 93 a9 be 16 0a fc fa 30 93 c8 6d 32 15 e7 f2 c3 cd 97 f3 d3 5a b7 77 83 47 45 57 7f ff bd b0 d7 93 b2 64 87 52 bb b7 01 f2 56 df 1a 7e 6c 81 f3 d7 c0 be 50 ea ab 7c 46 ac d9 3a da e0 bd 60 57 90 f2 79 ff 21 ad 1f 96 8b 23 7b ff d4 c7 58 46 2c d3 b8 a1 fd 6d 98 97 b0 b2 35 37 86 d2 5b e6 23 18 a7 04 a2 0b 01 ac f9 d0 d7 0e 46 8b 30 51 ff f2 79 bf 13 29 c4 10 54 95 3b 12 a8 1f 66 e2 98 53 de 89 78

The same key in IrPlus (pronto hex): 0000 0070 0000 0032 0080 0040 0010 0010 0010 0031 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0011 0010 0010 0010 0031 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0031 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0031 0010 0010 0010 0010 0010 0010 0010 0010 0010 0011 0010 0010 0010 0010 0010 0031 0010 0010 0010 0031 0010 0AA1

My goal is to use Zaza to learn codes from the remotes and convert them and use them in IrPlus.

Any help with this?

Thanks in advance.

Biswa96 commented 10 months ago

The easiest way I found is to hook the ConsumerIrManager.transmit function using Frida and copy-paste the code. Though I have not look deeper into it.

If you can provide any sample to test, I can share the result data.

Strato156 commented 10 months ago

Sorry, I don't have that kind of knowledge, I don't understand what you mean by Frida and that ConsumerIrManager.transmit function. Regarding the sample to test, i already pasted the IR code as showed by Zaza, i don't have anything else to show. Please give further instructions, in case I'm missing something.

Biswa96 commented 10 months ago

One need to be familiar with a bit of programming knowledge for that method. Here is the Frida tool https://github.com/frida/frida

IR remote applications do not store the IR code in simple formats. Instead, the app encrypts those codes in various manner. So, it is easier to get the data from Android by hooking a function.

Strato156 commented 10 months ago

Ok I would give it a try, but I think Frida is not available for android. I don't have a micro USB to USB adapter, so I have to rely only on Android tools, if I could connect the IR dongle to the PC I would use IrScrutinizer and capture the signal that way.

If that Zaza IR codes are indeed encrypted, then I have no way to proceed. Thanks nonetheless.

Biswa96 commented 10 months ago

Zaza stores the infrared codes as blob data inside an SQL database

Could you share the database file using some file sharing services like Google Drive, OneDrive etc. ? I would like to explore it but can not guarantee any perfect solution.

Strato156 commented 10 months ago

Thanks for the help, but I just gave up and started using ZazaRemote instead.