Skip to content

Instantly share code, notes, and snippets.

View ChronoMonochrome's full-sized avatar

Victor Shilin ChronoMonochrome

  • Russian Federation, Stavropol
View GitHub Profile
@ChronoMonochrome
ChronoMonochrome / ed8_camera_hacks.ct
Last active January 8, 2020 14:25
"Trails of cold steel" cheat table
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="26">
<CheatEntries>
<CheatEntry>
<ID>6</ID>
<Description>"Unlock camera Z pos"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : ed8.exe
Version:
$ adb shell /parted /dev/block/mmcblk0 unit kb print
Model: MMC MAG4FB (sd/mmc)
Disk /dev/block/mmcblk0: 15758000kB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 4194kB 8389kB 4194kB BOTA0
2 8389kB 12583kB 4194kB BOTA1
3 12583kB 33554kB 20972kB ext4 EFS
@ChronoMonochrome
ChronoMonochrome / los17.txt
Created October 24, 2019 16:10
LOS17 i9300 misc logs
Wifi
===================================================================================================================================
10-24 16:05:01.508 2166 2553 I WifiService: setWifiEnabled package=com.android.settings uid=1000 enable=true
10-24 16:05:01.510 2166 2297 D WifiController: StaEnabledState.enter()
10-24 16:05:01.510 2166 2298 D WifiActiveModeWarden: received a message in WifiDisabledState: { when=-1ms what=0 target=com.android.internal.util.StateMachine$SmHandler }
10-24 16:05:01.511 2166 2298 D WifiActiveModeWarden: Switching from WifiDisabledState to ClientMode
10-24 16:05:01.511 2166 2298 D WifiActiveModeWarden: Entering ClientModeActiveState
10-24 16:05:01.512 2166 2298 D WifiClientModeManager: entering IdleState
10-24 16:05:01.512 2166 2298 D WifiActiveModeWarden: State changed from client mode. state = 2
@ChronoMonochrome
ChronoMonochrome / logcat.txt
Created September 18, 2019 14:28
Replicant LOS16.0
--------- beginning of kernel
09-18 16:03:27.958 0 0 I : Booting Linux on physical CPU 0xa00
09-18 16:03:27.958 0 0 I : Linux version 5.3.0-rc8+ (chrono@server) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #139 SMP PREEMPT Tue Sep 17 23:33:30 MSK 2019
09-18 16:03:27.958 0 0 I : CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
09-18 16:03:27.958 0 0 I : CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
09-18 16:03:27.958 0 0 I OF : fdt: Machine model: Samsung Galaxy S3 (GT-I9300) based on Exynos4412
09-18 16:03:27.958 0 0 I Memory policy: Data cache writealloc
09-18 16:03:27.958 0 0 I cma : Reserved 192 MiB at 0x64000000
09-18 16:03:27.958 0 0 I : Samsung CPU ID: 0xe4412211
09-18 16:03:27.958 0 0 D : On node 0 totalpages: 261632
@ChronoMonochrome
ChronoMonochrome / lima_log.txt
Last active September 17, 2019 20:06
Lima memory allocation issues
87.272432] CPU: 3 PID: 607 Comm: RenderThread Not tainted 5.3.0-rc8+ #135
[ 87.282425] Hardware name: SAMSUNG EXYNOS (Flattened Device Tree)
[ 87.292321] Backtrace:
[ 87.301734] [<c010eed0>] (dump_backtrace) from [<c010f158>] (show_stack+0x20/0x24)
[ 87.311195] r7:60000013 r6:c1086798 r5:00000000 r4:c1086798
[ 87.321186] [<c010f138>] (show_stack) from [<c0a9416c>] (dump_stack+0x80/0x94)
[ 87.330615] [<c0a940ec>] (dump_stack) from [<c0294870>] (warn_alloc+0xd8/0x17c)
[ 87.340082] r7:ffffe000 r6:c0d370e0 r5:00000000 r4:c1006188
[ 87.349514] [<c0294798>] (warn_alloc) from [<c0295834>] (__alloc_pages_nodemask+0xe70/0x1120)
[ 87.368510] r3:00000000 r2:c0d370e0
@ChronoMonochrome
ChronoMonochrome / boot_log.txt
Last active August 23, 2019 16:12
ReplicantOS 9
--------- beginning of kernel
08-23 05:08:04.988 0 0 I : Booting Linux on physical CPU 0xa00
08-23 05:08:04.988 0 0 I : Linux version 5.3.0-rc5+ (chrono@server) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #122 SMP PREEMPT Fri Aug 23 17:53:59 MSK 2019
08-23 05:08:04.988 0 0 I : CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
08-23 05:08:04.988 0 0 I : CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
08-23 05:08:04.988 0 0 I OF : fdt: Machine model: Samsung Galaxy S3 (GT-I9300) based on Exynos4412
08-23 05:08:04.988 0 0 I Memory policy: Data cache writealloc
08-23 05:08:04.988 0 0 I cma : Reserved 192 MiB at 0x64000000
08-23 05:08:04.988 0 0 I : Samsung CPU ID: 0xe4412211
08-23 05:08:04.988 0 0 D : On node 0 totalpages: 261632
@ChronoMonochrome
ChronoMonochrome / gen_password.py
Created August 8, 2019 19:01
Generate password with Python
import sys
import secrets
import string
alph = string.ascii_letters + string.digits
def gen_password(length):
return "".join([alph[i % len(alph)] for i in secrets.token_bytes(length)])
LENGTH = 14
try:
@ChronoMonochrome
ChronoMonochrome / aex_q_i9300.txt
Last active August 9, 2019 20:30
AOSP Extended Q (i9300)
--------- beginning of main
08-09 20:15:21.185 1963 1963 I SELinux : SELinux: Loaded service_contexts from:
08-09 20:15:21.185 1963 1963 I SELinux : /vendor/etc/selinux/vndservice_contexts
08-09 20:15:21.209 1961 1961 I SELinux : SELinux: Loaded service_contexts from:
08-09 20:15:21.230 1961 1961 I SELinux : /system/etc/selinux/plat_service_contexts
08-09 20:15:21.230 1961 1961 I SELinux : /vendor_service_contexts
08-09 20:15:14.066 1960 1960 W auditd : type=2000 audit(0.0:1): initialized
08-09 20:15:17.595 1960 1960 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
08-09 20:15:21.230 1966 1966 I init : type=1400 audit(0.0:3): avc: denied { mounton } for path="/efs" dev="mmcblk0p9" ino=49154 scontext=u:r:init:s0 tcontext=u:object_r:efs_device_file:s0 tclass=dir permissive=1
08-09 20:15:21.828 1962 1962 I hwservicemanager: hwservicemanager is ready now.
@ChronoMonochrome
ChronoMonochrome / flac2mp3.sh
Last active July 15, 2019 19:51
Recursively convert flac to mp3
#!/bin/bash
# https://unix.stackexchange.com/questions/114908/bash-script-to-convert-all-flac-to-mp3-with-ffmpeg
# https://stackoverflow.com/questions/42874310/recursively-converting-flac-to-mp3-using-ffmpeg-while-maintaining-metadata-and-d
find src -type d -print0 | xargs -0 -I file mkdir -p -- dest/file \;
find src -name "*.flac" -exec bash -c 'mp3=$(echo "{}" | sed "s,\.flac,\.mp3,g"); \
ffmpeg -i "{}" -y -acodec libmp3lame -q:a 0 -map_metadata 0 -id3v2_version 3 -write_id3v1 1 dest/"$mp3";' \;
06-21 23:30:15.346 6092 6092 I hostapd : wlan0: interface state UNINITIALIZED->ENABLED
06-21 23:30:15.346 6092 6092 I hostapd : wlan0: AP-ENABLED
06-21 23:30:15.347 2627 2971 D SoftApManager: Soft AP is started
06-21 23:30:15.349 2627 2971 D SoftApManager: SoftAp is ready for use
06-21 23:30:15.350 3199 3221 V WifiManager: SoftApCallbackProxy: onStateChanged: state=13, failureReason=0
06-21 23:30:15.352 2627 2971 D SoftApManager: Timeout delay: 600000
06-21 23:30:15.352 3199 3577 V WifiManager: SoftApCallbackProxy: onNumClientsChanged: numClients=0
06-21 23:30:15.352 2627 2627 D WifiService: handleWifiApStateChange: currentState=13 previousState=12 errorCode= -1 ifaceName=wlan0 mode=1
06-21 23:30:15.354 2627 2971 D SoftApManager: Resetting num stations on start
06-21 23:30:15.354 2627 2971 D SoftApManager: Timeout message scheduled