Notification erscheint nicht

  • Antworten:20
DmanT
  • Forum-Beiträge: 36

15.02.2018, 10:51:22 via Website

Hallo,

Ich schreibe mir derzeit eine kleine App. Hierzu wollte ich auch Firebase nutzen was "eigentlich" gut funktioniert wenn es denn funktionieren würde.

Ich kann den Token von Firebase auslesen und debuggen. Auch wenn eine Nachricht eintrifft kann ich dessen Inhalt (Title und Message) debuggen.

Wenn ich aber nun eine Notification öffnen möchte stürzt die gesamte App mit "SYSTEM UI wurde beendet" ab. Und startet dann wieder neu.

Auch "mekkert" er beim Notification Compat builder rum "is descraptchet"

Kann mir jemand sagen was ich falsch machen oder hätte vielleicht jemand ein snappet für die Notification?

Wäre super.

Danke vielmals

Kommentieren
swa00
  • Forum-Beiträge: 3.704

15.02.2018, 10:55:55 via Website

Hallo Dman,

herzlich willkommen im Forum

a) Ohne source code & LogCat können wir natürlich nur schlecht helfen.
b) ich vermute stark, dass du nicht die aktuelle Technik anwendest, denn deprecated ( nicht "is descraptchet") bedeutet "veraltet" . (oder deine Projekt-Settings nicht stimmen)

Hier die offizielle & aktuelle API Dokumentation
https://developer.android.com/training/notify-user/build-notification.html

— geändert am 15.02.2018, 11:00:55

Liebe Grüße - Stefan
[ App - Entwicklung ]

Hilfreich?
Pascal P.
Kommentieren
Rafael K.
  • Forum-Beiträge: 2.359

15.02.2018, 11:11:27 via Website

Schau dir mal das offizielle Demo Projekt von Google an. Dort ist ein Beispiel mit Notification, das man fast unverändert übernehmen kann. Habe ich letztens auch gemacht und funktioniert einwandfrei.

https://github.com/firebase/quickstart-android/blob/master/messaging/app/src/main/java/com/google/firebase/quickstart/fcm/MyFirebaseMessagingService.java

Die komplette Anleitung findet sich hier: https://firebase.google.com/docs/cloud-messaging/android/receive

Hilfreich?
Pascal P.swa00
Kommentieren
DmanT
  • Forum-Beiträge: 36

15.02.2018, 13:08:15 via Website

Also alles was ich bekomme und finde in den Logs ist

02-15 13:03:22.848 21852-21852/XXXX W/Notification: Use of stream types is deprecated for operations other than volume control
02-15 13:03:22.849 21852-21852/XXXX W/Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case

Hier mal der Code

NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)
            .setSmallIcon(R.mipmap.ic_launcher_round)
            .setContentTitle("Test Titel")
            .setContentText("Tet Text");
    int mNotificationID = 001;
    NotificationManager mNotifyMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
    mNotifyMgr.notify(mNotificationID, mBuilder.build());
Hilfreich?
Kommentieren
DmanT
  • Forum-Beiträge: 36

15.02.2018, 13:17:42 via Website

Und wenn ich folgenden Code benutze dann stürtzt das ganze Handy ab, Vibriert wie verrückt und das Display geht an und aus und an und aus und es sperrt sich etc. dann kann ich nur noch neu starten und in den logs erscheint nichts.

String channelId = "dafault_channel_id";
    Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    NotificationCompat.Builder notificationBuilder =
            new NotificationCompat.Builder(this, channelId)
                    .setSmallIcon(R.mipmap.ic_launcher_round)
                    .setContentTitle("Testtitel")
                    .setContentText("Testnachricht")
                    .setAutoCancel(true)
                    .setSound(defaultSoundUri);

    NotificationManager notificationManager =
            (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

    // Since android Oreo notification channel is needed.
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        NotificationChannel channel = new NotificationChannel(channelId,
                "Channel human readable title",
                NotificationManager.IMPORTANCE_DEFAULT);
        notificationManager.createNotificationChannel(channel);
    }

    notificationManager.notify(0, notificationBuilder.build());

— geändert am 15.02.2018, 13:23:31

Hilfreich?
Kommentieren
Pascal P.
  • Admin
  • Forum-Beiträge: 11.286

15.02.2018, 19:04:29 via Website

Ohne Error- Log aus Logcat wenn die FCM ankommt, lässt sich da erstmal wenig zu sagen---

LG Pascal //It's not a bug, it's a feature. :) ;)

