Hello,
I'm currently developing an application that uses the facebook SDK. On the emulator everything goes fine but the problem is in the real device.
I've setup the Hashkeys, i previously received the error "Invalid hash key not found in the application" and successfully fixed it. But now i'm having another problem.
Whenever i click a button (which is intended to call the Facebook sdk) the facebook activity pops in and suddenly the facebook activity closes. Supposedly, it should appears the Facebook share window. Here's the code that i'm using on that button:
Code:
APP_ID = getString(R.string.facebook_app_id);
fb = new Facebook(APP_ID);
fb.authorize(QuestionsActivity.this, new Facebook.DialogListener() {
@Override
public void onComplete(Bundle values) {
Bundle params = new Bundle();
params.putString("name","I need your help!");
params.putString("caption","Could you give me a help please?");
params.putString("description", labelQuestion.getText().toString() + " A)" + answerA.getText() + " B)" + answerB.getText() + " C)" + answerC.getText());
params.putString("picture", "link");
params.putString("link,"link");
fb.dialog(QuestionsActivity.this,"feed",params,new Facebook.DialogListener() {
@Override
public void onComplete(Bundle values) {
ShowScoreIncrement(10);
Log.d("DEBUGA","A");
}
@Override
public void onFacebookError(FacebookError e) {
Log.d("DEBUGA","B");
}
@Override
public void onError(DialogError e) {
Log.d("DEBUGA","C");
}
@Override
public void onCancel() {
Log.d("DEBUGA","D");
}
});
}
@Override
public void onFacebookError(FacebookError e) {
Log.d("FB","Error" + e.getMessage());
}
@Override
public void onError(DialogError e) {
Log.d("FB", "Complete" + e.getMessage());
}
@Override
public void onCancel() {
Log.d("FB","Cancel");
}
});
As for logging info:
Code:
12-27 21:36:49.737 6220-6220/com.angelo.assassinscreedquiz I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.006_msm8610_LNX.LA.3.5.1_RB1__release_AU ()
OpenGL ES Shader Compiler Version: E031.24.00.07
Build Date: 02/12/14 Wed
Local Branch:
Remote Branch: quic/LNX.LA.3.5.1_RB1.1
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.006 + NOTHING
12-27 21:36:49.997 6220-6220/com.angelo.assassinscreedquiz D/OpenGLRenderer﹕ Enabling debug mode 0
12-27 21:36:50.027 6220-6220/com.angelo.assassinscreedquiz D/tcd﹕ process windowFocusChanged msg
12-27 21:36:50.237 6220-6220/com.angelo.assassinscreedquiz I/ActivityManager﹕ Timeline: Activity_idle id: [email protected] time:40737600
12-27 21:36:51.207 6220-6220/com.angelo.assassinscreedquiz I/ActivityManager﹕ Timeline: Activity_launch_request id:com.angelo.assassinscreedquiz time:40738579
12-27 21:36:51.217 6220-6232/com.angelo.assassinscreedquiz D/tcd﹕ Focus to false
12-27 21:36:51.227 6220-6220/com.angelo.assassinscreedquiz D/tcd﹕ process windowFocusChanged msg
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 6
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 18
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 19
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 8
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 14
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 0
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 16
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 3
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 1
12-27 21:36:51.277 6220-6220/com.angelo.assassinscreedquiz D/RANDOM﹕ 4
12-27 21:36:51.357 6220-6220/com.angelo.assassinscreedquiz D/dalvikvm﹕ GC_FOR_ALLOC freed 171K, 6% free 4522K/4764K, paused 16ms, total 16ms
12-27 21:36:51.357 6220-6220/com.angelo.assassinscreedquiz I/dalvikvm-heap﹕ Grow heap (frag case) to 5.587MB for 635812-byte allocation
12-27 21:36:51.457 6220-6230/com.angelo.assassinscreedquiz D/tcd﹕ Focus to true
12-27 21:36:51.457 6220-6244/com.angelo.assassinscreedquiz D/QUESTION﹕ 6
12-27 21:36:51.457 6220-6244/com.angelo.assassinscreedquiz D/data_question﹕ Question3
12-27 21:36:51.577 6220-6220/com.angelo.assassinscreedquiz D/tcd﹕ process windowFocusChanged msg
12-27 21:36:51.577 6220-6220/com.angelo.assassinscreedquiz D/tcd﹕ imm = [email protected] falseflg=#1820002
12-27 21:36:51.597 6220-6230/com.angelo.assassinscreedquiz D/tcd﹕ Focus to true
12-27 21:36:51.757 6220-6220/com.angelo.assassinscreedquiz D/tcd﹕ process windowFocusChanged msg
12-27 21:36:51.777 6220-6231/com.angelo.assassinscreedquiz D/tcd﹕ Focus to false
12-27 21:36:51.867 6220-6220/com.angelo.assassinscreedquiz I/ActivityManager﹕ Timeline: Activity_idle id: [email protected] time:40739238
12-27 21:36:54.117 6220-6220/com.angelo.assassinscreedquiz D/dalvikvm﹕ GC_FOR_ALLOC freed 178K, 5% free 5477K/5724K, paused 11ms, total 11ms
12-27 21:36:54.117 6220-6220/com.angelo.assassinscreedquiz I/ActivityManager﹕ Timeline: Activity_launch_request id:com.facebook.katana time:40741484
12-27 21:36:54.127 6220-6232/com.angelo.assassinscreedquiz D/tcd﹕ Focus to false
12-27 21:36:54.127 6220-6220/com.angelo.assassinscreedquiz D/QUESTIONSACTIVITY﹕ It was paused
12-27 21:36:54.137 6220-6220/com.angelo.assassinscreedquiz D/tcd﹕ process windowFocusChanged msg
12-27 21:36:56.387 6220-6232/com.angelo.assassinscreedquiz D/tcd﹕ Focus to true
12-27 21:36:56.387 6220-6220/com.angelo.assassinscreedquiz D/tcd﹕ process windowFocusChanged msg
12-27 21:36:56.617 6220-6220/com.angelo.assassinscreedquiz I/ActivityManager﹕ Timeline: Activity_idle id: [email protected] time:40743989
12-27 21:37:09.457 6220-6220/com.angelo.assassinscreedquiz D/QUESTIONSACTIVITY﹕ It was paused
12-27 21:37:09.597 6220-6220/com.angelo.assassinscreedquiz W/IInputConnectionWrapper﹕ getExtractedText on inactive InputConnection
12-27 21:37:09.597 6220-6220/com.angelo.assassinscreedquiz W/IInputConnectionWrapper﹕ getTextBeforeCursor on inactive InputConnection
12-27 21:37:09.597 6220-6220/com.angelo.assassinscreedquiz W/IInputConnectionWrapper﹕ getSelectedText on inactive InputConnection
12-27 21:37:09.597 6220-6220/com.angelo.assassinscreedquiz W/IInputConnectionWrapper﹕ getTextAfterCursor on inactive InputConnection
12-27 21:37:14.977 6220-6232/com.angelo.assassinscreedquiz D/tcd﹕ Focus to false
12-27 21:37:14.977 6220-6220/com.angelo.assassinscreedquiz D/tcd﹕ process windowFocusChanged msg
Anyone has an idea about what might be happening? Thank you before hand!
Related
Im trying to start a simple app and i need to display on a SurfaceView the preview of the cam as soon as the App start.
i added the permission to the manifest:
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
and my code:
Code:
import android.content.Context;
import android.hardware.Camera;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
public class MainActivity extends SurfaceView implements SurfaceHolder.Callback{
SurfaceView mSurfaceView;
private SurfaceHolder mHolder;
public Camera camera = null;
public MainActivity(Context context) {
super(context);
mSurfaceView = (SurfaceView) findViewById(R.id.surfaceView);
mHolder = mSurfaceView.getHolder();
mHolder.addCallback(this);
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}
[user=439709]@override[/user]
public void surfaceCreated(SurfaceHolder holder) {
camera = Camera.open();
try{
camera.setPreviewDisplay(mHolder);
} catch(Exception e){
}
}
[user=439709]@override[/user]
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
Camera.Parameters params = camera.getParameters();
params.setPreviewSize(width,height);
camera.setParameters(params);
camera.startPreview();
}
[user=439709]@override[/user]
public void surfaceDestroyed(SurfaceHolder holder) {
camera.stopPreview();
camera = null;
}
}
Ive looked for many tutorial and all technically do the same or smiliart stuff. But the app crashes. I cant find a solution
LogCat
Code:
06-01 12:39:12.456 616-841/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.droidcam/.MainActivity bnds=[240,408][240,408]} from pid 861
06-01 12:39:12.596 616-841/system_process D/dalvikvm: GC_FOR_ALLOC freed 1352K, 16% free 11518K/13560K, paused 112ms, total 118ms
06-01 12:39:12.636 2744-2744/? D/dalvikvm: Late-enabling CheckJNI
06-01 12:39:12.646 616-881/system_process I/ActivityManager: Start proc com.example.droidcam for activity com.example.droidcam/.MainActivity: pid=2744 uid=10019 gids={50019, 1006, 1028}
06-01 12:39:12.746 2744-2744/com.example.droidcam E/Trace: error opening trace file: No such file or directory (2)
06-01 12:39:12.826 2744-2744/com.example.droidcam D/dalvikvm: newInstance failed: no <init>()
06-01 12:39:12.836 2744-2744/com.example.droidcam D/AndroidRuntime: Shutting down VM
06-01 12:39:12.836 2744-2744/com.example.droidcam W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x2b5d9930)
06-01 12:39:12.836 2744-2744/com.example.droidcam E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.droidcam/com.example.droidcam.MainActivity}: java.lang.InstantiationException: can't instantiate class com.example.droidcam.MainActivity; no empty constructor
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2223)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2357)
at android.app.ActivityThread.access$600(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5226)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.InstantiationException: can't instantiate class com.example.droidcam.MainActivity; no empty constructor
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2214)
... 11 more
06-01 12:39:12.836 616-1341/system_process W/ActivityManager: Force finishing activity com.example.droidcam/.MainActivity
06-01 12:39:12.986 616-650/system_process D/dalvikvm: GC_FOR_ALLOC freed 1696K, 24% free 10472K/13772K, paused 76ms, total 77ms
06-01 12:39:13.387 616-647/system_process W/ActivityManager: Activity pause timeout for ActivityRecord{2bd8aff0 u0 com.example.droidcam/.MainActivity}
06-01 12:39:18.952 2744-2744/? I/Process: Sending signal. PID: 2744 SIG: 9
06-01 12:39:18.952 616-943/system_process I/ActivityManager: Process com.example.droidcam (pid 2744) has died.
06-01 12:39:19.002 616-616/system_process W/InputMethodManagerService: Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
Please put your code into code tags.
EDIT: Thanks.
and Post/check logcats.
just saying it crashes is too vague.
out of ideas said:
and Post/check logcats.
just saying it crashes is too vague.
Click to expand...
Click to collapse
On Eclipse i know how to show the windows of the LogCat, but cant really find it here on Android Studio.
Im a bit newby about this sorry, coming from PHP using just Notepad.
Guess i found it, added log cat
I saw some tutorial like this, im not sure why it doesnt start.
Is it for te onCreate method missing? but i saw that for other works anyway like this
Btw i've also triyed an other way, but stills give me errors. i could upload that one too, different logcat.
Hope one of the two could be solved
Code:
import android.app.Activity;
import android.hardware.Camera;
import android.os.Bundle;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import java.io.IOException;
public class MainActivity extends Activity implements SurfaceHolder.Callback{
/* VARIABILI PRIVATE */
private SurfaceView mSurfaceView;
private SurfaceHolder mSurfaceHolder;
private Camera mCamera;
/** Called when the activity is first created. */
[user=439709]@override[/user]
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mSurfaceView = (SurfaceView)findViewById(R.id.surfaceView);
mSurfaceHolder = mSurfaceView.getHolder();
mSurfaceHolder.addCallback(this);
mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}
[user=439709]@override[/user]
public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {
Camera.Parameters params = mCamera.getParameters();
params.setPreviewSize(arg2, arg3);
mCamera.setParameters(params);
try {
//lancio la preview
mCamera.setPreviewDisplay(arg0);
mCamera.startPreview();
} catch (IOException e) {
//gestione errore
}
}
[user=439709]@override[/user]
public void surfaceCreated(SurfaceHolder holder) {
mCamera = Camera.open();
}
[user=439709]@override[/user]
public void surfaceDestroyed(SurfaceHolder holder) {
mCamera.stopPreview();
mCamera.release();
}
logcat
Code:
06-01 13:32:31.187 616-661/system_process I/ActivityManager: Start proc com.android.vending for service com.android.vending/com.google.android.finsky.services.ContentSyncService: pid=25552 uid=10005 gids={50005, 3003, 1015, 1028}
06-01 13:32:31.227 25552-25552/com.android.vending E/Trace: error opening trace file: No such file or directory (2)
06-01 13:32:31.387 616-841/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.droidcam/.MainActivity bnds=[240,408][240,408]} from pid 861
06-01 13:32:31.437 25566-25566/? D/dalvikvm: Late-enabling CheckJNI
06-01 13:32:31.447 616-1341/system_process I/ActivityManager: Start proc com.example.droidcam for activity com.example.droidcam/.MainActivity: pid=25566 uid=10019 gids={50019, 1006, 1028}
06-01 13:32:31.607 25566-25566/com.example.droidcam E/Trace: error opening trace file: No such file or directory (2)
06-01 13:32:31.787 25552-25552/com.android.vending D/Finsky: [1] FinskyApp.onCreate: Initializing network with DFE https://android.clients.google.com/fdfe/
06-01 13:32:31.987 25552-25552/com.android.vending D/Finsky: [1] DailyHygiene.goMakeHygieneIfDirty: No need to run daily hygiene.
06-01 13:32:32.037 25552-25552/com.android.vending W/Settings: Setting download_manager_max_bytes_over_mobile has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
06-01 13:32:32.037 25552-25552/com.android.vending W/Settings: Setting download_manager_recommended_max_bytes_over_mobile has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
06-01 13:32:32.178 616-881/system_process D/dalvikvm: GC_FOR_ALLOC freed 656K, 26% free 11321K/15124K, paused 82ms, total 86ms
06-01 13:32:32.238 25566-25566/com.example.droidcam D/libEGL: loaded /system/lib/egl/libEGL_adreno200.so
06-01 13:32:32.258 25566-25566/com.example.droidcam D/libEGL: loaded /system/lib/egl/libGLESv1_CM_adreno200.so
06-01 13:32:32.258 25566-25566/com.example.droidcam D/libEGL: loaded /system/lib/egl/libGLESv2_adreno200.so
06-01 13:32:32.268 25566-25566/com.example.droidcam I/Adreno200-EGL: <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
Build Date: 07/31/12 Tue
Local Branch:
Remote Branch: quic/master
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 + NOTHING
06-01 13:32:32.318 25566-25566/com.example.droidcam D/OpenGLRenderer: Enabling debug mode 0
06-01 13:32:32.348 256-515/? I/AwesomePlayer: setDataSource_l(URL suppressed)
06-01 13:32:32.378 256-25622/? D/MediaExtractor: returning default extractor
06-01 13:32:32.388 256-515/? I/AwesomePlayer: setDataSource_l(URL suppressed)
06-01 13:32:32.408 256-25626/? D/MediaExtractor: returning default extractor
06-01 13:32:32.408 256-515/? I/CameraClient: Opening camera 0
06-01 13:32:32.408 256-515/? W/ServiceManager: Permission failure: com.sonyericsson.permission.CAMERA_EXTENDED from uid=10019 pid=25566
06-01 13:32:32.438 256-25630/? I/caladbolg: 3348999538 cald_camctrl.c (6713) 25630 P [SVR] -945967758 + Cald_CamCtrl_PowerUp
06-01 13:32:32.438 256-25630/? I/caladbolg: 3348999630 cald_camctrl.c (7484) 25630 P [SVR] -945967666 + Cald_CamCtrl_FSM_Func_PowerUp
06-01 13:32:32.438 256-25630/? I/caladbolg: 3349003170 cald_hal_qct.c (2789) 25630 P [HAL] -945964126 + Cald_Hal_Qct_If_PowerUp
06-01 13:32:32.438 256-25630/? I/caladbolg: 3349003323 cald_hal_qct.c (2847) 25630 P [HAL] -945963973 - Cald_Hal_Qct_If_PowerUp (0)
06-01 13:32:32.438 256-25630/? I/caladbolg: 3349004665 cald_camctrl.c (7563) 25630 P [SVR] -945962631 - Cald_CamCtrl_FSM_Func_PowerUp (0)
06-01 13:32:32.438 256-25630/? I/caladbolg: 3349004726 cald_camctrl.c (6720) 25630 P [SVR] -945962570 - Cald_CamCtrl_PowerUp (0)
06-01 13:32:32.448 256-25630/? E/caladbolg: 3349014431 cald_camctrl.c (11888) 25630 E [SVR] PreviewSize Invalid param: value[402x527]
06-01 13:32:32.458 25566-25566/com.example.droidcam D/AndroidRuntime: Shutting down VM
06-01 13:32:32.458 25566-25566/com.example.droidcam W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x2b5d9930)
06-01 13:32:32.488 25566-25566/com.example.droidcam E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:1496)
at com.example.droidcam.MainActivity.surfaceChanged(MainActivity.java:41)
at android.view.SurfaceView.updateWindow(SurfaceView.java:580)
at android.view.SurfaceView.access$000(SurfaceView.java:86)
at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:174)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:680)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1842)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
at android.view.Choreographer.doCallbacks(Choreographer.java:562)
at android.view.Choreographer.doFrame(Choreographer.java:532)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5226)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
at dalvik.system.NativeStart.main(Native Method)
06-01 13:32:32.498 616-943/system_process W/ActivityManager: Force finishing activity com.example.droidcam/.MainActivity
06-01 13:32:32.688 25552-25552/com.android.vending D/Finsky: [1] 2.run: Loaded library for account: [i1YaFxIWaZrcOQ26zxNX5K0RvvY]
06-01 13:32:32.688 25552-25552/com.android.vending D/Finsky: [1] 2.run: Finished loading 1 libraries.
06-01 13:32:32.908 25552-25552/com.android.vending D/Finsky: [1] 5.onFinished: Installation state replication succeeded.
06-01 13:32:33.018 616-647/system_process W/ActivityManager: Activity pause timeout for ActivityRecord{2b946870 u0 com.example.droidcam/.MainActivity}
In Android you normally do not use the constructor of an Activity for anything.
Use the onCreate method instead.
EDIT: The log says that the constructor must be empty.
nikwen said:
In Android you normally do not use the constructor of an Activity for anything.
Use the onCreate method instead.
EDIT: The log says that the constructor must be empty.
Click to expand...
Click to collapse
I thought about that (even if i saw video tutorial doing it) so i tried wht onCreate method and now it seams to give problem with the setParameters?
Ive uploaded the new code and logcats before
Ah. Check this: http://stackoverflow.com/questions/3890381/camera-setparameters-failed-in-android
nikwen said:
Ah. Check this: http://stackoverflow.com/questions/3890381/camera-setparameters-failed-in-android
Click to expand...
Click to collapse
i tryed that at th beggin, and didnt work, in fact i tried it again and still give me the same error apparently
While I'm still learning myself, it looks like you are getting a failed camera permission. And then it tries to pass in an invalid parameter to the camera.
deniel said:
I/CameraClient: Opening camera 0
06-01 13:32:32.408 256-515/? W/ServiceManager: Permission failure: com.sonyericsson.permission.CAMERA_EXTENDED from uid=10019 pid=25566
06-01 13:32:32.448 256-25630/? E/caladbolg: 3349014431 cald_camctrl.c (11888) 25630 E [SVR] PreviewSize Invalid param: value[402x527]
[/CODE]
Click to expand...
Click to collapse
Sent from a Toasted Devil
netwokz said:
While I'm still learning myself, it looks like you are getting a failed camera permission. And then it tries to pass in an invalid parameter to the camera.
Sent from a Toasted Devil
Click to expand...
Click to collapse
But cant understand which one and how should i do. it ryed the 2 ways everybody does
What phone are you trying this on? Have you tried it in an emulator?
After getting home and I was able to try your second piece of code. It looks like it is a problem with <CODE>params.setPreviewSize(arg2, arg3);</CODE>, it doesn't like the width and height arguments. I found THIS(second answer). and after plugging it into your code it was working for me. If you like I can show you the modified code, altho its real easy to plug in.
netwokz said:
After getting home and I was able to try your second piece of code. It looks like it is a problem with <CODE>params.setPreviewSize(arg2, arg3);</CODE>, it doesn't like the width and height arguments. I found THIS(second answer). and after plugging it into your code it was working for me. If you like I can show you the modified code, altho its real easy to plug in.
Click to expand...
Click to collapse
i tryed his first example and finally i get his "distoted" image. When i'll have time ill try the rets thnk u very much
ill try this:
Code:
Camera.Size getBestPreviewSize(int width, int height, Camera.Parameters parameters) {
Camera.Size result=null;
float dr = Float.MAX_VALUE;
float ratio = (float)width/(float)height;
for (Camera.Size size : parameters.getSupportedPreviewSizes()) {
float r = (float)size.width/(float)size.height;
if( Math.abs(r - ratio) < dr && size.width <= width && size.height <= height ) {
dr = Math.abs(r - ratio);
result = size;
}
}
return result;
}
Code:
ublic void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
// Now that the size is known, set up the camera parameters and begin
// the preview.
if (isPreviewRunning) {
mCamera.stopPreview();
}
Camera.Parameters parameters = mCamera.getParameters();
List<Size> sizes = parameters.getSupportedPreviewSizes();
Size optimalSize = getBestPreviewSize( w, h, parameters);
parameters.setPreviewSize(optimalSize.width, optimalSize.height);
mCamera.setParameters(parameters);
mCamera.startPreview();
isPreviewRunning =true;
}
im not sure abot the 3rd parameter of the getBestPreviewSize method which one is it. Like this is still distorted
Yeah, I could never fix the distortion back when I was trying my camera app. But I think I will tinker with it again. Keep this updated if you find anything, I will also.
Sent from a Toasted Devil
I am currently having trouble with call recording. The problem is with the AudioSouce because when i put MIC it works. Witch AudioSource option REALLY records calls.
Code:
Code:
if (i == REC) {
try {
if (isCall == false) {
Toast.makeText(context, "Not in a call", Toast.LENGTH_SHORT)
.show();
return;
}
if (IsRec == true) {
Toast.makeText(context, "Already recording",
Toast.LENGTH_SHORT).show();
return;
}
o = new File(Environment.getExternalStorageDirectory(),
"/recordings/"
+ new SimpleDateFormat("dd.MM.yyyy hh-mm-ss")
.format(new Date()) + ".amr");
r = new MediaRecorder();
r.setOutputFile(o.getAbsolutePath());
r.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); // HERE
r.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
r.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
try {
r.prepare();
r.start();
IsRec = true;
Toast.makeText(context,
"Saving to: " + o.getAbsolutePath(),
Toast.LENGTH_LONG).show();
} catch (IllegalStateException e) {
o = null;
r = null;
IsRec = false;
Log.e("Error", e.getMessage(), e.getCause());
Toast.makeText(context, "StateE: " + e.getMessage(),
Toast.LENGTH_LONG).show();
} catch (IOException e) {
o = null;
r = null;
IsRec = false;
Log.e("Error", e.getMessage(), e.getCause());
Toast.makeText(context, "IOE" + e.getMessage(),
Toast.LENGTH_LONG).show();
}
} catch (Exception e) {
o = null;
r = null;
IsRec = false;
e.printStackTrace();
Log.e("Error", e.getLocalizedMessage(), e.getCause());
Toast.makeText(context, e.getMessage(), Toast.LENGTH_LONG)
.show();
}
}
LogCat:
Code:
07-18 10:17:18.850: E/MediaRecorder(607): start failed: -2147483648
07-18 10:17:18.859: W/System.err(607): java.lang.RuntimeException: start failed.
07-18 10:17:18.870: W/System.err(607): at android.media.MediaRecorder.start(Native Method)
07-18 10:17:18.880: W/System.err(607): at com.android.recorder.Widget.onReceive(Widget.java:137)
07-18 10:17:18.890: W/System.err(607): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2229)
07-18 10:17:18.890: W/System.err(607): at android.app.ActivityThread.access$1500(ActivityThread.java:130)
07-18 10:17:18.900: W/System.err(607): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1271)
07-18 10:17:18.919: W/System.err(607): at android.os.Handler.dispatchMessage(Handler.java:99)
07-18 10:17:18.919: W/System.err(607): at android.os.Looper.loop(Looper.java:137)
07-18 10:17:18.940: W/System.err(607): at android.app.ActivityThread.main(ActivityThread.java:4745)
07-18 10:17:18.950: W/System.err(607): at java.lang.reflect.Method.invokeNative(Native Method)
07-18 10:17:18.960: W/System.err(607): at java.lang.reflect.Method.invoke(Method.java:511)
07-18 10:17:18.969: W/System.err(607): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-18 10:17:18.980: W/System.err(607): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-18 10:17:18.990: W/System.err(607): at dalvik.system.NativeStart.main(Native Method)
07-18 10:17:18.999: E/Error(607): start failed.
I'm not sure how it got frozen because I most definitely didn't freeze it, but it's frozen and won't unfreeze no matter how many times I try to unfreeze it. Ive tried unfreezing with SD-maid, and titanium backup to no avail, and had to uninstall chrome because it won't work with system WebView.
I'm thinking I must have removed some system app that WebView needs to function but I'm unsure which app that would be. I'll try to grab a log kitty when I get off work. Any and all advice would be much apreesh.
(I have the Qualcomm variant btw)
Here's a logcat. Did my best to trim most of the unrelated crap.
I/Icing ( 6703): doRemovePackageData com.google.android.webview
W/orola.sprintwfc( 3649): type=1400 audit(0.0:102798): avc: denied { search } for uid=1000 scontext=u:r:system_app:s0 tcontext=ubject_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
I/Icing ( 6703): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=32
I/Icing ( 6703): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=36
I/Finsky (12343): [1] com.google.android.finsky.p2p.d.a(2): Wrote row to frosting DB: 213
W/orola.spackage:com.google.android.webview
W/Thread-5(16460): type=1400 audit(0.0:102817): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
W/Thread-5(16460): type=1400 audit(0.0:102818): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
W/Thread-5(16460): type=1400 audit(0.0:102819): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
W/Thread-5(16460): type=1400 audit(0.0:102820): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
W/Thread-5(16460): type=1400 audit(0.0:102821): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
W/Thread-5(16460): type=1400 audit(0.0:102822): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
W/Thread-5(16460): type=1400 audit(0.0:102823): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
W/Thread-5(16460): type=1400 audit(0.0:102824): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
I/System.out(15868): LP - exit.
W/ActivityManager( 1669): Unable to start service Intent { cmp=com.android.printspooler/.model.PrintSpoolerService } U=0: not found
I/Icing ( 6703): Usage reports ok 2, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
I/Icing ( 6703): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
I/Icing ( 6703): doRemovePackageData com.google.android.webview
I/Icing ( 6703): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=32
I/Icing ( 6703): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=36
I/Icing ( 6703): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
I/Icing ( 6703): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
D/AndroidRuntime(16444): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
D/AndroidRuntime(16444): CheckJNI is OFF
D/APM_AudioPolicyManager( 736): startOutput() output 13, stream 1, session 11873
D/audio_hw_primary( 736): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
V/msm8974_platform( 736): platform_get_output_snd_device: enter: output devices(0x2)
V/msm8974_platform( 736): platform_get_output_snd_device: exit: snd_device(speaker)
V/msm8974_platform( 736): platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(14)
D/ACDB-LOADER( 736): ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
D/ACDB-LOADER( 736): ACDB -> send_asm_topology
D/ACDB-LOADER( 736): ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
D/ACDB-LOADER( 736): ACDB -> send_adm_topology
D/ACDB-LOADER( 736): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
D/ACDB-LOADER( 736): ACDB -> send_audtable
D/ACDB-LOADER( 736): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
D/ACDB-LOADER( 736): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
D/ACDB-LOADER( 736): ACDB -> AUDIO_SET_AUDPROC_CAL
D/ACDB-LOADER( 736): ACDB -> send_audvoltable
D/ACDB-LOADER( 736): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
D/ACDB-LOADER( 736): ACDB -> AUDIO_SET_VOL_CAL cal type = 12
D/ACDB-LOADER( 736): ACDB -> send_audstrmtable
D/ACDB-LOADER( 736): ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
D/ACDB-LOADER( 736): ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
D/ACDB-LOADER( 736): ACDB -> send_afe_topology
D/ACDB-LOADER( 736): ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
D/ACDB-LOADER( 736): ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 1025e
D/ACDB-LOADER( 736): ACDB -> send_afe_cal
D/ACDB-LOADER( 736): ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
D/ACDB-LOADER( 736): ACDB -> AUDIO_SET_AFE_CAL
D/ACDB-LOADER( 736): ACDB -> send_hw_delay : acdb_id = 14 path = 0
D/ACDB-LOADER( 736): ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
D/audio_hw_primary( 736): enable_snd_device: snd_device(2: speaker)
D/audio_hw_primary( 736): enable_audio_route: apply and update mixer path: low-latency-playback
I/audio_hw_utils( 736): Set Audio Stream 12 App Type Cfg: app_type 69936 (DEFAULT), acdb_dev_id 14, sample_rate 48000
I/ActivityManager( 1669): START u0 {flg=0x10804000 cmp=com.android.systemui/.recents.RecentsActivity} from uid 10090 on display 0
I/Thermal-Lib( 451): Thermal-Lib-Client: Client request sent
I/ThermalEngine( 728): Thermal-Server: Thermal received msg from override
I/ActivityManager( 1669): moveHomeStack, setupComplete:true
D/APM_AudioPolicyManager( 736): stopOutput() output 13, stream 1, session 11873
W/WindowManager( 1669): Attempted to remove non-existing token: [email protected]
I/LaunchCheckinHandler( 1669): Displayed com.android.systemui/.recents.RecentsActivity,wp,wa,164
I/art ( 1669): Background partial concurrent mark sweep GC freed 85301(5MB) AllocSpace objects, 2(40KB) LOS objects, 33% free, 24MB/36MB, paused 2.593ms total 201.533ms
I/Icing ( 6703): Indexing com.google.android.gms-apps from com.google.android.gms
I/Icing ( 6703): Indexing done com.google.android.gms-apps
I/Icing ( 6703): Indexing com.google.android.gms-apps from com.google.android.gms
I/Icing ( 6703): Indexing done com.google.android.gms-apps
D/KeyguardUpdateMonitor( 1816): received broadcast android.intent.action.TIME_TICK
D/KeyguardUpdateMonitor( 1816): handleTimeUpdate
I/SFPerfTracer( 534): triggers: (rate: 477:25724) (compose: 0:12) (post: 0:74) (render: 0:59) (7:463241 frames) (8:526805)
D/SFPerfTracer( 534): layers: (5:10) (com.android.systemui.ImageWallpaper (0xb0b14400): 8:39587) (StatusBar (0xaeb09400): 8:244185) (Sprite (0xaeb0bc00): 0:126)* (animation background stackId=1 (0xb0b15800): 0:234)* (DimLayerController/Stack=0 (0xb0b16c00): 0:2396)* (NavigationBar (0xaeb08000): 8:9418) (eu.thedarken.sdm/eu.thedarken.sdm.appcontrol.ui.details.AppObjectActivity (0xb0b13000): 0:282)- (Toast (0xaeb0a800): 8:73) (com.android.systemui/com.android.systemui.recents.RecentsActivity (0xb1fc8400): 8:33) (thumbnail anim (0xb1fc9800): 0:22)-
D/APM_AudioPolicyManager( 736): startOutput() output 13, stream 1, session 11873
D/audio_hw_primary( 736): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
V/msm8974_platform( 736): platform_get_output_snd_device: enter: output devices(0x2)
V/msm8974_platform( 736): platform_get_output_snd_device: exit: snd_device(speaker)
E/ActivityManager( 1669): applyOptionsLocked: Unknown animationType=0
D/APM_AudioPolicyManager( 736): stopOutput() output 13, stream 1, session 11873
D/ICU (16444): No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
W/System (16444): ClassLoader referenced unknown path: /oem/lib
I/Radio-JNI(16444): register_android_hardware_Radio DONE
D/AndroidRuntime(16444): Calling main entry com.android.commands.am.Am
W/opjohnwu.magisk(15544): type=1400 audit(0.0:102825): avc: denied { read } for uid=10150 name="xposed" dev="dm-0" ino=29641 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:system_data_file:s0 tclass=file permissive=0
D/AndroidRuntime(16444): Shutting down VM
I/art (15544): Do partial code cache collection, code=0B, data=23KB
I/art (15544): After code cache collection, code=0B, data=23KB
I/art (15544): Increasing code
Lol @ the emojis. My bad.
Looks like your culprit
W/orola.spackage:com.google.android.webview
W/Thread-5(16460): type=1400 audit(0.0:102817): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641
Something you did with Xposed.
What Xposed modules you got running?
madbat99 said:
Looks like your culprit
W/orola.spackage:com.google.android.webview
W/Thread-5(16460): type=1400 audit(0.0:102817): avc: denied { read } for uid=10165 name="xposed" dev="dm-0" ino=29641
Something you did with Xposed.
What Xposed modules you got running?
Click to expand...
Click to collapse
AdBlocker Reborn, Autoinstall Reloaded, Custom Text, GravityBox, Smooth System Progress Bars, and xPrivacy, but this happened before I installed xPrivacy.
Restoring to factory didnt help.
Current firmware is: NRD90M.A510FXXS7CRJ6
When trying to turn on wifi it is showing circle of busy but nothing happens. Tried Airplane mode the same thing Tried emergency mode (the one with limited apps for power saving) same thing. Logcat output pertaining to wifi:
Code:
11-12 08:24:53.380 2840 2985 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:906 com.samsung.android.server.wifi.bigdata.WifiBigDataLogManager.sendBroadcastToContextFramework:366 com.samsung.android.server.wifi.bigdata.WifiBigDataLogManager.parseAndSendData:411 com.samsung.android.server.wifi.bigdata.WifiBigDataLogManager.-wrap2:-1 com.samsung.android.server.wifi.bigdata.WifiBigDataLogManager$MainHandler.handleMessage:471
11-12 08:24:58.388 2320 2823 I WifiHW : wifi_change_fw_path(): fwpath = /system/etc/wifi/bcmdhd_sta.bin
11-12 08:24:58.389 2320 2823 I WifiHW : wifi_change_nvram_path() = /system/etc/wifi/nvram_net.txt
11-12 08:24:58.390 2840 2985 E NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 42 Softap operation succeeded
11-12 08:24:58.394 2840 2985 E wifi : Could not read interface wlan0 flags: 19
11-12 08:24:58.498 2840 2840 D HS20StateMachine: Broadcast Received: android.net.wifi.WIFI_STATE_CHANGED
11-12 08:24:58.498 2840 2840 I WifiHs20Service: Broadcast received:android.net.wifi.WIFI_STATE_CHANGED
11-12 08:24:58.500 3105 3550 D NetworkController: onReceive: intent=Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x4000010 launchParam=MultiScreenLaunchParams { mDisplayId=0 mBaseDisplayId=0 mFlags=0 } bqHint=1 (has extras) }
11-12 08:25:18.523 2320 2823 I WifiHW : wifi_change_fw_path(): fwpath = /system/etc/wifi/bcmdhd_sta.bin
11-12 08:25:18.523 2320 2823 I WifiHW : wifi_change_nvram_path() = /system/etc/wifi/nvram_net.txt
11-12 08:25:18.524 2840 2985 E NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 45 Softap operation succeeded
11-12 08:25:18.529 2840 2985 E wifi : Could not read interface wlan0 flags: 19
11-12 08:25:18.536 3105 3550 D NetworkController: onReceive: intent=Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x4000010 launchParam=MultiScreenLaunchParams { mDisplayId=0 mBaseDisplayId=0 mFlags=0 } bqHint=1 (has extras) }
11-12 08:25:18.539 2840 2840 D HS20StateMachine: Broadcast Received: android.net.wifi.WIFI_STATE_CHANGED
11-12 08:25:18.539 2840 2840 I WifiHs20Service: Broadcast received:android.net.wifi.WIFI_STATE_CHANGED
11-12 08:25:28.563 2320 2823 I WifiHW : wifi_change_fw_path(): fwpath = /system/etc/wifi/bcmdhd_sta.bin
11-12 08:25:28.563 2320 2823 I WifiHW : wifi_change_nvram_path() = /system/etc/wifi/nvram_net.txt
11-12 08:25:28.566 2840 2985 E NetworkManagement: wifiFirmwareReload Error reloading wlan0 fw in STA mode: event = 200 48 Softap operation succeeded
11-12 08:25:28.575 2840 2985 E wifi : Could not read interface wlan0 flags: 19
11-12 08:25:28.586 2840 2840 D HS20StateMachine: Broadcast Received: android.net.wifi.WIFI_STATE_CHANGED
11-12 08:25:28.586 2840 2840 I WifiHs20Service: Broadcast received:android.net.wifi.WIFI_STATE_CHANGED
11-12 08:25:28.589 3105 3550 D NetworkController: onReceive: intent=Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x4000010 launchParam=MultiScreenLaunchParams { mDisplayId=0 mBaseDisplayId=0 mFlags=0 } bqHint=1 (has extras) }
Is there anything I can do to fix it?
My phone is freezing while in call, neither I or my caller can hear each other while this happens.
From logcat it looks like some kid of audio problem but I don't know what is the real problem.
Could anyone better than me in logs reading tell me how the fix this or what's causing this?
Code:
D/TelephonyProvider( 3294): subIdString = 1 subId = 1
I/FastMixerState(12846): sMaxFastTracks = 8
D/TelephonyProvider( 3294): subIdString = 1 subId = 1
I/audioserver(12846): ServiceManager: 0xf5c18540
D/vndksupport(12846): Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
D/vndksupport(12846): Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
I/AudioFlinger(12846): Using default 3000 mSec as standby time.
D/TelephonyProvider( 3294): subIdString = 1 subId = 1
W/APM::ConfigParsingUtils(12846): loadOutput() invalid supported devices
W/APM::ConfigParsingUtils(12846): loadInput() invalid supported devices
W/APM::ConfigParsingUtils(12846): loadInput() invalid supported devices
I/APM::ConfigParsingUtils(12846): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
W/audio_hw_primary(12846): mixer_init: Failed to open mixer paths from /vendor/etc/mixer_paths_0.xml, retrying with legacy location
E/audio_route(12846): Control 'HPL Mixer ADCL Switch' doesn't exist - skipping
E/audio_route(12846): Control 'HPL Mixer ADCR Switch' doesn't exist - skipping
E/audio_route(12846): Control 'HPR Mixer ADCL Switch' doesn't exist - skipping
E/audio_route(12846): Control 'HPR Mixer ADCR Switch' doesn't exist - skipping
E/audio_route(12846): Control 'EP Mixer ADCL Switch' doesn't exist - skipping
E/audio_route(12846): Control 'EP Mixer ADCR Switch' doesn't exist - skipping
E/audio_route(12846): Control 'SPK Mixer ADCL Switch' doesn't exist - skipping
E/audio_route(12846): Control 'SPK Mixer ADCR Switch' doesn't exist - skipping
E/audio_route(12846): Control 'SPK Mixer ADCL Switch' doesn't exist - skipping
E/audio_route(12846): Control 'SPK Mixer ADCR Switch' doesn't exist - skipping
E/audio_route(12846): Control 'HPL Mixer ADCL Switch' doesn't exist - skipping
E/audio_route(12846): Control 'HPR Mixer ADCR Switch' doesn't exist - skipping
D/TelephonyProvider( 3294): subIdString = 1 subId = 1
E/audio_route(12846): Control 'EP EP On' already exists in path 'fm_radio-speaker-headset'
D/TelephonyProvider( 3294): subIdString = 1 subId = 1
V/audio_hw_voice(12846): voice_session_init: Forcing voice config: wide
E/audio_hw_primary(12846): Amplifier initialization failed
W/DeviceHAL(12846): Device 0xf5c3c400 get_master_volume: Function not implemented
W/DeviceHAL(12846): Device 0xf5c3c400 get_master_mute: Function not implemented
W/DeviceHAL(12846): Device 0xf5c3c400 set_master_volume: Function not implemented
W/DeviceHAL(12846): Device 0xf5c3c400 set_master_mute: Function not implemented
I/AudioFlinger(12846): loadHwModule() Loaded primary audio interface, handle 10
I/AudioFlinger(12846): openOutput() this 0xf5c3d000, module 10 Device 2, SamplingRate 48000, Format 0x000001, Channels 3, flags 2
I/AudioFlinger(12846): HAL output buffer size 256 frames, normal sink buffer size 768 frames
D/vndksupport(12846): Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
D/TelephonyProvider( 3294): subIdString = 1 subId = 1
I/ViPER4Android_v2(12846): Enter EffectGetDescriptor()
I/ViPER4Android_v2(12846): EffectGetDescriptor(), uuid = 41d3c987-e6cf-11e3-a88a-11aba5d5c51b
I/BufferProvider(12846): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
I/AudioFlinger(12846): Using module 10 as the primary audio interface
W/AudioFlinger(12846): moveEffects() bad srcOutput 0
I/AudioFlinger(12846): AudioFlinger's thread 0xf4c83a00 tid=12862 ready to run
W/AudioFlinger(12846): no wake lock to update, system not ready yet
W/AudioFlinger(12846): no wake lock to update, system not ready yet
I/AudioFlinger(12846): openOutput() this 0xf5c3d000, module 10 Device 2, SamplingRate 48000, Format 0x000001, Channels 3, flags 8
I/AudioFlinger(12846): HAL output buffer size 480 frames, normal sink buffer size 960 frames
I/AudioFlinger(12846): AudioFlinger's thread 0xf4603980 tid=12865 ready to run
W/AudioFlinger(12846): no wake lock to update, system not ready yet
W/AudioFlinger(12846): no wake lock to update, system not ready yet
I/AudioFlinger(12846): AudioFlinger's thread 0xf42032c0 tid=12867 ready to run
I/bt_a2dp_hw(12846): adev_open: adev_open in A2dp_hw module
I/AudioFlinger(12846): loadHwModule() Loaded a2dp audio interface, handle 18
D/vndksupport(12846): Loading /vendor/lib/hw/audio.usb.default.so from current namespace instead of sphal namespace.
D/TelephonyProvider( 3294): subIdString = 1 subId = 1
I/AudioFlinger(12846): loadHwModule() Loaded usb audio interface, handle 26
D/vndksupport(12846): Loading /vendor/lib/hw/audio.r_submix.default.so from current namespace instead of sphal namespace.
I/r_submix(12846): adev_open(name=audio_hw_if)
I/r_submix(12846): adev_init_check()
W/DeviceHAL(12846): Device 0xf4666640 set_master_mute: Function not implemented
I/AudioFlinger(12846): loadHwModule() Loaded r_submix audio interface, handle 34
D/r_submix(12846): adev_open_input_stream(addr=0)
D/r_submix(12846): submix_audio_device_create_pipe_l(addr=0, idx=9)
D/r_submix(12846): now using address 0 for route 9
I/AudioFlinger(12846): AudioFlinger's thread 0xf4203d80 tid=12871 ready to run
D/r_submix(12846): adev_close_input_stream()
D/r_submix(12846): submix_audio_device_release_pipe_l(idx=9) addr=0
D/r_submix(12846): submix_audio_device_destroy_pipe_l(): pipe destroyed
E/SoundTriggerHwService(12846): could not read implementation properties
D/TelephonyProvider( 3294): subIdString = 1 subId = 1
I/Telecom ( 2955): InCallController: Sending updateCall [[email protected], DIALING, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO], [Properties:]]: [email protected]
I/Telecom ( 2955): InCallController: Components updated: [ComponentInfo{com.android.dialer/com.android.incallui.InCallServiceImpl}]: [email protected]
I/Dialer ( 6324): CallList.onUpdateCall - [DialerCall_1, DIALING, [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO], [Properties:], children:[], parent:null, conferenceable:[], videoState:Audio Only, mSessionModificationState:0, CameraDir:-1]
I/Dialer ( 6324): InCallPresenter.onCallListChange - Phone switching state: OUTGOING -> OUTGOING
I/Dialer ( 6324): VideoPauseController.onStateChange - hasPrimaryCallChanged: false, videoCanPause: false, isInBackground: false
I/Dialer ( 6324): InCallFragment.setSecondary - SecondaryInfo, show: false, name: null, label: null, providerLabel: null
W/ResourceType( 6324): Failure getting entry for 0x7f100292 (t=15 e=658) (error -75)
I/Dialer ( 6324): InCallFragment.setCallState - PrimaryCallState, state: 6, connectionLabel:
I/Dialer ( 6324): InCallActivity.onPrimaryCallStateChanged
I/Dialer ( 6324): InCallActivity.showMainInCallFragment - shouldShowAnswerUi: false, shouldShowVideoUi: false, didShowAnswerScreen: false, didShowInCallScreen: true, didShowVideoCallScreen: false
W/ResourceType( 6324): Failure getting entry for 0x7f100292 (t=15 e=658) (error -75)
I/Dialer ( 6324): InCallFragment.setCallState - PrimaryCallState, state: 6, connectionLabel:
I/Dialer ( 6324): InCallActivity.onPrimaryCallStateChanged
I/Dialer ( 6324): InCallActivity.showMainInCallFragment - shouldShowAnswerUi: false, shouldShowVideoUi: false, didShowAnswerScreen: false, didShowInCallScreen: true, didShowVideoCallScreen: false
I/AudioFlinger(12846): systemReady
D/PermissionCache(12846): checking android.permission.MODIFY_AUDIO_SETTINGS for uid=1000 => granted (1574 us)
E/AudioService( 2955): Audioserver started.
D/PermissionCache(12846): checking android.permission.CAPTURE_AUDIO_HOTWORD for uid=10181 => granted (340 us)
I/AudioFlinger(12846): AudioFlinger's thread 0xf3803c40 tid=12881 ready to run
I/audio_hw_primary(12846): adev_set_mode mode = 2
D/com.gsamlabs.bbm.lib.NotifyingService( 8880): ===:91:4309:41.4:1
V/audio_hw_voice(12846): prepare_voice_session: active_out_devices: 0x1
V/audio_hw_voice(12846): set_voice_session_audio_path: ril_set_call_audio_path(0)
I/rild ( 2512): type=1400 audit(0.0:1793): avc: denied { search } for name="12846" dev="proc" ino=87474 scontext=u:r:rild:s0 tcontext=u:r:audioserver:s0 tclass=dir permissive=1
I/rild ( 2512): type=1400 audit(0.0:1794): avc: denied { read } for name="cmdline" dev="proc" ino=87476 scontext=u:r:rild:s0 tcontext=u:r:audioserver:s0 tclass=file permissive=1
I/rild ( 2512): type=1400 audit(0.0:1795): avc: denied { open } for path="/proc/12846/cmdline" dev="proc" ino=87476 scontext=u:r:rild:s0 tcontext=u:r:audioserver:s0 tclass=file permissive=1
I/rild ( 2512): type=1400 audit(0.0:1796): avc: denied { getattr } for path="/proc/12846/cmdline" dev="proc" ino=87476 scontext=u:r:rild:s0 tcontext=u:r:audioserver:s0 tclass=file permissive=1
D/audio_route(12846): Apply path: voice-earpiece-wb
D/audio_route(12846): Apply path: voice-earpiece-mic-wb
V/audio_hw_voice(12846): start_voice_session: Opening voice PCMs
V/audio_hw_voice(12846): start_voice_session: pcm_config wideband
I/ActivityManager( 2955): Killing 10371:com.google.process.gapps/u0a113 (adj 906): empty #17
W/zygote ( 2955): kill(-10371, 9) failed: No such process
I/chatty ( 2955): uid=1000(system) ActivityManager identical 2 lines
W/zygote ( 2955): kill(-10371, 9) failed: No such process
I/zygote ( 2955): Successfully killed process cgroup uid 10113 pid 10371 in 135ms
E/BufferQueueProducer( 2475): [com.socialnmobile.dictapps.notepad.color.note/com.socialnmobile.colornote.activity.NoteEditor#0] disconnect: not connected (req=1)
W/libEGL (12010): EGLNativeWindowType 0xd3c7e008 disconnect failed
V/audio_hw_voice(12846): start_voice_session: enabling two mic control
F/libc (12846): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x98 in tid 12889 (reader), pid 12846 (audioserver)
I/crash_dump32(12891): type=1400 audit(0.0:1797): avc: denied { noatsecure } for scontext=u:r:audioserver:s0 tcontext=u:r:crash_dump:s0 tclass=process permissive=1
I/crash_dump32(12893): obtaining output fd from tombstoned, type: kDebuggerdTombstone
I//system/bin/tombstoned( 2515): received crash request for pid 12846
I/crash_dump32(12893): performing dump of process 12846 (target tid = 12889)
F/DEBUG (12893): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F/DEBUG (12893): AospExtended Version: 'v5.8'
F/DEBUG (12893): Build fingerprint: 'samsung/s5neoltexx/s5neolte:6.0.1/MMB29K/G903FXXU1BQC1:user/release-keys'
F/DEBUG (12893): Revision: '0'
F/DEBUG (12893): ABI: 'arm'
F/DEBUG (12893): pid: 12846, tid: 12889, name: reader >>> /system/bin/audioserver <<<
F/DEBUG (12893): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x98
F/DEBUG (12893): Cause: null pointer dereference
F/DEBUG (12893): r0 00000000 r1 00000160 r2 00000001 r3 f32dc2fc
F/DEBUG (12893): r4 00000160 r5 f5c3ca88 r6 f5c3ca58 r7 f5c3c400
F/DEBUG (12893): r8 f52993f0 r9 00000002 sl 000002c0 fp f5c3ca00
F/DEBUG (12893): ip f511fefc sp f3182880 lr f51189dc pc f50f40c4 cpsr 80070030
F/DEBUG (12893):
F/DEBUG (12893): backtrace:
F/DEBUG (12893): #00 pc 000020c4 /system/lib/libtinyalsa.so (pcm_bytes_to_frames+39)
F/DEBUG (12893): #01 pc 000079d8 /system/lib/hw/audio.primary.universal7580.so (in_read+792)
F/DEBUG (12893): #02 pc 0001f45d /system/vendor/lib/hw/[email protected] (android::hardware::audio::V2_0::implementation::(anonymous namespace)::ReadThread::threadLoop()+216)
F/DEBUG (12893): #03 pc 0000d1b9 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+144)
F/DEBUG (12893): #04 pc 00047ecf /system/lib/libc.so (__pthread_start(void*)+22)
F/DEBUG (12893): #05 pc 0001af59 /system/lib/libc.so (__start_thread+32)
W/NativeCrashListener( 2955): Couldn't find ProcessRecord for pid 12846
E//system/bin/tombstoned( 2515): Tombstone written to: /data/tombstones/tombstone_21
I/BootReceiver( 2955): Copying /data/tombstones/tombstone_21 to DropBox (SYSTEM_TOMBSTONE)
W/AudioSystem( 3132): AudioPolicyService server died!
W/AudioSystem( 2955): AudioPolicyService server died!
W/AudioSystem( 2955): AudioFlinger server died!
W/AudioSystem( 3737): AudioPolicyService server died!
W/AudioSystem( 3737): AudioFlinger server died!
W/AudioRecord( 3737): dead IAudioRecord, creating a new one from obtainBuffer()
I/ServiceManager( 2341): service 'media.audio_flinger' died
I/ServiceManager( 2341): service 'media.audio_policy' died
I/ServiceManager( 2341): service 'media.sound_trigger_hw' died
I/ServiceManager( 3737): Waiting for service media.audio_flinger...
I/ServiceManager( 2955): Waiting for service media.audio_policy...
W/BroadcastQueue( 2955): Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
W/BroadcastQueue( 2955): Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
I/ServiceManager( 3737): Waiting for service media.audio_flinger...
I/ServiceManager( 2955): Waiting for service media.audio_policy...
I/Xposed ( 3132): fsbi >> nc >> onDataChanged >> 0 > true > 75 > H+
I/ServiceManager( 3737): Waiting for service media.audio_flinger...
I/ServiceManager( 2955): Waiting for service media.audio_policy...
I/Xposed ( 3132): fsbi >> nc >> onDataChanged >> 0 > true > 50 > H+
I/ServiceManager( 3737): Waiting for service media.audio_flinger...
I/ServiceManager( 2955): Waiting for service media.audio_policy...
I/Telecom ( 2955): InCallController: Sending updateCall [[email protected], DIALING, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO], [Properties:]]: [email protected]
I/Telecom ( 2955): InCallController: Components updated: [ComponentInfo{com.android.dialer/com.android.incallui.InCallServiceImpl}]: [email protected]
I/Telecom ( 2955): CallsManager: setCallState DIALING -> ACTIVE, call: [[email protected], DIALING, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO], [Properties:]]: [email protected]