[Q] android development - General Questions and Answers

Site did't let me post in the development section..
I am trying to create a small app that uses the camera but when I try to setContentView() to another layout than the one with the SurfaceView used by th camera, an unhandled exception occurs which terminates the program. Here is the stack trace:
Code:
04-08 14:24:55.104: WARN/dalvikvm(328): threadid=1: thread exiting with uncaught exception (group=0x40015560)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): FATAL EXCEPTION: main
04-08 14:24:55.194: ERROR/AndroidRuntime(328): java.lang.RuntimeException: Method called after release()
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at android.hardware.Camera.setHasPreviewCallback(Native Method)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at android.hardware.Camera.access$600(Camera.java:114)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:545)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at android.os.Handler.dispatchMessage(Handler.java:99)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at android.os.Looper.loop(Looper.java:123)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at android.app.ActivityThread.main(ActivityThread.java:3683)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at java.lang.reflect.Method.invokeNative(Native Method)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at java.lang.reflect.Method.invoke(Method.java:507)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
04-08 14:24:55.194: ERROR/AndroidRuntime(328): at dalvik.system.NativeStart.main(Native Method)
04-08 14:24:55.274: WARN/ActivityManager(61): Force finishing activity net.stamoulis.frames/.main
I guess some callback is generated after I call Camera.stopPreview() and Camera.release() but I can't see where it is actually generated. So, is there a way to find out which of my methods generates the callback and in which thread is this taking place? I've tried android.os.Debug.startMethodTracing(); but I can't really understand the output I'm getting.
Could anyone help me out with this?
I thank you in advance,
George.

Related

Market Force Quitting

Hi All,
I have a rooted EVO 4G and I recently installed a updated stock ROM:
http://forum.xda-developers.com/showthread.php?t=1319881
Unfortunately, i can't post to that thread yet, so I'm forced to post here.
At any rate, everything seems to be working fine except that Market is force quitting on me.
I did a logcat and I see this:
D/Finsky ( 1084): [1] DownloadQueueImpl.startDownload: Download com.rerware.android.MyBackupRoot starting
E/DatabaseUtils( 441): Writing exception to parcel
E/DatabaseUtils( 441): java.lang.SecurityException: Invalid value for is_public_api: null
E/DatabaseUtils( 441): at com.android.providers.downloads.DownloadProvider.enforceAllowedValues(DownloadProvider.java:754)
E/DatabaseUtils( 441): at com.android.providers.downloads.DownloadProvider.checkInsertPermissions(DownloadProvider.java:692)
E/DatabaseUtils( 441): at com.android.providers.downloads.DownloadProvider.insert(DownloadProvider.java:495)
E/DatabaseUtils( 441): at android.content.ContentProvider$Transport.insert(ContentProvider.java:210)
E/DatabaseUtils( 441): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:181)
E/DatabaseUtils( 441): at android.os.Binder.execTransact(Binder.java:320)
E/DatabaseUtils( 441): at dalvik.system.NativeStart.run(Native Method)
W/dalvikvm( 1084): threadid=21: thread exiting with uncaught exception (group=0x4001d5a0)
E/AndroidRuntime( 1084): FATAL EXCEPTION: download-manager-thread
E/AndroidRuntime( 1084): java.lang.SecurityException: Invalid value for is_public_api: null
E/AndroidRuntime( 1084): at android.os.Parcel.readException(Parcel.java:1322)
E/AndroidRuntime( 1084): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:160)
E/AndroidRuntime( 1084): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:114)
E/AndroidRuntime( 1084): at android.content.ContentProviderProxy.insert(ContentProviderNative.java:456)
E/AndroidRuntime( 1084): at android.content.ContentResolver.insert(ContentResolver.java:606)
E/AndroidRuntime( 1084): at com.google.android.finsky.download.DownloadManagerImpl$1.run(DownloadManagerImpl.java:44)
E/AndroidRuntime( 1084): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 1084): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 1084): at android.os.Looper.loop(Looper.java:143)
E/AndroidRuntime( 1084): at android.os.HandlerThread.run(HandlerThread.java:60)
W/ActivityManager( 124): Unable to start service Intent { act=com.htc.android.iqagent.action.ui03 (has extras) }: not found
W/ActivityManager( 124): Force finishing activity com.android.vending/.AssetBrowserActivity
Any one have any idea how I can fix the invalid value for that "is_public_api" variable?
I've tried "fixing permissions" in the ClockworkMod, but that's not helped. I've also tried clearing the data & caches for the Market.
Any help would be appreciated!
Had you try to unistall market using Titanium Backup and then re-install it????
Plis let me know if this work
Unfortunately, I'd not tried that. I ended up using a older version of the market and it was fine then.
Sent from my PC36100 using XDA App

[Q] what is missing ?? logcat idea :D

