Showing posts with label Batch Programming. Show all posts
Showing posts with label Batch Programming. Show all posts

Friday, January 31, 2020

Iseng Batch Script

> writes to a NEW file.
>> appends to a file
< reads from a file
| sends a commands output into another command's input



&    separates commands on a line.

&&    executes this command only if previous command's errorlevel is 0.

||    (not used above) executes this command only if previous command's errorlevel is NOT 0

>    output to a file

>>    append output to a file

<    input from a file

|    output of one command into the input of another command

^    escapes any of the above, including itself, if needed to be passed to a program

"    parameters with spaces must be enclosed in quotes

+ used with copy to concatenate files. E.G. copy file1+file2 newfile

, used with copy to indicate missing parameters. This updates the files modified date. E.G. copy /b file1,,

%variablename% a inbuilt or user set environmental variable

!variablename! a user set environmental variable expanded at execution time, turned with SelLocal EnableDelayedExpansion command

%<number> (%1) the nth command line parameter passed to a batch file. %0 is the batch file's name.

%* (%*) the entire command line.

%<a letter> or %%<a letter> (%A or %%A) the variable in a for loop. Single % sign at command prompt and double % sign in a batch file.

\\ (\\servername\sharename\folder\file.ext) access files and folders via UNC naming.

: (win.ini:streamname) accesses an alternative steam. Also separates drive from rest of path.

. (win.ini) the LAST dot in a file path separates the name from extension

. (dir .\*.txt) the current directory

.. (cd ..) the parent directory


\\?\ (\\?\c:\windows\win.ini) When a file path is prefixed with \\?\ filename checks are turned off. 

< > : " / \ | Reserved characters. May not be used in filenames.



Reserved names. These refer to devices eg, 

copy con <filename> 

which copies a file to the console window.

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, 

COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, 

LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9



Maximum path length              260 characters
Maximum path length (\\?\)      32,767 characters (approx - some rare characters use 2 characters of storage)
Maximum filename length        255 characters


.
--

Fungsi dengan return value di Batch

@echo off
SETLOCAL
CALL :SetValue value1,value2
echo %value1%
echo %value2%
EXIT /B %ERRORLEVEL%
:SetValue
set %~1=111
set %~2=222
EXIT /B 0

Hasil:
111
222

Monday, January 14, 2019

Manipulasi String - Batch Programming


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off

set mystring=hellow maryadi

echo %mystring%

rem ngambil char dari index 0 sampai 6
set var1=%mystring:~0,6%
echo %var1%

rem ngambil 4 karakter terakhir
set var2=%mystring:~-4%
echo %var2%

rem ngambil karakter 3 sampai terakhir
set var3=%mystring:~3%
echo %var3%

rem menghilangkan kata 'maryadi'
set var4=%mystring:maryadi=%
echo %var4%

rem menghilangka spasi dalam kalimat
set var5=%mystring: =%
echo %var5%

rem mengganti kata
set var6=%mystring:maryadi=poipo%
echo %var6%

rem menghilangkan 2 karakter pertama dan terakhir
set var7=%mystring:~2,-2%
echo %var7%

Video bisa dilihat disini :



robocpy cmd - windows 10






Friday, August 14, 2015

Running PHP Program Using Command Prompt

We can run php program by using command prompt too. But there are some differences if we are using XAMP beside cmd. In cmd, html codes can't be identified, so just don't use html syntax if you are gonna use cmd for compiling your php program. Okieee... let's just use pure php style as shown below :
Save above code, then open command prompt on the same directory where We save our php code. Theen type "php yourPHPcode.php" in command prompt :

Tuesday, June 30, 2015

Naikin Kecepatan Koneksi Internet Lewat CMD

Dipostingan ini akan diperlihatkan cara sederhana untuk menaikkan koneksi internet menggunakan command prompt. Sebagai catatan, test ini dilakukan di windows 8. Okiee..Pertama-tama disebelum dilakukan apa-apa dicek dulu kecepatan koneksinya pake speedtest.net seperti terlihat di bawah :
Jadi downloadnya 0,5Mbps dan uploadnya 0,64 Mbps. Berikutnya adalah buka command prompt dan run as administrator stelah itu masukin perintah berikut :
netsh int tcp show global
Hasilnya :
Naaah... kita akan melakukan perubahan pada parameter2 tcp ini. Yang pertamaaa... adalaaaah.... uuuummm...... yaaang.... Chimney Offload State, Soo masukin perintah berikut :
netsh int tcp set global chimney=enabled
Klu berhasil tar dikasih OK dibawahnya :
Terus perintah berikutnya adalah :
netsh int tcp set global autotuninglevel=normal
Eeehe... yg ini g' wajib di ubah jadi normal siih.. soalnya udh normal ternyata hehehe...tp gpp.. :-)

Next... :
netsh int tcp set global congestionprovider=ctcp
Daan... perintah diatas katanya g' disupport di win 8, cuma 7 ajjah.. jadi dskip dulu ajjah.. hehehe.. :D

Okieee..... Setelah di set.. restart PCnya.... Trs pake speedtest.net lagi :
Hahahha... naiknya cuma dikit... :D Yaaah.. paling tidak naik... :D.. Mungkin sebaiknya yang parameter congestionprovider itu diubah juga.. Okie next time.. InsyAllah... :-)

================================================================================================================================================
Percobaan berikut dilakukan oleh penahijau yang make windows 7 hehehe... :D
langkah-langkahnya sama,, test speed dulu sebelum di ubah :
Terusss.... chimneynya jg diubah seperti terlihat di atas, dan congestionprovider. Nah klu di win 7 congestionprovider masih bisa dipake :
Stelah dikonfigurasi parameter-parameternya seperti terlihat di bawah :
Kemudian PCnya di restart..... ........ .......... ........ ......... ......... .........

Setelah direstart, kemudian ditest kembali... daaaan....
g' berubah........... @_@ _@_@

Friday, January 23, 2015

Downloading Android Source Code Using Git Command in Batch Programming(cmd prompt) on Windows 7

Pada kesempatan kali ini akan diperlihatkan cara untuk mendownload android source code dari repository android.googlesource.com. Di sini akan digunakan git dan batch programming. Jadi command-command yang git akan dieksekusi didalam command prompt. Ok, pertama-tama mari kita buat path baru di windows 7 untuk git ini. Caranya buka control panel, pilih sistem, advance system setting, kemudian pada tab advanced tekan tombol environment variabel :

