File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,10 @@ export class RootedDevice {
120
120
'cat /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq'
121
121
) ;
122
122
123
- if ( this . options . androidPinCPUSpeed === 'min' ) {
123
+ if (
124
+ this . options . androidPinCPUSpeed === 'min' ||
125
+ ( this . options . android && this . options . android . pinCPUSpeed === 'min' )
126
+ ) {
124
127
log . info ( 'Set min CPU speed' ) ;
125
128
126
129
// The min settings, see the possible slowest setting by
@@ -144,7 +147,10 @@ export class RootedDevice {
144
147
await this . _setCPU ( minPolicy4 , '4' , 'max' ) ;
145
148
return this . _setCPU ( minPolicy4 , '4' , 'min' ) ;
146
149
}
147
- } else if ( this . options . androidPinCPUSpeed === 'middle' ) {
150
+ } else if (
151
+ this . options . androidPinCPUSpeed === 'middle' ||
152
+ ( this . options . android && this . options . android . pinCPUSpeed === 'middle' )
153
+ ) {
148
154
log . info ( 'Set middle CPU speed' ) ;
149
155
150
156
const middlePolicy0 = 910_000 ;
You can’t perform that action at this time.
0 commit comments