hi,buddies
i have an question here is activity logcat
Code:
I/ActivityManager( 1752): Start proc com.htc.launcher for activity com.htc.launc
her/.Launcher: pid=3661 uid=10024 gids={3003, 1015, 1028}
D/dalvikvm( 1490): GC_EXPLICIT freed 38K, 74% free 2172K/8259K, paused 2ms+2ms,
total 37ms
D/dalvikvm( 1490): GC_EXPLICIT freed <1K, 74% free 2172K/8259K, paused 4ms+2ms,
total 40ms
E/Trace ( 3661): error opening trace file: No such file or directory (2)
D/dalvikvm( 1490): WAIT_FOR_CONCURRENT_GC blocked 1ms
D/dalvikvm( 1490): GC_EXPLICIT freed <1K, 74% free 2172K/8259K, paused 3ms+2ms,
total 41ms
I/ActivityThread( 3661): Pub com.htc.launcher.settings.facade: com.htc.launcher.
facade.LauncherProviderFacade
W/dalvikvm( 3661): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initi
alizing Lcom/htc/htcjavaflag/Native;
W/dalvikvm( 3661): Exception Ljava/lang/ExceptionInInitializerError; thrown whil
e initializing Lcom/htc/htcjavaflag/HtcBuildFlag;
W/dalvikvm( 3661): Exception Ljava/lang/ExceptionInInitializerError; thrown whil
e initializing Lcom/htc/launcher/util/SettingUtil;
W/dalvikvm( 3661): Exception Ljava/lang/ExceptionInInitializerError; thrown whil
e initializing Lcom/htc/launcher/util/Logger;
W/dalvikvm( 3661): Exception Ljava/lang/ExceptionInInitializerError; thrown whil
e initializing Lcom/htc/launcher/LauncherProvider;
W/dalvikvm( 3661): Class init failed in newInstance call (Lcom/htc/launcher/faca
de/LauncherProviderFacade;)
D/AndroidRuntime( 3661): Shutting down VM
W/dalvikvm( 3661): threadid=1: thread exiting with uncaught exception (group=0x4
114c300)
E/AndroidRuntime( 3661): FATAL EXCEPTION: main
E/AndroidRuntime( 3661): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 3661): at java.lang.Class.newInstanceImpl(Native Method
)
E/AndroidRuntime( 3661): at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime( 3661): at android.app.ActivityThread.installProvider(Ac
tivityThread.java:4733)
E/AndroidRuntime( 3661): at android.app.ActivityThread.installContentProv
iders(ActivityThread.java:4375)
E/AndroidRuntime( 3661): at android.app.ActivityThread.handleBindApplicat
ion(ActivityThread.java:4317)
E/AndroidRuntime( 3661): at android.app.ActivityThread.access$1300(Activi
tyThread.java:142)
E/AndroidRuntime( 3661): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1268)
E/AndroidRuntime( 3661): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 3661): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3661): at android.app.ActivityThread.main(ActivityThrea
d.java:4931)
E/AndroidRuntime( 3661): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 3661): at java.lang.reflect.Method.invoke(Method.java:5
11)
E/AndroidRuntime( 3661): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 3661): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:558)
E/AndroidRuntime( 3661): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3661): Caused by: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 3661): at com.htc.launcher.LauncherProvider.<clinit>(La
uncherProvider.java:79)
E/AndroidRuntime( 3661): ... 15 more
E/AndroidRuntime( 3661): Caused by: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 3661): at com.htc.launcher.util.Logger.<clinit>(Logger.
java:10)
E/AndroidRuntime( 3661): ... 16 more
E/AndroidRuntime( 3661): Caused by: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 3661): at com.htc.launcher.util.SettingUtil.<clinit>(Se
ttingUtil.java:17)
E/AndroidRuntime( 3661): ... 17 more
E/AndroidRuntime( 3661): Caused by: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 3661): at com.htc.htcjavaflag.HtcDebugFlag.getProject(H
tcDebugFlag.java)
E/AndroidRuntime( 3661): at com.htc.htcjavaflag.HtcBuildFlag.getHtc_PROJE
CT_flag(HtcBuildFlag.java)
E/AndroidRuntime( 3661): at com.htc.htcjavaflag.HtcBuildFlag.<clinit>(Htc
BuildFlag.java)
E/AndroidRuntime( 3661): ... 18 more
E/AndroidRuntime( 3661): Caused by: java.lang.UnsatisfiedLinkError: Cannot load
library: link_image[1916]: 1490 could not load needed library 'libhtcflag_nativ
e.so' for 'libhtcflag-jni.so' (reloc_library[1331]: 1490 cannot locate '__htclo
g_init_mask'...
E/AndroidRuntime( 3661): )
E/AndroidRuntime( 3661): at java.lang.Runtime.loadLibrary(Runtime.java:39
1)
E/AndroidRuntime( 3661): at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 3661): at com.htc.htcjavaflag.Native.<clinit>(HtcDebugF
lag.java)
E/AndroidRuntime( 3661): ... 21 more
W/ActivityManager( 1752): Force finishing activity com.htc.launcher/.Launcher
W/ActivityManager( 1752): Activity pause timeout for ActivityRecord{41585298 com
.htc.launcher/.Launcher}
So,what is wrong?? can somebody help?
EDIT :
after copying dalvikvm.causes other problems .so i completely removed rom and im using base as these roms.porting from these links.
http://forum.xda-developers.com/show....php?t=2321867
http://forum.xda-developers.com/show....php?t=2184706
http://forum.xda-developers.com/show....php?t=2185699
and now i have completely different problem. system/lib/hw files compability problems
Code:
E/MediaPlayerService(23381): MediaPlayerService(), open failed /sys/power/pnpmgr
/apps/media_mode
E/BandwidthController(23382): runIptablesCmd(): failed /system/bin/iptables -t r
aw -N bw_raw_PREROUTING res=256
E/BandwidthController(23382): runIptablesCmd(): failed /system/bin/ip6tables -t
raw -N bw_raw_PREROUTING res=256
E/logwrapper(23507): executing /system/bin/zcb failed: Permission denied
E/JNIHelp (23508): Native registration unable to find class 'com/broadcom/bt/ser
vice/fm/FmReceiverService', aborting
F/libc (23508): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2350
8 (zygote)
this problem repeating. i copied classes to framework2.jar and services.jar but still doesnt work..i deleted somefiles in system/lib/hw and only changed camera.default.so file.actually im getting about 10 problems.
can somebody help again??
Doğa you need to ask a recognized developer this
Sent from my One V using Tapatalk 4 Beta
any idea??
Are you trying port a sense ROM to non-HTC device?
yes and no lol
i'm trying port sense 5 for htc one v - we didnt get official update.
try to copy dalvikvm
forumber2 said:
try to copy dalvikvm
Click to expand...
Click to collapse
oba abi sen türk değilmisin ya kocaeli-gebze
dalvikvm yi kopyalayınca milyon tane başka bişey istiyor onun yerine şu linklerdeki portları birleştirip htc one v ye portlamayı deniyorum şimdide başka problemler çıktı ama
translate : after copying dalvikvm.causes other problems .so i completely removed rom and im using base as these roms.porting from these links.
http://forum.xda-developers.com/showthread.php?t=2321867
http://forum.xda-developers.com/showthread.php?t=2184706
http://forum.xda-developers.com/showthread.php?t=2185699
devamını ingilizce yazcam yoksa ban veriyolar
and now i have completely different problem. system/lib/hw files compability problems
Code:
E/MediaPlayerService(23381): MediaPlayerService(), open failed /sys/power/pnpmgr
/apps/media_mode
E/BandwidthController(23382): runIptablesCmd(): failed /system/bin/iptables -t r
aw -N bw_raw_PREROUTING res=256
E/BandwidthController(23382): runIptablesCmd(): failed /system/bin/ip6tables -t
raw -N bw_raw_PREROUTING res=256
E/logwrapper(23507): executing /system/bin/zcb failed: Permission denied
E/JNIHelp (23508): Native registration unable to find class 'com/broadcom/bt/ser
vice/fm/FmReceiverService', aborting
F/libc (23508): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2350
8 (zygote)
this problem repeating. i copied classes to framework2.jar and services.jar but still doesnt work..i deleted somefiles in system/lib/hw and only changed camera.default.so file.actually im getting about 10 problems.
can somebody help again??

