top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to import Google now on Android 4.2 AOSP?

0 votes
299 views
How to import Google now on Android 4.2 AOSP?
posted Mar 6, 2014 by Meenal Mishra

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Google Now is not part of Android AOSP distribution.

Similar Questions
+3 votes

Does anyone know how I can enable ART in AOSP 4.4? I complete a successful build and load it onto a Nexus 4 (mako). Everything seems to work fine, however, when I go to the settings and change the default runtime to ART, it reboots and never comes back up. When looking through the logs (adb logcat), I see a bunch of segmentation faults coming from libart.so. Is ART supported in AOSP?

Please note that when I take the official image from here: https://developers.google.com/android/nexus/images I am able to enable ART so my theory is that it is not yet enabled in AOSP.

+2 votes

I want to test bluetooth on Android Development environment any suggestions?

+3 votes

After using SCREEN_ON SCREEN_OFF broadcast receiver, screen does not seem to switch off automatically as it used to for default android app.

None of the code commented below works for Android 4.4.2 (API 19 onward)

int time = android.provider.Settings.System.getInt(context.getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, Integer.MAX_VALUE);
// Toast.makeText(context, "Screen Time out is "+new Date(lastTimeScreenOn+15000) + ", lastTimeScreenOn = "+new Date(lastTimeScreenOn), Toast.LENGTH_SHORT).show();
// screen off if more than 15 sec
if(System.currentTimeMillis() - lastTimeScreenOn > 15000)
 {
      Toast.makeText(context, "Screen Time out ", Toast.LENGTH_LONG).show();
      //DevicePolicyManager mDPM = (DevicePolicyManager)context.getSystemService(Context.DEVICE_POLICY_SERVICE);
      //mDPM.lockNow();
      //Settings.System.putInt(context.getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, 1000);
 }
+2 votes

I am often confused with Dex Optimization details. Here are few details I know of.

Kindly correct me if i am wrong ? While exploring the source code, i found that package manager scans all the external libraries, base frameworks, system packages, and vendor packages for dex optimization.

So, if I understand correct 'dex optimization' can be done both in compilation time and execution time.

Also, surfing in the internet, DISABLE_DEXPREOPT has an impact over this dex optimization when to be done?

Which one do I have to opt?

DISABLE_DEXPREOPT=true [OR] DISABLE_DEXOPT=false  

while building with the below command

make TARGET= droid -j6  

According to the source code, I understood if .odex is available as part of .jar or apk file, then it ignores dex optimization, while booting.

Kindly correct me if i am wong?. and suggest.

+2 votes

How to use java libraries from /lib directory of my app in AOSP?

Currently I have built my app in eclipse so i had my libraries in /lib directory of my app but after including source code in AOSP, it is giving error, I think I need to add the entry of the libraries in /lib in my Android.mk file, but how?

I dont know what entry need to be made... any suggestions?

...