Skip to content

Instantly share code, notes, and snippets.

View 0312birdzhang's full-sized avatar
:shipit:

BirdZhang 0312birdzhang

:shipit:
View GitHub Profile
@0312birdzhang
0312birdzhang / gist:03364b1dbf5fd4fd9f196ae7831f669f
Created September 4, 2020 10:08
设置第三方桌面为启动器

adb shell pm set-home-activity "com.volla.launcher/activity"

09-15 21:16:06.901 4493 4542 D audio_hw_primary: start_output_stream: enter: stream(0x23ec48)usecase(0: deep-buffer-playback) devices(0x2)
09-15 21:16:06.901 4493 4542 D audio_hw_primary: select_devices for use case (deep-buffer-playback)
09-15 21:16:06.901 4493 4542 V msm8916_platform: platform_get_native_support:napb: ui Prop enabled(0) version(0)
09-15 21:16:06.901 2869 3093 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
09-15 21:16:06.901 4493 4542 V msm8916_platform: platform_get_output_snd_device: enter: output devices(0x2)
09-15 21:16:06.901 4493 4542 V msm8916_platform: platform_get_output_snd_device: exit: snd_device(speaker)
09-15 21:16:06.901 4493 4542 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
09-15 21:16:06.901 4493 4542 V msm8916_platform: platform_get_backend_index:napb: backend port - 0 device - 2
09-15 21:16:06.901 4493 4542 I msm8916_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate
@0312birdzhang
0312birdzhang / dmesg.log
Created June 20, 2019 07:27
hybris 15.1 UI crash log
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.137-Genom-MIUI-f2fs-vince-gf6ae507 (root@ubuntu1) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #4 SMP PREEMPT Wed Jun 19 07:33:23 UTC 2019
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Powerup reason=0x40021
[ 0.000000] Machine: Qualcomm Technologies, Inc. E7 QRD SKU3
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: reserved region for node 'other_ext_region@0': base 0x0000000084a00000, size 30 MiB
.jolla-startupwizard-done
.jolla-startupwizard-sfos2-tutorial
.jolla-startupwizard-usersession-done
alsa/asoundlib.h' file not found
apt install libasound2-dev
/data/spurv/external/alsa-lib/include# cp -R /usr/include/alsa .
on ubports:
[ 428.506368] tas2557 2-004c: tas2557_startup
[ 428.506569] tas2557 2-004c: tas2557_hw_params
[ 428.506575] tas2557_hw_params
[ 428.506583] tas2557 2-004c: tas2557_setup_clocks: nSamplingRate = 48000 [Hz]
[ 428.506591] tas2557 2-004c: Firmware not loaded
[ 428.512351] afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 4119
[ 428.519676] send_afe_cal_type cal_block not found!!
[ 428.535115] tas2557 2-004c: tas2557_prepare
@0312birdzhang
0312birdzhang / gist:a7074c8a1bb6b3a3d65596ff61585ee4
Last active March 7, 2019 13:35
ubports on vince first init
sudo -i
insmod /system/lib/modules/wlan.ko
mount -o remount rw /
mkdir /run/user/32011 && sudo chown phablet /run/user/32011 && sudo chmod 0700 /run/user/32011
adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt
chmod 4777 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
chown root:messagebus /usr/lib/dbus-1.0/dbus-daemon-launch-helper
chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper
@0312birdzhang
0312birdzhang / gist:c1d28e3ae451247c286c301744782f49
Created February 28, 2019 06:25
SailfishOS goto settings page
import Nemo.DBus 2.0
DBusInterface {
id: settingsApp
service: "com.jolla.settings"
path: "/com/jolla/settings/ui"
iface: "com.jolla.settings.ui"
}
[root@Sailfish flatpak-1.0.5]# ./configure --disable-xauth
appstream-glib-0.5.19
https://build.opensuse.org/package/view_file/openSUSE:Factory/appstream-glib/appstream-glib.spec?expand=0
https://build.opensuse.org/package/view_file/GNOME:Factory/appstream-glib/appstream-glib.spec?expand=1&rev=56219ca03e8473cca86205ae6aa01d31
intltool
gdk-pixbuf-devel
libyaml-devel
@0312birdzhang
0312birdzhang / faq-hadk.txt
Created September 26, 2018 03:53
SFOS HADK Backup
https://public.etherpad-mozilla.org/p/faq-hadk
Please, do not use browser-in-place translation tools (right-click translate-this) or similar. They overwrite the content on this page.
---------------------------------------------------------------------------------------------------------------------
So you booted your Sailfish OS? Congrats! No GUI? Oh dear :)
both usb0 and rndis0 interfaces might be up, remove usb0 from init-script and rebuild kernel image with make hybris-boot or make hybris-recovery