Hilfreich?
swa00
Kommentieren
DmanT
  • Forum-Beiträge: 36

15.02.2018, 19:09:32 via Website

Na genau das ist es ja. Weder unter Verbose noch Error oder Firebase noch sonst etwas taucht was auf.

Auf dem Bildschirm erscheint zu SYSTEM-UI wurde beendet

Dann klickt man auf App schließen oder beenden oder was da steht dann startet die App neu und dann stürzt das ganze Handy ab.

Wie/wo kann ich noch logs suchen?

Hilfreich?
Kommentieren
swa00
  • Forum-Beiträge: 3.704

15.02.2018, 19:14:13 via Website

a) Schliesse das Device über ADB USB an
b) Starten und ErrorLog anschauen

Oder schlichtweg mal debuggen

P.S das mit dem Code und Errorlog habe ich dir aber ganz zu anfang schon geschrieben

— geändert am 15.02.2018, 19:14:37

Liebe Grüße - Stefan
[ App - Entwicklung ]

Hilfreich?
Pascal P.
Kommentieren
Pascal P.
  • Admin
  • Forum-Beiträge: 11.286

15.02.2018, 19:14:26 via Website

Du startest due App mit USB Debugging per ADB aus AndroidStudio auf deinem Gerät und schickst dann die FCM raus während das Gerät am PC hängt, dann solltest du das eigentlich sehen.

Aber normalerweise sollte deine App beendet werden und nicht System-UI.

Du kannst aber auch mal den Code für die Notification in eine neue Aktivity kopieren und diese auf Buttonklick erscheinen lassen. Wenn das mal tut, solltest du das 1:1 auf die FCM Receiver übertragen können, dam musst du nur mit dem Context aufpassen.

LG Pascal //It's not a bug, it's a feature. :) ;)

Hilfreich?
Kommentieren
DmanT
  • Forum-Beiträge: 36

15.02.2018, 20:59:24 via Website

So, ich habe hier jetzt mal ein komplettes Errorlog aber ich kann da nicht wirklich was finden was ich verstehen würde

