Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Monday, January 30, 2012

Downloading Android source code on Windows

Here's the short-short version:
  1. Download and install command line Git client: msysgit.
  2. Download the root Android project using Git.exe (located in /bin folder of msysgit)
    git clone https://android.googlesource.com/platform/manifest
  3. In the target folder you'll find few XML files. Open default.xml. You can see multiple tags . Choose the project you want to download. You need the name attribute of the project. Write the following line to download:
    git clone https://android.googlesource.com/
Example:
To download the most interesting project (IMHO) frameworks/base, the GIT command is:
git clone https://android.googlesource.com/platform/frameworks/base

Projects of interest:
  • packages/apps/XXXX - The project names of the apps that comes bundled with Android (excluding proprietry Google apps such as the Android Market) such as the Gallery, Camera etc.
  • external/XXXX - 3rd party software (ping, bzip, etc).
  • frameworks/base - The sources of the Java system.

Wednesday, December 5, 2007

How to list all installed sevice packs in C#

// Create WMI connection
ConnectionOptions
options = new ConnectionOptions();

string
machine = "127.0.0.1";

ManagementPath
path = new ManagementPath(String.Format(
@"\\{0}\root\cimv2", machine));
ManagementScope
scope = new ManagementScope(path, options);

scope.Connect();


// Query

ObjectQuery
query = new ObjectQuery(
"Select * from Win32_QuickFixEngineering");

ManagementObjectSearcher
managerTemp =
new ManagementObjectSearcher(scope, query);

//Get the results

ManagementObjectCollection
returnCollection = managerTemp.Get();


foreach
(ManagementObject managementObject in returnCollection)

{
System.Console.WriteLine("*** New Item: ");
foreach
(PropertyData propertyData in managementObject.Properties)

{
System.Console.WriteLine(" {0} : {1}",
propertyData.Name,
propertyData.Value);
}
}