SystemBuildProperties.java revision b6d6e31dc6ed9a9a0178990a0cec8edb9ad36c77
150e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o/* 219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o * Copyright (C) 2016 The Android Open Source Project 3efc6f628e15de95bcd13e4f0ee223cb42115d520Theodore Ts'o * 4cc86017b593ddfbd4d7a12ed8695e62998f30944Theodore Ts'o * Licensed under the Apache License, Version 2.0 (the "License"); 519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o * you may not use this file except in compliance with the License. 619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o * You may obtain a copy of the License at 7543547a52a20cb7e69d74921b2f691078fd55d83Theodore Ts'o * 8543547a52a20cb7e69d74921b2f691078fd55d83Theodore Ts'o * http://www.apache.org/licenses/LICENSE-2.0 919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o * 1050e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o * Unless required by applicable law or agreed to in writing, software 1150e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o * distributed under the License is distributed on an "AS IS" BASIS, 128f6f8602dc1037fb8fc2051fb062c0209f8baa2aTheodore Ts'o * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 138f6f8602dc1037fb8fc2051fb062c0209f8baa2aTheodore Ts'o * See the License for the specific language governing permissions and 148f6f8602dc1037fb8fc2051fb062c0209f8baa2aTheodore Ts'o * limitations under the License. 158f6f8602dc1037fb8fc2051fb062c0209f8baa2aTheodore Ts'o */ 168f6f8602dc1037fb8fc2051fb062c0209f8baa2aTheodore Ts'o 178f6f8602dc1037fb8fc2051fb062c0209f8baa2aTheodore Ts'opackage com.android.server.wifi; 188f6f8602dc1037fb8fc2051fb062c0209f8baa2aTheodore Ts'o 198f6f8602dc1037fb8fc2051fb062c0209f8baa2aTheodore Ts'oimport android.os.Build; 20d1154eb460efe588eaed3d439c1caaca149fa362Theodore Ts'o 2150e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'oclass SystemBuildProperties implements BuildProperties { 2250e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o @Override 2350e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o public boolean isEngBuild() { 2450e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o return Build.TYPE.equals("eng"); 25c4e749abd8451f02418fe552b2af14f226f7bd1eTheodore Ts'o } 26c4e749abd8451f02418fe552b2af14f226f7bd1eTheodore Ts'o 27c4e749abd8451f02418fe552b2af14f226f7bd1eTheodore Ts'o @Override 2850e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o public boolean isUserdebugBuild() { 2950e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o return Build.TYPE.equals("userdebug"); 3050e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o } 3150e1e10fa0ac12a3e2a9d20a75ee9041873cda96Theodore Ts'o 32fbabd5c44c2303501ad79b0e0386fe6436e0e147Kazuya Mio @Override 33fbabd5c44c2303501ad79b0e0386fe6436e0e147Kazuya Mio public boolean isUserBuild() { 34fbabd5c44c2303501ad79b0e0386fe6436e0e147Kazuya Mio return Build.TYPE.equals("user"); 35fbabd5c44c2303501ad79b0e0386fe6436e0e147Kazuya Mio } 36fbabd5c44c2303501ad79b0e0386fe6436e0e147Kazuya Mio} 37fbabd5c44c2303501ad79b0e0386fe6436e0e147Kazuya Mio