02-15 20:55:37.906 686-751/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
02-15 20:55:37.907 665-6081/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device =
02-15 20:55:37.907 665-6081/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device =
02-15 20:55:37.926 665-6081/? E/audio_hw_utils: send_app_type_cfg_for_device: Could not get ctl for mixer cmd - Audio Stream Capture 42 App Type Cfg
02-15 20:55:37.926 665-6081/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
02-15 20:55:37.927 665-6081/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
02-15 20:55:37.953 665-6081/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
02-15 20:55:37.953 665-6081/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
02-15 20:55:37.953 665-6081/? E/ACDB-LOADER: Error: ACDB audproc returned = -19
02-15 20:55:37.953 665-6081/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
02-15 20:55:37.953 665-6081/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-15 20:55:37.953 665-6081/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
02-15 20:55:37.954 665-6081/? E/msm8974_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
02-15 20:55:37.954 665-6081/? E/audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device speaker ret=-14
02-15 20:55:37.973 2850-3228/? E/InputDispatcher: channel '39881a3 AssistPreviewPanel (server)' ~ Channel is unrecoverably broken and will be disposed!
02-15 20:55:37.975 2850-3249/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=42, [] ]
02-15 20:55:37.981 2850-3228/? E/InputDispatcher: channel '20630ce NavigationBar (server)' ~ Channel is unrecoverably broken and will be disposed!
02-15 20:55:37.981 2850-3228/? E/InputDispatcher: channel 'f0da90 StatusBar (server)' ~ Channel is unrecoverably broken and will be disposed!
02-15 20:55:37.981 2850-3228/? E/InputDispatcher: channel 'pip_input_consumer (server)' ~ Channel is unrecoverably broken and will be disposed!
02-15 20:55:38.123 2635-2921/? E/fpc_fingerprint_hal: do_authenticate failed FPC_ERROR_CANCELLED
02-15 20:55:38.123 2635-2921/? E/fpc_tac: fpc_irq_clear_cancel read failed 11
02-15 20:55:38.126 2604-3776/? E/QCExtractor: ExtendedExtractor failed to instantiate extractor
02-15 20:55:38.127 15413-15431/? E/MediaExtractor: Trace connect 0x76d5918dc0 0x76d58ac380
02-15 20:55:38.140 2611-3441/? E/OMXNodeInstance: getConfig(0xea32c0c0:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
02-15 20:55:38.190 2604-3776/? E/QCExtractor: ExtendedExtractor failed to instantiate extractor
02-15 20:55:38.196 15413-15431/? E/MediaExtractor: Trace connect 0x76d5981080 0x76d58ac480
02-15 20:55:38.205 2611-2822/? E/OMXNodeInstance: getConfig(0xea32c0c0:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
02-15 20:55:38.258 2604-2604/? E/QCExtractor: ExtendedExtractor failed to instantiate extractor
02-15 20:55:38.260 15413-15431/? E/MediaExtractor: Trace connect 0x76e59b8880 0x76d58acd80
02-15 20:55:38.266 2611-3483/? E/OMXNodeInstance: getConfig(0xea32c0c0:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
02-15 20:55:38.689 2850-4254/? E/ActivityManager: Sending non-protected broadcast com.sonymobile.runtimeskinning.intent.action.USER_SWITCHED from system 15413:com.android.systemui/u0a73 pkg com.android.systemui
java.lang.Throwable
at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:19689)
at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:20294)
at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20436)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:240)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3080)
at android.os.Binder.execTransact(Binder.java:674)
02-15 20:55:39.715 15413-15413/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.systemui, PID: 15413
java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1001)
at android.graphics.Bitmap.createBitmap(Bitmap.java:968)
at android.graphics.Bitmap.createBitmap(Bitmap.java:918)
at android.graphics.Bitmap.createBitmap(Bitmap.java:879)
at android.graphics.drawable.AdaptiveIconDrawable.updateMaskBoundsInternal(AdaptiveIconDrawable.java:333)
at android.graphics.drawable.AdaptiveIconDrawable.updateLayerBounds(AdaptiveIconDrawable.java:295)
at android.graphics.drawable.AdaptiveIconDrawable.onStateChange(AdaptiveIconDrawable.java:782)
at android.graphics.drawable.Drawable.setState(Drawable.java:775)
at android.widget.ImageView.drawableStateChanged(ImageView.java:1305)
at android.view.View.refreshDrawableState(View.java:20025)
at android.view.View.dispatchAttachedToWindow(View.java:17422)
at android.view.ViewGroup.addViewInner(ViewGroup.java:4955)
at android.view.ViewGroup.addView(ViewGroup.java:4746)
at com.android.systemui.statusbar.phone.NotificationIconAreaController.updateIconsForLayout(NotificationIconAreaController.java:247)
at com.android.systemui.statusbar.phone.NotificationIconAreaController.updateNotificationIcons(NotificationIconAreaController.java:155)
at com.android.systemui.statusbar.phone.StatusBar.updateNotificationShade(StatusBar.java:2000)
at com.android.systemui.statusbar.phone.StatusBar.updateNotifications(StatusBar.java:2188)
at com.android.systemui.statusbar.phone.StatusBar.addNotificationViews(StatusBar.java:6833)
at com.android.systemui.statusbar.phone.StatusBar.addEntry(StatusBar.java:1671)
at com.android.systemui.statusbar.phone.StatusBar.onAsyncInflationFinished(StatusBar.java:1688)
at com.android.systemui.statusbar.notification.NotificationInflater$AsyncInflationTask.onAsyncInflationFinished(NotificationInflater.java:641)
at com.android.systemui.statusbar.notification.NotificationInflater.finishIfDone(NotificationInflater.java:460)
at com.android.systemui.statusbar.notification.NotificationInflater.-wrap0(Unknown Source:0)
at com.android.systemui.statusbar.notification.NotificationInflater$6.onViewApplied(NotificationInflater.java:343)
at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3421)
at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3401)
at android.os.AsyncTask.finish(AsyncTask.java:695)
at android.os.AsyncTask.-wrap1(Unknown Source:0)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:251)
at android.app.ActivityThread.main(ActivityThread.java:6563)
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:767)
02-15 20:55:39.737 2508-2644/? E/JavaDumper:FW: utils.c(257): mkdir (/data/crashdata) failed. File exists
02-15 20:55:39.739 2508-2644/? E/JavaDumper:FW: ramdump_framework.c(340): fp is NULL
02-15 20:55:39.739 2508-2644/? E/JavaDumper:FW: ramdump_framework.c(519): Read-only file system
02-15 20:55:39.779 2508-2644/? E/JavaDumper:FW: JavaDumper.cpp(261): Failed to remove /mnt/tmp/dropbox.txt:No such file or directory

Hilfreich?
Kommentieren
Pascal P.
  • Admin
  • Forum-Beiträge: 11.286

15.02.2018, 21:05:54 via Website

