trezor / trezor-android Goto Github PK
View Code? Open in Web Editor NEW:iphone: TREZOR Communication Library for Android
License: GNU Lesser General Public License v3.0
:iphone: TREZOR Communication Library for Android
License: GNU Lesser General Public License v3.0
Application doesn't work with tablet Alcatel One-Touch Tab 8HD
Android 4.1.1
It works with MyCelium.
As this is security-relevant software it should use:
https://github.com/WhisperSystems/gradle-witness
I can PR it if wanted
Version on Google Play (1.0.3) is still serving 1.4.2 FW
can be assigned to me - will make the PR for FDroid
Build for latest release v2.0.9
has failed https://jitpack.io/com/github/trezor/trezor-android/v2.0.9/build.log
currently as far as I see it is hard to be backward compatible (e.g. caused by trezor/trezor-firmware#136 - but it seems there where also other changes)
So should the library only target one version of the TREZOR? I guess some people hesitate updating their TREZOR and there are old versions around. Wonder if satoshi labs has some analytics/insights on what versions people use?
Anyone has ideas on how to work around this? Would really love the library to be compatible with as much TREZOR versions as possible - but all solutions I can currently imagine to achieve this look are ugly and come with drawbacks.
Without the protocol buffer source, it's not really possible to do pretty much anything without this library.
I started copy&pasting this library into my own test project (because this project doesn't work at all in Android Studio and it's not really anything you can import as a java lib), and it's not even possible to fetch keys from testnet, only a numeric counter of keys.
I'd like to extend this a little bit, but with generated classes only, it's pretty much impossible
It happens only with Trezor One, no issues with Trezor T.
Steps to reproduce:
Protobuf is still quite heavy - especially method-count wise - perhaps (opinions welcome - cc @prusnak) we should replace it with wire:
https://github.com/square/wire
You can add Screenshots for F-Droid, too, if you want.
https://f-droid.org/en/docs/All_About_Descriptions_Graphics_and_Screenshots/
TREZOR Manager App doesn't offer update firmware to 1.6.1
App gets into inconsistent state with these steps:
Interestingly, there is no way to stop this animation. Even when I uninstall and re-install the app (!!!), the loading is still showing. The only way to stop it is to reboot the phone.
Similar way to get to the same state (doesn't work 100% always) is:
My phone is Lenovo P70. I couldn't reproduce the bug on a different Samsung phone. But the first sequence of steps always reproduces the error on my Lenovo.
Trezor is working fine with MyCelium on the same phone, but I haven't tested it as thoroughly as this app.
Good day sir. I am a graphic designer and i am interested in designing a logo for your good project. I will be doing it as a gift for free. I just need your permission first before I begin my design. Hoping for your positive feedback. Thanks
The IDs are already added via 6530585 - but there was no release with this change yet.
As of now, missing tags on master branch, declaring version of library.
Please add tags and keep changelog between versions.
Set U2F counter after recovery.
This is how I do it in mytrezor in beta
setU2FCounter(session: TrezorJsSession): Promise<any> {
if (this.supports('u2f')) {
const timestamp: number = Math.floor(Date.now() / 1000);
return session.setU2FCounter(timestamp);
} else {
return Promise.resolve();
}
}
setU2FCounter
calls the message SetU2FCounter
.
While investigating walleth/walleth#255 - I noticed that even the stock TREZOR manager does not work with TREZOR 1 anymore - Model T works
PS: I do not run the latest firmware 1.6.1 on the TREZOR one - perhaps this is part of the problem - but I also currently do not want to update in case this has anything to do with the errors
It seems with Trezor Manager I can only create a wallet with just 12 words, so 128 bits master key.
Not adequate for a long term HODL.
Ideally I want to be able to choose the master key size myself (between 128 and 256), and I'd also want to be able to create a SLIP39 setup from the Android app.
Currently you have a lot of Options for using the Bitcoin-Logo on the HomeScreen.
I would like to see some options with the Ethereum logo here - as I rarely use Bitcoin lately and will use the TREZOR mainly in the Ethereum context ;-)
I think at some point there will be more users using TREZOR in combination with Ethereum than with Bitcoin..
Can you please publish both snapshots and releases on Maven repository?
Either create Maven repository in branch here on Github or publish into Maven Central.
I compile trezor-android resource code,But show me file not found:https://jcenter.bintray.com/android/arch/lifecycle/runtime/1.0.3/runtime-1.0.3.aar,Help me please!Thank you!
Hi team
I'm trying to perform an ETH transaction using a trezor model T and getting a blank screen on the trezor when trying to sign a transaction, am I passing the params correctly? Previously the trezor would return "failed safety check" however since manually converting the to address to a byte[]
(see the initial for
loop) the device screen is just blank....
String toMinusZerox = to.substring(2, to.length());
int len = toMinusZerox.length();
byte[] data = new byte[len / 2];
for (int i = 0; i < len; i += 2) {
data[i / 2] = (byte) ((Character.digit(toMinusZerox.charAt(i), 16) << 4)
+ Character.digit(toMinusZerox.charAt(i+1), 16));
}
BigDecimal weiValue = Convert.toWei(amount, Convert.Unit.ETHER);
ByteString toByteString = ByteString.copyFrom(data);
ByteString weiValueByteString = ByteString.copyFrom(weiValue.toBigInteger().toByteArray());
ByteString gasPriceByteString = ByteString.copyFrom(GAS_PRICE.toByteArray()); //BigInteger.valueOf(2500)
ByteString gasLimitByteString = ByteString.copyFrom(GAS_LIMIT.toByteArray()); //BigInteger.valueOf(21000)
ByteString noOnceByteString = ByteString.copyFrom(noOnce.toByteArray());
TrezorMessage.EthereumSignTx.Builder builder = TrezorMessage.EthereumSignTx.newBuilder();
builder.clear();
TrezorMessage.EthereumSignTx ethReq2 = builder
.setTo(toByteString)
.setValue(weiValueByteString)
.setGasLimit(gasLimitByteString)
.setGasPrice(gasPriceByteString)
.setNonce(noOnceByteString)
.setChainId(4) //rinkerby
.setDataInitialChunk(ByteString.EMPTY)
.setDataLength(0)
.setTxType(1)
.build();
Message result = trezorDevice.sendMessage(ethReq2);
new android.support.v7.app.AlertDialog.Builder(this).setTitle("Success")
.setMessage(result.toByteString().toStringUtf8().concat(" something concat-ed"))
.create()
.show();```
Missing source files declared in com.satoshilabs.trezor.protobuf/*.java
files
namely
still existed here:
but vanished with d480b2b45ab7fe0aa08855e3a8bd967e575381f9 - so build_pb.sh is failing
I would like to use message signing in the app, but it seems like it is not yet supported by the android sdk.
Just realized there is no licence here - this blocks #15 and walleth/walleth#15
I would suggest MIT here
please change help url from http://doc.satoshilabs.com to https://wiki.trezor.io in app
I download the latest version from github, then open project with android studio 3.2.1, occure error at during rebuild project.
error log: No dependency for integrity assertion 'com.android.tools.analytics-library:protos:26.1.2:protos-26.1.2.jar:52672a0b42b572a06aecc3535d5068eb46c0e15d129b9f1085d3c16a1da5cdbb'
Do I have to install anything else, please guide me, many thanks
I complie project Ok, but in MainActivity.java file occure Cannot reslove symbol 'TrezorMessage', what should I do, help me , many Thanks
my build.gradle file
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath files('libs/gradle-witness.jar')
}
}
allprojects {
repositories {
google()
jcenter()
}
project.ext {
support_version = "27.0.2"
sdk = 27
minsdk = 15
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I can't use Mycelium with TREZOR since I installed TREZOR Manager app.
When I connect TREZOR to my phone, TREZOR Manager asks: "Open TREZOR Manager when this USB device is connected?". If I press OK, it opens the manager app. If I press Cancel, nothing happens.
In any case, when I run Mycelium, it doesn't ask me if I want to use the USB device in Mycelium and I can't force Mycelium to "search" for it in any way.
Looks like there are some major changes to how the bootloader does flashing since the last release of this app. Trezors with current bootloaders cannot perform flash operations:
Steps to reproduce:
trezorctl firmware-update
trezorctl wipe-device --bootloader
Observe failure.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.