Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
15 votes
Accepted

Why are superuser permissions needed to acess /data partition?

First to clarify only root (UID 0) isn't enough to get access to /data at least since Android 5. Discretionary Access Control based on traditional UNIX UIDs/GIDs alone doesn't fulfill the needs of ...
Irfan Latif's user avatar
  • 20.6k
10 votes

How can I view the Android internal partition table?

Old thread but found something nobody else has mentioned... just in case anyone finds it useful. ls -la /dev/block/bootdevice/by-name The directory contains named symlinks to all the partitons.
Caleb Connolly's user avatar
10 votes

Why is there no option to choose size in TWRP's resize partition feature?

First to clarify, Resize Partition is different than Resize File System, TWRP provides latter option. It resizes the ext2/3/4 filesystem to the size of partition it's created on. Filesystem size can ...
Irfan Latif's user avatar
  • 20.6k
10 votes

What special privileges "/system/xbin/su" does have w.r.t. root access?

Since Android is based on Linux kernel, getting root access by executing /system/xbin/su - like one can do on a Linux system - used to work in good old days but not now. The story is a bit twisted. ...
Irfan Latif's user avatar
  • 20.6k
9 votes
Accepted

Why do partitions get unmounted automatically after some time?

SHORT ANSWER Go to Magisk Settings and set Mount Namespace Mode to Global once for all. In SuperSU app, disable Mount Namespace Separation. OR For one time solution, use this command instead: ~$ su -...
Irfan Latif's user avatar
  • 20.6k
8 votes

How can I view the Android internal partition table?

You can use fdisk via busybox on a droid. So, assuming you have the busybox binary on your rom, and it's on your path, the command would simply be: busybox fdisk [the various fdisk options...] ...
BuvinJ's user avatar
  • 181
7 votes
Accepted

How to wipe OS partition in TWRP?

Let’s start with a list of standard internal memory partitions on Android phones and tablets. These are: /boot /system /recovery /data /cache /misc In addition, there are the SD card ...
Rahul Gopi's user avatar
  • 2,243
7 votes
Accepted

How to take full image backup of partitions or eMMC?

Yes you can boot in TWRP if bootloader is unlocked: fastboot boot /path/to/twrp.img Then you can simply dd whole eMMC or individual partitions. You need some extra memory (on external SD card) to ...
Irfan Latif's user avatar
  • 20.6k
7 votes
Accepted

How many mmcblk devices is normal?

There is nothing abnormal in this case. They is only one device in the first preformatted text, which is /dev/block/mmcblk0 (just like /dev/sda in Linux distros). The rest are the partitions within ...
Firelord's user avatar
  • 25.1k
7 votes
Accepted

Where is the baseband firmware stored and how does Android interact with it?

