Buggy code:
public class CPU implements Constants { private static Integer [ ] mFreqs ; private static String [ ] mAvailableGovernors ; private static String [ ] mMcPowerSavingItems ; private static String [ ] mAvailableCFSSchedulers ; private static String TEMP_FILE ; private static String [ ] mCpuQuietAvailableGovernors ; private static String CPU_BOOST_ENABLE_FILE ; public static void setCpuBoostInputMs ( int value , Context context ) { } public static int getCpuBootInputMs ( ) { } public static boolean hasCpuBoostInputMs ( ) { } public static void setCpuBoostInputFreq ( int value , Context context ) { } public static int getCpuBootInputFreq ( ) { } public static boolean hasCpuBoostInputFreq ( ) { } public static void setCpuBoostSyncThreshold ( int value , Context context ) { } public static int getCpuBootSyncThreshold ( ) { } public static boolean hasCpuBoostSyncThreshold ( ) { } public static void setCpuBoostMs ( int value , Context context ) { } public static int getCpuBootMs ( ) { } public static boolean hasCpuBoostMs ( ) { } public static void activateCpuBoostDebugMask ( boolean active , Context context ) { } public static boolean isCpuBoostDebugMaskActive ( ) { } public static boolean hasCpuBoostDebugMask ( ) { } public static void activateCpuBoost ( boolean active , Context context ) { } public static boolean isCpuBoostActive ( ) { } public static boolean hasCpuBoostEnable ( ) { } public static boolean hasCpuBoost ( ) { } public static void setCpuQuietGovernor ( String value , Context context ) { } public static String getCpuQuietCurGovernor ( ) { } public static List < String > getCpuQuietAvailableGovernors ( ) { } public static boolean hasCpuQuietGovernors ( ) { } public static void activateCpuQuiet ( boolean active , Context context ) { } public static boolean isCpuQuietActive ( ) { } public static boolean hasCpuQuietEnable ( ) { } public static boolean hasCpuQuiet ( ) { } public static void setCFSScheduler ( String value , Context context ) { } public static String getCurrentCFSScheduler ( ) { } public static List < String > getAvailableCFSSchedulers ( ) { } public static boolean hasCFSScheduler ( ) { } public static String [ ] getMcPowerSavingItems ( Context context ) { } public static void setMcPowerSaving ( int value , Context context ) { } public static int getCurMcPowerSaving ( ) { } public static boolean hasMcPowerSaving ( ) { } public static void activatePowerSavingWq ( boolean active , Context context ) { } public static boolean isPowerSavingWqActive ( ) { } public static boolean hasPowerSavingWq ( ) { } public static ArrayList < String > getAvailableGovernors ( ) { } public static void setGovernor ( String governor , Context context ) { } public static String getCurGovernor ( int core ) { } public static ArrayList < Integer > getFreqs ( ) { } public static void setMaxScreenOffFreq ( int freq , Context context ) { } public static int getMaxScreenOffFreq ( int core ) { } public static boolean hasMaxScreenOffFreq ( ) { } public static void setMinFreq ( int freq , Context context ) { } public static int getMinFreq ( int core ) { } public static void setMaxFreq ( int freq , Context context ) { if ( Utils . existFile ( CPU_MSM_CPUFREQ_LIMIT ) ) Control . runCommand ( String . valueOf ( freq ) , CPU_MSM_CPUFREQ_LIMIT , GENERIC , context ) ; if ( Utils . existFile ( CPU_ENABLE_OC_KT ) ) <START_BUG> Control . runCommand ( 1 , CPU_ENABLE_OC_KT , Control . CommandType . CPU , context ) ; <END_BUG> { if ( ( CPU . getMinFreq ( 0 ) ) > freq ) CPU . setMinFreq ( freq , context ) ; Control . runCommand ( String . valueOf ( freq ) , CPU_MAX_FREQ_KT , Control . CommandType . CPU , context ) ; } if ( ( CPU . getMinFreq ( 0 ) ) > freq ) CPU . setMinFreq ( freq , context ) ; Control . runCommand ( String . valueOf ( freq ) , CPU_MAX_FREQ , Control . CommandType . CPU , context ) ; } public static int getMaxFreq ( int core ) { } public static int getCurFreq ( int core ) { } public static void activateCore ( int core , boolean active , Context context ) { } public static int getCoreCount ( ) { } public static String getTemp ( ) { } public static boolean hasTemp ( ) { } private static LinuxUtils linuxUtils ; public static float getCpuUsage ( ) { } }

Fix:
Control . runCommand ( String . valueOf ( 1 ) , CPU_ENABLE_OC_KT , Control . CommandType . CPU , context ) ;