Skip to content

Instantly share code, notes, and snippets.

View Akianonymus's full-sized avatar
✍️
Something...

Akshay Akianonymus

✍️
Something...
View GitHub Profile
@Akianonymus
Akianonymus / termux_selenium.md
Last active April 8, 2024 17:08
Run selenium with chrome on termux

Setup chromium - Normal Termux ( recommended )

Install tur and x11 repo

Chromium is there in tur repo and x11 repo contains some dependencies of chromium

Run these commands

pkg install -y tur-repo x11-repo
@Akianonymus
Akianonymus / create_multiple_profiles.md
Last active September 5, 2024 17:11
Create multiple profiles for ISLAND app

Setup multiple island spaces

Note: Must have an work profile already setup, So that we can modify fw.sys.max_profiles to allow more work profiles

su # to gain root access
resetprop ro.debuggable 1 
am restart

@Akianonymus
Akianonymus / utils.lua
Last active August 19, 2021 08:20
Lua functions
-- https://www.codegrepper.com/code-examples/lua/lua+how+to+print+a+table
local function print_table(node, indent)
local cache, stack, output = {}, {}, {}
local depth = 1
local output_str = "{\n"
indent = indent or " "
while true do
local size = 0
for k, v in pairs(node) do
@Akianonymus
Akianonymus / utils.sh
Last active July 14, 2022 15:43
Some shell functions
###################################################
# Convert bytes to human readable form
# Required Arguments: 1
# ${1} = Positive integer ( bytes )
# Result: Print human readable form.
# Reference:
# https://unix.stackexchange.com/a/259254
###################################################
_bytes_to_human() {
b_bytes_to_human="$(printf "%.0f\n" "${1:-0}")" s_bytes_to_human=0
@Akianonymus
Akianonymus / parse_config.sh
Last active June 5, 2021 01:58
Parse key=val config file
parse_config() {
_config_file="${1:?Error: Profile config file}"
# check if the config file accessible
[ -r "${_config_file}" ] || {
printf "%s\n" "Error: Given config file ( ${_config_file} ) is not readable."
return 1
}
# Setting 'IFS' tells 'read' where to split the string.
#!/usr/bin/env bash
CURRENT_SHELL="${SHELL##*/}"
case "$CURRENT_SHELL" in
'bash') SHELL_FILE="$(ls "$HOME"/.bashrc)" ;;
'zsh') SHELL_FILE="$(ls "$HOME"/.zshrc)" ;;
*) echo "Not a supported shell" && exit 1 ;;
esac
case "$(uname -m)" in
'armv7l') ARCH=arm ;;
@Akianonymus
Akianonymus / remove-hd-icon.md
Created December 4, 2019 04:23
Remove HD ICON ( IMS )

Steps to remove persistent ims HD icon from notification bar.

Decompile ims.apk using apktool.

Go to decompiled folder, run below commands:

sed -i 's|.*device_is_hd_capable.*|    \<string name="device_is_hd_capable" /\>|g'  $(find -type f | grep strings.xml)
@Akianonymus
Akianonymus / Force-isRadioTechLte-to-true.patch
Created March 24, 2019 05:00
Force isRadioTechLte to true
From edb28acbe2253bfcc49cbb6e7e1faf60ed04ed97 Mon Sep 17 00:00:00 2001
From: Akianonymus <anonymus.aki@gmail.com>
Date: Thu, 21 Mar 2019 06:54:03 +0530
Subject: [PATCH] Force isRadioTechLte to true
---
.../com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java b/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java