Kemudian setelah "Environment variabel..." ditekan, pilih "path" di "system variabel" dan tekan tombol edit :

Nah kita akan menambahkan variabel baru dalam Path ini, variabel baru tersebut adalah lokasi folder bin untuk git. Kalau dikomputer yang digunakan sekarang lokasi ada di : C:\Program Files (x86)\Git\bin, nah lokasi tersebut tinggal ditambahkan aja {jangan lupa tambahkan titik-koma ;}
Terus tinggal Ok, Ok, dan Ok, hehehe... :D. Kemudian silahkan buat folder baru untuk menampung source code androidnya. Terus klik kanan folder tersebut pilih "Git init here" seperti terlihat :
Nah.. Kemudian kita akan membuat script untuk menjalankan git command di cmd prompt, untuk itu silahkan buka notepad++ dan isikan 2 command berikut :

git clone  https://android.googlesource.com/accessories/manifest
git clone  https://android.googlesource.com/device/asus/deb

save filenya di folder yang telah kita buat sebelumnya dengan ekstensi .cmd atau .bat, disini digunakan .bat saja  :
Sebelumnya, untuk mendownload semua source code android butuh waktu yang lama karena ada banyak repository. Jadi disini kita hanya mendownload 2 repository saja yaitu manifest dan deb seperti terlihat pada kode diatas. Untuk mendownload semua repository kode program yang full terletak paling bawah dipostingan ini.

Kemudian silahkan tekan tombol "shift" kemudian klik kanan folder android_src dan pilih "open command window" here :
Nah setelah itu akan muncul command prompt, didalam cmd prompt tersebut ketik "download.bat" terus tekan enter :
Nah disini kode yang kita tulis sebelumnya akan di eksekusi yaitu "git clone ..../manifest" artinya dia akan menclone isi dari manifest yang menyimpannya didalam folder android_src. Begitu pula untuk ...asus/deb.

Jika kita lihat folder android_src :
Terlihat repository yang telah diclone yaitu deb dan manifest. Untuk download yang lengkapnya bisa dilihat full source code dibawah.

Sekiaan... semoga bermanfaat... :-)



Full source code :