Das ist komisch, deine SystemUi kommt mit dem Bild nicht klar:
02-15 20:55:39.715 15413-15413/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.systemui, PID: 15413
java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1001)
at android.graphics.Bitmap.createBitmap(Bitmap.java:968)
at android.graphics.Bitmap.createBitmap(Bitmap.java:918)
at android.graphics.Bitmap.createBitmap(Bitmap.java:879)

Was ist das für Ein notification Bild und welche Androidversion (CustomRom/Strock) hast du?
Hast du dire Regeln für Notification Icons (keine Farben, nur shwarz/weiß/transparent) eingehalten?

Was passiert, wenn du über einen Button versucht, die Notification anzuzeigen?

Uch glaube das ist das Problem:
https://blog.pusher.com/upgrade-app-android-oreo-avoid-factory-reset/

LG Pascal //It's not a bug, it's a feature. :) ;)

Hilfreich?
Rafael K.
Kommentieren
DmanT
  • Forum-Beiträge: 36

15.02.2018, 22:30:00 via Website

Hallo.

Ja, es lag tatsächlich am Bild. Nun bekomm eich zwar eine Notification, allerdings nur wenn die App geöffnet ist. Wenn die App geschlossen ist stürzt wieder alles am mit "System-UI wurde beendet"

Hier auch nochmal die Log

