[Samsung Galaxy Nexus] sirovai:
Hi guys, i'm trying to build AOSPA 4.42 after cherry pick this commit:

https://github.com/AOSPAL/android_fr...b45f6427ef05e2

https://github.com/AOSPAL/android_pa...3e701837e3db1b

(to re-add autobrightness configuration)

and i get these errors:

frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:362: cannot find symbol
symbol : class KeyguardServiceWrapper
location: class com.android.server.power.DisplayPowerController
private KeyguardServiceWrapper mKeyguardService;
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:364: cannot find symbol
symbol : class ServiceConnection
location: class com.android.server.power.DisplayPowerController
private final ServiceConnection mKeyguardConnection = new ServiceConnection() {
^
frameworks/base/services/java/com/android/server/power/PowerManagerService.java:511: cannot find symbol
symbol : variable SYSTEM_POWER_CRT_MODE
location: class android.provider.Settings.System
Settings.System.SYSTEM_POWER_CRT_MODE),
^
frameworks/base/services/java/com/android/server/power/PowerManagerService.java:517: cannot find symbol
symbol : variable WAKELOCK_BLOCKING_ENABLED
location: class android.provider.Settings.System
Settings.System.WAKELOCK_BLOCKING_ENABLED),
^
frameworks/base/services/java/com/android/server/power/PowerManagerService.java:520: cannot find symbol
symbol : variable WAKELOCK_BLOCKING_LIST
location: class android.provider.Settings.System
Settings.System.WAKELOCK_BLOCKING_LIST),
^
frameworks/base/services/java/com/android/server/power/PowerManagerService.java:1732: cannot find symbol
symbol : variable mElectronBeamMode
location: class com.android.server.power.PowerManagerService
mDisplayPowerRequest.electronBeamMode = mElectronBeamMode;
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:364: cannot find symbol
symbol : class ServiceConnection
location: class com.android.server.power.DisplayPowerController
private final ServiceConnection mKeyguardConnection = new ServiceConnection() {
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:414: cannot find symbol
symbol : class ContentResolver
location: class com.android.server.power.DisplayPowerController
final ContentResolver cr = mContext.getContentResolver();
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:414: cannot find symbol
symbol : variable mContext
location: class com.android.server.power.DisplayPowerController
final ContentResolver cr = mContext.getContentResolver();
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:415: cannot find symbol
symbol : class ContentObserver
location: class com.android.server.power.DisplayPowerController
final ContentObserver observer = new ContentObserver(mHandler) {
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:415: cannot find symbol
symbol : class ContentObserver
location: class com.android.server.power.DisplayPowerController
final ContentObserver observer = new ContentObserver(mHandler) {
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:427: package Settings does not exist
Settings.System.getUriFor(Settings.System.AUTO_BRIGHTNESS_LUX),
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:427: package Settings does not exist
Settings.System.getUriFor(Settings.System.AUTO_BRIGHTNESS_LUX),
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:428: cannot find symbol
symbol : variable UserHandle
location: class com.android.server.power.DisplayPowerController
false, observer, UserHandle.USER_ALL);
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:430: package Settings does not exist
Settings.System.getUriFor(Settings.System.AUTO_BRIGHTNESS_BACKLIGHT),
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:430: package Settings does not exist
Settings.System.getUriFor(Settings.System.AUTO_BRIGHTNESS_BACKLIGHT),
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:431: cannot find symbol
symbol : variable UserHandle
location: class com.android.server.power.DisplayPowerController
false, observer, UserHandle.USER_ALL);
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:433: package Settings does not exist
Settings.System.getUriFor(Settings.System.AUTO_BRIGHTNESS_TWILIGHT_ADJUSTMENT),
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:433: package Settings does not exist
Settings.System.getUriFor(Settings.System.AUTO_BRIGHTNESS_TWILIGHT_ADJUSTMENT),
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:434: cannot find symbol
symbol : variable UserHandle
location: class com.android.server.power.DisplayPowerController
false, observer, UserHandle.USER_ALL);
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:466: package Settings does not exist
int[] lux = getIntArrayForSetting(Settings.System.AUTO_BRIGHTNESS_LUX);
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:467: package Settings does not exist
int[] values = getIntArrayForSetting(Settings.System.AUTO_BRIGHTNESS_BACKLIGHT);
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:468: cannot find symbol
symbol : variable mContext
location: class com.android.server.power.DisplayPowerController
Resources res = mContext.getResources();
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:498: cannot find symbol
symbol : variable mContext
location: class com.android.server.power.DisplayPowerController
mContext.getContentResolver(), Settings.System.AUTO_BRIGHTNESS_TWILIGHT_ADJUSTMENT,
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:498: package Settings does not exist
mContext.getContentResolver(), Settings.System.AUTO_BRIGHTNESS_TWILIGHT_ADJUSTMENT,
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:499: cannot find symbol
symbol : variable UserHandle
location: class com.android.server.power.DisplayPowerController
0, UserHandle.USER_CURRENT) != 0;
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:497: package Settings does not exist
mTwilightAdjustmentEnabled = Settings.System.getIntForUser(
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:504: cannot find symbol
symbol : variable mContext
location: class com.android.server.power.DisplayPowerController
mContext.getContentResolver(), setting, UserHandle.USER_CURRENT);
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:504: cannot find symbol
symbol : variable UserHandle
location: class com.android.server.power.DisplayPowerController
mContext.getContentResolver(), setting, UserHandle.USER_CURRENT);
^
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java:503: package Settings does not exist
final String value = Settings.System.getStringForUser(
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
30 errors
Reading program jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/APPS/CellBroadcastReceiver_intermediates/classes.jar]
make: *** [/home/sirovai/sorgenti/aospa/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/classes-full-debug.jar] Errore 41
make: *** Attesa per i processi non terminati....
Reading library jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]
Reading library jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Reading library jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Reading library jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates/classes.jar]
Reading library jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar]
Preparing output jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/APPS/CellBroadcastReceiver_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/sirovai/sorgenti/aospa/out/target/common/obj/APPS/CellBroadcastReceiver_intermediates/classes.jar]
packages/apps/Settings/src/com/android/settings/slim/AutoBrightnessCustomizeDialog.java:122: cannot find symbol
symbol : method getMinimumAbsoluteScreenBrightness()
location: class android.os.PowerManager
mMinLevel = pm.getMinimumAbsoluteScreenBrightness();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [/home/sirovai/sorgenti/aospa/out/target/common/obj/APPS/Settings_intermediates/classes-full-debug.jar] Errore 41

Total time elapsed: 91 minutes (5505.248682778 seconds)
sirovai@sirovai-desktop:~/sorgenti/aospa$

Can you help me?