안드로이드 envsetup.sh 파일을 참고하여 작성된 function.
아래 파일을 sh 파일로 저장후 cygwin 이나 Linux 환경에서 동작.
". filename.sh" 실행후, functionName string 으로 사용.
function jgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@"
}
function cgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
}
function resgrep()
{
for dir in `find . -name .repo -prune -o -name .git -prune -o -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done;
}
function mangrep()
{
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -name 'AndroidManifest.xml' -print0 | xargs -0 grep --color -n "$@"
}
function sepgrep()
{
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -name sepolicy -type d -print0 | xargs -0 grep --color -n -r --exclude-dir=\.git "$@"
}
function allgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.java' -o -name 'AndroidManifest.xml' -o -name '*.xml' -o -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
}
피드 구독하기:
댓글 (Atom)
구글 EmbeddingGemma 2 핵심 총정리
사진·음성·코드를 하나로 묶는다? 구글 EmbeddingGemma 2 핵심 총정리 "기기 안에서 사진과 녹음 파일을 텍스트처럼 빠르게 찾을 수는 없을까?" 온디바이스 AI 개발하면서 다들 한 번쯤 이런 고민과 갈증 느껴보셨죠? 지...
-
Custom Annotation 선언 @Retention(용도) @Target(범위) public @interface XXX { ... } 용도 RetentionPolicy.java (java.lang.annotation) /** *...
-
IPTV 공유기를 다른방에서 사용시 와이파이 속도가 느린 감이 있어 공유기를 추가 설치 공유기 추가 방법에는 여러가지가 있을수 있겠다. 1. sub 공유기를 WDS 모드로 설정하여 사용 2. sub 공유기를 AP/스위치(허브) 형태로 연결하여 ...
-
AlarmManager 사용시 PendingIntent 에 Parcelable 로 전달시 수신부에서 null 이 되는 현상 Android N 이후부터 발생(정확히 7.0 인지 7.1 인지는 모르겠다 ) // send intent.pu...
댓글 없음:
댓글 쓰기