2022 Developer Survey is open! Take survey.

Hot answers tagged

69 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
user avatar
  • 805
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.
user avatar
30 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 ...
user avatar
23 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 ...
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 ...
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
user avatar
  • 156
13 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
user avatar
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 ...
user avatar
  • 9,360
12 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 ...
user avatar
  • 17.5k
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:...
user avatar
  • 759
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 ...
user avatar
8 votes

zip file signature verification?

Basically the Zip File Signature Verification flag will enable flashing only if the zip file is signed properly by the developer. This is (almost) the same method used signing Jar files in Java. ...
user avatar
  • 5,100
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 ...
user avatar
  • 23.3k
8 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, ...
user avatar
7 votes

Where to find "adb" version 1.0.32 to install on Ubuntu?

Download and untar https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz After this, just copy the extracted executable "adb" ...
user avatar
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 ...
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 ...
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 ...
user avatar
  • 37.7k
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 ...
user avatar
  • 23.3k
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 ...
user avatar
  • 5,816
7 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 ...
user avatar
  • 17.5k
7 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
user avatar
  • 3,677
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 ...
user avatar
  • 17.5k
7 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 ...
user avatar
  • 261
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? ...
user avatar
  • 261
7 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, ...
user avatar
  • 17.5k
6 votes
Accepted

Shell script to reboot into recovery and install zip

I ended up looking at Cyanongenmod's source code and figured out how they did it. Here is my working .sh script: echo 'boot-recovery ' > /cache/recovery/command echo '--update_package=/sdcard/...
user avatar
6 votes

Installed CWM/TWRP but it isn't installed when booting to recovery mode

Some stock ROM's may replace the custom recovery with the stock recovery. To solve it you should install the custom recovery with fastboot and reboot to recovery and don't reboot to system. That will ...
user avatar
  • 3,782
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. ...
user avatar
  • 7,294
5 votes
Accepted

Nexus 5: Safe to update to Lollipop if on rooted + TWRP Android 4.4.4?

The answer is the update won't push through if you have a custom recovery like TWRP. I had to restore the stock recovery using the Nexus Root Toolkit. Then the update showed again, and it went through ...
user avatar
  • 609

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