Skip to content

Commit d7a957d

Browse files
committed
Comment updates
1 parent 2b5793d commit d7a957d

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

librootjava/src/main/java/eu/chainfire/librootjava/Reflection.java

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ class Reflection {
2323
private static Context systemContext = null;
2424

2525
/**
26-
* Stability: unlikely to change, this implementation works from 1.6 through 9.0
26+
* Retrieve system context<br>
27+
* <br>
28+
* Stability: unlikely to change, this implementation works from 1.6 through 9.0<br>
2729
*
2830
* @see RootJava#getSystemContext()
2931
*
@@ -66,7 +68,9 @@ static Context getSystemContext() {
6668
private static Object oActivityManager = null;
6769

6870
/**
69-
* Retrieve ActivityManager instance without needing a context
71+
* Retrieve ActivityManager instance without needing a context<br>
72+
* <br>
73+
* Stability: has changed before, might change again, rare
7074
*
7175
* @return ActivityManager
7276
*/
@@ -108,7 +112,9 @@ private static Object getActivityManager() {
108112
private static Integer FLAG_RECEIVER_FROM_SHELL = null;
109113

110114
/**
111-
* Retrieve value of Intent.FLAG_RECEIVER_FROM_SHELL, if it exists
115+
* Retrieve value of Intent.FLAG_RECEIVER_FROM_SHELL, if it exists<br>
116+
* <br>
117+
* Stability: stable, even if the flag goes away again this is unlikely to affect things
112118
*
113119
* @return FLAG_RECEIVER_FROM_SHELL or 0
114120
*/
@@ -167,8 +173,10 @@ private static Method getBroadcastIntent(Class<?> cActivityManager) {
167173
}
168174

169175
/**
170-
* Stability: the implementation for this will definitely change over time
171-
*
176+
* Broadcast intent<br>
177+
* <br>
178+
* Stability: the implementation for this will definitely change over time<br>
179+
* <br>
172180
* This implementation does not require us to have a context
173181
*
174182
* @see RootJava#sendBroadcast(Intent)
@@ -203,6 +211,11 @@ static void sendBroadcast(Intent intent) {
203211
throw new RuntimeException("librootjava: unable to send broadcast");
204212
}
205213

214+
/**
215+
* Internal class to retrieve an interface from a Binder (Proxy)
216+
*
217+
* @param <T> Interface
218+
*/
206219
@SuppressWarnings("unchecked")
207220
static class InterfaceRetriever<T> {
208221
/**

0 commit comments

Comments
 (0)