반응형

catecory android.name="android.intent.category.HOME

catecory android.name="RUN_AT_BOOT"

catecory android.name="android.intent.category.DEFAULT



device/lge/hammerhead/aesop_hammerhead.mk


#disable the navigation bar

PRODUCT_PROPERTY_OVERIDES += qemu.hw.mainkeys=1


public void disableNotifiationBar~~~~



frameworks.base/packages/SystemUI/src/com/android/systemui/BattertMeterView.java



android usb_serial for android

https://github.com/mik3y/usb-serial-for-android



I need to check if the option "Install apps from unknown sources" is enabled or disabled.


Whether applications can be installed for this user via the system's ACTION_INSTALL_PACKAGE mechanism.

1 = permit app installation via the system package installer intent

0 = do not allow use of the package installer


INSTALL_NON_MARKET_APPS


boolean unknownSource = false;
if (Build.VERSION.SDK_INT < 3) {
    unknownSource = Settings.System.getInt(getContentResolver(), Settings.System.INSTALL_NON_MARKET_APPS, 0) == 1;
}
else if (Build.VERSION.SDK_INT < 17) {
    unknownSource = Settings.Secure.getInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 0) == 1;
} else {
    unknownSource = Settings.Global.getInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 0) == 1;
}


반응형
Posted by Real_G