Category : android-source

I am working with AOSP-Q. I am getting failure while running ctsdevicepolicymanagertestcases module on my customized AOSP-Q code. Test case is requesting bug report and waiting for statusbar notification regarding to bugreport. if (sbt.getPackageName().equals("android") && sbt.getTag().equals("DevicePolicyManager") && sbt.getNotification().actions != null ) { try { System.out.println("in try block"); // The first action is to decline sbt.getNotification().actions[0].actionIntent.send(); ..

Read more

My nexus 5x works fine until I changed some share library in system partition: adb push out/target/product/bullhead/system/lib/somename.so /system/lib/somename.so adb reboot then my nexus 5x is stuck on Google screen on boot. But when I cleared data, my nexus 5x works fine again: fastboot -w && fastboot reboot I also find that system.img can’t be flashed ..

Read more

I am trying to add some text in the Permission AlertBox of the app which would appear whenever any app is asking for permission either install-time or runtime. I have explored the code in Activity.java and did not find anything in there in the requestPermission method. Can anyone help me with that. Thanks in advance. ..

Read more

I am trying to generate code coverage for system application using jacoco. I have used android.bp for defining application dependencies. However I get following error on executing test cases for generating coverage adb shell am instrument -w -e coverage true <package_name>/<instrumentation_class_name> error : Is emma/jacoco jar on classpath I am able to generated code coverage ..

Read more