[Q] clock not working

The clock widget is working but I can't open the clock. Here is the logcat output:
Code:
I/ActivityManager( 897): Start proc com.android.deskclock for activity com.android.deskclock/.DeskClock: pid=3426 uid=1
0042 gids={50042, 1028, 1023, 3003}
I/MicrophoneInputStream( 1725): mic_close [email protected]
D/audio_hw_primary( 230): in_standby: enter: stream (0xb8d56970) usecase(8: audio-record)
D/hardware_info( 230): hw_info_append_hw_type : device_name = voice-rec-mic
I/QCOM PowerHAL( 230): Processing audio hint. Metadata: state=0
D/audio_hw_primary( 230): adev_close_input_stream: enter:stream_handle(0xb8d56970)
D/audio_hw_primary( 230): in_standby: enter: stream (0xb8d56970) usecase(8: audio-record)
I/HotwordRecognitionRnr( 1725): Stopping hotword detection.
I/HotwordRecognitionRnr( 1725): Hotword detection finished
D/ActivityThread( 3426): handleBindApplication:com.android.deskclock
D/ActivityThread( 3426): setTargetHeapUtilization:0.75
D/ActivityThread( 3426): setTargetHeapMinFree:2097152
I/ActivityThread( 3426): Switching default density from 480 to 300
I/QCOM PowerHAL( 230): Processing audio hint. Metadata: state=0
W/dalvikvm( 3426): threadid=1: thread exiting with uncaught exception (group=0x41af6ce0)
E/AndroidRuntime( 3426): FATAL EXCEPTION: main
E/AndroidRuntime( 3426): Process: com.android.deskclock, PID: 3426
E/AndroidRuntime( 3426): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.deskclock/com.an
droid.deskclock.DeskClock}: android.database.sqlite.SQLiteException: Can't downgrade database from version 11 to 10
E/AndroidRuntime( 3426): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2224)
E/AndroidRuntime( 3426): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2283)
E/AndroidRuntime( 3426): at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/AndroidRuntime( 3426): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
E/AndroidRuntime( 3426): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3426): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 3426): at android.app.ActivityThread.main(ActivityThread.java:5158)
E/AndroidRuntime( 3426): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3426): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 3426): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
E/AndroidRuntime( 3426): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
E/AndroidRuntime( 3426): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3426): Caused by: android.database.sqlite.SQLiteException: Can't downgrade database from version 11 to
10
E/AndroidRuntime( 3426): at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:361)
E/AndroidRuntime( 3426): at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:255)
E/AndroidRuntime( 3426): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:18
8)
E/AndroidRuntime( 3426): at com.android.deskclock.provider.ClockProvider.query(ClockProvider.java:96)
E/AndroidRuntime( 3426): at android.content.ContentProvider.query(ContentProvider.java:857)
E/AndroidRuntime( 3426): at android.content.ContentProvider$Transport.query(ContentProvider.java:200)
E/AndroidRuntime( 3426): at android.content.ContentResolver.query(ContentResolver.java:461)
E/AndroidRuntime( 3426): at android.content.ContentResolver.query(ContentResolver.java:404)
E/AndroidRuntime( 3426): at com.android.deskclock.provider.AlarmInstance.getInstances(AlarmInstance.java:192)
E/AndroidRuntime( 3426): at com.android.deskclock.alarms.AlarmStateManager.updateNextAlarm(AlarmStateManager.java
:138)
E/AndroidRuntime( 3426): at com.android.deskclock.DeskClock.onCreate(DeskClock.java:178)
E/AndroidRuntime( 3426): at android.app.Activity.performCreate(Activity.java:6020)
E/AndroidRuntime( 3426): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 3426): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2181)
E/AndroidRuntime( 3426): ... 11 more
W/ActivityManager( 897): Force finishing activity com.android.deskclock/.DeskClock
I am using the LiquidSmooth ROM LS-KK-v3.2-2014-10-23-bacon.zip (tried other versions too) and always wiped system/cache/dalvik.
Any idea?
Bebbo
ok solved it:
using a file explorer I went to /data/data/com.android.deskclock/databases and removed the file alarms.db
Bebbo
Thanks for the fix man, helped me !
bebbodl said:
ok solved it:
using a file explorer I went to /data/data/com.android.deskclock/databases and removed the file alarms.db
Bebbo
Click to expand...
Click to collapse
Tnx. SGS4A fix work.

