File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/main/java/com/xdandroid/sample/misc Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ android {
46
46
}
47
47
48
48
dependencies {
49
- compile ' io.reactivex.rxjava2:rxjava:2.+'
50
- compile ' com.android.support:support-annotations:+'
49
+ api ' io.reactivex.rxjava2:rxjava:2.+'
50
+ api ' com.android.support:support-annotations:+'
51
51
}
52
52
53
53
// Place it at the end of the file
Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ android {
22
22
}
23
23
24
24
dependencies {
25
- compile ' io.reactivex.rxjava2:rxjava:2.+'
26
- compile project(' :hellodaemon' )
25
+ api ' io.reactivex.rxjava2:rxjava:2.+'
26
+ api project(' :hellodaemon' )
27
27
}
Original file line number Diff line number Diff line change 16
16
*/
17
17
public class GenOpsActivity extends Activity {
18
18
19
- static String genOp (String pkg , String op ) {
19
+ /* static String genOp(String pkg, String op) {
20
20
return "adb shell cmd appops set " + pkg + " " + op + " " + ("RUN_IN_BACKGROUND".equals(op) && WHITE_LIST_APPS.contains(pkg) ? "allow" : "ignore") + "\n\n";
21
21
}
22
22
@@ -48,5 +48,5 @@ protected void onCreate(Bundle savedInstanceState) {
48
48
} catch (Exception e) { e.printStackTrace(); }
49
49
}).start();
50
50
finish();
51
- }
51
+ }*/
52
52
}
You can’t perform that action at this time.
0 commit comments