02-15 22:25:59.403 482-482/? E/SELinux: avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=4874 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
02-15 22:25:59.404 482-482/? E/SELinux: avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=4874 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
02-15 22:25:59.410 482-482/? E/SELinux: avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=4874 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
02-15 22:25:59.790 482-482/? E/SELinux: avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=4608 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
02-15 22:25:59.795 482-482/? E/SELinux: avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=4608 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
02-15 22:26:02.323 4608-4717/? E/SingleFileAttributeStore.cpp: Could not read data from the disk
02-15 22:26:09.756 4874-5047/? E/SingleFileAttributeStore.cpp: Could not read data from the disk
02-15 22:26:11.093 686-751/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
02-15 22:26:11.094 665-6081/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device =
02-15 22:26:11.094 665-6081/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device =
02-15 22:26:11.110 665-6081/? E/audio_hw_utils: send_app_type_cfg_for_device: Could not get ctl for mixer cmd - Audio Stream Capture 42 App Type Cfg
02-15 22:26:11.110 665-6081/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
02-15 22:26:11.110 665-6081/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
02-15 22:26:11.128 665-6081/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
02-15 22:26:11.128 665-6081/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
02-15 22:26:11.128 665-6081/? E/ACDB-LOADER: Error: ACDB audproc returned = -19
02-15 22:26:11.128 665-6081/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
02-15 22:26:11.128 665-6081/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-15 22:26:11.128 665-6081/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
02-15 22:26:11.128 665-6081/? E/msm8974_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
02-15 22:26:11.128 665-6081/? E/audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device speaker ret=-14
02-15 22:26:11.157 2850-3519/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.sonyericsson.home/com.sonymobile.home.HomeActivity/23068675
02-15 22:26:11.282 3781-3793/? E/ResourcesManager: failed to add asset path /data/app/ovh.dmant.btcwallet.btcwallet-H_SsIC3skne4Kh92FQdWNw==/base.apk
02-15 22:26:11.282 3781-3793/? E/ResourcesManager: failed to add asset path /data/app/ovh.dmant.btcwallet.btcwallet-H_SsIC3skne4Kh92FQdWNw==/base.apk
02-15 22:26:11.283 3781-3793/? E/ResourcesManager: failed to add asset path /data/app/ovh.dmant.btcwallet.btcwallet-H_SsIC3skne4Kh92FQdWNw==/base.apk
02-15 22:26:11.291 3781-3793/? E/ResourcesManager: failed to add asset path /data/app/ovh.dmant.btcwallet.btcwallet-H_SsIC3skne4Kh92FQdWNw==/base.apk
02-15 22:26:13.789 2616-3553/? E/IzatSvc_ComboNetworkProvider: Exiting with error proc line 208 "1"
02-15 22:26:13.858 4062-4062/? E/ctxmgr: [PlaceFenceHelper]NearbyBuffer is null!
02-15 22:26:15.117 665-6081/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device =
02-15 22:26:15.117 665-6081/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device =
02-15 22:26:15.119 686-751/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
02-15 22:26:15.129 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:15.146 665-6081/? E/audio_hw_utils: send_app_type_cfg_for_device: Could not get ctl for mixer cmd - Audio Stream Capture 42 App Type Cfg
02-15 22:26:15.146 665-6081/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
02-15 22:26:15.147 665-6081/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
02-15 22:26:15.155 2850-4579/? E/OsAgent: Wifi Scan Always Available: 1
02-15 22:26:15.169 665-6081/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
02-15 22:26:15.169 665-6081/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
02-15 22:26:15.169 665-6081/? E/ACDB-LOADER: Error: ACDB audproc returned = -19
02-15 22:26:15.169 665-6081/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
02-15 22:26:15.170 665-6081/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
02-15 22:26:15.170 665-6081/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
02-15 22:26:15.170 665-6081/? E/msm8974_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
02-15 22:26:15.170 665-6081/? E/audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device speaker ret=-14
02-15 22:26:15.181 2850-4579/? E/OsAgent: Wifi Scan Always Available: 1
02-15 22:26:15.218 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:15.218 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:15.238 2850-3666/? E/WifiScanner: listener cannot be found
02-15 22:26:15.239 2850-3245/? E/WifiP2pService: Unable to change interface settings: java.lang.IllegalStateException: command '107 interface setcfg p2p0 0.0.0.0 0 up' failed with '400 107 Failed to clear address (No such device)'
02-15 22:26:15.879 5132-5132/? E/ActivityThread: Failed to find provider info for com.mobisystems.msconfig.provider
02-15 22:26:15.882 5132-5132/? E/Override: initCP for 5 null
02-15 22:26:16.605 5132-5132/? E/GoogleTagManager: Invalid macro: _gtm.loadEventEnabled
02-15 22:26:16.699 5132-5178/? E/GoogleTagManager: Invalid macro: _gtm.loadEventEnabled
02-15 22:26:16.927 5132-5132/? E/GoogleTagManager: Invalid macro: disableOverlay
02-15 22:26:16.928 5132-5132/? E/GoogleTagManager: Invalid macro: trialPremiumKey
02-15 22:26:16.929 5132-5132/? E/GoogleTagManager: Invalid macro: iapProvider
02-15 22:26:18.547 5187-5216/? E/libc: Access denied finding property "qemu.hw.mainkeys"
02-15 22:26:19.512 2850-3666/? E/WifiScanner: listener cannot be found
02-15 22:26:19.519 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.541 2850-2905/? E/SomcSupplicantStaIfaceHal: onStateChanged: State.ASSOCIATING, keyMgmt:WPA_PSK
02-15 22:26:19.569 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.569 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.600 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.600 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.646 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.656 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.656 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.661 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.661 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.665 2850-3240/? E/WifiVendorHal: getApfCapabilities(l.1497) failed {.code = ERROR_UNKNOWN, .description = errno: -95 (Unknown error -95)}
02-15 22:26:19.683 2850-3240/? E/WifiVendorHal: configureNeighborDiscoveryOffload(l.2199) failed {.code = ERROR_UNKNOWN, .description = errno: -95 (Unknown error -95)}
02-15 22:26:19.694 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.694 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.714 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.714 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.731 2850-3240/? E/WifiStateMachine: Did not find remoteAddress {192.168.1.1} in /proc/net/arp
02-15 22:26:19.735 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.735 2676-2676/? E/Parcel: Reading a NULL string not supported here.
02-15 22:26:19.770 2608-2831/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
02-15 22:26:19.770 2608-2831/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'STATE' not found
02-15 22:26:19.770 2608-2831/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
02-15 22:26:19.770 2608-2831/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
02-15 22:26:19.824 2616-3553/? E/IzatSvc_ComboNetworkProvider: Exiting with error proc line 208 "1"
02-15 22:26:19.916 2850-2888/? E/GnssLocationProvider: updateNetworkAvailability failed
02-15 22:26:20.678 2604-3436/? E/QCExtractor: ExtendedExtractor failed to instantiate extractor
02-15 22:26:20.687 5274-5429/? E/MediaExtractor: Trace connect 0xdf36f060 0xd0390440
02-15 22:26:20.727 2611-2822/? E/OMXNodeInstance: getConfig(0xea32d1a0:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
02-15 22:26:20.758 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.762 2850-3666/? E/WifiScanner: listener cannot be found
02-15 22:26:20.779 2850-3240/? E/WifiVendorHal: stopRssiMonitoring(l.2115) failed {.code = ERROR_NOT_AVAILABLE, .description = }
02-15 22:26:20.788 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.801 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.824 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.850 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.885 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.919 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.927 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.942 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.945 2604-2778/? E/MM_OSAL: Data is not sufficient to validate AAC
02-15 22:26:20.946 2604-2778/? E/QCExtractor: ExtendedExtractor failed to instantiate extractor
02-15 22:26:20.949 5274-5429/? E/MediaExtractor: Trace connect 0xe4f04e80 0xe2e44e40
02-15 22:26:20.969 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.974 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.977 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.988 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.990 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.993 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.994 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.996 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:20.996 2611-2822/? E/OMXNodeInstance: getConfig(0xea32c000:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
02-15 22:26:20.999 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:21.024 2850-3237/? E/NetdConnector: NDC Command {121 bandwidth setiquota rmnet_data0 9223372036854775807} took too long (655ms)
02-15 22:26:21.018 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:21.048 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:21.102 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:21.119 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:21.130 5274-5274/? E/System: WARNING: ObjectStreamClass.getConstructorId(Class) is private API andwill be removed in a future Android release.
02-15 22:26:21.445 5476-5476/? E/ACRA: Skipping ANR Detector for process: com.facebook.katana:notification
02-15 22:26:21.624 482-482/? E/SELinux: avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=5476 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
02-15 22:26:21.635 482-482/? E/SELinux: avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=5476 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
02-15 22:26:21.647 482-482/? E/SELinux: avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=5476 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
02-15 22:26:22.023 5568-5568/? E/ACRA: Skipping ANR Detector for process: com.facebook.orca:notification
02-15 22:26:22.890 4510-4510/? E/ModelDnldProcssHelpr: pending download info for pending_hotword_model_download_info is null
02-15 22:26:22.891 4510-4510/? E/ModelDnldProcssHelpr: pending download info for pending_xgoogle_hotword_model_download_info is null
02-15 22:26:22.919 4510-32515/? E/DownloadManagerWrapper: Can't find downloadId=1443
02-15 22:26:24.194 4510-4510/? E/ModelDnldProcssHelpr: pending download info for pending_hotword_model_download_info is null
02-15 22:26:24.194 4510-4510/? E/ModelDnldProcssHelpr: pending download info for pending_xgoogle_hotword_model_download_info is null
02-15 22:26:24.204 4510-32502/? E/DownloadManagerWrapper: Can't find downloadId=1444
02-15 22:26:25.482 4510-4510/? E/ModelDnldProcssHelpr: pending download info for pending_hotword_model_download_info is null
02-15 22:26:25.483 4510-4510/? E/ModelDnldProcssHelpr: pending download info for pending_xgoogle_hotword_model_download_info is null
02-15 22:26:25.497 4510-32441/? E/DownloadManagerWrapper: Can't find downloadId=1442
02-15 22:26:26.950 4510-4510/? E/ModelDnldProcssHelpr: pending download info for pending_hotword_model_download_info is null
02-15 22:26:26.950 4510-4510/? E/ModelDnldProcssHelpr: pending download info for pending_xgoogle_hotword_model_download_info is null
02-15 22:26:26.965 4510-32514/? E/DownloadManagerWrapper: Can't find downloadId=1445
02-15 22:26:40.820 2850-3666/? E/WifiScanner: listener cannot be found
02-15 22:26:41.981 5725-5725/? E/CAR.TEL.Service: Failed to bind to InCallService
02-15 22:26:42.777 3781-3781/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.systemui, PID: 3781
java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1001)
at android.graphics.Bitmap.createBitmap(Bitmap.java:968)
at android.graphics.Bitmap.createBitmap(Bitmap.java:918)
at android.graphics.Bitmap.createBitmap(Bitmap.java:879)
at android.graphics.drawable.AdaptiveIconDrawable.updateMaskBoundsInternal(AdaptiveIconDrawable.java:333)
at android.graphics.drawable.AdaptiveIconDrawable.updateLayerBounds(AdaptiveIconDrawable.java:295)
at android.graphics.drawable.AdaptiveIconDrawable.onStateChange(AdaptiveIconDrawable.java:782)
at android.graphics.drawable.Drawable.setState(Drawable.java:775)
at android.widget.ImageView.drawableStateChanged(ImageView.java:1305)
at android.view.View.refreshDrawableState(View.java:20025)
at android.view.View.dispatchAttachedToWindow(View.java:17422)
at android.view.ViewGroup.addViewInner(ViewGroup.java:4955)
at android.view.ViewGroup.addView(ViewGroup.java:4746)
at com.android.systemui.statusbar.phone.NotificationIconAreaController.updateIconsForLayout(NotificationIconAreaController.java:247)
at com.android.systemui.statusbar.phone.NotificationIconAreaController.updateNotificationIcons(NotificationIconAreaController.java:155)
at com.android.systemui.statusbar.phone.StatusBar.updateNotificationShade(StatusBar.java:2000)
at com.android.systemui.statusbar.phone.StatusBar.updateNotifications(StatusBar.java:2188)
at com.android.systemui.statusbar.phone.StatusBar.addNotificationViews(StatusBar.java:6833)
at com.android.systemui.statusbar.phone.StatusBar.addEntry(StatusBar.java:1671)
at com.android.systemui.statusbar.phone.StatusBar.onAsyncInflationFinished(StatusBar.java:1688)
at com.android.systemui.statusbar.notification.NotificationInflater$AsyncInflationTask.onAsyncInflationFinished(NotificationInflater.java:641)
at com.android.systemui.statusbar.notification.NotificationInflater.finishIfDone(NotificationInflater.java:460)
at com.android.systemui.statusbar.notification.NotificationInflater.-wrap0(Unknown Source:0)
at com.android.systemui.statusbar.notification.NotificationInflater$6.onViewApplied(NotificationInflater.java:343)
at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3421)
at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3401)
at android.os.AsyncTask.finish(AsyncTask.java:695)
at android.os.AsyncTask.-wrap1(Unknown Source:0)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:251)
at android.app.ActivityThread.main(ActivityThread.java:6563)
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:767)
02-15 22:26:42.801 2508-2644/? E/JavaDumper:FW: utils.c(257): mkdir (/data/crashdata) failed. File exists
02-15 22:26:42.804 2508-2644/? E/JavaDumper:FW: ramdump_framework.c(340): fp is NULL
02-15 22:26:42.804 2508-2644/? E/JavaDumper:FW: ramdump_framework.c(519): Read-only file system
02-15 22:26:42.895 2508-2644/? E/JavaDumper:FW: JavaDumper.cpp(261): Failed to remove /mnt/tmp/dropbox.txt:No such file or directory
02-15 22:26:49.597 5836-5900/? E/SomcEmail: com.sonymobile.email.mail.store.ImapStore$ImapException: 3: #5# ["NO", "Unable to open this mailbox."]
02-15 22:26:55.744 5836-5898/? E/SomcEmail: com.sonymobile.emailcommon.mail.AuthenticationFailedException:
02-15 22:26:58.147 13165-15531/? E/GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

