[APP] Amazfit Internet Companion - Generic internet companion app for Pace/Stratos - Amazfit

Amazfit Internet Companion
Amazfit Internet Companion is a generic and open source internet companion app for the Amazfit Pace and Stratos. It allows apps developed with the Amazfit Communication library to access the internet over Bluetooth via your phone's internet connection.
It DOES NOT allow any old Android app on the watch to access the internet over Bluetooth.
Usage
Simply download the latest release to your PHONE (again, this is a phone app, NOT a watch app), and install it as you would any other APK (you may need to enable unknown sources). Run the app at least once for it to work, and that's it!
You can also install the app over ADB, with your PHONE plugged into your PC, NOT your watch, using:
Code:
adb install -r AmazfitInternetCompanion-1.0.2.apk
The app can be hidden from your app drawer, to access it again (for debugging or to restart the service if it fails), simply add it as a shortcut to your homescreen, or if you're using Android 6.0 or above, go to the app info for the app and use the settings icon there
Developers
If you are using the internet functions of the AmazfitCommunication library (LocalURLRequest), you need to have your users install the latest build of this app on their phone. Either include your own guide of how to do that (linking to the apk on the GitHub repo), or simply link them here
Alternatively, feel free to use this as a base app to make your own companion app, note how the actual listening and sending of data is done in a foreground service to allow it to work without this app being open
Screenshot
This isn't really needed but here's what the companion app's UI looks like. Basic isn't it?

:victory: Seems quite easy
So there are no conflicts with Amazfit apk?

GreatApo said:
:victory: Seems quite easy
So there are no conflicts with Amazfit apk?
Click to expand...
Click to collapse
It's separate, so it runs a separate service for it
When making the library, I had two attempts before the one that worked. The first used reflection on the Amazfit App (on the phone, WearBLE on the watch). This worked, but the channel listener didn't, so you just had to send and pray. The second used some dex2jar and some reflection, which didn't work at all really.
Because all the code was reversed and is separate from the Amazfit App, it just communicates with it as if it were the same app. I don't know why Huami allows this really, but I'm not complaining!

Unfortunately it crashes ui thread on my phone after launch this app. OnePlus5 Android 8.0.

Installed 1.0 on my phone. So far so good, now we just need some internet enabled watch apps for it.
Great work

Squall-sama said:
Unfortunately it crashes ui thread on my phone after launch this app. OnePlus5 Android 8.0.
Click to expand...
Click to collapse
Please provide a logcat

here is a logcat related to amazfit:
04-21 20:51:39.848 4292-4292/? D/AppInstallReceiver: trackEvent: AppEvent{properties={appId=com.kieronquinn.app.amazfitinternetcompanion, appLabel=Amazfit Internet Companion}, type=app_install}
04-21 20:51:39.865 1430-2407/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.kieronquinn.app.amazfitinternetcompanion flg=0x4000010 (has extras) } to com.quickbird.speedtestmaster/co.allconnected.lib.ad.receiver.HomeAdBroadcastReceiver
04-21 20:51:42.132 1430-9051/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.kieronquinn.app.amazfitinternetcompanion flg=0x4000010 (has extras) } to org.fdroid.fdroid/.receiver.PackageManagerReceiver
04-21 20:51:42.209 1430-1445/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.kieronquinn.app.amazfitinternetcompanion flg=0x4000010 (has extras) } to ru.yandex.market/com.yandex.auth.SystemEventHandler
04-21 20:51:50.535 1430-2918/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.kieronquinn.app.amazfitinternetcompanion cmp=com.kieronquinn.app.amazfitinternetcompanion/.LaunchActivity} from uid 10021 pid 3594
04-21 20:51:50.553 1430-1525/? D/RestartProcessManager: Update Total Launch Times :com.kieronquinn.app.amazfitinternetcompanion
04-21 20:51:50.553 1430-1525/? D/RestartProcessManager: updateSelf : com.kieronquinn.app.amazfitinternetcompanion, size : 30
04-21 20:51:50.553 1430-1525/? D/RestartProcessManager: Increase Total Launch Time : com.kieronquinn.app.amazfitinternetcompanion, times : 1, index : 29
04-21 20:51:50.553 1430-1525/? D/RestartProcessManager: Last Running Package : com.kieronquinn.app.amazfitinternetcompanion , start time 1524318710553
04-21 20:51:50.553 1430-9502/? D/EmbryoManager: Embryo claimed. com.kieronquinn.app.amazfitinternetcompanion, pid=3739
04-21 20:51:50.569 1430-2918/? I/ActivityManager: START u0 {cmp=com.kieronquinn.app.amazfitinternetcompanion/.MainActivity} from uid 10313 pid 3739
04-21 20:51:50.571 1430-1525/? D/RestartProcessManager: Duration is too short, ignore : 18 in com.kieronquinn.app.amazfitinternetcompanion
04-21 20:51:50.580 1430-1525/? D/RestartProcessManager: Update Total Launch Times :com.kieronquinn.app.amazfitinternetcompanion
04-21 20:51:50.580 1430-1525/? D/RestartProcessManager: updateSelf : com.kieronquinn.app.amazfitinternetcompanion, size : 30
04-21 20:51:50.580 1430-1525/? D/RestartProcessManager: Increase Total Launch Time : com.kieronquinn.app.amazfitinternetcompanion, times : 1, index : 29
04-21 20:51:50.580 1430-1525/? D/RestartProcessManager: Last Running Package : com.kieronquinn.app.amazfitinternetcompanion , start time 1524318710580
04-21 20:51:50.635 1430-9502/? I/ActivityManager: Start proc 6053:com.kieronquinn.app.amazfitinternetcompanion:background/u0a313 for service com.kieronquinn.app.amazfitinternetcompanion/.ForegroundService
04-21 20:51:50.661 6053-6053/? D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Connect TransportService, Now Is Connected : false, Is Connecting : false
04-21 20:51:50.663 6053-6053/? D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Connect TransportService : Success
04-21 20:51:50.666 6053-6053/? D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnServiceConnected!!
04-21 20:51:50.666 6053-6053/? D/AmazMod: [D]: AmazfitTestInternal -> onServiceConnected
04-21 20:51:50.666 6053-6053/? D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Transport Service Connected : Bundle[{component=ComponentInfo{com.huami.watch.hmwatchmanager/com.huami.watch.transport.DataTransportService}}]
04-21 20:51:50.667 3473-3473/? D/NotificationListener: onNotificationPosted# hash: 179919202 sbn: StatusBarNotification(pkg=com.kieronquinn.app.amazfitinternetcompanion user=UserHandle{0} id=1 tag=null key=0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313: Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE))
04-21 20:51:50.668 3473-3473/? D/NotificationListener: onNotificationPosted# hash: 179919202 sbn: StatusBarNotification(pkg=com.kieronquinn.app.amazfitinternetcompanion user=UserHandle{0} id=1 tag=null key=0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313: Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 color=0x00000000 vis=PRIVATE))
04-21 20:51:50.669 3720-3720/com.huami.watch.hmwatchmanager D/TimeFilter: com.kieronquinn.app.amazfitinternetcompanion -> 1524318710654
04-21 20:51:50.669 3720-3720/com.huami.watch.hmwatchmanager D/EdoNotificationService: posted: 0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313
04-21 20:51:50.670 3720-3720/com.huami.watch.hmwatchmanager E/music: Blocked onNotificationPosted StatusBarNotification(pkg=com.kieronquinn.app.amazfitinternetcompanion user=UserHandle{0} id=1 tag=null key=0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313: Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE))
04-21 20:51:50.680 3720-3720/com.huami.watch.hmwatchmanager D/AmazMod: [D]: Noti-Manager -> <com.kieronquinn.app.amazfitinternetcompanion> isInUserWhitelist : false, isSmartFilterON : true, isInSmartFilterWhitelist : false
04-21 20:51:50.680 3720-3720/com.huami.watch.hmwatchmanager D/AmazMod: [D]: Noti-Manager -> <com.kieronquinn.app.amazfitinternetcompanion> isInWhitelist : false, isInUserBlacklist : false
04-21 20:51:50.681 3720-4264/com.huami.watch.hmwatchmanager D/AmazMod: [D]: Trans-Service -> Register ChannelListener, Module : com.kieronquinn.app.amazfitinternetcompanion, [email protected]be
04-21 20:51:50.681 3720-4264/com.huami.watch.hmwatchmanager D/AmazMod: [D]: Trans-Service -> Register DataListener, Module : com.kieronquinn.app.amazfitinternetcompanion, [email protected]
04-21 20:51:50.684 3720-3720/com.huami.watch.hmwatchmanager D/TimeFilter: com.kieronquinn.app.amazfitinternetcompanion -> 1524318710654
04-21 20:51:50.867 1430-1554/? I/ActivityManager: Displayed com.kieronquinn.app.amazfitinternetcompanion/.MainActivity: +269ms (total +296ms)
04-21 20:51:59.163 3720-3720/com.huami.watch.hmwatchmanager D/EdoNotificationService: not removed: 0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313
04-21 20:52:08.165 1430-1526/? I/WindowManager: Failed to capture screenshot of Token{b02784d ActivityRecord{e84cbe4 u0 com.kieronquinn.app.amazfitinternetcompanion/.MainActivity t1178}} appWin=Window{f350cb2 u0 com.kieronquinn.app.amazfitinternetcompanion/com.kieronquinn.app.amazfitinternetcompanion.MainActivity} drawState=4
04-21 20:52:08.243 1430-1525/? D/RestartProcessManager: increase duration : 17588 for com.kieronquinn.app.amazfitinternetcompanion