[Q&A] [ROM][PORT][D2303][4.4.4]Pac-Man-Final Release[Fully Working]

Q&A for [ROM][PORT][D2303][4.4.4]Pac-Man-Final Release[Fully Working]
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [ROM][PORT][D2303][4.4.4]Pac-Man-Final Release[Fully Working]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
AssoDiPicche said:
The ROM is ready, but not work:Torch and Random reboots.
Sent from my Xperia M2 LTE using XDA Free mobile app
Click to expand...
Click to collapse
link please? work in D2306?
The ROM is ready, i upload in this week, yes work on D2306, (the dual sim works!!)
Sent from my Xperia M2 LTE using XDA Free mobile app
Wont rotate
Hi, mi xperia m2 d2306 wont rotate display
Any ideas why?
Thanks
---------- Post added at 06:09 AM ---------- Previous post was at 05:22 AM ----------
Mi xperia m2 2306 wont rotate display
any ideas?
Thanks
Hey just tested all roms on my D2403 here, first Pac doesn't work. After installing FIUI my recovery changed and I just tried flashing Pac again.
It works, after starting it said com.android.phone and pacconsole stopped but i can call. Camera doesn't work too.
i would like to see everything working on my phone.
my error log
Code:
E/tadif ( 193): Failed to connect to tad.
E/bs_updatemiscta( 277): Read "ro.semc.version.sw": -> ERROR
E/bs_updatemiscta( 277): Read "ro.semc.version.sw_revision": -> ERROR
E/bs_updatemiscta( 277): Read "ro.semc.version.sw_variant": -> ERROR
E/bs_updatemiscta( 277): Read "ro.semc.version.sw_type": -> ERROR
E/bs_updatemiscta( 277): Step Reading version properties information -> ERROR
E/bs_updatemiscta( 277): update_ta_sw_version: SpaceId string length error
E/bs_updatemiscta( 277): Update SW_VERSION information -> ERROR
E/bs_updatemiscta( 277): Read "ro.semc.version.fs": -> ERROR
E/bs_updatemiscta( 277): Read "ro.semc.product.model": -> ERROR
E/bs_updatemiscta( 277): UpdateMiscTa ended with error -> ERROR
E/PackageParser( 707): Package com.cyanogenmod.services has no certificates at entry AndroidManifest.xml; ignoring!
E/EventHub( 707): could not get driver version for /dev/input/mice, Not a typewriter
E/MobileDataStateTracker( 707): default: Ignoring feature request because could not acquire PhoneService
E/MobileDataStateTracker( 707): default: Could not enable APN type "default"
E/DisplayPowerController( 707): *** Keyguard started
E/QCOM PowerHAL( 707): Invalid hint ID.
E/OMXMaster( 262): A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
E/WifiConfigStore( 707): Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
E/SELinux ( 1027): SELinux: Loaded file_contexts from /file_contexts
E/SELinux ( 1027): SELinux: Could not open /data/system/packages.list: Permission denied.
E/MediaFocusControl( 707): Error updating focussed RCC to RCD
E/MediaFocusControl( 707): java.util.EmptyStackException
E/MediaFocusControl( 707): at java.util.Stack.peek(Stack.java:57)
E/MediaFocusControl( 707): at android.media.MediaFocusControl.registerRemoteControlDisplay_int(MediaFocusControl.java:2238)
E/MediaFocusControl( 707): at android.media.MediaFocusControl.registerRemoteController(MediaFocusControl.java:217)
E/MediaFocusControl( 707): at android.media.AudioService.registerRemoteController(AudioService.java:4574)
E/MediaFocusControl( 707): at android.media.IAudioService$Stub.onTransact(IAudioService.java:625)
E/MediaFocusControl( 707): at android.os.Binder.execTransact(Binder.java:404)
E/MediaFocusControl( 707): at dalvik.system.NativeStart.run(Native Method)
E/ ( 707): W/open failed: /dev/mdm: No such file or directory
E/LocSvc_afw( 707): W/get_extension: Invalid interface passed in
E/VoldConnector( 707): NDC Command {3 volume mount /storage/sdcard1} took too long (1280ms)
E/LocationManagerService( 707): no fused location provider found
E/LocationManagerService( 707): java.lang.IllegalStateException: Location service needs a fused location provider
E/LocationManagerService( 707): at com.android.server.LocationManagerService.loadProvidersLocked(LocationManagerService.java:420)
E/LocationManagerService( 707): at com.android.server.LocationManagerService.systemRunning(LocationManagerService.java:250)
E/LocationManagerService( 707): at com.android.server.ServerThread$2.run(SystemServer.java:1204)
E/LocationManagerService( 707): at com.android.server.am.ActivityManagerService.systemReady(ActivityManagerService.java:9554)
E/LocationManagerService( 707): at com.android.server.ServerThread.initAndLoop(SystemServer.java:1111)
E/LocationManagerService( 707): at com.android.server.SystemServer.main(SystemServer.java:1386)
E/LocationManagerService( 707): at java.lang.reflect.Method.invokeNative(Native Method)
E/LocationManagerService( 707): at java.lang.reflect.Method.invoke(Method.java:515)
E/LocationManagerService( 707): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
E/LocationManagerService( 707): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
E/LocationManagerService( 707): at dalvik.system.NativeStart.main(Native Method)
E/LocationManagerService( 707): no geocoder provider found
E/LocSvc_flp( 707): I/===> const FlpLocationInterface* get_flp_interface() line 63
E/ ( 707): W/open failed: /dev/mdm: No such file or directory
E/ ( 707): W/open failed: /dev/mdm: No such file or directory
E/LocSvc_api_v02( 707): I/locClientOpen:2189]: Service instance id is -1
E/LocSvc_api_v02( 707): I/---> locClientOpenInstance line 2073 loc client open
E/LocationManagerService( 707): No FusedProvider found.
E/LocationManagerService( 707): no geofence provider found
E/PackageManager( 707): Unable to find icon pack: holo
E/LocSvc_api_v02( 707): I/---> locClientSendReq line 2333 QMI_LOC_REG_EVENTS_REQ_V02
E/LocSvc_IzatApiV02( 707): I/===> virtual bool izat_core::IzatApiV02::getBatchingSupport() line 426
E/LocSvc_api_v02( 707): I/---> locClientSupportMsgCheck line 2433 QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02
E/ActivityThread( 1169): Failed to find provider info for com.android.launcher2.settings
E/NfcAdaptation( 1136): NfcAdaptation::Initialize: ver=NFCDROID_MI_422.10.0.15 nfa=NFA_MI_1.03.62+
E/BluetoothSap( 1071): Could not bind to Bluetooth Sap Service with Intent { act=android.bluetooth.IBluetoothSap }
E/NxpFwDnld( 1136): Freeing Mem for Dnld Context..
E/BrcmNfcNfa( 1136): reset notification nfc_state : #### 1
E/BrcmNfcNfa( 1136): reset notification sending core init
E/BrcmNfcNfa( 1136): UICC[0x0] is not activated
E/BrcmNfcNfa( 1136): UICC[0x0] is not activated
E/BrcmNfcJni( 1136): nfcManager_doDeselectSecureElement: already deselected
E/BluetoothPhoneService( 1115): Could not get a handle on Connection object for the call
E/wpa_supplicant( 1043): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/WifiStateMachine( 707): Unexpected BatchedScanResults :null
E/wpa_supplicant( 1043): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/FileUtils( 1071): Could not write to file /sys/devices/virtual/input/lge_touch/touch_gesture
E/FileUtils( 1071): java.io.FileNotFoundException: /sys/devices/virtual/input/lge_touch/touch_gesture: open failed: ENOENT (No such file or directory)
E/FileUtils( 1071): at libcore.io.IoBridge.open(IoBridge.java:409)
E/FileUtils( 1071): at java.io.FileOutputStream.<init>(FileOutputStream.java:88)
E/FileUtils( 1071): at java.io.FileOutputStream.<init>(FileOutputStream.java:128)
E/FileUtils( 1071): at java.io.FileOutputStream.<init>(FileOutputStream.java:117)
E/FileUtils( 1071): at org.cyanogenmod.hardware.util.FileUtils.writeLine(FileUtils.java:65)
E/FileUtils( 1071): at org.cyanogenmod.hardware.TapToWake.setEnabled(TapToWake.java:36)
E/FileUtils( 1071): at com.android.settings.DisplaySettings.restore(DisplaySettings.java:668)
E/FileUtils( 1071): at com.android.settings.cyanogenmod.BootReceiver.onReceive(BootReceiver.java:79)
E/FileUtils( 1071): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2450)
E/FileUtils( 1071): at android.app.ActivityThread.access$1700(ActivityThread.java:144)
E/FileUtils( 1071): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
E/FileUtils( 1071): at android.os.Handler.dispatchMessage(Handler.java:102)
E/FileUtils( 1071): at android.os.Looper.loop(Looper.java:136)
E/FileUtils( 1071): at android.app.ActivityThread.main(ActivityThread.java:5146)
E/FileUtils( 1071): at java.lang.reflect.Method.invokeNative(Native Method)
E/FileUtils( 1071): at java.lang.reflect.Method.invoke(Method.java:515)
E/FileUtils( 1071): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
E/FileUtils( 1071): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
E/FileUtils( 1071): at dalvik.system.NativeStart.main(Native Method)
E/FileUtils( 1071): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
E/FileUtils( 1071): at libcore.io.Posix.open(Native Method)
E/FileUtils( 1071): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
E/FileUtils( 1071): at libcore.io.IoBridge.open(IoBridge.java:393)
E/FileUtils( 1071): ... 18 more
E/DisplaySettings( 1071): Failed to restore tap-to-wake settings.
E/MediaFocusControl( 707): Error updating focussed RCC to RCD
E/MediaFocusControl( 707): java.util.EmptyStackException
E/MediaFocusControl( 707): at java.util.Stack.peek(Stack.java:57)
E/MediaFocusControl( 707): at android.media.MediaFocusControl.registerRemoteControlDisplay_int(MediaFocusControl.java:2238)
E/MediaFocusControl( 707): at android.media.MediaFocusControl.registerRemoteControlDisplay(MediaFocusControl.java:230)
E/MediaFocusControl( 707): at android.media.AudioService.registerRemoteControlDisplay(AudioService.java:4578)
E/MediaFocusControl( 707): at android.media.IAudioService$Stub.onTransact(IAudioService.java:604)
E/MediaFocusControl( 707): at android.os.Binder.execTransact(Binder.java:404)
E/MediaFocusControl( 707): at dalvik.system.NativeStart.run(Native Method)
E/AndroidRuntime( 1115): FATAL EXCEPTION: main
E/AndroidRuntime( 1115): Process: com.android.phone, PID: 1115
E/AndroidRuntime( 1115): java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
E/AndroidRuntime( 1115): at com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.handleMessage(CdmaSubscriptionSourceManager.java:129)
E/AndroidRuntime( 1115): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1115): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 1115): at android.app.ActivityThread.main(ActivityThread.java:5146)
E/AndroidRuntime( 1115): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1115): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1115): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
E/AndroidRuntime( 1115): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
E/AndroidRuntime( 1115): at dalvik.system.NativeStart.main(Native Method)
E/QC-time-services( 304): Daemon:tod_update_ind_cb: Got Update from modem msg_id 39
E/ConnectivityService( 707): Can't set delayed ACK size:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp_use_userconfig: open failed: ENOENT (No such file or directory)
E/ConnectivityService( 707): Can't set delayed ACK size:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp_delack_seg: open failed: ENOENT (No such file or directory)
E/ConnectivityService( 707): Unexpected mtu value: [email protected]
E/ConnectivityService( 707): Can't set delayed ACK size:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp_use_userconfig: open failed: ENOENT (No such file or directory)
E/ConnectivityService( 707): Can't set delayed ACK size:java.io.FileNotFoundException: /sys/kernel/ipv4/tcp_delack_seg: open failed: ENOENT (No such file or directory)
E/ConnectivityService( 707): Unexpected mtu value: [email protected]
E/WiredAccessoryManager( 707): No state change.
E/BluetoothPhoneService( 1625): Could not get a handle on Connection object for the call
E/TelephonyProvider( 1625): Failed setting numeric 'null' to the current operator
E/Nat464Xlat( 707): stopClat: already stopped
E/QC-time-services( 304): Daemon:Update to modem bit set
E/QC-time-services( 707): Receive Passed == base = 2, unit = 1, operation = 0, result = 0
E/QC-time-services( 304): Daemon:tod_update_ind_cb: Got Update from modem msg_id 40
E/QC-time-services( 304): Daemon: Time-services: Waiting to acceptconnection
E/LocSvc_eng( 707): I/===> int loc_eng_inject_time(loc_eng_data_s_type&, GpsUtcTime, int64_t, int) line 1839
E/LocSvc_eng( 707): W/int loc_eng_inject_time(loc_eng_data_s_type&, GpsUtcTime, int64_t, int): log_eng state error: instance not initialized
E/QC-time-services( 304): Daemon:Update to modem bit set
E/QC-time-services( 2000): Receive Passed == base = 2, unit = 1, operation = 0, result = 0
E/QC-time-services( 304): Daemon:tod_update_ind_cb: Got Update from modem msg_id 40
E/QC-time-services( 304): Daemon: Time-services: Waiting to acceptconnection
E/AndroidRuntime( 2067): FATAL EXCEPTION: main
E/AndroidRuntime( 2067): Process: com.pac.console, PID: 2067
E/AndroidRuntime( 2067): java.lang.RuntimeException: Unable to start receiver android.pacstats.ReportingServiceManager: java.lang.NumberFormatException: Invalid long: ""
E/AndroidRuntime( 2067): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2457)
E/AndroidRuntime( 2067): at android.app.ActivityThread.access$1700(ActivityThread.java:144)
E/AndroidRuntime( 2067): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
E/AndroidRuntime( 2067): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2067): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2067): at android.app.ActivityThread.main(ActivityThread.java:5146)
E/AndroidRuntime( 2067): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2067): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2067): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
E/AndroidRuntime( 2067): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
E/AndroidRuntime( 2067): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2067): Caused by: java.lang.NumberFormatException: Invalid long: ""
E/AndroidRuntime( 2067): at java.lang.Long.invalidLong(Long.java:124)
E/AndroidRuntime( 2067): at java.lang.Long.parseLong(Long.java:345)
E/AndroidRuntime( 2067): at java.lang.Long.parseLong(Long.java:318)
E/AndroidRuntime( 2067): at java.lang.Long.valueOf(Long.java:476)
E/AndroidRuntime( 2067): at android.pacstats.Utilities.getTimeFrame(Utilities.java:114)
E/AndroidRuntime( 2067): at android.pacstats.ReportingServiceManager.setAlarm(ReportingServiceManager.java:54)
E/AndroidRuntime( 2067): at android.pacstats.ReportingServiceManager.onReceive(ReportingServiceManager.java:41)
E/AndroidRuntime( 2067): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2450)
E/AndroidRuntime( 2067): ... 10 more
E/QC-time-services( 304): Daemon:Update to modem bit set
E/QC-time-services( 1625): Receive Passed == base = 2, unit = 1, operation = 0, result = 0
E/QC-time-services( 304): Daemon:tod_update_ind_cb: Got Update from modem msg_id 40
E/QC-time-services( 304): Daemon: Time-services: Waiting to acceptconnection
E/QC-time-services( 304): Daemon:Update to modem bit set
E/QC-time-services( 2000): Receive Passed == base = 2, unit = 1, operation = 0, result = 0
E/QC-time-services( 304): Daemon: Time-services: Waiting to acceptconnection
E/QC-time-services( 304): Daemon:tod_update_ind_cb: Got Update from modem msg_id 40
After further testing mobile data and Sensors arent working.
How flash?
I mean what recovery i have to use?
I'm on Jellybean 4.3
Device D2303
Unlocked BL
Recovery and final link
How can i enter recovery with this rom? I actually can't do that after installing this rom. And when will appear link to final version?
Recovery problem
I can't get in recovery. How can i do it?
Is it working on d2302..
Edit- ril does not work and the dual sim support as expected is missing.. Else everything is smooth.. Hope the developer will soon make it compatible for d2302
is this work for M2 D2305??
Hopefully not..
Mega Link
I was using this rom but now, I can not download because the link is not working. The rom has been deleted from Mega. So can you upload it to somewheres else? Please, I want this rom as you can't guess...
links
link for ROM is dead

