From Security-Enhanced Linux for mere mortals and SELinux For Dummies
All as root.
yum -y install setroubleshoot setroubleshoot-serverFrom Security-Enhanced Linux for mere mortals and SELinux For Dummies
All as root.
yum -y install setroubleshoot setroubleshoot-serverThe Linux kernel is written in C, so you should have at least a basic understanding of C before diving into kernel work. You don't need expert level C knowledge, since you can always pick some things up underway, but it certainly helps to know the language and to have written some userspace C programs already.
It will also help to be a Linux user. If you have never used Linux before, it's probably a good idea to download a distro and get comfortable with it before you start doing kernel work.
Lastly, knowing git is not actually required, but can really help you (since you can dig through changelogs and search for information you'll need). At a minimum you should probably be able to clone the git repository to a local directory.
| diff --git a/server/server.vala b/server/server.vala | |
| index d3fc39f9..3e4d11b3 100644 | |
| --- a/server/server.vala | |
| +++ b/server/server.vala | |
| @@ -3,7 +3,7 @@ namespace Frida.Server { | |
| private const string DEFAULT_LISTEN_ADDRESS = "127.0.0.1"; | |
| private const uint16 DEFAULT_LISTEN_PORT = 27042; | |
| - private const string DEFAULT_DIRECTORY = "re.frida.server"; | |
| + private const string DEFAULT_DIRECTORY = "re.freeda.server"; |
This gist is intended to assist beginners, like myself, in getting started with Android Kernel Compilation. Please note that while I'm sharing my setup and process, this guide may not be entirely accurate, and I welcome suggestions from experienced developers to improve it.
I am on Arch, so I will be using pacman to install the base-devel package group.
sudo pacman -S base-devel
On a Debian based distro, you can use apt and install the build-essential package.
adb push ~/android-sdk-linux/ndk-bundle/prebuilt/android-<arch>/gdbserver/gdbserver /data/local/tmp
adb shell "chmod 777 /data/local/tmp/gdbserver"
adb shell "ls -l /data/local/tmp/gdbserver"
adb forward tcp:1337 tcp:1337
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
List All System Images Available for Download: sdkmanager --list | grep system-images
Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
Get all packages installed in Android //https://github.com/aNNiMON/Lightweight-Stream-API
final PackageManager pm = getPackageManager();| /* | |
| Infix to postfix conversion in C++ | |
| Input Postfix expression must be in a desired format. | |
| Operands and operator, both must be single character. | |
| Only '+' , '-' , '*', '/' and '^' (for exponentiation) operators are expected. | |
| */ | |
| #include<iostream> | |
| #include<stack> | |
| #include<string> |
Logs of building custom SDK
I want to modify the setWifiEnabled function in WifiManager class in framework. actually I want to add new function with same name but with different input variables to get password string too.
default signature of function is:
public boolean setWifiEnabled(boolean enabled);