Just for fun, I tried building cupcake setting TARGET_BUILD_VARIANT to
"userdebug" instead of the default "eng". I noticed a few differences:
some apps were missing, adb shell logged me in as a non-root user, but
mostly that many operations seemed much faster. So I investigated a
bit and commented out line 162 of build/core/build.mk:

#ADDITIONAL_BUILD_PROPERTIES += ro.kernel.android.checkjni=1

Then I built again with TARGET_BUILD_VARIANT=eng, and I got the
speed-up without the other changes. Patch attached for anyone else who
wants to give it a try.

Jim
project build/
diff --git a/core/main.mk b/core/main.mk
index fdf2567..399e7e6 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -162,7 +162,7 @@ ifneq (,$(user_variant))
   
 else # !user_variant
   # Turn on checkjni for non-user builds.
-  ADDITIONAL_BUILD_PROPERTIES += ro.kernel.android.checkjni=1
+  #ADDITIONAL_BUILD_PROPERTIES += ro.kernel.android.checkjni=1
   # Set device insecure for non-user builds.
   ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
   # Allow mock locations by default for non user builds
_______________________________________________
android-freerunner mailing list
[email protected]
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org

Reply via email to