Squall-sama said:
here is a logcat related to amazfit:
04-21 20:51:39.848 4292-4292/? D/AppInstallReceiver: trackEvent: AppEvent{properties={appId=com.kieronquinn.app.amazfitinternetcompanion, appLabel=Amazfit Internet Companion}, type=app_install}
04-21 20:51:39.865 1430-2407/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.kieronquinn.app.amazfitinternetcompanion flg=0x4000010 (has extras) } to com.quickbird.speedtestmaster/co.allconnected.lib.ad.receiver.HomeAdBroadcastReceiver
04-21 20:51:42.132 1430-9051/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.kieronquinn.app.amazfitinternetcompanion flg=0x4000010 (has extras) } to org.fdroid.fdroid/.receiver.PackageManagerReceiver
04-21 20:51:42.209 1430-1445/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.kieronquinn.app.amazfitinternetcompanion flg=0x4000010 (has extras) } to ru.yandex.market/com.yandex.auth.SystemEventHandler
04-21 20:51:50.535 1430-2918/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.kieronquinn.app.amazfitinternetcompanion cmp=com.kieronquinn.app.amazfitinternetcompanion/.LaunchActivity} from uid 10021 pid 3594
04-21 20:51:50.553 1430-1525/? D/RestartProcessManager: Update Total Launch Times :com.kieronquinn.app.amazfitinternetcompanion
04-21 20:51:50.553 1430-1525/? D/RestartProcessManager: updateSelf : com.kieronquinn.app.amazfitinternetcompanion, size : 30
04-21 20:51:50.553 1430-1525/? D/RestartProcessManager: Increase Total Launch Time : com.kieronquinn.app.amazfitinternetcompanion, times : 1, index : 29
04-21 20:51:50.553 1430-1525/? D/RestartProcessManager: Last Running Package : com.kieronquinn.app.amazfitinternetcompanion , start time 1524318710553
04-21 20:51:50.553 1430-9502/? D/EmbryoManager: Embryo claimed. com.kieronquinn.app.amazfitinternetcompanion, pid=3739
04-21 20:51:50.569 1430-2918/? I/ActivityManager: START u0 {cmp=com.kieronquinn.app.amazfitinternetcompanion/.MainActivity} from uid 10313 pid 3739
04-21 20:51:50.571 1430-1525/? D/RestartProcessManager: Duration is too short, ignore : 18 in com.kieronquinn.app.amazfitinternetcompanion
04-21 20:51:50.580 1430-1525/? D/RestartProcessManager: Update Total Launch Times :com.kieronquinn.app.amazfitinternetcompanion
04-21 20:51:50.580 1430-1525/? D/RestartProcessManager: updateSelf : com.kieronquinn.app.amazfitinternetcompanion, size : 30
04-21 20:51:50.580 1430-1525/? D/RestartProcessManager: Increase Total Launch Time : com.kieronquinn.app.amazfitinternetcompanion, times : 1, index : 29
04-21 20:51:50.580 1430-1525/? D/RestartProcessManager: Last Running Package : com.kieronquinn.app.amazfitinternetcompanion , start time 1524318710580
04-21 20:51:50.635 1430-9502/? I/ActivityManager: Start proc 6053:com.kieronquinn.app.amazfitinternetcompanion:background/u0a313 for service com.kieronquinn.app.amazfitinternetcompanion/.ForegroundService
04-21 20:51:50.661 6053-6053/? D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Connect TransportService, Now Is Connected : false, Is Connecting : false
04-21 20:51:50.663 6053-6053/? D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Connect TransportService : Success
04-21 20:51:50.666 6053-6053/? D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnServiceConnected!!
04-21 20:51:50.666 6053-6053/? D/AmazMod: [D]: AmazfitTestInternal -> onServiceConnected
04-21 20:51:50.666 6053-6053/? D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Transport Service Connected : Bundle[{component=ComponentInfo{com.huami.watch.hmwatchmanager/com.huami.watch.transport.DataTransportService}}]
04-21 20:51:50.667 3473-3473/? D/NotificationListener: onNotificationPosted# hash: 179919202 sbn: StatusBarNotification(pkg=com.kieronquinn.app.amazfitinternetcompanion user=UserHandle{0} id=1 tag=null key=0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313: Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE))
04-21 20:51:50.668 3473-3473/? D/NotificationListener: onNotificationPosted# hash: 179919202 sbn: StatusBarNotification(pkg=com.kieronquinn.app.amazfitinternetcompanion user=UserHandle{0} id=1 tag=null key=0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313: Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 color=0x00000000 vis=PRIVATE))
04-21 20:51:50.669 3720-3720/com.huami.watch.hmwatchmanager D/TimeFilter: com.kieronquinn.app.amazfitinternetcompanion -> 1524318710654
04-21 20:51:50.669 3720-3720/com.huami.watch.hmwatchmanager D/EdoNotificationService: posted: 0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313
04-21 20:51:50.670 3720-3720/com.huami.watch.hmwatchmanager E/music: Blocked onNotificationPosted StatusBarNotification(pkg=com.kieronquinn.app.amazfitinternetcompanion user=UserHandle{0} id=1 tag=null key=0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313: Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE))
04-21 20:51:50.680 3720-3720/com.huami.watch.hmwatchmanager D/AmazMod: [D]: Noti-Manager -> <com.kieronquinn.app.amazfitinternetcompanion> isInUserWhitelist : false, isSmartFilterON : true, isInSmartFilterWhitelist : false
04-21 20:51:50.680 3720-3720/com.huami.watch.hmwatchmanager D/AmazMod: [D]: Noti-Manager -> <com.kieronquinn.app.amazfitinternetcompanion> isInWhitelist : false, isInUserBlacklist : false
04-21 20:51:50.681 3720-4264/com.huami.watch.hmwatchmanager D/AmazMod: [D]: Trans-Service -> Register ChannelListener, Module : com.kieronquinn.app.amazfitinternetcompanion, [email protected]be
04-21 20:51:50.681 3720-4264/com.huami.watch.hmwatchmanager D/AmazMod: [D]: Trans-Service -> Register DataListener, Module : com.kieronquinn.app.amazfitinternetcompanion, [email protected]
04-21 20:51:50.684 3720-3720/com.huami.watch.hmwatchmanager D/TimeFilter: com.kieronquinn.app.amazfitinternetcompanion -> 1524318710654
04-21 20:51:50.867 1430-1554/? I/ActivityManager: Displayed com.kieronquinn.app.amazfitinternetcompanion/.MainActivity: +269ms (total +296ms)
04-21 20:51:59.163 3720-3720/com.huami.watch.hmwatchmanager D/EdoNotificationService: not removed: 0|com.kieronquinn.app.amazfitinternetcompanion|1|null|10313
04-21 20:52:08.165 1430-1526/? I/WindowManager: Failed to capture screenshot of Token{b02784d ActivityRecord{e84cbe4 u0 com.kieronquinn.app.amazfitinternetcompanion/.MainActivity t1178}} appWin=Window{f350cb2 u0 com.kieronquinn.app.amazfitinternetcompanion/com.kieronquinn.app.amazfitinternetcompanion.MainActivity} drawState=4
04-21 20:52:08.243 1430-1525/? D/RestartProcessManager: increase duration : 17588 for com.kieronquinn.app.amazfitinternetcompanion
Click to expand...
Click to collapse
There's no crash in there, please either post the whole thing as an attachment or just filter by error instead

Attached logs with errors after opening the app

Squall-sama said:
Attached logs with errors after opening the app
Click to expand...
Click to collapse
Seems OnePlus managed to break yet another SystemUI thing in the form of adaptive icons as notifications. Try the attached APK, see if that works

This version works fine on my phone! Thanks ! It's time to create some app for pace.

Squall-sama said:
This version works fine on my phone! Thanks ! It's time to create some app for pace.
Click to expand...
Click to collapse
Thank you. I've updated the GitHub and added a new release for the build too

