[Android Software/Hacking General [Developers Only]] AdrianDC:
​

#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Bootimage ADB Unsecure Patcher

Android Bootimage ADB Unsecure Patcher is made to ease the development of ROMs.

Its purpose is to modify the ramdisk to set ADB into an unsecure mode,

in order to debug Android ROMs on clean / bringup boots without doing an 'eng' build.

It means adb can be used without any permissions to run logcat or other commands.

The project implements the logic from the MultiROM injection (originally by Tasssadar),

finds the bootimage of your device (boot naming similar to Chainfire's boot detection),

and applies the needed modifications to the ramdisk's default.prop configurations.

The objective of Bootimage ADB Unsecure Patcher is therefore to simply enable unsecure adb

on a regular ROM's bootimage for developers and users who would require it.

Developers no longer need to recompile a bootimage or full ROM with 'eng' pressets,

nor do users need to edit their bootimages with unsecure adb settings if they really need it.

The patcher needs to be flashed again after a ROM / bootimage update.

This is originally based on my bootimagedebuggable function from android_development_shell_tools.

The project also uses my version of libbootimg to support Sony ELF bootimages.​

Bootimage Debug Addition Patcher

Another part was added to this project: Bootimage Debug Addition allows developers

to debug unbootable Android builds by providing the following items:

Complete logcat service to /data/debug.logcat.txt

Kernel messages exported to /data/debug.kernel.txt

Runtime properties to /data/debug.properties.txt

Detailed tree of / to /data/debug.roottree.txt

Rebooting to recovery and reading the file contents can help resolving issues rather than guessing.

The patcher is called "bootimage_debug_addition", while the revert is called "bootimage_debug_removal".

For builds running with enforced sepolicies, you might need to flash Universal Kernel Permissive Patcher too.​

Downloads (Unlocked Bootloader only)

bootimage_adb_secure.zip : https://github.com/AdrianDC/bootimage_adb_patcher/blob/master/release/bootimage_adb_secure.zip

bootimage_adb_unsecure.zip : https://github.com/AdrianDC/bootimage_adb_patcher/blob/master/release/bootimage_adb_unsecure.zip

bootimage_debug_addition.zip : https://github.com/AdrianDC/bootimage_adb_patcher/blob/master/release/bootimage_debug_addition.zip

bootimage_debug_removal.zip : https://github.com/AdrianDC/bootimage_adb_patcher/blob/master/release/bootimage_debug_removal.zip​

Other related useful projects

Universal Kernel Permissive Patcher - http://xdaforums.com/-/-t3506338​

Source code

Project sources - https://github.com/AdrianDC/bootimage_adb_patcher (branch master)

libbootimg sources - https://github.com/multirom-dev/libbootimg (branch master)​

Bootimage ADB Unsecure Patcher created also thanks to :

- Tasssadar for the original MultiROM sources

- The MultiROM-Dev team for our evolution of MultiROM

- Chainfire for the boot detection

- Everyone involved in testing it​

XDA:DevDB Information

Bootimage ADB Unsecure Patcher, Tool/Utility for the Android General

Contributors

AdrianDC

Version Information

Status: No Longer Updated

Created 2017-06-07

Last Updated 2019-08-06