@@ -57,12 +57,13 @@ public static void installProxy(PackageManager manager) {
57
57
sMethods .put ("queryIntentServices" , new queryIntentServices ());
58
58
sMethods .put ("resolveActivity" , new resolveActivity ());
59
59
sMethods .put ("resolveActivityAsUser" , new resolveActivityAsUser ());
60
+ sMethods .put ("resolveService" , new resolveService ());
60
61
}
61
62
62
63
public static class getPackageInfo extends MethodDelegate {
63
64
@ Override
64
65
public Object beforeInvoke (Object target , Method method , Object [] args ) {
65
- LogUtil .e ("beforeInvoke" , method .getName ());
66
+ LogUtil .d ("beforeInvoke" , method .getName ());
66
67
PluginDescriptor pd = PluginLoader .getPluginDescriptorByPluginId (args [0 ].toString ());
67
68
if (pd != null ) {
68
69
return PluginLoader .getApplicatoin ().getPackageManager ().getPackageArchiveInfo (pd .getInstalledPath (), (int ) args [1 ]);
@@ -75,7 +76,7 @@ public static class getInstalledPackages extends MethodDelegate {
75
76
76
77
@ Override
77
78
public Object afterInvoke (Object target , Method method , Object [] args , Object beforeResult , Object invokeResult ) {
78
- LogUtil .e ("afterInvoke" , method .getName ());
79
+ LogUtil .d ("afterInvoke" , method .getName ());
79
80
80
81
List <PackageInfo > result = (List <PackageInfo > )RefInvoker .invokeMethod (invokeResult , "android.content.pm.ParceledListSlice" , "getList" , (Class [])null , (Object [])null );
81
82
@@ -97,7 +98,7 @@ public Object afterInvoke(Object target, Method method, Object[] args, Object be
97
98
public static class queryIntentActivities extends MethodDelegate {
98
99
@ Override
99
100
public Object beforeInvoke (Object target , Method method , Object [] args ) {
100
- LogUtil .e ("beforeInvoke" , method .getName ());
101
+ LogUtil .d ("beforeInvoke" , method .getName ());
101
102
ArrayList <String > classNames = PluginLoader .matchPlugin ((Intent ) args [0 ], PluginDescriptor .ACTIVITY );
102
103
if (classNames != null && classNames .size () > 0 ) {
103
104
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (classNames .get (0 ));
@@ -115,7 +116,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
115
116
public static class getApplicationInfo extends MethodDelegate {
116
117
@ Override
117
118
public Object beforeInvoke (Object target , Method method , Object [] args ) {
118
- LogUtil .e ("beforeInvoke" , method .getName ());
119
+ LogUtil .d ("beforeInvoke" , method .getName ());
119
120
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByPluginId (args [0 ].toString ());
120
121
if (pluginDescriptor != null ) {
121
122
return getApplicationInfo (pluginDescriptor );
@@ -127,7 +128,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
127
128
public static class getActivityInfo extends MethodDelegate {
128
129
@ Override
129
130
public Object beforeInvoke (Object target , Method method , Object [] args ) {
130
- LogUtil .e ("beforeInvoke" , method .getName ());
131
+ LogUtil .d ("beforeInvoke" , method .getName ());
131
132
String className = ((ComponentName )args [0 ]).getClassName ();
132
133
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (className );
133
134
if (pluginDescriptor != null ) {
@@ -141,7 +142,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
141
142
public static class getReceiverInfo extends MethodDelegate {
142
143
@ Override
143
144
public Object beforeInvoke (Object target , Method method , Object [] args ) {
144
- LogUtil .e ("beforeInvoke" , method .getName ());
145
+ LogUtil .d ("beforeInvoke" , method .getName ());
145
146
String className = ((ComponentName )args [0 ]).getClassName ();
146
147
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (className );
147
148
if (pluginDescriptor != null ) {
@@ -155,7 +156,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
155
156
public static class getServiceInfo extends MethodDelegate {
156
157
@ Override
157
158
public Object beforeInvoke (Object target , Method method , Object [] args ) {
158
- LogUtil .e ("beforeInvoke" , method .getName ());
159
+ LogUtil .d ("beforeInvoke" , method .getName ());
159
160
String className = ((ComponentName )args [0 ]).getClassName ();
160
161
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (className );
161
162
if (pluginDescriptor != null ) {
@@ -169,7 +170,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
169
170
public static class getProviderInfo extends MethodDelegate {
170
171
@ Override
171
172
public Object beforeInvoke (Object target , Method method , Object [] args ) {
172
- LogUtil .e ("beforeInvoke" , method .getName ());
173
+ LogUtil .d ("beforeInvoke" , method .getName ());
173
174
String className = ((ComponentName )args [0 ]).getClassName ();
174
175
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (className );
175
176
if (pluginDescriptor != null ) {
@@ -192,7 +193,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
192
193
public static class queryIntentServices extends MethodDelegate {
193
194
@ Override
194
195
public Object beforeInvoke (Object target , Method method , Object [] args ) {
195
- LogUtil .e ("beforeInvoke" , method .getName ());
196
+ LogUtil .d ("beforeInvoke" , method .getName ());
196
197
ArrayList <String > classNames = PluginLoader .matchPlugin ((Intent ) args [0 ], PluginDescriptor .SERVICE );
197
198
if (classNames != null && classNames .size () > 0 ) {
198
199
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (classNames .get (0 ));
@@ -209,7 +210,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
209
210
public static class resolveIntent extends MethodDelegate {
210
211
@ Override
211
212
public Object beforeInvoke (Object target , Method method , Object [] args ) {
212
- LogUtil .e ("beforeInvoke" , method .getName ());
213
+ LogUtil .d ("beforeInvoke" , method .getName ());
213
214
ArrayList <String > classNames = PluginLoader .matchPlugin ((Intent ) args [0 ], PluginDescriptor .ACTIVITY );
214
215
if (classNames != null && classNames .size () > 0 ) {
215
216
List <ResolveInfo > result = new ArrayList <>();
@@ -226,7 +227,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
226
227
public static class resolveService extends MethodDelegate {
227
228
@ Override
228
229
public Object beforeInvoke (Object target , Method method , Object [] args ) {
229
- LogUtil .e ("beforeInvoke" , method .getName ());
230
+ LogUtil .d ("beforeInvoke" , method .getName ());
230
231
ArrayList <String > classNames = PluginLoader .matchPlugin ((Intent ) args [0 ], PluginDescriptor .SERVICE );
231
232
if (classNames != null && classNames .size () > 0 ) {
232
233
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (classNames .get (0 ));
@@ -242,7 +243,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
242
243
public static class resolveActivity extends MethodDelegate {
243
244
@ Override
244
245
public Object beforeInvoke (Object target , Method method , Object [] args ) {
245
- LogUtil .e ("beforeInvoke" , method .getName ());
246
+ LogUtil .d ("beforeInvoke" , method .getName ());
246
247
ArrayList <String > classNames = PluginLoader .matchPlugin ((Intent ) args [0 ], PluginDescriptor .ACTIVITY );
247
248
if (classNames != null && classNames .size () > 0 ) {
248
249
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (classNames .get (0 ));
@@ -258,7 +259,7 @@ public Object beforeInvoke(Object target, Method method, Object[] args) {
258
259
public static class resolveActivityAsUser extends MethodDelegate {
259
260
@ Override
260
261
public Object beforeInvoke (Object target , Method method , Object [] args ) {
261
- LogUtil .e ("beforeInvoke" , method .getName ());
262
+ LogUtil .d ("beforeInvoke" , method .getName ());
262
263
ArrayList <String > classNames = PluginLoader .matchPlugin ((Intent ) args [0 ], PluginDescriptor .ACTIVITY );
263
264
if (classNames != null && classNames .size () > 0 ) {
264
265
PluginDescriptor pluginDescriptor = PluginLoader .getPluginDescriptorByClassName (classNames .get (0 ));
0 commit comments