-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Several minor issues in corellium scope #1900
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
fac1adc
to
2dca194
Compare
Timestamp: 2021-05-07 15:40:33 |
8cbdf5b
to
94abd5a
Compare
* Normalize output lines from corellium console * Convert API interfaces to functional * Update adapters implementation to use SAM conversion * Rename api scope TestApk to Apk and expand interface to meet domain requirements * Fix log parser issues * Add doc for sharding structures * Add am instrument status codes constants
94abd5a
to
ec2c88c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments :)
|
||
println("* Invoking devices") | ||
val ids = api.invokeAndroidDevices(AndroidInstance.Config(2)).toMutableList() | ||
val ids = api.invokeAndroidDevices(AndroidInstance.Config(2)).toList().toMutableList() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.toList().toMutableList()
Is there a reason for this?
If this is already a collection its not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, it's not a Collection but a Flow, so this is blocking operation Flow.toList
. I have decided to make and API functions not suspendable to take benefits from functional interfaces, so I was also forced to change some result types, and IMO Flow<String>
fits much better than Deferred<List<String>>
.
clear() | ||
} | ||
} | ||
Chunk(code.prefix!!, code.text.toInt(), map) | ||
Chunk( | ||
type = code.prefix!!, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double bang usually is a bad thing :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Related to #1802
This is a bunch of several minor changes cherry-picked from #1897 for splitting code review into smaller parts.
am instrument
status codes constantsMerging this one will make the #1897 thinner.