Hilfreich?
Kommentieren
DmanT
  • Forum-Beiträge: 36

15.02.2018, 22:37:08 via Website

Hier noch mein Code

public class MyFirebaseMessagingService extends FirebaseMessagingService {
private static final String TAG = "MyFirebaseIIDService";
String notifi_title = "";
String notifi_message = "";
public static Context context;
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {

    notifi_title = remoteMessage.getNotification().getTitle();
    notifi_message = remoteMessage.getNotification().getBody();
    Log.d(TAG, "Titel = " + remoteMessage.getNotification().getTitle());
    Log.d(TAG, "Message = " + remoteMessage.getNotification().getBody());

    NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); //Setting up Notification channels for android O and above
    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
        CharSequence adminChannelName = Constants.NOTIFICATION_CHANNEL_NAME;
        String adminChannelDescription = Constants.NOTIFICATION_CHANNEL_DESCRIPTION;
        NotificationChannel adminChannel;
        adminChannel = new NotificationChannel(Constants.NOTIFICATION_CHANNEL_ID, adminChannelName, NotificationManager.IMPORTANCE_LOW);
        adminChannel.setDescription(adminChannelDescription);
        adminChannel.enableLights(true);
        adminChannel.setLightColor(Color.RED);
        adminChannel.enableVibration(true);
        if (notificationManager != null) {
            notificationManager.createNotificationChannel(adminChannel);
        }
    }
    int notificationId = new Random().nextInt(60000);
    Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, Constants.NOTIFICATION_CHANNEL_ID)
            .setSmallIcon(R.drawable.ic_stat_new_message) //a resource for your custom small icon
            .setContentTitle(notifi_title) //the "title" value you sent in your notification
            .setContentText(notifi_message) //ditto
            .setAutoCancel(true) //dismisses the notification on click
            .setSound(defaultSoundUri)
            .setVibrate(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400})
            .setLights(Color.CYAN,1000,2000);

    notificationManager.notify(notificationId, notificationBuilder.build());
}

}

