Skip to content

Instantly share code, notes, and snippets.

View araczkowski's full-sized avatar
🤖
at work

Andrzej Raczkowski araczkowski

🤖
at work
View GitHub Profile
@araczkowski
araczkowski / edit-init-rc.md
Created April 15, 2021 07:04 — forked from ashutosh-mishra/edit-init-rc.md
How to run custom script from init.rc, How to Extract Android Kernel And Modify The Boot Ramdisk(Android 4+)

init.rc changes

init.rc changes to run any script Can be used to start any android application, service

on property:dev.bootcomplete=1
    exec - system system -- /system/bin/sh <custom script path>
    # exec - system system -- /system/bin/sh /data/local/bootscript/testservice.sh

Script can contains applications start, stop commands

@araczkowski
araczkowski / split_bootimg.pl
Created April 6, 2021 05:15 — forked from JPT77/split_bootimg.pl
Added Device Tree Partition
#!/usr/bin/perl
######################################################################
#
# File : split_bootimg.pl
# Author(s) : William Enck <[email protected]>
# Description : Split appart an Android boot image created
# with mkbootimg. The format can be found in
# android-src/system/core/mkbootimg/bootimg.h
#
# Thanks to alansj on xda-developers.com for
@araczkowski
araczkowski / docker.md
Created March 5, 2021 17:04 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker directly on Android, without VMs nor chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@araczkowski
araczkowski / AdbCommands
Created September 20, 2019 11:27 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@araczkowski
araczkowski / AdbCommands
Created September 20, 2019 11:27 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@araczkowski
araczkowski / GlobalSettings.txt
Created August 10, 2019 08:35 — forked from jhotmann/GlobalSettings.txt
Android Settings
adb_enabled=1
airplane_mode_on=0
airplane_mode_radios=cell,bluetooth,wifi,nfc,wimax
airplane_mode_toggleable_radios=bluetooth,wifi,nfc
assisted_gps_enabled=1
audio_safe_volume_state=1
auto_time=1
auto_time_zone=1
bluetooth_on=1
bugreport_in_power_menu=0
@araczkowski
araczkowski / GlobalSettings.txt
Created August 10, 2019 08:35 — forked from jhotmann/GlobalSettings.txt
Android Settings
adb_enabled=1
airplane_mode_on=0
airplane_mode_radios=cell,bluetooth,wifi,nfc,wimax
airplane_mode_toggleable_radios=bluetooth,wifi,nfc
assisted_gps_enabled=1
audio_safe_volume_state=1
auto_time=1
auto_time_zone=1
bluetooth_on=1
bugreport_in_power_menu=0
@araczkowski
araczkowski / service.md
Created July 26, 2019 08:13 — forked from tniessen/service.md
Using the "service" tool with ADB and why to avoid it

As it turns out, it is not trivial to control the audio volume of an Android device using ADB. At the time of writing, the only way appears to be using the service tool. Actually, the service command allows to "connect" to a number of services (104 on Android 6.0.1) and invoke functions. Not knowing much about this tool, I managed to completely mute all sounds and speakers of my Nexus 5, and I was stuck without any sound for quite some time. I did not find a way to unmute the sound from within the system UI, so I got to dive a little deeper into this.

If you know which service you want to use, you then need to find its interface declaration. The command

service list

gives you a list of all services with the associated interfaces, if applicable:

...

26 backup: [android.app.backup.IBackupManager]