Is the firmware really stored in another eMMC than the Android firmware? No. Baseband firmware, kernel and userspace Android are all stored on the same eMMC (there might be some exception but I don't ...
Irfan Latif's user avatar
  • 20.6k
5 votes

Do most Android device use GPT as their partitioning scheme?

If I'm not wrong, GPT is pretty common. It's pretty advanced format than MBR. On my KitKat, they have 36 partitions. GPT has features like a backup partition table and naming/flag, and supports larger ...
lakshmipathi's user avatar
5 votes
Accepted

It's there a way to get /system partition permanent read/write access even after reboot?

You don't need to make /system permanently R/W. You just need to mount it as R/W at every boot. So I'm providing you with a few options to mount /system as R/W at boot automatically, but do note that ...
iBug's user avatar
  • 7,767
5 votes
Accepted

How to run "parted" command in terminal emulator on my android smartphone

Note: This is applicable to Qualcomm SoC with eMMC (block device accessible through FTL). Not tested on MTK or other chipsets (paths may differ) or the devices with raw NAND/MTD memory. PARTED How ...
Irfan Latif's user avatar
  • 20.6k
5 votes

Manually create A/B partitions

Android uses GUID Partition Table (GPT) as its partitioning system which is possible to modify using tools like parted and gdisk. But there are a few constraints I can think of, other than the OTA ...
Irfan Latif's user avatar
  • 20.6k
4 votes
Accepted

How to resize the /data F2FS partition

As of today (May 30, 2016), the F2FS file system doesn't support shrinking. If it does by the time someone reads this, just let me know in the comments. The solution is then to delete and re-create ...
Marc.2377's user avatar
  • 484
4 votes

Link2SD error- "mount: Operation not supported on transparent endpoint"

Try with an ext4 partition. From www.link2sd.info/faq. I had the same issue and this fixed it.
Sparky's user avatar
  • 141
4 votes

Resize /system partition of Galaxy S 2

In my case, I needed a cross-platform solution since I use Linux. Here's what worked for me: Back everything up. This will wipe everything on the phone, including the internal SD card. Download: A ...
bmaupin's user avatar
  • 2,442
4 votes

Wipe system partition

You should. That is a "clean flash" and is normally recommended in installation instructions. This ensures that the ROM is written on a clean slate At times, like in the case of "nightly" ROMs or ...
beeshyams's user avatar
  • 41k
4 votes
Accepted

Is my Android device booting into a "stealth" partition?

Seems I’ve found the answer at https://andi34.github.io/faq.html Quote: I can't change my rom, wipe / format doesn't work. Nothing changed after flashing with Odin. 16 GB Tab 2 have a known ...
e-sushi's user avatar
  • 201
3 votes

Does the MTK preloader reside in the same flash as system or data?

The eMMC has what's called "hardware partitions" or regions that the full flash memory pool is divided into by the memory controller. These regions operate at a lower level than the usual ...
Andrew Lamoureux's user avatar
3 votes
Accepted

Wiped System Partition... No OS.. How can I recover it back?

Download the following file (J730GMTCE2AQJ1_TCE) from samfirmware.com: direct link Extract (unzip) the firmware file Download Odin v3.12.7 Open Odin v3.12.7 (make sure to Run as administrator) Reboot ...
Timothy Langer's user avatar
3 votes

Does an Android Factory Reset also clear the cache partition?

Yes, a factory reset clear's the cache, dalvik cache, along with the user data. <string name="factory_reset1">Wipes Data, Cache, and Dalvik</string> The information on factory reset is ...
Bo Lawson's user avatar
  • 2,588
3 votes
Accepted

How to create and use multiple partitions on external SD card with different filesystems (Ext4, exFAT, NTFS)?

A few points on four partitions: Dedicated first partition exFAT or NTFS or FAT32 (whichever Android permits and gives optimum performance) to store apps, photos and media. For apps consider ...
Irfan Latif's user avatar
  • 20.6k
3 votes
Accepted

Android Device Partition table not recognized by any of the partition management tools

The partitions aren't recognized because your device, like most Android devices with Amlogic chipsets, uses Amlogic's proprietary partition table instead of a standard partition table like GPT or MBR. ...
Tom Hebb's user avatar
  • 146
3 votes

/data's data is garbled in TWRP. How to decrypt

I was in a similar issue on a Nokia running a stock ROM. Basically Magisk module killed my phone and the TWRP won't allow decryption. I was able to boot successfully to system again by.. Removing ...
singhnsk's user avatar
  • 2,427
3 votes
Accepted

Why can I view files from "Internal Storage" WITHOUT entering password either in OrangeFox recovery or via USB cable on PC?

The newly flashed ROM was xiaomi.eu 12.0.4. I then tried various modifications of it, but all of them expose the same issue over and over again. After I flashed Lineage OS, the behavior was as ...
Alexander Shukaev's user avatar
2 votes

How to restore damaged Internal SD card partition layout? Tried everything

RECOVERING AN ANDROID DEVICE WITH BOOTLOOP OR STUCKED IN LOGO Compilation by: Julian Lopez 2017-05(May)-08 I had similar problems, but the internal memory in my phone GT-i9003 is defective. I've ...
Julian Lopez's user avatar
2 votes

How to restore an image of android partition from my linux PC

The initial adb pull/push by-partition-id pattern in the question has merit for recovery environments. Though I didn't test for the whole of the flash ("mmcblk0"), a backup and restore by ...
wbob's user avatar
  • 161
2 votes

Resize /system partition of Galaxy S 2

Here's what's probably an even better way: https://github.com/Lanchon/REPIT It's as easy as flashing a zip and preserves data. Requires TWRP recovery and patience. Worked first time for me on an S2 (...
eug's user avatar
  • 151
2 votes
Accepted

Malicious hidden in root partition

You'll need to "flash" the firmware on the phone to stock firmware to overwrite everything (including system files) that you had on it before. Go to http://www.sammobile.com/ and enter your device ...
Aaron Gillion's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible