Skip to content

Instantly share code, notes, and snippets.

View murano500k's full-sized avatar

Artem Radchenko murano500k

  • Kiev, Ukraine
View GitHub Profile
make android.policy (the power menu and lockscreen)
make framework (the initial framework files)
make framework-res (the initial framework resources)
make services (the services.jar file)
make sdk (builds the android sdk)
make modules (builds all modules)
make installclean (removes all staging directories, such as out/target/product/boardname/system)
make clean (removes the whole /out directory)
make recoveryimage (builds the recovery from /bootable/recovery, customizable if wanted!)
Recording Screen
1. Connect your device with PC using wired or wireless ADB connection.
2. Open Terminal in Linux or Command Prompt and enter the following command.
adb shell screenrecord /sdcard/screen.mp4
3. To stop screen recording break using Ctrl + C
4. Now the captured video will be placed in internal sdcard. Copy the video to PC using the command.
adb pull /sdcard/screen.mp4
compile 'com.github.pedrovgs:lynx:1.1.0'
<com.github.pedrovgs.lynx.LynxView
xmlns:lynx="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
lynx:filter="Lynx"
lynx:max_traces_to_show="1500"
compile 'com.github.pedrovgs:lynx:1.1.0'
<com.github.pedrovgs.lynx.LynxView
xmlns:lynx="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
lynx:filter="Lynx"
lynx:max_traces_to_show="1500"
ButtonClass
button[1]=up
button[2]=up
button[3]=up
button[4]=up
button[5]=up
button[6]=up
button[7]=up
button[8]=sidebutton down
button[9]=sidebutton up
git clone ssh://artem.radchenko@gerrit-ua.globallogic.com:29418/renesas/device/renesas/salvator/common
git checkout r-ncar
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 artem.radchenko@gerrit-ua.globallogic.com:hooks/commit-msg ${gitdir}/hooks/
git add [changes]
git commit -s #-s for signed by
git push gl-mirror HEAD:refs/for/r-car-7.1
#repo init
repo init -u ssh://renesas/renesas/platform/manifest -b r-car-8
repo init -u ssh://artem.radchenko@gerrit-ua.globallogic.com:29418/renesas/platform/manifest -b r-car-7.1.2
Writing data (Yocto v2.23)
Filename Program Top Address Flash Save Address Description
bootparam_sa0.srec 0xE6320000 0x000000 Loader(Boot parameter)
bl2-h3ulcb.srec 0xE6304000 0x040000 Loader
cert_header_sa6.srec 0xE6320000 0x180000 Loader(Certification)
bl31-h3ulcb.srec 0x44000000 0x1C0000 ARM Trusted Firmware
tee-h3ulcb.srec 0x44100000 0x200000 OP-Tee
u-boot-elf.srec 0x50000000 0x640000 U-Boot
repo init -u ssh://renesas/renesas/platform/manifest -b r-car-8
#~/.ssh/config
Host renesas
HostName gerrit-ua.globallogic.com
User artem.radchenko
Port 29418
IdentityFile /home/artem/.ssh/id_rsa
Host gerrit-ua.globallogic.com
@murano500k
murano500k / gdk-gstappsrc-stream.c
Created September 4, 2017 10:34 — forked from nzjrs/gdk-gstappsrc-stream.c
GStreamer Streaming AppSrc Example
/* gcc gdk-gstappsrc-stream.c -Wall `pkg-config --cflags --libs gstreamer-app-0.10 gdk-pixbuf-2.0` -o gdkstream */
#include <gst/gst.h>
#include <gst/app/gstappsrc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
ubuntu sender
gst-launch-1.0 v4l2src \
! 'video/x-raw, width=640, height=480, framerate=30/1'\
! videoconvert ! x264enc pass=qual quantizer=20 tune=zerolatency \
! rtph264pay ! udpsink host=127.0.0.1 port=1234
ubuntu reciever
gst-launch-1.0 udpsrc port=1234 ! "application/x-rtp, payload=127" !\
rtph264depay ! avdec_h264 ! videoconvert ! ximagesink