git clone  https://android.googlesource.com/accessories/manifest
git clone  https://android.googlesource.com/device/asus/deb
git clone   https://android.googlesource.com/device/asus/flo
git clone   https://android.googlesource.com/device/asus/flo-kernel
git clone   https://android.googlesource.com/device/asus/grouper
git clone   https://android.googlesource.com/device/asus/tilapia
git clone   https://android.googlesource.com/device/common
git clone   https://android.googlesource.com/device/generic/armv7-a
git clone   https://android.googlesource.com/device/generic/armv7-a-neon
git clone   https://android.googlesource.com/device/generic/common
git clone   https://android.googlesource.com/device/generic/goldfish
git clone   https://android.googlesource.com/device/generic/mini-emulator-armv7-a-neon
git clone   https://android.googlesource.com/device/generic/mini-emulator-mips
git clone   https://android.googlesource.com/device/generic/mini-emulator-x86
git clone   https://android.googlesource.com/device/generic/mips
git clone   https://android.googlesource.com/device/generic/x86
git clone   https://android.googlesource.com/device/google/accessory/adk2012
git clone   https://android.googlesource.com/device/google/accessory/adk2012_demo
git clone   https://android.googlesource.com/device/google/accessory/arduino
git clone   https://android.googlesource.com/device/google/accessory/demokit
git clone   https://android.googlesource.com/device/google/phantasm
git clone   https://android.googlesource.com/device/htc/common
git clone   https://android.googlesource.com/device/htc/dream
git clone   https://android.googlesource.com/device/htc/dream-sapphire
git clone   https://android.googlesource.com/device/htc/passion
git clone   https://android.googlesource.com/device/htc/passion-common
git clone   https://android.googlesource.com/device/htc/sapphire
git clone   https://android.googlesource.com/device/lge/hammerhead
git clone   https://android.googlesource.com/device/lge/hammerhead-kernel
git clone   https://android.googlesource.com/device/lge/mako
git clone   https://android.googlesource.com/device/lge/mako-kernel
git clone   https://android.googlesource.com/device/moto/common
git clone   https://android.googlesource.com/device/moto/stingray
git clone   https://android.googlesource.com/device/moto/wingray
git clone   https://android.googlesource.com/device/sample
git clone   https://android.googlesource.com/device/samsung_slsi/arndale
git clone   https://android.googlesource.com/device/samsung/crespo
git clone   https://android.googlesource.com/device/samsung/crespo4g
git clone   https://android.googlesource.com/device/samsung/maguro
git clone   https://android.googlesource.com/device/samsung/manta
git clone   https://android.googlesource.com/device/samsung/toro
git clone   https://android.googlesource.com/device/samsung/toroplus
git clone   https://android.googlesource.com/device/samsung/torospr
git clone   https://android.googlesource.com/device/samsung/tuna
git clone   https://android.googlesource.com/device/sony/lt26
git clone   https://android.googlesource.com/device/ti/bootloader/uboot
git clone   https://android.googlesource.com/device/ti/panda
git clone   https://android.googlesource.com/kernel/common
git clone   https://android.googlesource.com/kernel/exynos
git clone   https://android.googlesource.com/kernel/goldfish
git clone   https://android.googlesource.com/kernel/lk
git clone   https://android.googlesource.com/kernel/msm
git clone   https://android.googlesource.com/kernel/omap
git clone   https://android.googlesource.com/kernel/samsung
git clone   https://android.googlesource.com/kernel/tegra
git clone   https://android.googlesource.com/Kernel-Projects
git clone   https://android.googlesource.com/mirror/manifest
git clone   https://android.googlesource.com/platform/abi/cpp
git clone   https://android.googlesource.com/platform/art
git clone   https://android.googlesource.com/platform/bionic
git clone   https://android.googlesource.com/platform/bootable/bootloader/legacy
git clone   https://android.googlesource.com/platform/bootable/diskinstaller
git clone   https://android.googlesource.com/platform/bootable/recovery
git clone   https://android.googlesource.com/platform/build
git clone   https://android.googlesource.com/platform/cts
git clone   https://android.googlesource.com/platform/dalvik
git clone   https://android.googlesource.com/platform/dalvik2
git clone   https://android.googlesource.com/platform/dalvik-snapshot
git clone   https://android.googlesource.com/platform/developers/build
git clone   https://android.googlesource.com/platform/developers/demos
git clone   https://android.googlesource.com/platform/developers/docs
git clone   https://android.googlesource.com/platform/developers/samples/android
git clone   https://android.googlesource.com/platform/development
git clone   https://android.googlesource.com/platform/docs/source.android.com
git clone   https://android.googlesource.com/platform/external/aac
git clone   https://android.googlesource.com/platform/external/aes
git clone   https://android.googlesource.com/platform/external/alac
git clone   https://android.googlesource.com/platform/external/android-clat
git clone   https://android.googlesource.com/platform/external/android-mock
git clone   https://android.googlesource.com/platform/external/ant-glob
git clone   https://android.googlesource.com/platform/external/antlr
git clone   https://android.googlesource.com/platform/external/apache-apr
git clone   https://android.googlesource.com/platform/external/apache-apr-util
git clone   https://android.googlesource.com/platform/external/apache-harmony
git clone   https://android.googlesource.com/platform/external/apache-http
git clone   https://android.googlesource.com/platform/external/apache-log4cxx
git clone   https://android.googlesource.com/platform/external/apache-qp
git clone   https://android.googlesource.com/platform/external/apache-xml
git clone   https://android.googlesource.com/platform/external/apple-coreaudiosamples
git clone   https://android.googlesource.com/platform/external/arduino
git clone   https://android.googlesource.com/platform/external/arduino-ide
git clone   https://android.googlesource.com/platform/external/astl
git clone   https://android.googlesource.com/platform/external/bison
git clone   https://android.googlesource.com/platform/external/blktrace
git clone   https://android.googlesource.com/platform/external/bluetooth/bluedroid
git clone   https://android.googlesource.com/platform/external/bluetooth/bluez
git clone   https://android.googlesource.com/platform/external/bluetooth/glib
git clone   https://android.googlesource.com/platform/external/bluetooth/hcidump
git clone   https://android.googlesource.com/platform/external/bluez
git clone   https://android.googlesource.com/platform/external/boost
git clone   https://android.googlesource.com/platform/external/bouncycastle
git clone   https://android.googlesource.com/platform/external/bsdiff
git clone   https://android.googlesource.com/platform/external/bzip2
git clone   https://android.googlesource.com/platform/external/ceres-solver
git clone   https://android.googlesource.com/platform/external/checkpolicy
git clone   https://android.googlesource.com/platform/external/chromium
git clone   https://android.googlesource.com/platform/external/chromium_org
git clone   https://android.googlesource.com/platform/external/chromium_org/sdch/open-vcdiff
git clone   https://android.googlesource.com/platform/external/chromium_org/testing/gtest
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/angle_dx11
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/eyesfree/src/android/java/src/com/googlecode/eyesfree/braille
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/freetype
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/icu
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/leveldatabase/src
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/libjingle/source/talk
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/libphonenumber/src/phonenumbers
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/libphonenumber/src/resources
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/mesa/src
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/openssl
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/opus/src
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/ots
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/skia/gyp
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/skia/include
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/skia/src
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/smhasher/src
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/WebKit
git clone   https://android.googlesource.com/platform/external/chromium_org/third_party/yasm/source/patched-yasm
git clone   https://android.googlesource.com/platform/external/chromium_org/tools/grit
git clone   https://android.googlesource.com/platform/external/chromium_org/tools/gyp
git clone   https://android.googlesource.com/platform/external/chromium_org/v8
git clone   https://android.googlesource.com/platform/external/chromium-libpac
git clone   https://android.googlesource.com/platform/external/chromium-trace
git clone   https://android.googlesource.com/platform/external/cibu-fonts
git clone   https://android.googlesource.com/platform/external/clang
git clone   https://android.googlesource.com/platform/external/clearsilver
git clone   https://android.googlesource.com/platform/external/codesourcery
git clone   https://android.googlesource.com/platform/external/collada
git clone   https://android.googlesource.com/platform/external/compiler-rt
git clone   https://android.googlesource.com/platform/external/conscrypt
git clone   https://android.googlesource.com/platform/external/curl
git clone   https://android.googlesource.com/platform/external/dbus
git clone   https://android.googlesource.com/platform/external/dexmaker
git clone   https://android.googlesource.com/platform/external/dhcpcd
git clone   https://android.googlesource.com/platform/external/dnsmasq
git clone   https://android.googlesource.com/platform/external/doclava
git clone   https://android.googlesource.com/platform/external/dosfstools
git clone   https://android.googlesource.com/platform/external/droiddriver
git clone   https://android.googlesource.com/platform/external/dropbear
git clone   https://android.googlesource.com/platform/external/e2fsprogs
git clone   https://android.googlesource.com/platform/external/easymock
git clone   https://android.googlesource.com/platform/external/eclipse-basebuilder
git clone   https://android.googlesource.com/platform/external/eclipse-windowbuilder
git clone   https://android.googlesource.com/platform/external/eglib
git clone   https://android.googlesource.com/platform/external/eigen
git clone   https://android.googlesource.com/platform/external/elfcopy
git clone   https://android.googlesource.com/platform/external/elfutils
git clone   https://android.googlesource.com/platform/external/embunit
git clone   https://android.googlesource.com/platform/external/emma
git clone   https://android.googlesource.com/platform/external/esd
git clone   https://android.googlesource.com/platform/external/expat
git clone   https://android.googlesource.com/platform/external/eyes-free
git clone   https://android.googlesource.com/platform/external/faad
git clone   https://android.googlesource.com/platform/external/fat32lib
git clone   https://android.googlesource.com/platform/external/fdlibm
git clone   https://android.googlesource.com/platform/external/flac
git clone   https://android.googlesource.com/platform/external/free-image
git clone   https://android.googlesource.com/platform/external/freetype
git clone   https://android.googlesource.com/platform/external/fsck_msdos
git clone   https://android.googlesource.com/platform/external/ganymed-ssh2
git clone   https://android.googlesource.com/platform/external/gcc-demangle
git clone   https://android.googlesource.com/platform/external/gdata
git clone   https://android.googlesource.com/platform/external/genext2fs
git clone   https://android.googlesource.com/platform/external/giflib
git clone   https://android.googlesource.com/platform/external/googleclient
git clone   https://android.googlesource.com/platform/external/google-diff-match-patch
git clone   https://android.googlesource.com/platform/external/grub
git clone   https://android.googlesource.com/platform/external/gsoap
git clone   https://android.googlesource.com/platform/external/gtest
git clone   https://android.googlesource.com/platform/external/guava
git clone   https://android.googlesource.com/platform/external/hamcrest
git clone   https://android.googlesource.com/platform/external/harfbuzz
git clone   https://android.googlesource.com/platform/external/harfbuzz_ng
git clone   https://android.googlesource.com/platform/external/hcidump
git clone   https://android.googlesource.com/platform/external/hsqldb
git clone   https://android.googlesource.com/platform/external/hyphenation
git clone   https://android.googlesource.com/platform/external/icu4c
git clone   https://android.googlesource.com/platform/external/id3lib
git clone   https://android.googlesource.com/platform/external/iproute2
git clone   https://android.googlesource.com/platform/external/ipsec-tools
git clone   https://android.googlesource.com/platform/external/iptables
git clone   https://android.googlesource.com/platform/external/iputils
git clone   https://android.googlesource.com/platform/external/jack
git clone   https://android.googlesource.com/platform/external/javasqlite
git clone   https://android.googlesource.com/platform/external/javassist
git clone   https://android.googlesource.com/platform/external/jdiff
git clone   https://android.googlesource.com/platform/external/jenkins-hash
git clone   https://android.googlesource.com/platform/external/jhead
git clone   https://android.googlesource.com/platform/external/jline
git clone   https://android.googlesource.com/platform/external/jmdns
git clone   https://android.googlesource.com/platform/external/jmonkeyengine
git clone   https://android.googlesource.com/platform/external/jpeg
git clone   https://android.googlesource.com/platform/external/jsilver
git clone   https://android.googlesource.com/platform/external/jsoncpp
git clone   https://android.googlesource.com/platform/external/jsr305
git clone   https://android.googlesource.com/platform/external/junit
git clone   https://android.googlesource.com/platform/external/kernel-headers
git clone   https://android.googlesource.com/platform/external/lame
git clone   https://android.googlesource.com/platform/external/lcc
git clone   https://android.googlesource.com/platform/external/libcap-ng
git clone   https://android.googlesource.com/platform/external/libcxx
git clone   https://android.googlesource.com/platform/external/libffi
git clone   https://android.googlesource.com/platform/external/libgsm
git clone   https://android.googlesource.com/platform/external/liblzf
git clone   https://android.googlesource.com/platform/external/libmtp
git clone   https://android.googlesource.com/platform/external/libnfc-nci
git clone   https://android.googlesource.com/platform/external/libnfc-nxp
git clone   https://android.googlesource.com/platform/external/libnl
git clone   https://android.googlesource.com/platform/external/libnl-headers
git clone   https://android.googlesource.com/platform/external/libogg
git clone   https://android.googlesource.com/platform/external/libpcap
git clone   https://android.googlesource.com/platform/external/libphonenumber
git clone   https://android.googlesource.com/platform/external/libpng
git clone   https://android.googlesource.com/platform/external/libppp
git clone   https://android.googlesource.com/platform/external/libseccomp-helper
git clone   https://android.googlesource.com/platform/external/libselinux
git clone   https://android.googlesource.com/platform/external/libsepol
git clone   https://android.googlesource.com/platform/external/libunwind
git clone   https://android.googlesource.com/platform/external/libusb
git clone   https://android.googlesource.com/platform/external/libusb_aah
git clone   https://android.googlesource.com/platform/external/libusb-compat
git clone   https://android.googlesource.com/platform/external/libvorbis
git clone   https://android.googlesource.com/platform/external/libvpx
git clone   https://android.googlesource.com/platform/external/libxml2
git clone   https://android.googlesource.com/platform/external/libxslt
git clone   https://android.googlesource.com/platform/external/libyuv
git clone   https://android.googlesource.com/platform/external/linux-tools-perf
git clone   https://android.googlesource.com/platform/external/littlemock
git clone   https://android.googlesource.com/platform/external/lldb
git clone   https://android.googlesource.com/platform/external/llvm
git clone   https://android.googlesource.com/platform/external/login-items-ae
git clone   https://android.googlesource.com/platform/external/lohit-fonts
git clone   https://android.googlesource.com/platform/external/lzma
git clone   https://android.googlesource.com/platform/external/marisa-trie
git clone   https://android.googlesource.com/platform/external/markdown
git clone   https://android.googlesource.com/platform/external/mdnsresponder
git clone   https://android.googlesource.com/platform/external/mesa3d
git clone   https://android.googlesource.com/platform/external/mksh
git clone   https://android.googlesource.com/platform/external/mockito
git clone   https://android.googlesource.com/platform/external/mockwebserver
git clone   https://android.googlesource.com/platform/external/mp4parser
git clone   https://android.googlesource.com/platform/external/mp4v2
git clone   https://android.googlesource.com/platform/external/mpg123
git clone   https://android.googlesource.com/platform/external/mtpd
git clone   https://android.googlesource.com/platform/external/naver-fonts
git clone   https://android.googlesource.com/platform/external/netcat
git clone   https://android.googlesource.com/platform/external/netperf
git clone   https://android.googlesource.com/platform/external/neven
git clone   https://android.googlesource.com/platform/external/nfacct
git clone   https://android.googlesource.com/platform/external/nist-pkits
git clone   https://android.googlesource.com/platform/external/nist-sip
git clone   https://android.googlesource.com/platform/external/noto-fonts
git clone   https://android.googlesource.com/platform/external/oauth
git clone   https://android.googlesource.com/platform/external/objenesis
git clone   https://android.googlesource.com/platform/external/okhttp
git clone   https://android.googlesource.com/platform/external/opencore
git clone   https://android.googlesource.com/platform/external/opencv
git clone   https://android.googlesource.com/platform/external/openfst
git clone   https://android.googlesource.com/platform/external/openssh
git clone   https://android.googlesource.com/platform/external/openssl
git clone   https://android.googlesource.com/platform/external/open-vcdiff
git clone   https://android.googlesource.com/platform/external/openvpn
git clone   https://android.googlesource.com/platform/external/oprofile
git clone   https://android.googlesource.com/platform/external/pcre
git clone   https://android.googlesource.com/platform/external/ping
git clone   https://android.googlesource.com/platform/external/ping6
git clone   https://android.googlesource.com/platform/external/pixman
git clone   https://android.googlesource.com/platform/external/ppp
git clone   https://android.googlesource.com/platform/external/proguard
git clone   https://android.googlesource.com/platform/external/protobuf
git clone   https://android.googlesource.com/platform/external/pthreads
git clone   https://android.googlesource.com/platform/external/qemu
git clone   https://android.googlesource.com/platform/external/qemu-pc-bios
git clone   https://android.googlesource.com/platform/external/qt
git clone   https://android.googlesource.com/platform/external/quake
git clone   https://android.googlesource.com/platform/external/regex-re2
git clone   https://android.googlesource.com/platform/external/replicaisland
git clone   https://android.googlesource.com/platform/external/robolectric
git clone   https://android.googlesource.com/platform/external/safe-iop
git clone   https://android.googlesource.com/platform/external/scrypt
git clone   https://android.googlesource.com/platform/external/sepolicy
git clone   https://android.googlesource.com/platform/external/sfntly
git clone   https://android.googlesource.com/platform/external/sil-fonts
git clone   https://android.googlesource.com/platform/external/skia
git clone   https://android.googlesource.com/platform/external/smack
git clone   https://android.googlesource.com/platform/external/smali
git clone   https://android.googlesource.com/platform/external/sonivox
git clone   https://android.googlesource.com/platform/external/speex
git clone   https://android.googlesource.com/platform/external/sqlite
git clone   https://android.googlesource.com/platform/external/srec
git clone   https://android.googlesource.com/platform/external/srtp
git clone   https://android.googlesource.com/platform/external/stlport
git clone   https://android.googlesource.com/platform/external/strace
git clone   https://android.googlesource.com/platform/external/stressapptest
git clone   https://android.googlesource.com/platform/external/svox
git clone   https://android.googlesource.com/platform/external/tagsoup
git clone   https://android.googlesource.com/platform/external/tcpdump
git clone   https://android.googlesource.com/platform/external/tesseract
git clone   https://android.googlesource.com/platform/external/timezonepicker-support
git clone   https://android.googlesource.com/platform/external/tinyalsa
git clone   https://android.googlesource.com/platform/external/tinycompress
git clone   https://android.googlesource.com/platform/external/tinyxml
git clone   https://android.googlesource.com/platform/external/tinyxml2
git clone   https://android.googlesource.com/platform/external/tremolo
git clone   https://android.googlesource.com/platform/external/tremor
git clone   https://android.googlesource.com/platform/external/unicode
git clone   https://android.googlesource.com/platform/external/utf8proc
git clone   https://android.googlesource.com/platform/external/v8
git clone   https://android.googlesource.com/platform/external/valgrind
git clone   https://android.googlesource.com/platform/external/webkit
git clone   https://android.googlesource.com/platform/external/webp
git clone   https://android.googlesource.com/platform/external/webrtc
git clone   https://android.googlesource.com/platform/external/wpa_supplicant
git clone   https://android.googlesource.com/platform/external/wpa_supplicant_6
git clone   https://android.googlesource.com/platform/external/wpa_supplicant_8
git clone   https://android.googlesource.com/platform/external/xdelta3
git clone   https://android.googlesource.com/platform/external/xerces-cpp
git clone   https://android.googlesource.com/platform/external/xmlwriter
git clone   https://android.googlesource.com/platform/external/xmp_toolkit
git clone   https://android.googlesource.com/platform/external/yaffs2
git clone   https://android.googlesource.com/platform/external/zlib
git clone   https://android.googlesource.com/platform/external/zxing
git clone   https://android.googlesource.com/platform/frameworks/av
git clone   https://android.googlesource.com/platform/frameworks/base
git clone   https://android.googlesource.com/platform/frameworks/compile/libbcc
git clone   https://android.googlesource.com/platform/frameworks/compile/linkloader
git clone   https://android.googlesource.com/platform/frameworks/compile/llvm-ndk-cc
git clone   https://android.googlesource.com/platform/frameworks/compile/mclinker
git clone   https://android.googlesource.com/platform/frameworks/compile/slang
git clone   https://android.googlesource.com/platform/frameworks/ex
git clone   https://android.googlesource.com/platform/frameworks/media/libvideoeditor
git clone   https://android.googlesource.com/platform/frameworks/mff
git clone   https://android.googlesource.com/platform/frameworks/ml
git clone   https://android.googlesource.com/platform/frameworks/native
git clone   https://android.googlesource.com/platform/frameworks/opt/calendar
git clone   https://android.googlesource.com/platform/frameworks/opt/carddav
git clone   https://android.googlesource.com/platform/frameworks/opt/colorpicker
git clone   https://android.googlesource.com/platform/frameworks/opt/com.google.android
git clone   https://android.googlesource.com/platform/frameworks/opt/com.google.android.googlelogin
git clone   https://android.googlesource.com/platform/frameworks/opt/datetimepicker
git clone   https://android.googlesource.com/platform/frameworks/opt/emoji
git clone   https://android.googlesource.com/platform/frameworks/opt/inputmethodcommon
git clone   https://android.googlesource.com/platform/frameworks/opt/mailcommon
git clone   https://android.googlesource.com/platform/frameworks/opt/mms
git clone   https://android.googlesource.com/platform/frameworks/opt/net/voip
git clone   https://android.googlesource.com/platform/frameworks/opt/photoviewer
git clone   https://android.googlesource.com/platform/frameworks/opt/telephony
git clone   https://android.googlesource.com/platform/frameworks/opt/timezonepicker
git clone   https://android.googlesource.com/platform/frameworks/opt/vcard
git clone   https://android.googlesource.com/platform/frameworks/policies/base
git clone   https://android.googlesource.com/platform/frameworks/rs
git clone   https://android.googlesource.com/platform/frameworks/support
git clone   https://android.googlesource.com/platform/frameworks/testing
git clone   https://android.googlesource.com/platform/frameworks/uiautomator
git clone   https://android.googlesource.com/platform/frameworks/volley
git clone   https://android.googlesource.com/platform/frameworks/webview
git clone   https://android.googlesource.com/platform/frameworks/wilhelm
git clone   https://android.googlesource.com/platform/gdk
git clone   https://android.googlesource.com/platform/hardware/akm
git clone   https://android.googlesource.com/platform/hardware/broadcom/libbt
git clone   https://android.googlesource.com/platform/hardware/broadcom/wlan
git clone   https://android.googlesource.com/platform/hardware/invensense
git clone   https://android.googlesource.com/platform/hardware/libhardware
git clone   https://android.googlesource.com/platform/hardware/libhardware_legacy
git clone   https://android.googlesource.com/platform/hardware/msm7k
git clone   https://android.googlesource.com/platform/hardware/qcom/audio
git clone   https://android.googlesource.com/platform/hardware/qcom/bt
git clone   https://android.googlesource.com/platform/hardware/qcom/camera
git clone   https://android.googlesource.com/platform/hardware/qcom/display
git clone   https://android.googlesource.com/platform/hardware/qcom/gps
git clone   https://android.googlesource.com/platform/hardware/qcom/keymaster
git clone   https://android.googlesource.com/platform/hardware/qcom/media
git clone   https://android.googlesource.com/platform/hardware/qcom/msm8960
git clone   https://android.googlesource.com/platform/hardware/qcom/msm8x74
git clone   https://android.googlesource.com/platform/hardware/qcom/power
git clone   https://android.googlesource.com/platform/hardware/qcom/sensors
git clone   https://android.googlesource.com/platform/hardware/qcom/wlan
git clone   https://android.googlesource.com/platform/hardware/ril
git clone   https://android.googlesource.com/platform/hardware/samsung_slsi/exynos5
git clone   https://android.googlesource.com/platform/hardware/ti/omap3
git clone   https://android.googlesource.com/platform/hardware/ti/omap4-aah
git clone   https://android.googlesource.com/platform/hardware/ti/omap4xxx
git clone   https://android.googlesource.com/platform/hardware/ti/wlan
git clone   https://android.googlesource.com/platform/hardware/ti/wpan
git clone   https://android.googlesource.com/platform/libcore
git clone   https://android.googlesource.com/platform/libcore2
git clone   https://android.googlesource.com/platform/libcore-snapshot
git clone   https://android.googlesource.com/platform/libnativehelper
git clone   https://android.googlesource.com/platform/manifest
git clone   https://android.googlesource.com/platform/motodev
git clone   https://android.googlesource.com/platform/ndk
git clone   https://android.googlesource.com/platform/packages/apps/AccountsAndSyncSettings
git clone   https://android.googlesource.com/platform/packages/apps/AlarmClock
git clone   https://android.googlesource.com/platform/packages/apps/BasicSmsReceiver
git clone   https://android.googlesource.com/platform/packages/apps/Bluetooth
git clone   https://android.googlesource.com/platform/packages/apps/Browser
git clone   https://android.googlesource.com/platform/packages/apps/Calculator
git clone   https://android.googlesource.com/platform/packages/apps/Calendar
git clone   https://android.googlesource.com/platform/packages/apps/Camera
git clone   https://android.googlesource.com/platform/packages/apps/Camera2
git clone   https://android.googlesource.com/platform/packages/apps/CellBroadcastReceiver
git clone   https://android.googlesource.com/platform/packages/apps/CertInstaller
git clone   https://android.googlesource.com/platform/packages/apps/Contacts
git clone   https://android.googlesource.com/platform/packages/apps/ContactsCommon
git clone   https://android.googlesource.com/platform/packages/apps/DeskClock
git clone   https://android.googlesource.com/platform/packages/apps/Dialer
git clone   https://android.googlesource.com/platform/packages/apps/Email
git clone   https://android.googlesource.com/platform/packages/apps/Exchange
git clone   https://android.googlesource.com/platform/packages/apps/Gallery
git clone   https://android.googlesource.com/platform/packages/apps/Gallery2
git clone   https://android.googlesource.com/platform/packages/apps/Gallery3D
git clone   https://android.googlesource.com/platform/packages/apps/GlobalSearch
git clone   https://android.googlesource.com/platform/packages/apps/GoogleSearch
git clone   https://android.googlesource.com/platform/packages/apps/HTMLViewer
git clone   https://android.googlesource.com/platform/packages/apps/IM
git clone   https://android.googlesource.com/platform/packages/apps/InCallUI
git clone   https://android.googlesource.com/platform/packages/apps/KeyChain
git clone   https://android.googlesource.com/platform/packages/apps/Launcher
git clone   https://android.googlesource.com/platform/packages/apps/Launcher2
git clone   https://android.googlesource.com/platform/packages/apps/Launcher3
git clone   https://android.googlesource.com/platform/packages/apps/LegacyCamera
git clone   https://android.googlesource.com/platform/packages/apps/Mms
git clone   https://android.googlesource.com/platform/packages/apps/Music
git clone   https://android.googlesource.com/platform/packages/apps/MusicFX
git clone   https://android.googlesource.com/platform/packages/apps/Nfc
git clone   https://android.googlesource.com/platform/packages/apps/OneTimeInitializer
git clone   https://android.googlesource.com/platform/packages/apps/PackageInstaller
git clone   https://android.googlesource.com/platform/packages/apps/Phone
git clone   https://android.googlesource.com/platform/packages/apps/PhoneCommon
git clone   https://android.googlesource.com/platform/packages/apps/Protips
git clone   https://android.googlesource.com/platform/packages/apps/Provision
git clone   https://android.googlesource.com/platform/packages/apps/QuickSearchBox
git clone   https://android.googlesource.com/platform/packages/apps/Settings
git clone   https://android.googlesource.com/platform/packages/apps/SmartCardService
git clone   https://android.googlesource.com/platform/packages/apps/SoundRecorder
git clone   https://android.googlesource.com/platform/packages/apps/SpareParts
git clone   https://android.googlesource.com/platform/packages/apps/SpeechRecorder
git clone   https://android.googlesource.com/platform/packages/apps/Stk
git clone   https://android.googlesource.com/platform/packages/apps/Sync
git clone   https://android.googlesource.com/platform/packages/apps/Tag
git clone   https://android.googlesource.com/platform/packages/apps/UnifiedEmail
git clone   https://android.googlesource.com/platform/packages/apps/Updater
git clone   https://android.googlesource.com/platform/packages/apps/VideoEditor
git clone   https://android.googlesource.com/platform/packages/apps/VoiceDialer
git clone   https://android.googlesource.com/platform/packages/experimental
git clone   https://android.googlesource.com/platform/packages/inputmethods/LatinIME
git clone   https://android.googlesource.com/platform/packages/inputmethods/OpenWnn
git clone   https://android.googlesource.com/platform/packages/inputmethods/PinyinIME
git clone   https://android.googlesource.com/platform/packages/providers/ApplicationsProvider
git clone   https://android.googlesource.com/platform/packages/providers/CalendarProvider
git clone   https://android.googlesource.com/platform/packages/providers/ContactsProvider
git clone   https://android.googlesource.com/platform/packages/providers/DownloadProvider
git clone   https://android.googlesource.com/platform/packages/providers/DrmProvider
git clone   https://android.googlesource.com/platform/packages/providers/GoogleContactsProvider
git clone   https://android.googlesource.com/platform/packages/providers/GoogleSubscribedFeedsProvider
git clone   https://android.googlesource.com/platform/packages/providers/ImProvider
git clone   https://android.googlesource.com/platform/packages/providers/ManagementProvider
git clone   https://android.googlesource.com/platform/packages/providers/MediaProvider
git clone   https://android.googlesource.com/platform/packages/providers/PartnerBookmarksProvider
git clone   https://android.googlesource.com/platform/packages/providers/TelephonyProvider
git clone   https://android.googlesource.com/platform/packages/providers/UserDictionaryProvider
git clone   https://android.googlesource.com/platform/packages/providers/WebSearchProvider
git clone   https://android.googlesource.com/platform/packages/screensavers/Basic
git clone   https://android.googlesource.com/platform/packages/screensavers/PhotoTable
git clone   https://android.googlesource.com/platform/packages/screensavers/WebView
git clone   https://android.googlesource.com/platform/packages/services/EasService
git clone   https://android.googlesource.com/platform/packages/services/LockAndWipe
git clone   https://android.googlesource.com/platform/packages/services/Telephony
git clone   https://android.googlesource.com/platform/packages/wallpapers/Basic
git clone   https://android.googlesource.com/platform/packages/wallpapers/Galaxy4
git clone   https://android.googlesource.com/platform/packages/wallpapers/HoloSpiral
git clone   https://android.googlesource.com/platform/packages/wallpapers/LivePicker
git clone   https://android.googlesource.com/platform/packages/wallpapers/MagicSmoke
git clone   https://android.googlesource.com/platform/packages/wallpapers/MusicVisualization
git clone   https://android.googlesource.com/platform/packages/wallpapers/NoiseField
git clone   https://android.googlesource.com/platform/packages/wallpapers/PhaseBeam
git clone   https://android.googlesource.com/platform/pdk
git clone   https://android.googlesource.com/platform/prebuilt
git clone   https://android.googlesource.com/platform/prebuilts/clang/darwin-x86/3.1
git clone   https://android.googlesource.com/platform/prebuilts/clang/darwin-x86/3.2
git clone   https://android.googlesource.com/platform/prebuilts/clang/darwin-x86/arm/3.3
git clone   https://android.googlesource.com/platform/prebuilts/clang/darwin-x86/host/3.3
git clone   https://android.googlesource.com/platform/prebuilts/clang/darwin-x86/mips/3.3
git clone   https://android.googlesource.com/platform/prebuilts/clang/darwin-x86/x86/3.3
git clone   https://android.googlesource.com/platform/prebuilts/clang/linux-x86/3.1
git clone   https://android.googlesource.com/platform/prebuilts/clang/linux-x86/3.2
git clone   https://android.googlesource.com/platform/prebuilts/clang/linux-x86/arm/3.3
git clone   https://android.googlesource.com/platform/prebuilts/clang/linux-x86/host/3.3
git clone   https://android.googlesource.com/platform/prebuilts/clang/linux-x86/mips/3.3
git clone   https://android.googlesource.com/platform/prebuilts/clang/linux-x86/x86/3.3
git clone   https://android.googlesource.com/platform/prebuilts/devtools
git clone   https://android.googlesource.com/platform/prebuilts/eclipse
git clone   https://android.googlesource.com/platform/prebuilts/eclipse-build-deps
git clone   https://android.googlesource.com/platform/prebuilts/eclipse-build-deps-sources
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/host/headers
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.4.3
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/x86/i686-android-linux-4.4.3
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/x86/i686-android-linux-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/x86/i686-linux-android-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/x86/i686-linux-android-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.4.3
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/i686-android-linux-4.4.3
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/i686-android-linux-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.6
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.7
git clone   https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.8
git clone   https://android.googlesource.com/platform/prebuilts/gradle-plugin
git clone   https://android.googlesource.com/platform/prebuilts/maven_repo/android
git clone   https://android.googlesource.com/platform/prebuilts/misc
git clone   https://android.googlesource.com/platform/prebuilts/ndk
git clone   https://android.googlesource.com/platform/prebuilts/python/darwin-x86/2.7.5
git clone   https://android.googlesource.com/platform/prebuilts/python/linux-x86/2.7.5
git clone   https://android.googlesource.com/platform/prebuilts/qemu-kernel
git clone   https://android.googlesource.com/platform/prebuilts/runtime
git clone   https://android.googlesource.com/platform/prebuilts/sdk
git clone   https://android.googlesource.com/platform/prebuilts/tools
git clone   https://android.googlesource.com/platform/sdk
git clone   https://android.googlesource.com/platform/system/bluetooth
git clone   https://android.googlesource.com/platform/system/core
git clone   https://android.googlesource.com/platform/system/extras
git clone   https://android.googlesource.com/platform/system/media
git clone   https://android.googlesource.com/platform/system/netd
git clone   https://android.googlesource.com/platform/system/security
git clone   https://android.googlesource.com/platform/system/vold
git clone   https://android.googlesource.com/platform/system/wlan/ti
git clone   https://android.googlesource.com/platform/tools/adt/eclipse
git clone   https://android.googlesource.com/platform/tools/adt/idea
git clone   https://android.googlesource.com/platform/tools/base
git clone   https://android.googlesource.com/platform/tools/build
git clone   https://android.googlesource.com/platform/tools/emulator
git clone   https://android.googlesource.com/platform/tools/external/fat32lib
git clone   https://android.googlesource.com/platform/tools/external/gradle
git clone   https://android.googlesource.com/platform/tools/idea
git clone   https://android.googlesource.com/platform/tools/loganalysis
git clone   https://android.googlesource.com/platform/tools/motodev
git clone   https://android.googlesource.com/platform/tools/studio/cloud
git clone   https://android.googlesource.com/platform/tools/studio/translation
git clone   https://android.googlesource.com/platform/tools/swt
git clone   https://android.googlesource.com/platform/tools/tradefederation
git clone   https://android.googlesource.com/platform/vendor/htc/dream-open
git clone   https://android.googlesource.com/platform/vendor/invensense
git clone   https://android.googlesource.com/platform/vendor/sample
git clone   https://android.googlesource.com/Platform-Chromium-Projects
git clone   https://android.googlesource.com/Platform-Projects
git clone   https://android.googlesource.com/Platform-Unrestricted-Projects
git clone   https://android.googlesource.com/Public-Projects
git clone   https://android.googlesource.com/toolchain/avr-libc
git clone   https://android.googlesource.com/toolchain/benchmark
git clone   https://android.googlesource.com/toolchain/binutils
git clone   https://android.googlesource.com/toolchain/build
git clone   https://android.googlesource.com/toolchain/ccache
git clone   https://android.googlesource.com/toolchain/clang
git clone   https://android.googlesource.com/toolchain/cloog
git clone   https://android.googlesource.com/toolchain/compiler-rt
git clone   https://android.googlesource.com/toolchain/expat
git clone   https://android.googlesource.com/toolchain/gcc
git clone   https://android.googlesource.com/toolchain/gdb
git clone   https://android.googlesource.com/toolchain/gmp
git clone   https://android.googlesource.com/toolchain/gold
git clone   https://android.googlesource.com/toolchain/isl
git clone   https://android.googlesource.com/toolchain/llvm
git clone   https://android.googlesource.com/toolchain/manifest
git clone   https://android.googlesource.com/toolchain/mclinker
git clone   https://android.googlesource.com/toolchain/mpc
git clone   https://android.googlesource.com/toolchain/mpfr
git clone   https://android.googlesource.com/toolchain/perl
git clone   https://android.googlesource.com/toolchain/polly
git clone   https://android.googlesource.com/toolchain/ppl
git clone   https://android.googlesource.com/toolchain/python
git clone   https://android.googlesource.com/toolchain/valgrind
git clone   https://android.googlesource.com/tools/repo

