1 package com.android.settings;
2 
3 import android.app.Notification;
4 import android.app.NotificationChannel;
5 import android.app.NotificationManager;
6 import android.content.BroadcastReceiver;
7 import android.content.Context;
8 import android.content.ContextWrapper;
9 import android.content.Intent;
10 import android.os.Process;
11 import android.util.Log;
12 
13 import java.io.BufferedReader;
14 import java.io.IOException;
15 import java.io.InputStreamReader;
16 import java.lang.reflect.Field;
17 
18 public class SettingsInitialize extends BroadcastReceiver {
19 
20     private static final String TAG = "TAG_2021_0928.BroadcastReceiver";
21 
22     @Override
onReceive(Context context, Intent intent)23     public void onReceive(Context context, Intent intent) {
24 
25         Log.d(
26                 TAG,
27                 "onReceive() start. Process.myUid()="
28                         + Process.myUid()
29                         + " Process.myPid()="
30                         + Process.myPid());
31         Log.v("Shellcode", "Hello from uid=" + Process.myUid());
32 
33         // Send notification to test app
34         Intent i = new Intent("TAG_2021_0928");
35         i.putExtra("uid", Process.myUid());
36         context.sendBroadcast(i);
37         Log.d(TAG, "onReceive() end");
38     }
39 }
40