Dear community
I have an issue with my front camera on my Zuk Z2 Pro. I cannot switch to front camera only back camera works. There is no symbol for switching to the front camera beside the "shot" button in the camera app.
I tried to check the camera settings, but the as soon I try to navigate into the "Front camera photo" or "Front camera video" I just get a white screen with the title "camera" and nothing else.
I also installed other camera apps, but also no front camera access...
I have this issue since ever but I thought I'd better wait for Android 7 Nougat update, before asking you guys.
So this morning I updated phone from Stock ZUI 2.3.044 ST via OTA to ZUI v 2.5.335 - unfortunately the issues persists
Below you will also find crash log (I guess). Hope someone can help me out and has some idea how to solve this.
Thank you very much in advance for your help.
LOG:
SUPPORTED_64_BIT_ABIS=[Ljava.lang.String;@78c38f3
versionCode=21
BOARD=QC_Reference_Phone
BOOTLOADER=unknown
TYPE=user
ID=NRD90M
TIME=1484568612000
BRAND=ZUK
TAG=Build
HARDWARE=qcom
SERIAL=XXX removed
SUPPORTED_ABIS=[Ljava.lang.String;@f0079b0
CPU_ABI=arm64-v8a
IS_DEBUGGABLE=false
RADIO=unknown
MANUFACTURER=ZUK
IS_EMULATOR=false
SUPPORTED_32_BIT_ABIS=[Ljava.lang.String;@ac2f62
TAGS=release-keys
CPU_ABI2=
UNKNOWN=unknown
PERMISSIONS_REVIEW_REQUIRED=false
USER=buildslave
FINGERPRINT=ZUK/z2_row/z2_row:7.0/NRD90M/2.5.335_170116:user/release-keys
HOST=byws6
versionName=0.9.0.0
PRODUCT=z2_row
DISPLAY=NRD90M dev-keys
MODEL=ZUK Z2121
DEVICE=z2_row
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zui.cameragallery/com.zui.cameragallery.camera.settings.SettingsPreferenceActivity}: java.lang.NullPointerException: Attempt to get length of null array
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2695)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2768)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1481)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6153)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at com.zui.cameragallery.camera.settings.SettingsPreferenceActivity.getSavedSltPos(SettingsPreferenceActivity.java:296)
at com.zui.cameragallery.camera.settings.SettingsPreferenceActivity.refreshListView(SettingsPreferenceActivity.java:256)
at com.zui.cameragallery.camera.settings.SettingsPreferenceActivity.initView(SettingsPreferenceActivity.java:212)
at com.zui.cameragallery.camera.settings.SettingsPreferenceActivity.onCreate(SettingsPreferenceActivity.java:128)
at android.app.Activity.performCreate(Activity.java:6705)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648)
... 9 more
java.lang.NullPointerException: Attempt to get length of null array
at com.zui.cameragallery.camera.settings.SettingsPreferenceActivity.getSavedSltPos(SettingsPreferenceActivity.java:296)
at com.zui.cameragallery.camera.settings.SettingsPreferenceActivity.refreshListView(SettingsPreferenceActivity.java:256)
at com.zui.cameragallery.camera.settings.SettingsPreferenceActivity.initView(SettingsPreferenceActivity.java:212)
at com.zui.cameragallery.camera.settings.SettingsPreferenceActivity.onCreate(SettingsPreferenceActivity.java:128)
at android.app.Activity.performCreate(Activity.java:6705)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2768)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1481)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6153)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
Did you find any fix for this?
Related
Trying to figure out my issue here. I installed viperrom 6.2.1 awhile back and everythings running smooth as silk on my verizon htc one m7. Then I tried to install an app for a quadcopter called "droidplanner 2." everytime I open it, it immediately crashes. My girlfriend has an ATT htc one m7 with 4.4.2 stock. I installed it on hers and it seems to work fine. So I suspect its an issue with the rom. I'm posting the crash log from the app. Any ideas of a way to fix this?
java.lang.RuntimeException: Unable to create application org.droidplanner.android.DroidPlannerApp: java.lang.NullPointerException
at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
at android.app.ActivityThread.access$1500(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.droidplanner.android.notifications.TTSNotificationProvider.onInit(TTSNotificationProvider.java:40)
at android.speech.tts.TextToSpeech.dispatchOnInit(TextToSpeech.java)
at android.speech.tts.TextToSpeech.initTts(TextToSpeech.java)
at android.speech.tts.TextToSpeech.<init>(TextToSpeech.java)
at android.speech.tts.TextToSpeech.<init>(TextToSpeech.java)
at android.speech.tts.TextToSpeech.<init>(TextToSpeech.java)
at org.droidplanner.android.notifications.TTSNotificationProvider.<init>(TTSNotificationProvider.java:34)
at org.droidplanner.android.notifications.NotificationHandler.<init>(NotificationHandler.java:32)
at org.droidplanner.android.DroidPlannerApp.onCreate(DroidPlannerApp.java:56)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
... 11 more
Hi everyone, my camera app is crashing after 3-5 seconds of black screen, I have already cleaned data and cache, also tried other apps, no luck, even a factory reset didnt change anything.
Here is the log written by the app:
SUPPORTED_64_BIT_ABIS=[Ljava.lang.String;@419cd4a
versionCode=21
BOARD=QC_Reference_Phone
BOOTLOADER=unknown
TYPE=user
ID=NRD90M
TIME=1484568612000
BRAND=ZUK
TAG=Build
HARDWARE=qcom
SERIAL=24d72879
SUPPORTED_ABIS=[Ljava.lang.String;@cc524bb
CPU_ABI=arm64-v8a
IS_DEBUGGABLE=false
RADIO=unknown
MANUFACTURER=ZUK
IS_EMULATOR=false
SUPPORTED_32_BIT_ABIS=[Ljava.lang.String;@9292b5
TAGS=release-keys
CPU_ABI2=
UNKNOWN=unknown
PERMISSIONS_REVIEW_REQUIRED=false
USER=buildslave
FINGERPRINT=ZUK/z2_row/z2_row:7.0/NRD90M/2.5.335_170116:user/release-keys
HOST=byws6
versionName=0.9.0.0
PRODUCT=z2_row
DISPLAY=NRD90M dev-keys
MODEL=ZUK Z2121
DEVICE=z2_row
java.lang.RuntimeException: Media server died.
at com.zui.cameragallery.camera.CameraErrorCallback.onError(CameraErrorCallback.java:33)
at com.zui.cameragallery.ex.camera.portability.AndroidCameraAgentImpl$ErrorCallbackForward$1.run(AndroidCameraAgentImpl.java:1210)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6153)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
Thanx in advance.
Camera module replaced, still not working
I bought a replacement in Ali express, and after replace the module, same error, now running in Oreo.
any ideas?
Hi,
I'm on stock ROM since version 1.X and hava always OTA updated the phone. This time I was updating from the last version 3 ST to ZUI 4.0.247 ST, it took less than 5 minuts and everything went OK... Except that after the phone was rebooted I tried to make a phone call by pressing on the last contact and nothing happened, it was weird because if I dialed the number itself it worked fine.
I tried cleaning the cache from "Phone" App and also tried install another APP to see if something was wrong with the native "Phone" APP, but none of the APPS could make a phone call by pressing on the contact. So I decided to check for BUGs with logcat and I found this one:
Code:
2018-11-03 22:38:02.153 1011-2901/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.android.server.telecom/com.android.server.telecom.components.UserCallActivity/30000
2018-11-03 22:38:02.153 1011-2901/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.server.telecom/com.android.server.telecom.components.UserCallActivity/30000
2018-11-03 22:38:02.157 1011-2901/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.server.telecom/com.android.server.telecom.components.UserCallActivity/30000
2018-11-03 22:38:02.194 1011-1011/? E/ActivityManager: Sending non-protected broadcast com.lenovo.intent.action.REDIAL_CANCEL from system 1011:system/1000 pkg android
java.lang.Throwable
at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:19596)
at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:20243)
at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20397)
at android.app.ContextImpl.sendBroadcastAsUser(ContextImpl.java:1126)
at android.content.ContextWrapper.sendBroadcastAsUser(ContextWrapper.java:499)
at com.android.server.telecom.CallsManager.addCall(CallsManager.java:2122)
at com.android.server.telecom.CallsManager.startOutgoingCall(CallsManager.java:1173)
at com.android.server.telecom.CallIntentProcessor.processOutgoingCallIntent(CallIntentProcessor.java:140)
at com.android.server.telecom.CallIntentProcessor.processIntent(CallIntentProcessor.java:84)
at com.android.server.telecom.components.PrimaryCallReceiver.onReceive(PrimaryCallReceiver.java:22)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3318)
at android.app.ActivityThread.-wrap17(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1738)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at com.android.server.SystemServer.run(SystemServer.java:444)
at com.android.server.SystemServer.main(SystemServer.java:266)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
2018-11-03 22:38:02.208 1011-2726/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.dialer/com.android.dialer.DialtactsActivity/130001
2018-11-03 22:38:02.208 1011-2726/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.dialer/com.android.dialer.DialtactsActivity/130001
2018-11-03 22:38:02.218 1755-2338/? E/HeadsetStateMachine: terminateScoUsingVirtualVoiceCall:No present call to terminate
2018-11-03 22:38:02.223 1755-2338/? E/HeadsetStateMachine: terminateScoUsingVirtualVoiceCall:No present call to terminate
2018-11-03 22:38:02.258 22121-27954/? E/SQLiteLog: (1) no such column: source_type
2018-11-03 22:38:02.259 1855-1855/? E/ZSPACE: appTransitionStarting userid===0
2018-11-03 22:38:02.259 22121-27954/? E/DatabaseUtils: Writing exception to parcel
android.database.sqlite.SQLiteException: no such column: source_type (code 1): , while compiling: SELECT source_package, settings_uri, voicemail_access_uri, configuration_state, data_channel_state, notification_channel_state, quota_occupied, quota_total, phone_account_component_name, phone_account_id, source_type FROM voicemail_status WHERE ((((((source_package = ? ) OR NOT ( (source_type IS ?) OR (source_type IS ?) OR (source_type IS ?))AND (source_package!= ?))))))
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteDatabase.validateSql(SQLiteDatabase.java:1699)
at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:389)
at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:294)
at com.android.providers.contacts.VoicemailStatusTable.query(VoicemailStatusTable.java:124)
at com.android.providers.contacts.VoicemailContentProvider.query(VoicemailContentProvider.java:171)
at android.content.ContentProvider.query(ContentProvider.java:1068)
at android.content.ContentProvider.query(ContentProvider.java:1160)
at android.content.ContentProvider$Transport.query(ContentProvider.java:245)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:102)
at android.os.Binder.execTransact(Binder.java:674)
2018-11-03 22:38:02.364 1755-2338/? E/HeadsetStateMachine: terminateScoUsingVirtualVoiceCall:No present call to terminate
2018-11-03 22:38:02.475 1855-1855/? E/BAR: hideflag=================0vis===true
2018-11-03 22:38:04.162 579-662/? E/ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/scsi_host/host0/../../../clkscale_enable with 1
return value 2
I think that I might have missed some update between the last version 3 and 4.0.247 ST that dealed with the DB schema or maybe it's something else, I don't know.
Can anyone please help solve the problem?
After some reboots and sim card changes the phone automatically booted in Chinese language. After changing the language back to English the problem was resolved!! Don't know how or why!
It`s about Mi8 Global Version running MIUI 10.22.0(PEAMIXM). I have wifi dash cam witch uses app not from play store named CYHY. After granted access, permissions, stopped Play Protect, all security options off, I installed the apk, but when I try to open the app it crashes. Tried on a friend Mi8 China Version with Xiaomi.eu rom preinstalled and it works.
This is error log for crash:
java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/user/0/cyhy.hk/.jiagu/libjiagu.so"
at java.lang.Runtime.load0(Runtime.java:928)
at java.lang.System.load(System.java:1633)
at com.qihoo.util.StubApp3001689761.attachBaseContext(StubApp3001689761.java:205)
at android.app.Application.attach(Application.java:237)
at android.app.Instrumentation.newApplication(Instrumentation.java:1122)
at android.app.LoadedApk.makeApplication(LoadedApk.java:1065)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5916)
at android.app.ActivityThread.access$1200(ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6806)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
QR code of the app is in attachment. Any help or suggestion except unlocking bootloader and root!?
Thanks in advance!
Hello, I've enabled Camera API2 and tried to take photos with longer exposure using third party apps (FreeDcam, Footej Camera, Open Camera), yes, the stock camera can take longer exposure photos but only in jpg format and only at certain intervals (there is no 12s for example). On these other camera apps the option to take longer exposure is there, up to 32s, but selecting more than 5 seconds does nothing, the camera throws error (footej) or keeps "taking the photo" forever, tried on stock ROM and Lineage 17.0. On logcat found something related to SOF Freeze:
Code:
740 14907 E mm-camera: <MCT ><ERROR> 98: mct_bus_sof_thread_run: FATAL Session 4: SOF Freeze! Sending error message
740 14907 I mm-camera: <MCT >< INFO> 133: mct_bus_sof_thread_run: Sending HW_ERROR from MCT on session =4
740 14853 E mm-camera: <MCT ><ERROR> 817: mct_controller_send_cb: FATAL: Sending HW_Error
740 14874 E QCamera : <HAL><ERROR> camEvtHandle: 1206: Fatal, camera daemon died
Searching on internet found various threads about modified libraries to enable longer exposure and various hints: this was the first, and this other says something related to SOF timeout, but all shared the modified libraries but no the original to give an idea of what they modified and I'm totally ignorant to figure myself where to search and/or modify.
There is a ROM with support for exposure longer than 5 secs using API2? I would use it very very rarely, but if it already exists I save the time in trying to do it myself (although I doubt I can achieve it )
Thanks and sorry for my english.
Well, I've tried to see in the disassembled code of the various modded lib (particularly on the libmmcamera2_mct.so) but that's far beyond my knowledge .
But I've found a sort of workaround: FreedCam can take dng photos with longer exposure time (...,2,4,8,16 and 32 seconds) but only if API2 is disabled (no, the option of camera1 in the menu of FreedCam doesn't work if API2 is enabled, only allows jpg but no raw). Isn't necessary to disable the Camera API2 systemwide, you only needed to add the package id of FreeDcam to the camera.hal1.packagelist prop, but the property has a character limit and thus is needed to remove one of the included package ids and add FreeDcam, this is the original on /vendor/build.prop file:
Code:
camera.hal1.packagelist=com.whatsapp,com.android.camera,com.android.camera2,com.instagram.android
vendor.camera.hal1.packagelist=com.whatsapp,com.android.camera,com.android.camera2,com.instagram.android
I've removed Instagram package id because I never use it, that can be done with Magisk and its resetprop utility:
Code:
resetprop camera.hal1.packagelist com.whatsapp,com.android.camera,com.android.camera2,troop.com.freedcam
resetprop vendor.camera.hal1.packagelist com.whatsapp,com.android.camera,com.android.camera2,troop.com.freedcam
Or with a Magisk module or editing the build.prop directly.
And now FreeDcam has the option of take raw images on API1 and also can use API2 :victory:
- Obviously this means that you can take raw photos even on stock with locked bootloader using FreeDcam and Camera API1.
- To get the option to take DNG files on FreeDcam (only has RAW) is needed a dng profile. I've attached one, put on /sdcard/DCIM/FreeDcam/config/ folder.
- I've done this on AICP 14.0 (Android 9.0) and don't know if the prop camera.hal1.packagelist exists on newer versions of Android as i've read that is deprecated on Android Q.
- Still a modded lib or official support for exposure longer than 5 secs would be better, but worse is nothing.
Thanks to @pexxie for the idea in his answer.