Monday, December 29, 2014

Sekilas Tentang Address Resolution Protocol (ARP)

Address Resolution Protocol (ARP) adalah protocol yang digunakan untuk menerjemahkan IP address menjadi MAC Address dalam suatu jaringan. Contohnya ketika suatu packet data masuk/datang kesuatu gateway, maka gateway tersebut menggunakan protocol ARP untuk menentukan ke MAC Address mana packet tersebut akan diteruskan. ARP menggunakan routing table untuk menerjemahkan IP ke MAC Address. Jika ternyata ARP tidak menemukan MAC address yang cocok untuk IP data, maka ARP akan mengirimkan broadcast message ke seluruh komputer yang ada dalam suatu jaringan lokal. Broadcast message ini berisi 1 resolution request atau response. Ukuran message tersebut juga bergantung pada ukuran alamat layer atas dan bawah dari ARP. Ukuran alamat layer atas dan bawah dapat diketahui dari header yang digunakan oleh packet ARP seperti terlihat di bawah :


Hardware Type (HTYPE). Pada gambar di atas HTYPE ini adalah 2 byte dan mementukan type dari network protocol. Contoh untuk Ethernet, HTYPE ini bernilai 1.

Protocol Type (PTYPE). PTYPE ini juga 2 byte, berguna untuk menentukan protocol internetwork dimana ARP request ditujukan. Untuk IPv4, PTYPE = 0x0800. Nilai-nilai yang lain dapat dilihat di EtherType.