Phone rebooting when mobile network is unreachable

Recently, an Xperia M2 of ours started to reboot from time to time. It seems to be related to disconnects from mobile network:
When no SIM card was inserted, reboots occured every few minutes
Also when signal is weak, the phone reboots every few minutes
Turning mobile data on/off also causes crashes sometimes
Yesterday, the phone rebooted exactly every 30 minutes while mobile data was turned on
The phone is running the latest stock firmware. Here's the relevant part of the log:
--------- beginning of crash
08-29 15:25:50.163 E/AndroidRuntime( 770): *** FATAL EXCEPTION IN SYSTEM PROCESS: NetworkStats
08-29 15:25:50.163 E/AndroidRuntime( 770): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.android.server.action.NETWORK_STATS_POLL flg=0x14 (has extras) } in [email protected]
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:882)
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.os.Handler.handleCallback(Handler.java:739)
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.os.Handler.dispatchMessage(Handler.java:95)
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.os.Looper.loop(Looper.java:211)
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.os.HandlerThread.run(HandlerThread.java:61)
08-29 15:25:50.163 E/AndroidRuntime( 770): Caused by: java.lang.IllegalArgumentException: tried recording negative data
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.net.NetworkStatsHistory.recordData(NetworkStatsHistory.java:304)
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.net.NetworkStatsHistory.recordHistory(NetworkStatsHistory.java:377)
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.net.NetworkStatsHistory.recordEntireHistory(NetworkStatsHistory.java:353)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsCollection.recordHistory(NetworkStatsCollection.java:224)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsCollection.read(NetworkStatsCollection.java:288)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsCollection.read(NetworkStatsCollection.java:262)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsRecorder$CombiningRewriter.read(NetworkStatsRecorder.java:303)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.internal.util.FileRotator.readFile(FileRotator.java:372)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.internal.util.FileRotator.rewriteSingle(FileRotator.java:242)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.internal.util.FileRotator.rewriteActive(FileRotator.java:184)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsRecorder.forcePersistLocked(NetworkStatsRecorder.java:240)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsRecorder.maybePersistLocked(NetworkStatsRecorder.java:227)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:971)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:914)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsService.access$600(NetworkStatsService.java:136)
08-29 15:25:50.163 E/AndroidRuntime( 770): at com.android.server.net.NetworkStatsService$3.onReceive(NetworkStatsService.java:703)
08-29 15:25:50.163 E/AndroidRuntime( 770): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:872)
08-29 15:25:50.163 E/AndroidRuntime( 770): ... 4 more
08-29 15:25:50.175 D/ActivityManager( 770): New dropbox entry: system_server, system_server_crash, 94e67198-5dd2-4a3d-af5e-5f7b9ef92cae
08-29 15:25:50.175 I/ActivityManager( 770): A system dump is comming => Stay in memory
08-29 15:25:50.372 D/ActivityManager( 770): System dump requested by: system_server (crash)
08-29 15:25:50.381 D/ActivityManager( 770): Sync fs
08-29 15:25:50.526 D/ActivityManager( 770): Sync done
08-29 15:25:50.533 I/ActivityManager( 770): Continue force dump
08-29 15:25:50.536 I/ActivityManager( 770): Do sysrq
Also, starting from yesterday, accessing Data usage crashes the Settings app. I guess that's only corrupt data remaining from one of the system crashes. Relevant logs:
08-30 09:37:10.229 D/SubSettings(23848): Launching fragment com.android.settings.DataUsageSummary
08-30 09:37:10.417 D/TelephonyManager(23848): getDataEnabled: retVal=false
08-30 09:37:10.421 D/DataUsage(23848): generating cs=1596232800000 to ce=1598911200000 waiting for hs=1594483200000
08-30 09:37:10.429 D/DataUsage(23848): generating cs=1593554400000 to ce=1596232800000 waiting for hs=1594483200000
08-30 09:37:10.454 E/AndroidRuntime(23848): FATAL EXCEPTION: AsyncTask #3
08-30 09:37:10.454 E/AndroidRuntime(23848): Process: com.android.settings, PID: 23848
08-30 09:37:10.454 E/AndroidRuntime(23848): java.lang.RuntimeException: An error occured while executing doInBackground()
08-30 09:37:10.454 E/AndroidRuntime(23848): at android.os.AsyncTask$3.done(AsyncTask.java:304)
08-30 09:37:10.454 E/AndroidRuntime(23848): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
08-30 09:37:10.454 E/AndroidRuntime(23848): at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
08-30 09:37:10.454 E/AndroidRuntime(23848): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
08-30 09:37:10.454 E/AndroidRuntime(23848): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-30 09:37:10.454 E/AndroidRuntime(23848): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-30 09:37:10.454 E/AndroidRuntime(23848): at java.lang.Thread.run(Thread.java:818)
08-30 09:37:10.454 E/AndroidRuntime(23848): Caused by: java.lang.IllegalArgumentException: tried recording negative data
08-30 09:37:10.454 E/AndroidRuntime(23848): at android.os.Parcel.readException(Parcel.java:1559)
08-30 09:37:10.454 E/AndroidRuntime(23848): at android.os.Parcel.readException(Parcel.java:1505)
08-30 09:37:10.454 E/AndroidRuntime(23848): at android.net.INetworkStatsSession$Stub$Proxy.getSummaryForAllUid(INetworkStatsSession.java:257)
08-30 09:37:10.454 E/AndroidRuntime(23848): at com.android.settings.net.SummaryForAllUidLoader.loadInBackground(SummaryForAllUidLoader.java:62)
08-30 09:37:10.454 E/AndroidRuntime(23848): at com.android.settings.net.SummaryForAllUidLoader.loadInBackground(SummaryForAllUidLoader.java:27)
08-30 09:37:10.454 E/AndroidRuntime(23848): at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312)
08-30 09:37:10.454 E/AndroidRuntime(23848): at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69)
08-30 09:37:10.454 E/AndroidRuntime(23848): at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:57)
08-30 09:37:10.454 E/AndroidRuntime(23848): at android.os.AsyncTask$2.call(AsyncTask.java:292)
08-30 09:37:10.454 E/AndroidRuntime(23848): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-30 09:37:10.454 E/AndroidRuntime(23848): ... 3 more
08-30 09:37:10.688 I/Process (23848): Sending signal. PID: 23848 SIG: 9
08-30 09:37:10.757 I/ActivityManager( 732): Process com.android.settings (pid 23848) has died
Has someone experienced this kind of problem before? I can only think of factory resetting the phone as a possible solution, so any ideas are appreciated.

Categories

Resources