This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make cts -j8 TARGET_PRODUCT=msm8960 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://stackoverflow.com/questions/21038058/android-set-navigation-drawer-list-to-open-exact-half-of-the-screen-for-all-devi | |
mDrawerLayout = (DrawerLayout) view.findViewById(R.id.drawer_layout); | |
mDrawerList = (ListView) view.findViewById(R.id.top_sectionlist); | |
int width = getResources().getDisplayMetrics().widthPixels/2; | |
DrawerLayout.LayoutParams params = (android.support.v4.widget.DrawerLayout.LayoutParams) mDrawerList.getLayoutParams(); | |
params.width = width; | |
mDrawerList.setLayoutParams(params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It is supported, but you must have rooted device. | |
Download file manager that allows root access(for example: ES File Explorer) | |
Navigate to /system/ | |
Backup build.prop | |
Add these lines at the end of build.prop file: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch | |
git checkout bhagirath | |
git log | |
git checkout master | |
git log | |
git merge bhagirath | |
git log | |
git branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for var in 0 1 2 3 4 5 6 7 8 9 | |
do | |
echo "Test : $var" | |
adb install -r antutu.apk | |
./monkeyrunner AntutuTest.py | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import signal | |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
import commands | |
import sys | |
def execute(): | |
running = True | |
while running: | |
# starting script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Bitmap getRoundedBitmap(Bitmap bitmap) { | |
final Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888); | |
final Canvas canvas = new Canvas(output); | |
final int color = Color.RED; | |
final Paint paint = new Paint(); | |
final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); | |
final RectF rectF = new RectF(rect); | |
paint.setAntiAlias(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When a PCB back from product line without LCD, how to test WIFI basic function? | |
We can usually use below commands in adb shell with root permission | |
//Check if wlan.ko was loaded | |
lsmod | |
//If not, please install it | |
insmod /system/lib/modules/wlan.ko | |
//Check if it correctly installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git init | |
echo "git init successfully" | |
git status | |
echo "git status" | |
git add -f * | |
echo "adding files successfully" | |
echo "set-up email & name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> ffmpeg decode video | |
ffmpeg -i Untitled_Project-Apple_ProRes_422.mov -f rawvideo -pix_fmt yuv420p Untitled_Project-Apple_ProRes_422.yuv | |
==> ffmpeg slicing video | |
ffmpeg -i Untitled_Project-Apple_ProRes_422.mov -pix_fmt yuv420p -ss 00:00:00 -t 00:00:15 part1_420p.mov | |
==> adding into container format |