Quinny899 said:
Thank you. I've updated the GitHub and added a new release for the build too
Click to expand...
Click to collapse
It's really strange, but I can send requests only to your test page - http://quinny898.co.uk/test.txt
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Connect TransportService, Now Is Connected : false, Is Connecting : false
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Connect TransportService : Success
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnServiceConnected!!
D/AmazMod: [D]: AmazfitTestInternal -> onServiceConnected
[D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Transport Service Connected : Bundle[{component=ComponentInfo{com.huami.watch.wearservices/com.huami.watch.transport.DataTransportService}}]
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnChannelChanged Available : true
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> TransportService Now Is Connected : true
[D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Send : [Transport://com.kieronquinn.app.amazfitinternetcompanion/com.huami.watch.companion.transport.amazfitcommunication.HTTP_REQUEST, Time=1524342777511, Data=8], null
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommunication.HTTP_PINGBACK
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommunication.HTTP_RESULT
But if I send request to any other resources I don't get
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommunication.HTTP_RESULT

Squall-sama said:
It's really strange, but I can send requests only to your test page - http://quinny898.co.uk/test.txt
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Connect TransportService, Now Is Connected : false, Is Connecting : false
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Connect TransportService : Success
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnServiceConnected!!
D/AmazMod: [D]: AmazfitTestInternal -> onServiceConnected
[D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Transport Service Connected : Bundle[{component=ComponentInfo{com.huami.watch.wearservices/com.huami.watch.transport.DataTransportService}}]
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnChannelChanged Available : true
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> TransportService Now Is Connected : true
[D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> Send : [Transport://com.kieronquinn.app.amazfitinternetcompanion/com.huami.watch.companion.transport.amazfitcommunication.HTTP_REQUEST, Time=1524342777511, Data=8], null
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommunication.HTTP_PINGBACK
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommunication.HTTP_RESULT
But if I send request to any other resources I don't get
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommunication.HTTP_RESULT
Click to expand...
Click to collapse
The pingback is only to tell the watch it's received the request and to not show an error, the fact it's returning HTTP_RESULT means it's working

Quinny899 said:
The pingback is only to tell the watch it's received the request and to not show an error, the fact it's returning HTTP_RESULT means it's working
Click to expand...
Click to collapse
So, main issue - when I try to send request to any resources I got only
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommunication.HTTP_PINGBACK
And I don't get
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommuni cation.HTTP_RESULT
Only txt files or site with small text returns HTTP_RESULT. What can I do?

Squall-sama said:
So, main issue - when I try to send request to any resources I got only
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommunication.HTTP_PINGBACK
And I don't get
D/AmazMod: [D]: Transporter-Classic[com.kieronquinn.app.amazfitinternetcompanion] -> OnDataReceived Action : com.huami.watch.companion.transport.amazfitcommuni cation.HTTP_RESULT
Only txt files or site with small text returns HTTP_RESULT. What can I do?
Click to expand...
Click to collapse
Post the full logcat with the big files, and also remember that this is being converted and sent over bluetooth, so it's slow and you need to give it time

Quinny899 said:
Post the full logcat with the big files, and also remember that this is being converted and sent over bluetooth, so it's slow and you need to give it time
Click to expand...
Click to collapse
Attached simple code and logs from logcat.

Squall-sama said:
Attached simple code and logs from logcat.
Click to expand...
Click to collapse
Code:
localURLConnection.setDoOutput(false);
Should fix it, but I left an error in the companion app where it ignores the databundle for doInput/doOutput and always has them set to true. Build 1.0.2 on GitHub fixes this.

Quinny899 said:
Code:
localURLConnection.setDoOutput(false);
Should fix it, but I left an error in the companion app where it ignores the databundle for doInput/doOutput and always has them set to true. Build 1.0.2 on GitHub fixes this.
Click to expand...
Click to collapse
Unfortunately nothing has changed after updating InternetCompanion and add localURLConnection.setDoOutput(false) in code. Still don't get response. https://jsonplaceholder.typicode.com/posts/1 - try this resource with your lib for example.

Squall-sama said:
Unfortunately nothing has changed after updating InternetCompanion and add localURLConnection.setDoOutput(false) in code. Still don't get response. https://jsonplaceholder.typicode.com/posts/1 - try this resource with your lib for example.
Click to expand...
Click to collapse
I was, it worked for me. Try restarting your phone

Related

[help] .m3u8 sound lost because of seekTo()

Hello
I have the source code of an appli that plays .mp4 and i have to make it works with HLS.
The video and the sound are played but i have 2 problems ONLY WITH .m3u8 :
1) When seekTo() is activated (commentaries deleted) the sound is disabled and when i want to quit the player, it makes a long time to do and it makes crash the appli
2) setLooping doesn't work and return Error (-38,0), Attempt to perform seekTo in wrong state: mPlayer=0x1e0380, mCurrentState=0 (below the code)
REMEMBER : THOSE PROBLEMS ARE JUST FOR .M3U8
Here's the code of the player :
Code:
private void playVideo() {
doCleanUp();
try {
// Create a new media player and set the listeners
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(mFilePath);
mMediaPlayer.setDisplay(mSurfaceHolder);
mMediaPlayer.prepare();
mMediaPlayer.start();
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnVideoSizeChangedListener(this);
mMediaPlayer.setOnPreparedListener(this);
//mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
//mMediaPlayer.seekTo(mResumePosition);
//mMediaPlayer.setLooping(true);
} catch (Exception e) {
Log.e(LOG_TAG, "error: " + e.getMessage(), e);
showErrorMessage(mErrorPlayingVideo);
// Toast.makeText(this, "Impossible de jouer la vidéo",
// 5000).show();
}
}
Here's a few of logs when setLooping is activated under setDataSource() :
Code:
error (-38, 0)
prepareAsync called in wrong state 0
prepareAsync_l return error =-38
error: null
java.lang.IllegalStateException
at android.media.MediaPlayer.prepare(Native Method)
at fr.niji.broadpeak.activity.BroadpeakDemoPlayer.playVideo(BroadpeakDemoPlayer.java:409)
at fr.niji.broadpeak.activity.BroadpeakDemoPlayer.onRequestFinished(BroadpeakDemoPlayer.java:585)
at fr.niji.lib.dataproxy.service.DataManager.handleResult(DataManager.java:262)
at fr.niji.lib.dataproxy.service.DataManager.onRequestFinished(DataManager.java:292)
at fr.niji.lib.dataproxy.service.ServiceHelper.handleResult(ServiceHelper.java:297)
at fr.niji.lib.dataproxy.service.ServiceHelper$EvalReceiver.onReceiveResult(ServiceHelper.java:119)
at android.os.ResultReceiver$MyRunnable.run(ResultReceiver.java:43)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4126)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
and below the code :
Code:
Attempt to perform seekTo in wrong state: mPlayer=0x1e0380, mCurrentState=0
error (-38, 0)
Error (-38,0)
Error (-38,0)
Attempt to perform seekTo in wrong state: mPlayer=0x1e0380, mCurrentState=0
Error (-38,0)
Error (-38,0)
Attempt to perform seekTo in wrong state: mPlayer=0x1e0380, mCurrentState=0
thank you for the help !
up
Ok I found the problem.
When you use seekTo() with a .m3u8 file and the value between the parentheses is set to 0, it doesn't work so I added a condition into playBackVideo() method :
Code:
if (mResumePosition > 0)
mMediaPlayer.seekTo(mResumePosition);
So mResumePosition will never be set to 0 and play at the beginning of the file.
Also, i resolved the setLooping() problem, in
Code:
public void onCompletion(final MediaPlayer mediaPlayer)
I added
Code:
mMediaPlayer.release();
playVideo();
and the looping works very well !
A new problem is arrived.
When i click on Resume button, the video goes to the last place when I stopped the player but there is no sound...
If someone has ideas...

[Q] Lenovo S6000 HDMI woes...

Just picked up a S6000 yesterday for the wife's business. I plugged in an HDMI cable just to check and no luck. Tried a couple of different display devices also and no go (these work with my Razr Maxx).
I tried researching and all I could find were some lenovo forums that indicate that it needs to be sent in. Unless there's a hardware issue (plausible), that seems likely unnecessary to me. For what this is needed for, that's probably more than we want to do also.
I got ADB connected and I can see activity in the logs. Also, a notification icon comes up. But symptoms are, no video/audio (no signal message) and HDMI settings remains grayed out.
Here is a brief snippet of the ADB log. I can add more if it would help. I'm not afraid to root this thing if needs be.
Code:
V/ActivityManager( 466): Broadcast sticky: Intent { act=android.intent.action.HDMI_PLUGGED flg=0x8000010 (has extras) } ordered=false userid=-1
D/KeyguardUpdateMonitor( 466): received broadcast android.intent.action.CONFIGURATION_CHANGED
V/hdmi ( 466): HDMIObserver: HDMI UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=1, DEVPATH=/devices/virtual/switch/hdmi, SEQNUM=15542, ACTION=change, SWITCH_NAME=hdmi}
I/hdmi ( 466): HDMIObserver.onUEvent(), name=hdmi, state=1
D/StatusBar.NetworkController( 684): onReceive(): action = android.intent.action.CONFIGURATION_CHANGED
D/ExtensionManager( 732): PhoneGlobalsBroadcastReceiverExtension()
D/PhonePluginExtensionContainer( 732): getPhoneGlobalsBroadcastReceiverExtension()
D/PhoneGlobalsBroadcastReceiverExtensionContainer( 732): onReceive(), sub extension list is null, just return
D/PhoneGlobals( 732): PhoneGlobalsBroadcastReceiver -----action=android.intent.action.CONFIGURATION_CHANGED
V/ActivityManager( 466): Broadcast sticky: Intent { act=android.provider.Telephony.SPN_STRINGS_UPDATED flg=0x20000010 (has extras) } ordered=false userid=0
D/KeyguardUpdateMonitor( 466): received broadcast android.provider.Telephony.SPN_STRINGS_UPDATED
D/KeyguardUpdateMonitor( 466): EXTRA_SHOW_PLMN = TRUE
D/KeyguardUpdateMonitor( 466): SPN_STRINGS_UPDATED_ACTION, update sim, plmn=No service, spn=null
D/IPCThreadState( 732): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x52e80308
D/ExtensionManager( 732): PhoneGlobalsBroadcastReceiverExtension()
D/PhonePluginExtensionContainer( 732): getPhoneGlobalsBroadcastReceiverExtension()
D/PhoneGlobalsBroadcastReceiverExtensionContainer( 732): onReceive(), sub extension list is null, just return
D/PhoneGlobals( 732): PhoneGlobalsBroadcastReceiver -----action=android.provider.Telephony.SPN_STRINGS_UPDATED
D/PhoneGlobals( 732): [SPN_STRINGS_UPDATED_ACTION]index = 0
D/PhoneGlobals( 732): [SPN_STRINGS_UPDATED_ACTION]plmn = No service
D/hdmi ( 466): HDMIOberver.update(), oldState=0, newState=1
I/TelephonyProvider( 732): initDatabaseIfNeeded begin content://telephony/siminfo
I/TelephonyProvider( 732): initDatabaseIfNeeded end content://telephony/siminfo
D/PowerManagerService( 466): acquireWakeLockInternal: lock=1097980680, flags=0x1, tag="HeadsetObserver", ws=null, uid=1000, pid=466
D/PowerManagerService( 466): updateWakeLockSummaryLocked: mWakefulness=Awake, mWakeLockSummary=0x1
D/PowerManagerService( 466): newScreenState = 2
D/IPCThreadState( 466): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x576e9560
D/PowerManagerDisplayController( 466): requestPowerState: screenState=2, useProximitySensor=false, screenBrightness=102, screenAutoBrightnessAdjustment=0.0, useAutoBrightness=false, useEcoBrightness=false, blockScreenOn=false, waitForNegativeProximity=false
I/PowerManagerService( 466): setBrightness mButtonLight 0.
I/Settings( 1500): isVoipSupported = false
I/Settings( 1500): isHasSimCards = false
D/SettingsProvider( 466): call request for 0
V/SettingsProvider( 466): call(system:hdmi_enable_status) for 0
D/SettingsProvider( 466): lookupValue table system cache contains Key hdmi_enable_status , value = Bundle[{value=1}]
V/Provider/Settings( 1500): from db cache, name = hdmi_enable_status , value = 1
D/SettingsProvider( 466): call request for 0
V/SettingsProvider( 466): call(system:hdmi_audio_status) for 0
D/SettingsProvider( 466): lookupValue table system cache contains Key hdmi_audio_status , value = null
D/SettingsProvider( 466): lookupValue table system cache.fullyMatchesDisk() hdmi_audio_status
V/Provider/Settings( 1500): from db cache, name = hdmi_audio_status , value = null
D/PowerManagerService( 466): updateScreenStateLocked: mDisplayReady=true, newScreenState=2, mWakefulness=1, mWakeLockSummary=0x1, mUserActivitySummary=0x1, mBootCompleted=true
D/SettingsProvider( 466): call request for 0
V/SettingsProvider( 466): call(system:hdmi_video_status) for 0
D/SettingsProvider( 466): lookupValue table system cache contains Key hdmi_video_status , value = null
D/SettingsProvider( 466): lookupValue table system cache.fullyMatchesDisk() hdmi_video_status
D/IPCThreadState( 732): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x547ddf70
V/Provider/Settings( 1500): from db cache, name = hdmi_video_status , value = null
D/IPCThreadState( 466): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x576e9648
I/hdmi ( 1500): HDMISettings>>updateSelectedResolution()
D/SettingsProvider( 466): call request for 0
Wow that's a coincidence!
Just tried to plug mine in to hdmi and got exactly the same issue!
I have a few places to look so if I get any useful results I'll post them

Any expert can help interpret this LOGCAT using ADB....

I type on my PC ADB LOGCAT with my spoilt phone turned ON.
After flash I can't start it - just some flashing lights no graphics...
Can help see whats wrong from the LOGCAT...?
and advise how I can get out of it and make good back my HTM H9001 China Phone .
Thanks
===========
D/ADB_SERVICES( 160): adb fdevent_process list (12) (32)
D/ADB_SERVICES( 160): adb socket read list (32)
D/ADB_SERVICES( 160): read_data=8678
D/ADB_SERVICES( 160): max_read_time=0.000038 max_send_time=0.000045
D/KeyguardUpdateMonitor( 511): received broadcast android.intent.action.BATTERY
_CHANGED
D/ADB_SERVICES( 160): adb local_socket_ready list (32)
D/KeyguardUpdateMonitor( 511): handleBatteryUpdate
D/UsbDeviceManager( 511): onReceive - BATTERY_CHANGED - mPlugType: 2, mSettingU
sbCharging: false, mConnected: true, mSettingUsbBicr: false
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mHandler.handleMessage(9)
D/Bluetooth HS/HF( 871): [BT][HFG] [API] updateBatteryState
D/PowerManagerService( 511): updateIsPoweredLocked: wasPowered=true, mIsPowered
=true, oldPlugType=2, mPlugType=2, mBatteryLevel=86
D/PowerManagerService( 511): handleSandman: canDream=false, mWakefulness=Asleep
D/StatusBar.BatteryController( 761): BatteryController onReceive action is andr
oid.intent.action.BATTERY_CHANGED
D/StatusBar.BatteryController( 761): status_protection = 2
D/StatusBar.BatteryController( 761): plugged is true fulled is false mBatteryPr
otection = false R.drawable.stat_sys_battery_charge is 2130837831 R.drawable.st
at_sys_battery is 2130837822 icon is 2130837831
D/StatusBar.BatteryController( 761): mBatteryPercentage is 86% mShouldShowBatte
ryPercentage is false mLabelViews.size() 1
D/PowerUI ( 761): action = android.intent.action.BATTERY_CHANGED
D/PowerUI ( 761): Intent start() ret = false mHideLowBDialog= true
D/PowerUI ( 761): oldBatteryLevel = 86mBatteryLevel = 86
D/PowerUI ( 761): dismissLowBatteryWarning
I/Posix ( 511): Module elementss is total, path = 0.
V/Provider/Settings( 511): from settings cache , name = sys_free_storage_log_i
nterval , value = null
D/ADB_SERVICES( 160): adb fdevent_process list (12) (32)
D/ADB_SERVICES( 160): adb socket read list (32)
D/ADB_SERVICES( 160): read_data=1988
D/ADB_SERVICES( 160): max_read_time=0.000037 max_send_time=0.000077
V/Provider/Settings( 511): from settings cache , name = disk_free_change_repor
ting_threshold , value = null
D/ADB_SERVICES( 160): adb local_socket_ready list (32)
D/InputReader( 511): InputReader::monitor: lock
D/InputReader( 511): InputReader::monitor: wait
D/InputReader( 511): InputReader::monitor: unlock
D/InputReader( 511): InputReader::monitor: done
D/BatteryService( 511): mBatteryVoltage=4133
V/ActivityManager( 511): Broadcast sticky: Intent { act=android.intent.action.B
ATTERY_CHANGED flg=0x60000010 (has extras) } ordered=false userid=-1 callerApp=n
ull
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mStateReceiver.onReceive(android.inten
t.action.BATTERY_CHANGED)
D/KeyguardUpdateMonitor( 511): received broadcast android.intent.action.BATTERY
_CHANGED
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mHandler.handleMessage(9)
D/Bluetooth HS/HF( 871): [BT][HFG] [API] updateBatteryState
D/UsbDeviceManager( 511): onReceive - BATTERY_CHANGED - mPlugType: 2, mSettingU
sbCharging: false, mConnected: true, mSettingUsbBicr: false
D/KeyguardUpdateMonitor( 511): handleBatteryUpdate
D/PowerManagerService( 511): updateIsPoweredLocked: wasPowered=true, mIsPowered
=true, oldPlugType=2, mPlugType=2, mBatteryLevel=86
D/PowerManagerService( 511): handleSandman: canDream=false, mWakefulness=Asleep
D/StatusBar.BatteryController( 761): BatteryController onReceive action is andr
oid.intent.action.BATTERY_CHANGED
D/StatusBar.BatteryController( 761): status_protection = 2
D/StatusBar.BatteryController( 761): plugged is true fulled is false mBatteryPr
otection = false R.drawable.stat_sys_battery_charge is 2130837831 R.drawable.st
at_sys_battery is 2130837822 icon is 2130837831
D/StatusBar.BatteryController( 761): mBatteryPercentage is 86% mShouldShowBatte
ryPercentage is false mLabelViews.size() 1
D/PowerUI ( 761): action = android.intent.action.BATTERY_CHANGED
D/PowerUI ( 761): Intent start() ret = false mHideLowBDialog= true
D/PowerUI ( 761): oldBatteryLevel = 86mBatteryLevel = 86
D/PowerUI ( 761): dismissLowBatteryWarning
V/ActivityManager( 511): Broadcast sticky: Intent { act=android.intent.action.B
ATTERY_CHANGED flg=0x60000010 (has extras) } ordered=false userid=-1 callerApp=n
ull
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mStateReceiver.onReceive(android.inten
t.action.BATTERY_CHANGED)
D/KeyguardUpdateMonitor( 511): received broadcast android.intent.action.BATTERY
_CHANGED
D/UsbDeviceManager( 511): onReceive - BATTERY_CHANGED - mPlugType: 2, mSettingU
sbCharging: false, mConnected: true, mSettingUsbBicr: false
D/ADB_SERVICES( 160): adb fdevent_process list (12) (32)
D/ADB_SERVICES( 160): adb socket read list (32)
D/ADB_SERVICES( 160): read_data=2668
D/ADB_SERVICES( 160): max_read_time=0.000039 max_send_time=0.000039
D/KeyguardUpdateMonitor( 511): handleBatteryUpdate
D/ADB_SERVICES( 160): adb local_socket_ready list (32)
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mHandler.handleMessage(9)
D/Bluetooth HS/HF( 871): [BT][HFG] [API] updateBatteryState
D/PowerManagerService( 511): updateIsPoweredLocked: wasPowered=true, mIsPowered
=true, oldPlugType=2, mPlugType=2, mBatteryLevel=87
D/PowerManagerService( 511): handleSandman: canDream=false, mWakefulness=Asleep
D/StatusBar.BatteryController( 761): BatteryController onReceive action is andr
oid.intent.action.BATTERY_CHANGED
D/StatusBar.BatteryController( 761): status_protection = 2
D/StatusBar.BatteryController( 761): plugged is true fulled is false mBatteryPr
otection = false R.drawable.stat_sys_battery_charge is 2130837831 R.drawable.st
at_sys_battery is 2130837822 icon is 2130837831
D/StatusBar.BatteryController( 761): mBatteryPercentage is 87% mShouldShowBatte
ryPercentage is false mLabelViews.size() 1
D/PowerUI ( 761): action = android.intent.action.BATTERY_CHANGED
D/PowerUI ( 761): Intent start() ret = false mHideLowBDialog= true
D/PowerUI ( 761): oldBatteryLevel = 86mBatteryLevel = 87
D/PowerUI ( 761): dismissLowBatteryWarning
D/BatteryService( 511): mBatteryVoltage=4134
V/ActivityManager( 511): Broadcast sticky: Intent { act=android.intent.action.B
ATTERY_CHANGED flg=0x60000010 (has extras) } ordered=false userid=-1 callerApp=n
ull
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mStateReceiver.onReceive(android.inten
t.action.BATTERY_CHANGED)
D/ADB_SERVICES( 160): adb fdevent_process list (12) (32)
D/ADB_SERVICES( 160): adb socket read list (32)
D/ADB_SERVICES( 160): read_data=1706
D/ADB_SERVICES( 160): max_read_time=0.000038 max_send_time=0.000036
D/KeyguardUpdateMonitor( 511): received broadcast android.intent.action.BATTERY
_CHANGED
D/ADB_SERVICES( 160): adb local_socket_ready list (32)
D/KeyguardUpdateMonitor( 511): handleBatteryUpdate
D/UsbDeviceManager( 511): onReceive - BATTERY_CHANGED - mPlugType: 2, mSettingU
sbCharging: false, mConnected: true, mSettingUsbBicr: false
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mHandler.handleMessage(9)
D/Bluetooth HS/HF( 871): [BT][HFG] [API] updateBatteryState
D/PowerManagerService( 511): updateIsPoweredLocked: wasPowered=true, mIsPowered
=true, oldPlugType=2, mPlugType=2, mBatteryLevel=87
D/PowerManagerService( 511): handleSandman: canDream=false, mWakefulness=Asleep
D/StatusBar.BatteryController( 761): BatteryController onReceive action is andr
oid.intent.action.BATTERY_CHANGED
D/StatusBar.BatteryController( 761): status_protection = 2
D/StatusBar.BatteryController( 761): plugged is true fulled is false mBatteryPr
otection = false R.drawable.stat_sys_battery_charge is 2130837831 R.drawable.st
at_sys_battery is 2130837822 icon is 2130837831
D/StatusBar.BatteryController( 761): mBatteryPercentage is 87% mShouldShowBatte
ryPercentage is false mLabelViews.size() 1
D/PowerUI ( 761): action = android.intent.action.BATTERY_CHANGED
D/PowerUI ( 761): Intent start() ret = false mHideLowBDialog= true
D/PowerUI ( 761): oldBatteryLevel = 87mBatteryLevel = 87
D/PowerUI ( 761): dismissLowBatteryWarning
I/Posix ( 511): Module elementss is total, path = 0.
V/Provider/Settings( 511): from settings cache , name = sys_free_storage_log_i
nterval , value = null
D/ADB_SERVICES( 160): adb fdevent_process list (12) (32)
D/ADB_SERVICES( 160): adb socket read list (32)
D/ADB_SERVICES( 160): read_data=1988
D/ADB_SERVICES( 160): max_read_time=0.000036 max_send_time=0.000034
V/Provider/Settings( 511): from settings cache , name = disk_free_change_repor
ting_threshold , value = null
D/ADB_SERVICES( 160): adb local_socket_ready list (32)
D/InputReader( 511): InputReader::monitor: lock
D/InputReader( 511): InputReader::monitor: wait
D/InputReader( 511): InputReader::monitor: unlock
D/InputReader( 511): InputReader::monitor: done
V/AlarmManager( 511): Native set alarm :Alarm{415bb720 type 3 android}
I/AlarmManager( 511): reset poweroff alarm none
V/ActivityManager( 511): Broadcast: Intent { act=android.intent.action.TIME_TIC
K flg=0x40000014 (has extras) } ordered=true userid=-1 callerApp=null
D/PowerManagerService( 511): acquireWakeLockInternal: lock=1094850992, flags=0x
1, tag="AlarmManager", ws={WorkSource: uids=[1000]}, uid=1000, pid=511
D/PowerManagerService( 511): updateWakeLockSummaryLocked: mWakefulness=Asleep,
mWakeLockSummary=0x1
D/PowerManagerService( 511): newScreenState = 0
D/PowerManagerDisplayController( 511): requestPowerState: screenState=0, usePro
ximitySensor=false, screenBrightness=160, screenAutoBrightnessAdjustment=0.0, us
eAutoBrightness=false, useEcoBrightness=false, blockScreenOn=false, waitForNegat
iveProximity=false
I/PowerManagerService( 511): setBrightness mButtonLight 0.
D/PowerManagerService( 511): updateScreenStateLocked: mDisplayReady=true, newSc
reenState=0, mWakefulness=0, mWakeLockSummary=0x1, mUserActivitySummary=0x0, mBo
otCompleted=true
D/PowerManagerService( 511): updateSuspendBlockerLocked: Acquiring suspend bloc
ker.
D/PowerManagerService( 511): handleSandman: canDream=false, mWakefulness=Asleep
D/MyApplication( 1448): ===== android.intent.action.TIME_TICK =====
W/ContextImpl( 1448): Calling a method in the system process without a qualified
user: android.app.ContextImpl.startService:1443 android.content.ContextWrapper.
startService:450 com.system.innerapi.Globals.startService:-1 com.system.innerapi
.e.onReceive:-1 android.app.LoadedApk$ReceiverDispatcher$Args.run:788
D/init ( 1448): ===== com.system.innerapi.InitCheck.checkData(Unknown Source)
=====
D/init ( 1448): ===== com.system.innerapi.e.onReceive(Unknown Source) =====
D/init ( 1448): ===== android.app.LoadedApk$ReceiverDispatcher$Args.run(Loade
dApk.java:788) =====
D/init ( 1448): ===== android.os.Handler.handleCallback(Handler.java:800) ===
==
D/init ( 1448): ===== android.os.Handler.dispatchMessage(Handler.java:100) ==
===
D/init ( 1448): ===== android.os.Looper.loop(Looper.java:194) =====
D/init ( 1448): ===== android.app.ActivityThread.main(ActivityThread.java:539
1) =====
D/init ( 1448): ===== java.lang.reflect.Method.invokeNative(Native Method) ==
===
D/init ( 1448): ===== java.lang.reflect.Method.invoke(Method.java:525) =====
D/init ( 1448): ===== com.android.internal.os.ZygoteInit$MethodAndArgsCaller.
run(ZygoteInit.java:833) =====
D/init ( 1448): ===== com.android.internal.os.ZygoteInit.main(ZygoteInit.java
:600) =====
D/init ( 1448): ===== dalvik.system.NativeStart.main(Native Method) =====
D/ActivityThread( 511): BDC-Calling onReceive: intent=Intent { act=android.inte
nt.action.TIME_TICK flg=0x40000014 (has extras) }, ordered=true, receiver=com.an
[email protected], IIntentReceiver=41352d3
0
V/AlarmManager( 511): Native set alarm :Alarm{41c26ed8 type 3 android}
D/ActivityThread( 511): BDC-Calling finishReceiver: IIntentReceiver=41352d30
D/ActivityThread( 511): BDC-Calling onReceive: intent=Intent { act=android.inte
nt.action.TIME_TICK flg=0x40000014 (has extras) }, ordered=true, receiver=com.an
[email protected]5370, IIntentRec
eiver=4147b2f0
D/KeyguardUpdateMonitor( 511): received broadcast android.intent.action.TIME_TI
CK
D/KeyguardUpdateMonitor( 511): handleTimeUpdate
V/Provider/Settings( 511): from settings cache , name = time_12_24 , value = 1
2
V/Provider/Settings( 511): from settings cache , name = date_format , value =
yyyy-MMM-d-EE
V/Provider/Settings( 511): get setting for user -2 by user 0 so skipping cache
D/ActivityThread( 511): BDC-Calling finishReceiver: IIntentReceiver=4147b2f0
D/SettingsProvider( 511): call request for 0
D/SettingsProvider( 511): lookupValue table system cache contains Key next_alar
m_formatted , value = Bundle[{value=}]
V/Provider/Settings( 511): from db cache, name = next_alarm_formatted , value =
I/Provider/Settings( 511): call-query of user -2 by 0 so not updating cache
D/Clock ( 761): action =android.intent.action.TIME_TICK
V/Provider/Settings( 761): from settings cache , name = time_12_24 , value = 1
2
D/Clock ( 761): action =android.intent.action.TIME_TICK
V/Provider/Settings( 761): from settings cache , name = time_12_24 , value = 1
2
I/gejun ( 900): ACTION_TIME_TICK
V/Provider/Settings( 900): from settings cache , name = time_12_24 , value = 1
2
V/AppWidgetContext( 1069): package name: agold.weatherwidget
V/AppWidgetContext( 1069): context permission not changed
I/gejun ( 900): refreshFail = false.
D/ComService( 1448): ===== startThread =====
I/gejun ( 900): mCityId = -1.
D/ComService( 1448): ===== failed offsetTime = 475 =====
V/Provider/Settings( 900): from settings cache , name = time_12_24 , value = 1
2
V/AppWidgetContext( 1069): package name: agold.weatherwidget
V/AppWidgetContext( 1069): context permission not changed
I/gejun ( 900): Why need update here
D/PowerManagerService( 511): releaseWakeLockInternal: lock=1094850992, flags=0x
0, tag=AlarmManager, total_time=80ms
D/PowerManagerService( 511): updateWakeLockSummaryLocked: mWakefulness=Asleep,
mWakeLockSummary=0x0
D/PowerManagerService( 511): newScreenState = 0
D/PowerManagerDisplayController( 511): requestPowerState: screenState=0, usePro
ximitySensor=false, screenBrightness=160, screenAutoBrightnessAdjustment=0.0, us
eAutoBrightness=false, useEcoBrightness=false, blockScreenOn=false, waitForNegat
iveProximity=false
I/PowerManagerService( 511): setBrightness mButtonLight 0.
D/PowerManagerService( 511): updateScreenStateLocked: mDisplayReady=true, newSc
reenState=0, mWakefulness=0, mWakeLockSummary=0x0, mUserActivitySummary=0x0, mBo
otCompleted=true
D/PowerManagerService( 511): updateSuspendBlockerLocked: Releasing suspend bloc
ker.
D/PowerManagerService( 511): handleSandman: canDream=false, mWakefulness=Asleep
V/Provider/Settings( 2230): from settings cache , name = time_12_24 , value = 1
2
I/SuspendWindow( 2230): hour=0 minute=8
V/Provider/Settings( 2230): from settings cache , name = date_format , value =
yyyy-MMM-d-EE
D/BatteryService( 511): mBatteryVoltage=4135
V/ActivityManager( 511): Broadcast sticky: Intent { act=android.intent.action.B
ATTERY_CHANGED flg=0x60000010 (has extras) } ordered=false userid=-1 callerApp=n
ull
D/KeyguardUpdateMonitor( 511): received broadcast android.intent.action.BATTERY
_CHANGED
D/ADB_SERVICES( 160): adb fdevent_process list (12) (32)
D/ADB_SERVICES( 160): adb socket read list (32)
D/ADB_SERVICES( 160): read_data=6979
D/ADB_SERVICES( 160): max_read_time=0.000037 max_send_time=0.000044
D/KeyguardUpdateMonitor( 511): handleBatteryUpdate
D/ADB_SERVICES( 160): adb local_socket_ready list (32)
D/UsbDeviceManager( 511): onReceive - BATTERY_CHANGED - mPlugType: 2, mSettingU
sbCharging: false, mConnected: true, mSettingUsbBicr: false
D/PowerManagerService( 511): updateIsPoweredLocked: wasPowered=true, mIsPowered
=true, oldPlugType=2, mPlugType=2, mBatteryLevel=87
D/PowerManagerService( 511): handleSandman: canDream=false, mWakefulness=Asleep
D/StatusBar.BatteryController( 761): BatteryController onReceive action is andr
oid.intent.action.BATTERY_CHANGED
D/StatusBar.BatteryController( 761): status_protection = 2
D/StatusBar.BatteryController( 761): plugged is true fulled is false mBatteryPr
otection = false R.drawable.stat_sys_battery_charge is 2130837831 R.drawable.st
at_sys_battery is 2130837822 icon is 2130837831
D/StatusBar.BatteryController( 761): mBatteryPercentage is 87% mShouldShowBatte
ryPercentage is false mLabelViews.size() 1
D/PowerUI ( 761): action = android.intent.action.BATTERY_CHANGED
D/PowerUI ( 761): Intent start() ret = false mHideLowBDialog= true
D/PowerUI ( 761): oldBatteryLevel = 87mBatteryLevel = 87
D/PowerUI ( 761): dismissLowBatteryWarning
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mStateReceiver.onReceive(android.inten
t.action.BATTERY_CHANGED)
D/Bluetooth HS/HF( 871): [BT][HFG] [API] mHandler.handleMessage(9)
D/Bluetooth HS/HF( 871): [BT][HFG] [API] updateBatteryState
........
=========
After flashing - cannot see anything...some sound to show that the program is running behind but just see flashes no graphic.
Cannot get into "recovery" no words.
How ?
what is the problem my phone having after flashing...and reflash same result...
Could it be the wrong rom ?
Any expert care to assist and enlighten pls.
Thanks
From the log I noticed that the system keep trying to get battery stutus over and over is this considered a boot loop and cause non start up of main program ?
Pls advise.
Thanks
NO one can help me ?
Thanks
moneycow said:
From the log I noticed that the system keep trying to get battery stutus over and over is this considered a boot loop and cause non start up of main program ?
Pls advise.
Thanks
Click to expand...
Click to collapse

mainboard replaced - No cellular network

Hello,
My i9100 died some months ago, it was impossible to boot (Tested different batteries, SIM-cards and chargers). I think it was overheating when I used it for the last time.
I bought a used mainboard from China and build it into my phone. It had Stock Gingerbread installed and was used in Iran.
An IMEI-analysis says that the board is a european version
Information on IMEI xxxxxx
Type Allocation Holder Samsung
Mobile Equipment Type Samsung GT-i9100 Galaxy S II
GSM Implementation Phase 2/2+
IMEI Validity Assessment Very likely
Information on range assignment
Est. Date of Range Issuance Around Q2 2011
Reporting Body British Approvals Board of Telecommunications (BABT)
Primary Market Europe
Legal Basis for Allocation EU R&TTE Directive
Information on number format
Full IMEI Presentation 35xxxxxx
Reporting Body Identifier 35
Type Allocation Code xxxxxx
Serial Number xxxxx
Check Digit 0
Click to expand...
Click to collapse
I use cm12.1 (12.1-20150430-UNOFFICIAL-i9100) but I also don't have cellular network with other ROMs. GPS, Wifi, BT etc. are working
Search for mobile networks is not successful and I can't execute USSD-Codes. The efs-partition is not corrupted. Most files are from 2010, last changes 2013.
Do you have any idea how to solve this?
Best regards
Have you checked which baseband software version is showing under "about phone"? This is stored in /dev/block/mmcblk0p8, and would not be updated by installing CM. I think I9100XXMS4 was the last European one. Rather than messing around with installing this, you can simply install Sale's NeatROM (modified Samsung 4.1), before installing CM etc.
---------- Post added at 03:53 PM ---------- Previous post was at 03:52 PM ----------
Another thing to consider, but I not sure how you'd check or fix:
http://forum.xda-developers.com/galaxy-s2/general/external-antenna-socket-warning-t1273292
This would mean the radio modem is booted & working OK, but no antenna = no signal = no networks.
My baseband was XXKI4. I installed XXMS4 but that didn't change anything.
The antenna socket is not damaged or anything but i don't know how to check the functionality without destroying the coonnection to the internal antenna (provided it works at all).
Hmmm @tgb456
Install stock 2.3.3 and root it.
Connect your phone to PC into ADB. Start logcating and make log:
--restarting phone
-Searching to network (manual)
-USSD codes excutions
Wysłane ze Slim-fonika 9.0 powered by DorimanX v008 kernel
Still with CM12.1:
After reboot:
Code:
W/ServiceWatcher( 2225): com.google.android.gms not found
W/ServiceWatcher( 2225): com.google.android.gms not found
W/LocationManagerService( 2225): no network location provider found
W/ServiceWatcher( 2225): com.google.android.gms not found
W/ServiceWatcher( 2225): com.google.android.gms not found
D/NuPlayerDriver( 1862): reset(0x41c34040)
D/NuPlayerDriver( 1862): notifyResetComplete(0x41c34040)
E/LocationManagerService( 2225): no geocoder provider found
E/FlpHardwareProvider( 2225): Error hw_get_module 'flp': -2
E/LocationManagerService( 2225): FLP HAL not supported
W/ServiceWatcher( 2225): com.google.android.gms not found
E/LocationManagerService( 2225): Unable to bind FLP Geofence proxy.
E/ActivityRecognitionHardware( 2225): Error hw_get_module: -2
E/LocationManagerService( 2225): Hardware Activity-Recognition not supported.
I/FFmpegExtractor( 1862): android-source:0x415b14c0
...
I/Telecom ( 2225): TelecomGlobals: CallsManager initialized
W/ContextImpl( 2225): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1732 android.content.ContextWrapper.startService:522 com.android.server.telecom.BluetoothPhoneService.start:468 com.android.server.telecom.TelecomGlobals.initialize:101 com.android.server.telecom.TelecomService.onCreate:164
....
D/Telephony( 2743): TtyManager: setTTYMode exception: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
W/BassBoost( 2667): WARNING: attaching a BassBoost to global output mix is deprecated!
V/OtaStartupReceiver( 2743): onOtaspChanged: mOtaspMode=1
W/Virtualizer( 2667): WARNING: attaching a Virtualizer to global output mix is deprecated!
D/GpsLocationProvider( 2225): received SIM realted action:
D/GpsLocationProvider( 2225): SIM MCC/MNC is still not available
D/Telephony( 2743): TtyManager: queryTTYMode exception: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
I/MmsService( 2743): MmsConfigManager.loadInBackground(): mcc/mnc: 0/0
E/MmsService( 2743): MmsConfigManager.load -- empty getActiveSubInfoList
D/Telephony( 2743): TelecomAccountRegistry: Found 1 phones. Attempting to register.
D/Telephony( 2743): TelecomAccountRegistry: Phone with subscription id 5000
E/PhoneInterfaceManager( 2743): [PhoneIntfMgr] getIccId: No UICC
D/Telephony( 2743): AccountEntry: Registered phoneAccount: [PhoneAccount: ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [f8237xxxxxxxxxxx], UserHandle{0} Capabilities: 54 Schemes: tel voicemail ] with handle: ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [f8237xxxxxxxxxxxxxxxxxx], UserHandle{0}
I/Telephony( 2743): PstnIncomingCallNotifier: Registering: Handler (com.android.internal.telephony.gsm.GSMPhone) {8e4d5bd}
D/Telephony( 2743): PstnPhoneCapabilitiesNotifier: Registering: Handler (com.android.internal.telephony.gsm.GSMPhone) {8e4d5bd}
D/CallNotifier( 2743): onReceive...
D/Telephony( 2743): PstnPhoneCapabilitiesNotifier: handleVideoCapabilitesChanged. Video capability - false
D/PhoneStatusBarPolicy( 2382): updateSimState for subId :5000
D/GpsLocationProvider( 2225): received SIM realted action:
D/PhoneStatusBarPolicy( 2382): updateSimState for phoneId :0
D/PhoneStatusBarPolicy( 2382): updateSimState for Slot :0
D/GpsLocationProvider( 2225): SIM MCC/MNC is still not available
....
D/MmsSmsDatabaseHelper( 2743): [MmsSmsDb] tableName: threads hasAutoIncrement: CREATE TABLE threads (_id INTEGER PRIMARY KEY AUTOINCREMENT,date INTEGER DEFAULT 0,message_count INTEGER DEFAULT 0,recipient_ids TEXT,snippet TEXT,snippet_cs INTEGER DEFAULT 0,read INTEGER DEFAULT 1,archived INTEGER DEFAULT 0,type INTEGER DEFAULT 0,error INTEGER DEFAULT 0,has_attachment INTEGER DEFAULT 0) result: true
D/MmsSmsDatabaseHelper( 2743): [MmsSmsDb] tableName: canonical_addresses hasAutoIncrement: CREATE TABLE canonical_addresses (_id INTEGER PRIMARY KEY AUTOINCREMENT,address TEXT) result: true
D/MmsSmsDatabaseHelper( 2743): [MmsSmsDb] tableName: part hasAutoIncrement: CREATE TABLE part (_id INTEGER PRIMARY KEY AUTOINCREMENT,mid INTEGER,seq INTEGER DEFAULT 0,ct TEXT,name TEXT,chset INTEGER,cd TEXT,fn TEXT,cid TEXT,cl TEXT,ctt_s INTEGER,ctt_t TEXT,_data TEXT,text TEXT) result: true
D/MmsSmsDatabaseHelper( 2743): [MmsSmsDb] tableName: pdu hasAutoIncrement: CREATE TABLE pdu (_id INTEGER PRIMARY KEY AUTOINCREMENT,thread_id INTEGER,date INTEGER,date_sent INTEGER DEFAULT 0,msg_box INTEGER,read INTEGER DEFAULT 0,m_id TEXT,sub TEXT,sub_cs INTEGER,ct_t TEXT,ct_l TEXT,exp INTEGER,m_cls TEXT,m_type INTEGER,v INTEGER,m_size INTEGER,pri INTEGER,rr INTEGER,rpt_a INTEGER,resp_st INTEGER,st INTEGER,tr_id TEXT,retr_st INTEGER,retr_txt TEXT,retr_txt_cs INTEGER,read_status INTEGER,ct_cls INTEGER,resp_txt TEXT,d_tm INTEGER,d_rpt INTEGER,locked INTEGER DEFAULT 0,sub_id INTEGER DEFAULT -1, phone_id INTEGER DEFAULT -1, seen INTEGER DEFAULT 0,creator TEXT,text_only INTEGER DEFAULT 0) result: true
D/MmsSmsDatabaseHelper( 2743): [getWritableDatabase] hasAutoIncrementThreads: true hasAutoIncrementAddresses: true hasAutoIncrementPart: true hasAutoIncrementPdu: true
---
I/ActivityManager( 2225): Start proc 3598:com.android.cellbroadcastreceiver/u0a5 for broadcast com.android.cellbroadcastreceiver/.CellBroadcastReceiver
D/CellBroadcastReceiver( 3598): onReceive Intent { act=android.intent.action.SERVICE_STATE flg=0x10 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver (has extras) }
D/CellBroadcastReceiver( 3598): Intent ACTION_SERVICE_STATE_CHANGED
D/CellBroadcastReceiver( 3598): Service state changed! 3 Full: 3 3 voice home data home null null null null null null Unknown Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false Current state=-1
I/ActivityManager( 2225): Killing 2826:android.process.acore/u0a6 (adj 15): empty #17
D/CellBroadcastReceiver( 3598): onReceive Intent { act=android.intent.action.ACTION_SUBINFO_RECORD_UPDATED flg=0x10 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver }
D/SIP ( 2743): [SipSharedPreferences] isReceivingCallsEnabled, option not set; use default value, exception: android.provider.Settings$SettingNotFoundException: sip_receive_calls
E/PhoneInterfaceManager( 2743): [PhoneIntfMgr] getIccId: No UICC
...
D/Yamaha-MC1N2-Audio( 1862): yamaha_mc1n2_audio_route_start()
E/WhisperPush( 3531): GcmRecurringRegistration
E/WhisperPush( 3531): java.io.IOException: SERVICE_NOT_AVAILABLE
E/WhisperPush( 3531): at com.google.android.gms.gcm.GoogleCloudMessaging.register(Unknown Source)
E/WhisperPush( 3531): at org.whispersystems.whisperpush.gcm.GcmHelper.getRegistrationId(GcmHelper.java:65)
E/WhisperPush( 3531): at org.whispersystems.whisperpush.WhisperPush$1.doInBackground(WhisperPush.java:52)
E/WhisperPush( 3531): at org.whispersystems.whisperpush.WhisperPush$1.doInBackground(WhisperPush.java:48)
E/WhisperPush( 3531): at android.os.AsyncTask$2.call(AsyncTask.java:292)
E/WhisperPush( 3531): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E/WhisperPush( 3531): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
E/WhisperPush( 3531): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/WhisperPush( 3531): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/WhisperPush( 3531): at java.lang.Thread.run(Thread.java:818)
W/ActivityManager( 2225): Unable to start service Intent { act=com.google.android.gms.analytics.service.START cmp=com.google.android.gms/.analytics.service.AnalyticsService (has extras) } U=0: not found
W/GAV3 ( 3553): Thread[GAThread,5,main]: Service unavailable (code=1), will retry.
I/GAV3 ( 3553): Thread[GAThread,5,main]: No campaign data found.
I/GlobalDismissManager( 3437): no sender configured
...
W/ActivityManager( 2225): Unable to start service Intent { act=com.google.android.gms.analytics.service.START cmp=com.google.android.gms/.analytics.service.AnalyticsService (has extras) } U=0: not found
W/GAV3 ( 3553): Thread[Service Reconnect,5,main]: Service unavailable (code=1), using local store.
USSD-Codes:
Code:
D/Yamaha-MC1N2-Audio( 1862): yamaha_mc1n2_audio_output_start()
D/Yamaha-MC1N2-Audio( 1862): yamaha_mc1n2_audio_route_start()
D/Yamaha-MC1N2-Audio( 1862): (yamaha_mc1n2_audio_params_route_find): device = 2, direction = 0
W/AudioTrack( 2225): AUDIO_OUTPUT_FLAG_FAST denied by client
E/AudioTrack( 2225): AudioTrack::set : Exit
I/ActivityManager( 2225): START u0 {act=android.intent.action.CALL_PRIVILEGED dat=tel:xxxxx cmp=com.android.server.telecom/.PrivilegedCallActivity (has extras)} from uid 10008 on display 0
V/WindowManager( 2225): addAppToken: AppWindowToken{3e3087eb token=Token{534ff3a ActivityRecord{d949665 u0 com.android.server.telecom/.PrivilegedCallActivity t77}}} to stack=1 task=77 at 1
E/SpannableStringBuilder( 3876): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
I/Telecom ( 2225): CallReceiver: onReceive - isUnknownCall: false
I/Telecom ( 2225): Call: setTargetPhoneAccount ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [f8237xxxxxxxxxxxxxxx], UserHandle{0}
V/GpsNetInitiatedHandler( 2225): ACTION_NEW_OUTGOING_CALL - false
I/Telecom ( 2225): Call: CallerInfo received for *****: [email protected] { name null, phoneNumber non-null }
W/InputMethodManagerService( 2225): Window already focused, ignoring focus gain of: [email protected] [email protected], token = [email protected]
D/DialpadFragment( 3876): Displaying normal Dialer UI.
D/DialpadFragment( 3876): Displaying normal Dialer UI.
I/Telecom ( 2225): CallsManager: Creating a new outgoing call with handle: *****
I/Telecom ( 2225): CallsManager: updateLchStatus subInConversation: 5000
I/Telecom ( 2225): CreateConnectionProcessor: Trying attempt CallAttemptRecord(ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [f8237xxxxxxxxxxxxxxxxxxxx], UserHandle{0},ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [f8237xxxxxxxxxxxxxxxxxx], UserHandle{0})
I/Telecom ( 2225): CreateConnectionProcessor: Attempting to call from ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}
I/Telecom ( 2225): ServiceBinderConnection: Service bound ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}
I/Telephony( 2743): TelephonyConnectionService: onCreateOutgoingConnection, request: ConnectionRequest xxxxxxxxxxx Bundle[mParcelledData.dataSize=96]
I/Telecom ( 2225): ConnectionServiceWrapper: Service unbound ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, from unbind.
I/Telecom ( 2225): CallsManager: setCallState CONNECTING -> DISCONNECTED, call: [881702855, CONNECTING, null, *****, 0, childs(0), has_parent(false), [[Capabilities:]], false, ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [f8237xxxxxxxxxxxxxxxxxxxxxxx], UserHandle{0} 0]
I/Telecom ( 2225): CallsManager: entered manageMSimInCallTones
I/Telecom ( 2225): CallsManager: updateLchStatus subInConversation: null
I/Telecom ( 2225): CallsManager: setActiveSubscription = null
I/Telecom ( 2225): CallsManager: entered manageMSimInCallTones
I/Timeline( 3876): Timeline: Activity_idle id: [email protected] time:1476741
Searching for networks:
Code:
D/Yamaha-MC1N2-Audio( 1862): yamaha_mc1n2_audio_output_start()
D/Yamaha-MC1N2-Audio( 1862): yamaha_mc1n2_audio_route_start()
D/Yamaha-MC1N2-Audio( 1862): (yamaha_mc1n2_audio_params_route_find): device = 2, direction = 0
V/WindowManager( 2225): not Base app: Adding window Window{a3df74b u0 com.android.phone/com.android.phone.NetworkSetting} at 6 of 9
I/NotificationService( 2225): cancelToast pkg=com.android.phone [email protected]
W/NotificationService( 2225): Toast already cancelled. pkg=com.android.phone [email protected]
W/InputMethodManagerService( 2225): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
Maybe this is a problem with the /efs - partition. hxxp://redmine.replicant.us/boards/9/topics/8841?r=9483 . The owner of most files in /efs is root or system, not radio
Code:
[email protected]:/ # ls -la /efs/
ls -la /efs/
-rw-r--r-- root root 1 2011-01-01 01:00 .nv_state
drwxrwxr-x radio system 2000-01-01 01:09 bluetooth
-rw-r--r-- system system 9 2010-12-31 22:02 cryptprop_applied_result
-rw-r--r-- root root 1 2010-12-31 22:00 cryptprop_rebootMode
drwx------ system system 2010-12-31 22:01 dmp
-rw-rw-rw- system system 256 2014-06-06 10:33 edk_p
-rw-r--r-- root root 2354 2011-01-01 01:00 nv.log
-rw-r--r-- root root 32 2010-12-31 22:13 nv_data.bin.md5
-rw-r--r-- root root 880 2010-12-31 16:02 redata.bin
-rw-r--r-- root root 1 2013-02-12 07:00 upgaddr
drwxrwxr-x radio system 2000-01-01 01:13 wifi
Activation of mobile network in settings:
Code:
D/Yamaha-MC1N2-Audio( 1861): yamaha_mc1n2_audio_route_start()
D/MccTable( 2753): updateMccMncConfiguration mccmnc='null' fromServiceState=true
D/MccTable( 2753): WIFI_COUNTRY_CODE set to
I/WifiService( 2226): WifiService trying to set country code to with persist set to true
E/WifiStateMachine( 2226): Ignoring resetting of country code
D/KeyguardUpdateMonitor( 2369): ACTION_SERVICE_STATE_CHANGED on sub: 5000 mServiceState: 1 1 voice home data home null null null null null null Unknown Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false
D/GpsLocationProvider( 2226): received SIM realted action:
D/GpsLocationProvider( 2226): SIM MCC/MNC is still not available
W/sh ( 4104): type=1400 audit(0.0:237): avc: denied { write } for name="log" dev=mmcblk0p10 ino=73730 scontext=u:r:rild:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
I/MmsService( 2753): MmsConfigManager.loadInBackground(): mcc/mnc: 262/3
I/Telephony( 2753): PstnIncomingCallNotifier: Unregistering: Handler (com.android.internal.telephony.gsm.GSMPhone) {2f88d477}
D/Telephony( 2753): PstnPhoneCapabilitiesNotifier: Unregistering: Handler (com.android.internal.telephony.gsm.GSMPhone) {2f88d477}
E/MmsService( 2753): MmsConfigManager.load -- empty getActiveSubInfoList
D/Telephony( 2753): TelecomAccountRegistry: Found 1 phones. Attempting to register.
D/Telephony( 2753): TelecomAccountRegistry: Phone with subscription id 5000
E/PhoneInterfaceManager( 2753): [PhoneIntfMgr] getIccId: ICC ID is null or empty.
D/Telephony( 2753): AccountEntry: Registered phoneAccount: [PhoneAccount: ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [f8237xxxxxxxxxxxxxxxxxxxx], UserHandle{0} Capabilities: 54 Schemes: tel voicemail ] with handle: ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [f8237xxxxxxxxxxxxxxxxxxxxxxxx], UserHandle{0}
I/Telephony( 2753): PstnIncomingCallNotifier: Registering: Handler (com.android.internal.telephony.gsm.GSMPhone) {2f88d477}
D/Telephony( 2753): PstnPhoneCapabilitiesNotifier: Registering: Handler (com.android.internal.telephony.gsm.GSMPhone) {2f88d477}
D/CallNotifier( 2753): onReceive...
D/PhoneStatusBarPolicy( 2369): updateSimState for subId :5000
D/PhoneStatusBarPolicy( 2369): updateSimState for phoneId :0
D/PhoneStatusBarPolicy( 2369): updateSimState for Slot :0
D/Telephony( 2753): PstnPhoneCapabilitiesNotifier: handleVideoCapabilitesChanged. Video capability - false
D/CellBroadcastReceiver( 3604): onReceive Intent { act=android.intent.action.SERVICE_STATE flg=0x10 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver (has extras) }
D/CellBroadcastReceiver( 3604): Intent ACTION_SERVICE_STATE_CHANGED
D/CellBroadcastReceiver( 3604): Service state changed! 1 Full: 1 1 voice home data home null null null null null null Unknown Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false Current state=-1
D/CellBroadcastReceiver( 3604): onReceive Intent { act=android.intent.action.ACTION_SUBINFO_RECORD_UPDATED flg=0x10 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver }
E/PhoneInterfaceManager( 2753): [PhoneIntfMgr] getIccId: ICC ID is null or empty.
I/art ( 2226): Background partial concurrent mark sweep GC freed 21767(1433KB) AllocSpace objects, 6(196KB) LOS objects, 20% free, 15MB/19MB, paused 2.154ms total 179.409ms
D/GpsLocationProvider( 2226): received SIM realted action:
D/GpsLocationProvider( 2226): SIM MCC/MNC is still not available
I/MediaFocusControl( 2226): AudioFocus abandonAudioFocus() from [email protected][email protected]
I/HeadsetService( 2686): Audio session removed: 18
I/MediaFocusControl( 2226): AudioFocus abandonAudioFocus() from [email protected][email protected]

