Giter Site home page Giter Site logo

Comments (10)

arantius avatar arantius commented on August 19, 2024

As always, I don't have a Virgin Media device, so I can't test any fix, nor diagnose why anything isn't working.

from tivo-commander.

swythan avatar swythan commented on August 19, 2024

I do realise you've got no access to a Virgin Media TiVo. I can do some limited debugging for you if you like, but I don't normally run Android any more and I've no real familiarity with Java, android development or crypto.

With a bit of luck we'll be able to recruit someone more "invested" in getting this working on Android from the Virgin Media forums in the UK.

from tivo-commander.

swythan avatar swythan commented on August 19, 2024

FYI: Reports on Virgin Media's forums are mixed. It does seem to work for several people.

Perhaps the difference is the SSL implementation on the handset.

I've grabbed the source and I'm going to try & debug on my old Android handset.

from tivo-commander.

swythan avatar swythan commented on August 19, 2024

I think the problem might be Android Issue #26542.

The TiVo client cert does appear to have involve a chain of authority (AFAICT; I'm no expert). All but one of the success reports on the above forum mention that they're running 2.3 or above, and I wouldn't be surprised if the one that mentions 2.2 is mistaken.

Have you had any reports of TiVo Commander failing on Android 2.2 or below?

from tivo-commander.

arantius avatar arantius commented on August 19, 2024

Nothing besides this and #15 since that time frame.

from tivo-commander.

swythan avatar swythan commented on August 19, 2024

Interesting. Having seen the failure I would have expected it to fail on a Premiere XL in the same way (on a <2.3 handset). Maybe everyone interested enough bother downloading and installing (within the last 14 days) has 2.3+. :-)

BTW: I'm an idiot. Here's the actual exception that I get:

02-17 03:30:29.207: E/NativeCrypto(3815): Unknown error 1 during connect
02-17 03:30:41.457: E/tivo_commander(3815): connect: io exception!
02-17 03:30:41.457: E/tivo_commander(3815): java.io.IOException: SSL handshake failure: Failure in SSL library, usually a protocol error
02-17 03:30:41.457: E/tivo_commander(3815): error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate (external/openssl/ssl/s3_pkt.c:1139 0x23b9c8:0x00000003)
02-17 03:30:41.457: E/tivo_commander(3815):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect(Native Method)
02-17 03:30:41.457: E/tivo_commander(3815):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:316)
02-17 03:30:41.457: E/tivo_commander(3815):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.<init>(OpenSSLSocketImpl.java:520)
02-17 03:30:41.457: E/tivo_commander(3815):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:461)
02-17 03:30:41.457: E/tivo_commander(3815):     at com.arantius.tivocommander.rpc.MindRpc$3.call(MindRpc.java:295)
02-17 03:30:41.457: E/tivo_commander(3815):     at com.arantius.tivocommander.rpc.MindRpc$3.call(MindRpc.java:1)
02-17 03:30:41.457: E/tivo_commander(3815):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
02-17 03:30:41.457: E/tivo_commander(3815):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
02-17 03:30:41.457: E/tivo_commander(3815):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:114)
02-17 03:30:41.457: E/tivo_commander(3815):     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:229)
02-17 03:30:41.457: E/tivo_commander(3815):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
02-17 03:30:41.457: E/tivo_commander(3815):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
02-17 03:30:41.457: E/tivo_commander(3815):     at java.lang.Thread.run(Thread.java:1096)

I'm going to see if I can manage to get BouncyCastle (well, SpongyCastle) working, instead.

from tivo-commander.

billytaylor avatar billytaylor commented on August 19, 2024

Is this still an issue? Might it just be requiring an updated client cert? Someone might be able to help with that... :-)

from tivo-commander.

arantius avatar arantius commented on August 19, 2024

I still have no idea because I'm in the US. If you have a Virgin Media TiVo and are willing and able to grant me access to it, contact me directly and I can try to spend some time figuring out what the problem is exactly.

from tivo-commander.

arantius avatar arantius commented on August 19, 2024

@billytaylor gave me a port forward to attempt connecting. All I can get unfortunately is a single error:

{"code": "routingError", "text": "The active partner ID does not have access to the operation.", "type": "error"}

I can't act on that directly.

from tivo-commander.

arantius avatar arantius commented on August 19, 2024

Unfortunately, closing this as WONTFIX. This is up to TiVo and/or Virgin Media. It's out of my control to affect this.

from tivo-commander.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.