Hardware Length (HLEN), menunjukkan panjang alamat hardware.

Protocol Length (PLEN), menunjukkan panjang address yang digunakan oleh protocol layer atasnya.

Operation, menunjukkan operasi apa yang dilakukan pengirim. Operasinya bisa request atau reply.

Sender Hardware Address (SHA). Pada ARP request field ini digunakan untuk menunjukkan alamat komputer yang mengirim ARP request. Pada ARP reply, field ini menunjukkan alamat komputer ARP request ini ditujukan (Alamat komputer yang mac Addressnya g' diketahui wkwkw...).

Target Hardware Address (THA). Pada ARP request (broadcast) field ini kosong/ignore. Pada ARP reply, field ini menunjukkan alamat pengirim ARP request.

Ilustrasi yang lebih jelas untuk penggunaan ARP bisa dilihat pada gambar di bawah :

Terlihat pada, Sender mempunyai data yang akan dikirim ke alamat IP 10.199.64.105. Tetapi sender tidak mengetahui MAC address dari IP tersebut, sehingga sender mengirimkan ARP broadcast ke semua komputer yang berada dalam jaringan lokalnya (agk mubasyir yah...). Komputer-komputer lain yang menerima ARP broadcast tersebut mengecek, jika ternyata bukan untuk dirinya maka ARP tersebut dibuang saja, tetap jika ARP tersebut ditujukan untuk dirinya, maka dia akan membalas dengan MAC Address yang dia miliki. Setelah itu routing table akan diupgrade pada masing-masing komputer dan komunikasi data selanjutnya dapat dilakukan.

Ok, berikutnya kita akan mencoba-coba perintah "arp" ini pada bacth programming. Jadi silahkan buka command prompt pada windows. perintah pertama adalah "arp -a", seperti terlihat :


arp -a ini berguna untuk menunjukkan semua entry cached arp (mkn boleh dibilang routing tabel apa yah...? :D) pada komputer yang kita miliki, baik itu yang berupa static ataupun yang dinamic. Jika arp -a diatas dieksekusi (tekan enter aja), hasilnya :


Nah dari situ kita dapat mengetahui komputer kita terhubung(dapat terhubung) ke komputer mana saja dalam jaringan lokal. Kemudian Physical(MAC) Addressnya juga dapat diketahui. Jika ditambahkan IP address dibelakang -a, maka yang ditampilkan hanya MAC address dari IP address tersebut, contoh :

Kemudian, "arp -g" nah command ini sama persis dengan "arp -a". Kemudian "arp -d" digunakan untuk mendelete entry ARP. Caranya "arp -d IP". Next, "arp -s" digunakan untuk menambah entry baru pada cached ARP,

Kemudian, beberapa command lagi seperti arp -v, arp -n, dsb yang saya belum tau sendiri hohoho... :D