Skip to content

Instantly share code, notes, and snippets.

View FabioCZ's full-sized avatar

Fabio Göttlicher FabioCZ

View GitHub Profile
@FabioCZ
FabioCZ / gist:6da8670f825c76dac1013452f0c86c09
Created January 16, 2019 04:03
MIUI broken notifications
2019-01-15 21:51:49.918 1856-1856/? E/StatusBar: couldn't inflate view for notification com.google.android.apps.googlevoice/0x1
android.widget.RemoteViews$ActionException: android.widget.RemoteViews$ActionException: view: android.widget.FrameLayout doesn't have method: setLayoutColor(int)
at android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:1459)
at android.widget.RemoteViews.performApply(RemoteViews.java:3563)
at android.widget.RemoteViews.apply(RemoteViews.java:3307)
at com.android.systemui.statusbar.notification.NotificationInflaterHelper.applyRemoteViewSync(NotificationInflaterHelper.java:59)
at com.android.systemui.statusbar.notification.NotificationInflaterHelper.access$100(NotificationInflaterHelper.java:24)
at com.android.systemui.statusbar.notification.NotificationInflaterHelper$1.onError(NotificationInflaterHelper.java:111)
at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3472)
at android.
public static void printHashKey(Context pContext) {
try {
PackageInfo info = getPackageInfo(pContext, PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
String hashKey = new String(Base64.encode(md.digest(), 0));
Log.i(TAG, "printHashKey() Hash Key: " + hashKey);
}
} catch (NoSuchAlgorithmException e) {
@FabioCZ
FabioCZ / app.component.html
Created August 9, 2016 20:56
Angular 2 material - md-ripple
<md-button>test</md-button>