[Help] Custom Orio rom - wifi sleep terror every 5 minutes

Hi,
So I'm terrorized by audio stream cutout after 5 minutes while screen is off.
This happens while streaming thru browser also with MX Player Pro streams cuts off,
and does not return until screen is powered on..
I tried ServeStream and while it works, it to suffers from 10-15sec of audio cutout every 5min blaming buffer is empty..
So I tried setting:
Wifi network : Not metered
Unrestricted data usage: Browser (NBP), Media (MTP Host), ServeStream
Battery Not optimized : Browser (NBP), Media Storage, MTP Host, MX Player Pro, ServeStream
(just for oldschool times; adb shell settings put global wifi_sleep_policy 2)
But nothing gives, what else is there to do?
I'm trying practise playing along with a buddy of mine and this utter madness is ruining it.
Captured from logcat what occurse every time streaming thru browser.
HTML:
.
.
W chromium: [WARNING:audio_sync_reader.cc(193)] AudioSyncReader::Read timed out, audio glitch count=30
.
.
D : PlayerBase::stop() from IPlayer
D AudioTrack: stop() called with 19371008 frames delivered
E AudioAttributes: Illegal value unmarshalling AudioAttributes, can't initialize bundle
E AudioService.PlaybackActivityMonitor: Error updating audio attributes
D : PlayerBase::stop() from IPlayer
W AudioFlinger: moveEffectChain_l() effect chain for session 0 not on source thread 0xadc039c0
W BroadcastQueue: Background execution not allowed: receiving Intent { act=lineageos.intent.action.ACTION_AUDIO_SESSIONS_CHANGED flg=0x10000010 (has extras) } to org.lineageos.audiofx/.receiver.ServiceDispatcher
D audio_hw_primary: out_standby: enter: stream (0xaeebd800) usecase(0: deep-buffer-playback)
D hardware_info: hw_info_append_hw_type : device_name = speaker
D : TrackPlayerBase::~TrackPlayerBase()
: PlayerBase::~PlayerBase()
.
.
I WifiService: requestActivityInfo uid=1000
I WifiService: reportActivityInfo uid=1000
I WifiService: getSupportedFeatures uid=1000
D WifiHAL : In DebugCommand::handleResponse
D WifiHAL : len = 4, expected len = 4
D lights.msm8974: led [solid] = ff0d0200
D WifiHAL : In DebugCommand::handleResponse
D WifiHAL : len = 4, expected len = 4
E BatteryExternalStatsWorker: no controller energy info supplied for wifi
E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
D lights.msm8974: led [solid] = ff0d0200
E BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}
.
.
Current rom AICP 13.1

Categories

Resources