Hilfreich?
Kommentieren
Rafael K.
  • Forum-Beiträge: 2.359

15.02.2018, 22:39:43 via Website

Noch immer derselbe Fehler

02-15 22:26:42.777 3781-3781/? E/AndroidRuntime: FATAL EXCEPTION: main 
Process: com.android.systemui, PID: 3781 
java.lang.IllegalArgumentException: width and height must be > 0 

Hast du alle Schritte befolgt, die in Pascals Link unter "Solving the Problem" beschrieben werden?
Firebase Notifications haben ja ein default Icon. Vermutlich gibt es noch Fälle wo er das als Fallback verwendet. Das musst du verhindern.

— geändert am 15.02.2018, 22:43:39

Hilfreich?
Kommentieren
DmanT
  • Forum-Beiträge: 36

16.02.2018, 09:07:33 via Website

Guten Morgen,

Ja ich habe alles so gemacht ohne erfolgt. Ich habe dann die app komplett vom Handy gelöscht, das alte build gelöscht.

Neu compiliert, installiert und siehe da, auf einmal geht es.

Ich denke mir das da noch "Reste" waren die er immer irgendwie genommen hat.

Ich komme eher auf der C/C++ Ecke. Hier führe ich z.b. immer vom Compilieren ein "make clean" aus. Macht Android Studio so etwas nicht?

