Hot answers tagged

70 votes
Accepted

Where does LineageOs store update files?

As of the new updates of August 31st, 2017, the updates are stored in /data/lineageos_updates
Shadab K's user avatar
  • 815
36 votes

Where does LineageOs store update files?

Browse to folder: /data/data/org.lineageos.updater/app_updates edit: per comments below, this is outdated and the top answer is correct.
mkultra329's user avatar
32 votes
Accepted

How to update TWRP from within TWRP?

Downloading coming from the list of devices allows to download a .img image which can be transferred via MTP-USB connection and installed after selecting Images in the Install file browser. When asked ...
Kalle Richter's user avatar
25 votes

How to uninstall a system app using adb uninstall command (NOT remove via rm or any other way)

I succeded adding the -k and --user options to the pm command, e.g.: pm uninstall -k --user 0 com.android.service The command was issued as root, no need to remount /system as rw. Android on the ...
RigacciOrg's user avatar
20 votes

Extracting data from a TWRP backup

cat data.ext4.win??? | tar xvfi - What this does is concatenate each file matching the pattern data.ext4.win??? and then pipe the concatenated files to tar for extraction. the - as the filename tells ...
Johnathon Havens's user avatar
15 votes

How to uninstall a system app using adb uninstall command (NOT remove via rm or any other way)

Also works without -k (keep user settings) option: pm uninstall --user 0 com.android.service and without opening adb shell: adb uninstall --user 0 com.android.service
Andrei Karcheuski's user avatar
14 votes
Accepted

TWRP failed to install ZIP for Lineage 16 Samsung Galaxy Note 2 GT-N7100 (t03g)

in TWRP go to advanced > terminal, then create /cache/recovery with mkdir /cache/recovery solved the problem for me
wizz's user avatar
  • 156
13 votes
Accepted

Why can't I write to recovery using fastboot on A/B device?

That's expected. Devices with A/B partition scheme don't have a recovery partition. You can only boot in recovery mode with fastboot boot twrp.img. But to permanently flash recovery to device which ...
Irfan Latif's user avatar
  • 19.7k
12 votes
Accepted

can't mount /data while installing LineageOS

These /data-related errors are likely because TWRP can't decrypt the current /data partition. This often happens with stock ROMs, since TWRP is only made to handle the encryption method of AOSP. To ...
Andy Yan's user avatar
  • 9,474
10 votes

Can we backup the stock recovery.img in any way?

EXTRACTING BOOT.IMG FROM STOCK ROM or OTHER IMG LIKE RECOVERY ETC. REQUIREMENT: 1. Download adb required tools. 2. PC 3. Phone Drivers (for other phones google it out) for spreadtrum phones:...
Vivek Ji's user avatar
  • 765
10 votes
Accepted

Extracting data from a TWRP backup

The files created by TWRP with a *.win or *.win??? extension are tar archives. If a partition gets split across multiple files, each is a tar archive in its own right. There is a slight difference, ...
user149408's user avatar
9 votes

Where does Android store fingerprint data?

try removing these files also /data/system/users/0/fpdata/user.db /data/system/users/0/settings_fingerprint.xml Instead of removing files, appending the filenames with some random extension would be ...
lazykiller's user avatar
9 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
  • 19.7k
8 votes
Accepted

Is it possible to flash a boot.img kernel with TWRP?

Boot into TWRP, select Install and follow the screenshots for the rest. (Click image to enlarge) It's not a problem for TWRP to which ROM your particular kernel belongs. The size should not be ...
Firelord's user avatar
  • 24.7k
8 votes
Accepted

TWRP: Failed to mount '/data'

What you need to do is remove Crypto on Data To do that, in TWRP Settings Format Data Type "yes" Done
Evan Carroll's user avatar
  • 4,073
8 votes

TWRP: adb devices works in recovery but fails in sideload mode

Eventually, I found a workaround (which is not a fix but it allowed me to continue the installation). Since my device was detected in discovery, I did not used sideload. I just pushed the image to ...
Odin's user avatar
  • 281
8 votes

What does TWRP "Fix Contexts" do?

SELinux is a security mechanism which stops unauthorized access of processes to other processes, actions and filesystems (UNIX's "file" includes all regular files, directories, block devices, ...
Irfan Latif's user avatar
  • 19.7k
7 votes

How to extract stock apk from TWRP backup?

Rename the system.ext4.win file to system.ext4.tarand extract it. If your TWRP backup is not in compression method, you will directly get to the /system folder or if your TWRP backup is in compression ...
Rocky MrB's user avatar
7 votes

TWRP: Wiped phone, can't put any data onto it through MTP

I had the same issue with MTP not working from TWRP (Windows 10 x64). I used adb push as a workaround way to put update on the phone after disabling MTP from TWRP "Mount" menu: adb.exe push update....
alexandroid's user avatar
7 votes

What does rooting, bootloader, twrp and recovery mean?

Bootloader The low level implementation of a system which can be used to flash software onto your phone's partitions. Often used to flash root privileges or Stock Roms. Recovery The recovery is ...
benjamin's user avatar
  • 1,823
7 votes
Accepted

Recover Android system with TWRP Recovery

Looking at the installation instructions of the ROM you flashed, I am guessing in the TWRP/ CWM options, under Advanced Wipe , one of the options " Wipe Dalvik Cache, Cache, System and Data " (likely ...
beeshyams's user avatar
  • 40k
7 votes
Accepted

How to mount in TWRP?

Can I mount directly from TWRP's mount screen? Yes. Under the category Mount you would see a range of partitions available to be mounted. Selecting an entry (check-mark) would automatically mount the ...
Firelord's user avatar
  • 24.7k
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,233
7 votes

What are the meaning of each category under WIPE menu in TWRP?

I am not sure how much more self explanatory this can be... Dalvik / ART Cache - This is the runtime cache, where executable binaries are stored (after APK files are "optimized"). It is a unique ...
acejavelin's user avatar
  • 6,102
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
  • 19.7k
7 votes
Accepted

Attempting to brute force Android security pattern through TWRP via adb

After a while I figured out what the problem was, with a freshly flashed phone. Here I'll be answering my own question. Does the twrp decrypt command output something else when decryption succeeds? ...
Tim Visee's user avatar
  • 261
6 votes

Does restoring a TWRP backup restore everything, including the ROM?

Yes, your earlier ROM will be fully restored as long as you backup system partition as well since that's where the ROM resides. If you wants your apps and apps' data, then you should back up data ...
Rachid Boudjelida's user avatar
6 votes

lineage OS encrypt phone --> bootloop

For future reference, choosing repair for /data in TWRP seems to solve bootloops right after encryption. The device stays encrypted. This worked on two of my devices and I didn't notice any data loss.
Guest's user avatar
  • 61
6 votes
Accepted

Is there any benefit to wiping Dalvik Cache after rooting my phone?

As you mentioned you're using Magisk for root, I'm assuming you're running on Android 5 or up. The answer would be no. You can safely ignore the "Wipe Dalvik Cache" after OTA updating and re-rooting. ...
iBug's user avatar
  • 7,585
5 votes
Accepted

What does rooting, bootloader, twrp and recovery mean?

Ahh, since you have no knowledge regarding rooting and all I'll just explain in the simplest form. Imagine that you have bought a laptop from HP which Congress preloaded with a windows installation ...
Hunter's user avatar
  • 282

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