Posts

Showing posts from January, 2026

How I removed Digital Wellbeing (and other bloatware) from my android using my Ubuntu PC without rooting my phone

Environment: Phone : Samsung M13 Android Version : 14 Laptop OS : Ubuntu 24.04 Why remove it: Digital Wellbeing along with other bloatware apps are extra apps preinstalled into the device by the vendor. These apps take up space, drain battery and slow down performance. Many such apps even collect data behind the scenes such as user behaviour, location, personal data, etc. without taking explicit consent. Apps such as digital wellbeing are built into the operating system itself, and can't be removed directly. Some bloat apps like ARZone, Samsung TV plus, etc can be disabled, but not uninstalled. The below guide will help you uninstall these apps. Steps Step 1: Enable USB Debugging on the phone Enable Developer Options in the phone Settings app > About Phone > Click on Build Number 5 times Inside Developer Options --> Debugging Section --> Enable USB Debugging Step 2: Install ADB ADB (Android Debugging Bridge) is a command line tool ...

How I accidentally ran a fork bomb and crashed my laptop

⚠️ Warning: Do not execute the code shown in this post. It will make your system unresponsive. I wanted to observe linux kernel behavior under heavy load . My goal was to stress the CPU and observe scheduler behavior and per-process scheduling. So I asked ChatGPT for a shell script, that will apply "some" on the CPU. Unfortunately, I had no idea what a fork bomb was. Here's the script that I ran... ⚠️ Warning: do not execute. bad idea. terrible idea forkbomb() { forkbomb | forkbomb & }; forkbomb Yes. That is a fork bomb. Observations: The first time i ran the script, i saw fork() being called a couple of times in the terminal. So, I pressed Ctrl + C a couple of times, and assumed it to have stopped.. It hadn't. I closed the terminal and switched back to firefox -- where I immediately got an error message: "A web page is slowing down your browser. What would you like to do? -- Stop It or Wait" I clicked "Wait...

Understanding Malloc() Internals: What I've Learnt So Far

Image
 Intro I've been learning C language, and used malloc() multiple times as an inbuilt function. I was curious about what work it actually did under the hood and how did it actually allocate memory. So I did some research, and watched a couple of videos on youtube.. this was one of the videos that was very useful. https://youtu.be/HPDBOhiKaD8?si=T4HeEA3ACE3macqO This post documents everything that I have learnt so far. This is a work-in-progress, i will continue updating this post as i get more knowledge about this topic.   What is Malloc() malloc()   is a C function that is used to allocate memory for a program. You can access the system heap using the inbuilt C function:   malloc(). It tries to give your program a chunk of memory that is large enough to hold   size   bits. Concepts Memory   is the address space that is in the RAM or swap. Accessing Heaps in C Heaps can be accessed in C using sbrk()   -> main heap nmap()   -> additional ...