Da ich ohnehin Debian nutze, sollte ich dann nicht doch vll Eclipse nutzen anstatt Android Studio zu virtualisieren?

Ich habe die letzten 10 Jahre fast komplett Java meiden können, nun habe ich den Salat g nunja ich versuche die Fehler zu verstehen bzw. was da jetzt schiefgelaufen ist. Wäre echt nervig die app immer wieder erst zu löschen.

Hilfreich?
Kommentieren
Pascal P.
  • Admin
  • Forum-Beiträge: 11.286

16.02.2018, 09:21:22 via App

Was meinst du mit "Virtualisieren"? Android Studio läuft doch auch auf Linux.
Edit: Unter Eclipse wirst du eher mehr Probleme dahingehend haben, gerade mit der Ressourcenverwaltung etc.. zudem musst du die nützliche Plugins wie Gradle aufwändig nachinstallieren. Zudem ist sowieso unklar wie lange Eclipse von Google noch unterstützt wird, zumindest empfielt Google die Nutzung von AS da bist du auf der sicheren Seite.

PS: Hast du mal ein Build->Clean probiert und Instant Run abgeschaltet?

— geändert am 16.02.2018, 09:27:45

LG Pascal //It's not a bug, it's a feature. :) ;)

Hilfreich?
Kommentieren
DmanT
  • Forum-Beiträge: 36

16.02.2018, 09:40:22 via Website

Halte mich für bekloppt, verrückt oder was auch immer aber wie ich schon schrieb habe ich Java immer gemieden, und ich kenne etliche DEVs, eigentlich die meisten, die ebenso denken.

Für uns war/ist Java immer Gift gewesen, gerade für unsere Systeme.

Bei Android lässt es sich ja nun nicht vermeiden, Windows ist da auch nicht besser und iOS, naja.

Nun ja wenn wir mal an Meldown/Spectre denken der mittels Java/Javascript (Java, Javascript etc ist ein Haufen) "mal eben" Schadcode ausführt, Naja, nur eine Frage der Zeit bis Meltdown/Spectre 2 erscheint.

Daher läuft mein Android Studio in einer geschlossenen VM. Jedoch werde ich mir bald ein eigenes System für Java Sachen erstellen weil ich nicht genau weiss in wie weit man durch derartigen Schadcode auch durch die VM an die Daten des Hauptsystems kommt denn es bleibt ja eine CPU.

Ich möchte die Sprache keinesfalls schlecht reden aber ist nunmal so das dass meiste durch Java/Javascript verursacht werden kann bzw das ganze für sogenannte "Script kiddies" enorm erleichtert.

Safety First eben

Bitte nicht persönlich nehmen ;)

Hilfreich?
Kommentieren
Pascal P.
  • Admin
  • Forum-Beiträge: 11.286

16.02.2018, 11:36:43 via App

Das kann aber auch durch non Java Programme passieren, du kannst nie sicher sein. Aber darum soll es hier ja nicht gehen ;)
Genug OT.
Gib bescheid, wenn du neue Erkenntnisse hast.

LG Pascal //It's not a bug, it's a feature. :) ;)

Hilfreich?
Kommentieren
DmanT
  • Forum-Beiträge: 36

17.02.2018, 10:33:51 via Website

Das hatte ich ja bereits geschrieben aber Java macht es den "Script kiddies" eben nochmal nen Weg leichter...... Aber wie schon erwähnt, Offtopic

Hilfreich?
Kommentieren