Skip to content
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

Missing logs while only service is running #238

Closed
Ueland opened this issue Dec 25, 2014 · 14 comments
Closed

Missing logs while only service is running #238

Ueland opened this issue Dec 25, 2014 · 14 comments
Labels

Comments

@Ueland
Copy link
Contributor

Ueland commented Dec 25, 2014

I noticed that while being at a location with bad cell coverage that AIMSICD kept complaining about chancing LAC, but that was never logged as long as the phone was in standby mode (black screen). Both the notification and in-app icon had changed to yellow so at least that part worked just fine, but upon opening the debugging view, i noticed that there was nothing there before the app starting.

While having the app open i did recieve log messages about changing LAC.

@SecUpwN SecUpwN added the bug label Dec 25, 2014
@E3V3A
Copy link
Contributor

E3V3A commented Dec 26, 2014

Please look manually in logcat via command line shell. The debug view was limited to 1000 items (lines) to preserve functionality. And 1000 lines in all log buffers get flashed by very quickly!

@He3556
Copy link
Collaborator

He3556 commented Dec 26, 2014

Is our Service running in background? I remember we talked about to keep the screen switched on. I found some things we can do to listen to the CellInfo all the time.

@E3V3A
Copy link
Contributor

E3V3A commented Dec 26, 2014

Yes, and it seem that the Service is not closing down after exiting the app, even when de-selected to do so in the settings. That is a bug, but I don't know if it's been fixed in the latest build.

@He3556
Copy link
Collaborator

He3556 commented Jan 2, 2015

I found some interesting information from @andr3jx in our Chat (Testroom) from December 2014, when we where talking about this. I am afraid we didn't discuss or solve it in the end:

You’ve mentioned that the screen needs to be on. Does the app not collect data when the screen is off? No, the app does not collect data when the screen is off on Android, except if you have experienced a dropped call. On some Android phones, there are bugs when trying to get signal data when the screen is off, so if we include this data it would skew the data.

There was an issue about that here - but i can find it (maybe it is closed for some reason?) @SecUpwN can you remember the issue?

@andr3jx conclusion was:

I think we are forced to keep screen on at minimum brightness to do monitoring in background

@SecUpwN
Copy link
Member

SecUpwN commented Jan 2, 2015

Yes, I recall that we've talked about that, @He3556. If I recall correctly, what you're looking for is in #87 (comment) But I was not aware that our App currently doesn't do a thing when the screen is turned off! I mean, what are all the other similar projects do differently? What exactly do we have to do to fix it?

@He3556
Copy link
Collaborator

He3556 commented Jan 2, 2015

Well, our app is doing something when the screen is turned off - like the alert Ueland was talking about. But i would like to know what exactly is working. I need to check the logcat...
I wish there was some documentation about it :( But i will document it when i know...

@Ueland
Copy link
Contributor Author

Ueland commented Jan 2, 2015

The app apparently work while in background, the only question is why it does not log as it should.

@E3V3A
Copy link
Contributor

E3V3A commented Jan 3, 2015

@Ueland I think by default, the baseband processor goes into a low energy state, kind of sleep, and only wakes when there is some events. So I guess only testing can reveal what is going on. I guess you can use ssh over wifi to look what happens when you turn off screen, or device goes to sleep.

@Ueland
Copy link
Contributor Author

Ueland commented Jan 3, 2015

Hmm, god point! Perhaps SSH is the answer

@E3V3A
Copy link
Contributor

E3V3A commented Jan 3, 2015

I use SSHelper which works great. (With limited support info here.) Notice, that when screen is not on with SSHelper on top, the command line can be very laggy.

@SecUpwN
Copy link
Member

SecUpwN commented Jan 6, 2015

@Ueland, would you please verify that this Issue still occurs with v0.1.25-alpha-b7?

@Ueland
Copy link
Contributor Author

Ueland commented Jan 7, 2015

On my TODO. 👍

@Ueland
Copy link
Contributor Author

Ueland commented Jan 9, 2015

Finally had an alert while the app was not open, looking good now. "I/AISMICD_DbAdaptor( 2184): CHANGING LAC!!! - Current LAC: 21201 Database LAC: 31201"

@Ueland Ueland closed this as completed Jan 9, 2015
@SecUpwN
Copy link
Member

SecUpwN commented Jan 9, 2015

@Ueland, you sound very happy about that - and I actually enjoy you do. Thanks! 😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants