[BetterBatteryStats] fxrb:
Service access problem on stock ROM

I often get the "...service could not be accessed ..." error on my Samsung Galaxy SII. I run CF-rooted stock ROM (Android 4.0.3, LPS), i.e. I do not run MIUI. A screenshot of the error message is attached though I think it is known.

I have also attached a zip file containing two logs, one ('bbs-good-logcat.txt") created when BBS starts without error message, the other ("bbs-bad-logcat.txt") when BBS shows the error message mentioned above. Each log should contain at least one entire sequence of events recorded when starting BBS. Maybe the following could already give some hint.

Lines 173 to 190 from "bbs-bad-logcat.txt":

05-17 17:46:31.320 I/BatteryStatsProxy( 9640): invoking android.os.ServiceManager.getService("batteryinfo")
05-17 17:46:31.320 I/BatteryStatsProxy( 9640): invoking android.os.ServiceManager.getService("batteryinfo")
05-17 17:46:31.320 I/BatteryStatsProxy( 9640): android.os.ServiceManager.getService("batteryinfo") returned a service binder
05-17 17:46:31.320 I/BatteryStatsProxy( 9640): invoking com.android.internal.app.IBatteryStats$Stub.asInterface
05-17 17:46:31.320 I/BatteryStatsProxy( 9640): invoking getStatistics
05-17 17:46:31.325 I/BatteryStatsProxy( 9640): android.os.ServiceManager.getService("batteryinfo") returned a service binder
05-17 17:46:31.325 I/BatteryStatsProxy( 9640): invoking com.android.internal.app.IBatteryStats$Stub.asInterface
05-17 17:46:31.325 I/BatteryStatsProxy( 9640): invoking getStatistics
[B][COLOR="Red"]05-17 17:46:31.325 E/TAG ( 9640): An exception occured in BatteryStatsProxy(). Message: Need BLUETOOTH permission: Neither user 10071 nor current process has android.permission.BLUETOOTH.
05-17 17:46:31.330 E/TAG ( 9640): An exception occured in BatteryStatsProxy(). Message: Need BLUETOOTH permission: Neither user 10071 nor current process has android.permission.BLUETOOTH.
[/COLOR][/B]05-17 17:46:31.335 D/StatsProvider( 9640): Added Deep sleep:6 m 57 s (417 s) Ratio: 23.5%
05-17 17:46:31.335 D/Misc ( 9640): Substracting Deep Sleep 5 m 45 s (345 s) Ratio: 22.8% from Deep Sleep 6 m 57 s (417 s) Ratio: 23.5%
05-17 17:46:31.350 D/STATUSBAR-NetworkController( 2237): onDataActivity: direction=0
05-17 17:46:31.360 I/SurfaceFlinger( 1830): id=173(9) createSurface 0x3ae1c (1x1),1 flag=0
05-17 17:46:31.385 I/SurfaceFlinger( 1830): id=173 Removed idx=3 Map Size=6
05-17 17:46:31.385 I/ActivityManager( 2082): Displayed shortComponentName: +311ms
05-17 17:46:31.385 I/SurfaceFlinger( 1830): id=173 Removed idx=-2 Map Size=6
05-17 17:46:31.385 I/power ( 2082): *** release_dvfs_lock : lockType : 1

Are these red bold lines part of the problem?

Here the lines 177 to 194 from "bbs-good-logcat.txt" that should correspond to the lines from the log above:

05-17 17:23:28.795 I/BatteryStatsProxy( 7347): invoking android.os.ServiceManager.getService("batteryinfo")
05-17 17:23:28.795 I/BatteryStatsProxy( 7347): invoking android.os.ServiceManager.getService("batteryinfo")
05-17 17:23:28.795 I/BatteryStatsProxy( 7347): android.os.ServiceManager.getService("batteryinfo") returned a service binder
05-17 17:23:28.795 I/BatteryStatsProxy( 7347): invoking com.android.internal.app.IBatteryStats$Stub.asInterface
05-17 17:23:28.795 I/BatteryStatsProxy( 7347): invoking getStatistics
05-17 17:23:28.795 I/BatteryStatsProxy( 7347): android.os.ServiceManager.getService("batteryinfo") returned a service binder
05-17 17:23:28.800 I/BatteryStatsProxy( 7347): invoking com.android.internal.app.IBatteryStats$Stub.asInterface
05-17 17:23:28.800 I/BatteryStatsProxy( 7347): invoking getStatistics
05-17 17:23:28.910 I/BatteryStatsProxy( 7347): retrieving parcel
05-17 17:23:28.910 I/BatteryStatsProxy( 7347): reading CREATOR field
05-17 17:23:28.910 V/BubbleLW( 2337): pause
05-17 17:23:28.915 D/dalvikvm( 2082): GC_FOR_ALLOC freed 824K, 14% free 20077K/23239K, paused 84ms
05-17 17:23:28.915 I/SurfaceFlinger( 1830): id=66 Removed idx=1 Map Size=6
05-17 17:23:28.915 I/SurfaceFlinger( 1830): id=65 Removed idx=1 Map Size=5
05-17 17:23:28.915 I/SurfaceFlinger( 1830): id=66 Removed idx=-2 Map Size=5
05-17 17:23:28.915 I/SurfaceFlinger( 1830): id=65 Removed idx=-2 Map Size=5
05-17 17:23:28.925 I/BatteryStatsProxy( 7347): retrieving parcel
05-17 17:23:28.925 I/BatteryStatsProxy( 7347): reading CREATOR field

I really like BBS (when it is working ;)) because it provides valuable information about what I can do to reduce draining of the battery. If I can provide any other information to find a solution to this problem please let me know.