Support for MIDP 1.0 devices
Closed this issue · 6 comments
Take it as extra low priority issue, but it may be nice to have support for MIDP 1.0 devices. For make this work, only small fixes are needed:
- Remove Gauge.INDEFINITE (not implemented)
- Remove Gauge.INCREMENTAL_IDLE
- Compile with Bouncy Castle 133
- setLayout is not supported (but default left alignment seems to be ok)
I think the Bouncy Castle version should be OK. Only a few classes is used. And the WTK emulator (MIDP-1.0 configured) seems to be fine with that.
@jfriesse Could you review the changes in the MIDP-1.0-compatible branch please? If it's OK, I'll merge it to master.
Thanks in advance.
@kwart Changes seems to be ok. If you can provide me binaries, I can test on real HW if you like.
@jfriesse The SNAPSHOT is uploaded to http://sourceforge.net/projects/totpme/files/test/, if you are able to test it, it would be helpfull. Thank you.
@kwart I've installed SNAPSHOT to MIDP-1.0 device (Nokia 6100). Results:
- Application starts without problem
- Key generator works
- Key is properly stored and restored on new start
- Other values (Time correction, HMAC algorithm, Number of digits and Time step) are correctly stored and restored on new start
- Token is visible, it's updating regularly
- Gauge (timer) is visible and correctly respects Time Step value
- Menu items are correctly ordered (device have only 2 menu hw buttons, so it's preferable to display Exit and let Options + Key generator under Menu)
So from my point of view, application works perfectly.
Thanks again for quick resolution.