Package com.android.sdklib

Examples of com.android.sdklib.ISystemImage


     * @throws InvalidTargetPathException if the target image folder is not in the current SDK.
     */
    private String getImageRelativePath(IAndroidTarget target, IdDisplay tag, String abiType)
            throws InvalidTargetPathException {

        ISystemImage systemImage = target.getSystemImage(tag, abiType);
        if (systemImage == null) {
            // ABI Type is unknown for target
            return null;
        }

        File folder = systemImage.getLocation();
        String imageFullPath = folder.getAbsolutePath();

        // make this path relative to the SDK location
        String sdkLocation = myLocalSdk.getPath();
        if (!imageFullPath.startsWith(sdkLocation)) {
View Full Code Here


            File userdataSrc = null;

            // Look for a system image in the add-on.
            // If we don't find one there, look in the base platform.
            ISystemImage systemImage = target.getSystemImage(tag, abiType);

            if (systemImage != null) {
                File imageFolder = systemImage.getLocation();
                userdataSrc = new File(imageFolder, USERDATA_IMG);
            }

            if ((userdataSrc == null || !userdataSrc.exists()) && !target.isPlatform()) {
                // If we don't find a system-image in the add-on, look into the platform.

                systemImage = target.getParent().getSystemImage(tag, abiType);
                if (systemImage != null) {
                    File imageFolder = systemImage.getLocation();
                    userdataSrc = new File(imageFolder, USERDATA_IMG);
                }
            }

            if (userdataSrc == null || !userdataSrc.exists()) {
View Full Code Here

TOP

Related Classes of com.android.sdklib.ISystemImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.