How to add new extension (file type) to webmanager

File urve/protected/config/file_extensions.php 'media_file_extensions' => array('jpg', 'jpeg', 'gif', 'png', 'bmp', 'pdf', 'pps', 'avi', 'mpg', 'mpeg', 'mp4', 'mov', 'wmv', 'swf', 'mp3', 'pptx', 'ppsx', 'ppt', 'exe', 'sh', 'html5', 'jar', 'tif', 'tiff', 'm4v', 'webm', 'doc', 'docx', 'ogv', 'ps1', 'qt'), 'allowed_media_file_extensions' => array('jpg', 'jpeg', 'gif', 'png', 'bmp', 'pdf', 'pps', 'avi', 'mpg', 'mpeg', 'mp4', 'mov', 'wmv', 'swf', 'mp3', 'pptx', 'ppsx', 'ppt', [...]

How to add new extension (file type) to webmanager2020-05-29T10:09:46+02:00

How to set IP address manually?

Once it is disabled, use ifconfig to set your static, OR edit your /etc/network/interfaces file to include something like: auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameservers 8.8.8.8 Run ifup -a to bring up the interfaces you have in your /etc/network/interfaces file.

How to set IP address manually?2020-05-29T10:10:03+02:00

How to remove ADB confirmation dialog

Yo need to add ro.adb.secure=1 to build.prop (remount /system), files in /data/misc/adb/adb_keys and in AOSP source In file USBDebuggingActivity.java add public void onCreate(Bundle icicle) { super.onCreate(icicle); if (0==0) { finish(); return; } if (SystemProperties.getInt("service.adb.tcp.port", 0) == 0) { mDisconnectedReceiver = new UsbDisconnectedReceiver(this); }

How to remove ADB confirmation dialog2020-05-29T10:10:15+02:00

How to prepare Ubuntu for AOSP

/etc/apt/sources.list Then add two new lines to the file : deb http://dk.archive.ubuntu.com/ubuntu/ trusty main universe deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main universe sudo apt-get install build-essential zlib1g-dev flex libx11-dev gperf libncurses5-dev bison lsb-core lib32z1-dev g++-multilib lib32ncurses5-dev u-boot-tools g++-4.4-multilib python lzop libxml2-utils Since Oracle has moved the download link and requires login credentials to download older versions of [...]

How to prepare Ubuntu for AOSP2020-05-29T10:10:28+02:00

How to compile Rockchip MPP library (libmpp.so and libvpu.so)

You need two NDKs, r14b and r16 $ git clone https://github.com/rockchip-linux/mpp Now enter build/android/cmake and modify file ----------------------------------------- #!/bin/bash # Run this from within a bash shell HOST_IP=`hostname --all-ip-addresses` if [[ ${HOST_IP} == *"10.10.10.65"* ]] || [[ ${HOST_IP} == *"10.10.10.67"* ]]; then ANDROID_NDK=/data/local/build/android-ndk-r14b else ANDROID_NDK=/data/local/build/android-ndk-r14b fi rm -rf build lib CMAKE_PATH=/data/cmake/bin CMAKE=${CMAKE_PATH}/cmake MAKE=make ANDROID_PLATFORM="android-23" ${CMAKE} [...]

How to compile Rockchip MPP library (libmpp.so and libvpu.so)2020-05-29T10:10:45+02:00

How to make standalone Android toolchain

Download NDK r15c (less problematic with GStreamer) and /data/local/build/android-ndk-r15c/build/tools$ ./make-standalone-toolchain.sh --platform=android-23 --install-dir=/home/clone/android-toolchain --toolchain=arm-linux-androideabi-4.9

How to make standalone Android toolchain2020-05-29T10:11:09+02:00

How to check if GPU accelerate Video playback/encoding

When movie is being played/encoded type : # cd /sys/kernel/debug/pm_genpd # cat * pd_gpu off /devices/platform/ff9a0000.gpu suspended pd_vdu off /devices/platform/ff660000.rkvdec suspended pd_vcodec off /devices/platform/ff650000.vpu_service suspended // suspended = software acceleration // active = hardware acceleration

How to check if GPU accelerate Video playback/encoding2020-05-29T10:11:30+02:00

How to root Android board

If you have su binary it's very easy :-) mount -o rw,remount /system chmod 06755 /system/xbin/su chown root:root /system/xbin/su mount -o ro,remount /system

How to root Android board2020-05-29T10:11:42+02:00

Combo: How to check temperature, CPU frequencies on RK3399

cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state cat /sys/devices/system/cpu/cpu4/cpufreq/stats/time_in_state cat /sys/class/thermal/thermal_zone0/temp

Combo: How to check temperature, CPU frequencies on RK33992020-05-29T10:11:51+02:00

How to hide “Unfortunately app has stopped.” dialog?

frameworks/base/services/core/java/com/android/server/am/AppErrorDialog.java static final long DISMISS_TIMEOUT = 500 * 1; frameworks/base/services/core/java/com/android/server/am/AppErrorDialog.java WindowManager.LayoutParams attrs = getWindow().getAttributes(); attrs.y = -1000;

How to hide “Unfortunately app has stopped.” dialog?2020-05-29T10:12:45+02:00
Skip to content

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.
Ta strona korzysta z plików cookie, aby poprawić komfort użytkowania. Zakładamy, że nie masz nic przeciwko, ale możesz zrezygnować, jeśli chcesz.
Read more
Dowiedz się więcej

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close