[UNOFFICIAL][Recovery][LG G PAD X2][V530] TWRP

xdaGerry

Member
Sep 25, 2017
42
8
0
Concord
TWRP and Universal DM-Verity, ForceEncrypt Disablers

I am going to try to get the TWRP working by do the following:
I am going to install the Universal DM-Verity, ForceEncrypt, Disk Quota Disablers
https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389 Credit for this goes to Zackptg5

After I have disabled DM-Verity, ForceEncrypt
I am going to rename /system/recovery-from-boot.p to recovery-from-boot.p.bak
recovery-from-boot.p is what is starting the stock recovery in place of TWRP.
I also searched for /system/etc/install-recovery.sh but I could not find this kind of script file.
I am hoping that doing these two things will allow will allow TWRP to start.

What I would like to know is will TWRP Enable DM-Verity and ForceEncrypt after it is installed?
I am am also going to post in https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
To ask fo some advice and help
PLEASE Leave Comments for me. Any help will be appreciated.

4-11-19 I could not get the DM-Verity and ForceEncrypt disabler installed.
When I did a Fastboot flash update I got the message that Android-Info.txt was missing from the zip file.
I can't create the the Android-Info.txt file, because I don't know what the contents should be.
I also can not rename the system file "recovery-from-boot.p" without root access.
I guess the next step will be to ROOT the V530 and then try rename "recovery-from-boot.p"
I am hoping that I can rename "recovery-from-boot.p" with DM-Verity and ForceEncrypt still enabled.
If I can rename "recovery-from-boot.p" I will flash TWRP and see if I can boot into TWRP.
To install the DM-Verity and ForceEncrypt disabler I will have to UNROOT the V530.
PLEASE: If anybody has any other ideas let me know.
 
Last edited:

aIecxs

Senior Member
Feb 17, 2016
935
293
73
Test-1) I tried to download the recovery.img to the device.
adb boot "c:\adb\recovery.img
This method works with other devices, but here got FAILED
This cannot work. You have mixed up adb with fastboot.
@pvineeth97 you should mention in OP that there is a way to test recovery without flashing it:
Code:
fastboot boot "c:\adb\recovery.img"
What I would like to know is will TWRP Enable DM-Verity and ForceEncrypt after it is installed?
No. TWRP does not change boot.img
edit: (against DM-Verity/ForceEncrypt)
 
Last edited:

xdaGerry

Member
Sep 25, 2017
42
8
0
Concord
You are correct

This cannot work. You have mixed up adb with fastboot.
@pvineeth97 you should mention in OP that there is a way to test recovery without flashing it:
Code:
fastboot boot "c:\adb\recovery.img"

No. TWRP does not change boot.img
This command fastboot boot c:\adb\recovery.img will boot into TWRP without flashing TWRP
There is a youtube video by rootjuncky of how this works --> https://www.youtube.com/watch?v=DyUainEJwLM

I believe reason TWRP is not working on LG G Pad V530 is that /system/"recovery-from-boot.p" is replacing TWRP with the stock recovery.
I am going to use Universal DM-Verity, ForceEncrypt, Disk Quota Disablers to disable the DM-Verity and ForceEncryt. After I install the Disabler, I will rename "recovery-from-boot.p" to "recovery-from-boot-p.bak"
and I will then flash TWRP.
I hope this will work. I will post the results.
You have done a brilliant job of programming. Thank you again.
 

aIecxs

Senior Member
Feb 17, 2016
935
293
73
Please write which step you don't understand, then we will help you with screenshots
1. PC: fastboot boot C:\adb\recovery.img
2. TWRP: (re)mount /system writeable
3. TWRP: rename /system/recovery-from-boot.p
4. PC: adb push C:\adb\Disable_Dm-Verity_ForceEncrypt.zip /sdcard/
5. TWRP: install Disable_Dm-Verity_ForceEncrypt.zip
6. TWRP: reboot to bootloader
7. PC: fastboot flash recovery C:\adb\recovery.img
8. XDA: click Thanks button to pvineeth97 and Zackptg5
 
Last edited:

tek3195

Senior Member
Aug 19, 2017
399
152
43
49
Panama City FL.
Trying to decide on LG GPad X2 8.0 Plus V530

Hey Everybody,
I have a couple of hopefully quick questions. I am looking at a refurbed unit on Amazon for a hundred bucks and doing homework first. What I want to know is if it would be worth dropping a bill on or if anyone wishes they had bought something else. My next question is about the process in the post above. I understand it I am just used to a different twist. Is there anything about this tab or recovery.img that would prohibit doing everything from the booted recovery. I usually boot recovery, make full backup that includes stock_recovery.img then transfer any files needed via the old drag and drop method in file manager with mtp (I hate typing). Then install .zip's, flash twrp.img from twrp then reboot back to recovery, then supersu or magisk zips or patched_boot.img whichever is needed for particular device. Unless I do a step without thinking, that I can't think of now, I don't even touch the keyboard after I boot twrp.img the first time. Will that work with this or does it have a weird quirk I should know about ? Purchase depends on response to this post, so , is it worth it ? Any advise would be greatly appreciated. Thanks.
 

xdaGerry

Member
Sep 25, 2017
42
8
0
Concord
TWRP is not Working

Please write which step you don't understand, then we will help you with screenshots
1. PC: fastboot boot C:\adb\recovery.img
2. TWRP: (re)mount /system writeable
3. TWRP: rename /system/recovery-from-boot.p
4. PC: adb push C:\adb\Disable_Dm-Verity_ForceEncrypt.zip /sdcard/
5. TWRP: install Disable_Dm-Verity_ForceEncrypt.zip
6. TWRP: reboot to bootloader
7. PC: fastboot flash recovery C:\adb\recovery.img
8. XDA: click Thanks button to pvineeth97 and Zackptg5
I have rooted the LG G Pad V530 and have rename /system/recovery-from-boot.p to recovery-from-boot.p.bak
I then flashed TWRP.
TWRP will not boot. I keep getting the error "No Command"
These are the screenshots: http://s86.photobucket.com/user/gerry12/library/
I don't know how to post the screenshot on xda , so I am just leaving the URL link.
 
Last edited:

xdaGerry

Member
Sep 25, 2017
42
8
0
Concord
Remote Command Unknown

can you please give us result of step 1.
Code:
fastboot boot C:\adb\recovery.img
I get Remote Command Unknown.

This is the gallery all (4) four screenshots: http://s86.photobucket.com/user/gerry12/library/

I have Huawei and One Plus One Phones and if I do a fastboot boot C:\adb\recovery.img TWRP boots on both of them. (Using the correct version of TWRP for each of them)
the C:\adb is the folder just the folder that I copied the recovery.img to. Also the name of the img file does not make a difference you can call it MY_TWRP.img and if the TWRP version
will work, it will boot into TWRP using the fastboot command, even if TWRP has not been flashed to the device.
At this point, I think the problem is with this version of TWRP. I have tried everything I can think of and can not get it to boot.
If you look at the screenshots from the gallery URL above you can see that the TWRP flash was a success.
I think the problem is that there is not the correct command in this version of TWRP to call TWRP to boot.
 
  • Like
Reactions: aIecxs

aIecxs

Senior Member
Feb 17, 2016
935
293
73
can you please confirm the checksum from cmd.exe
Code:
CertUtil -hashfile C:\adb\twrp530.img MD5
61 81 c6 2b 38 e2 16 56 45 fb ad 3d 04 84 c1 81
 

aIecxs

Senior Member
Feb 17, 2016
935
293
73
You have rooted, right? can you upload log files (if there exist any) from /cache/recovery, system files *fstab* + default.prop from / and build.prop from /system (all together in one zip). and output from cat (if exist)
Code:
adb shell
cat /proc/partitions
cat /proc/mtd
cat /proc/dumchar_info
edit: try latest platform_tools from https://dl.google.com/android/repository/platform-tools-latest-windows.zip
edit 2: OP writes you should flash it from Flashify. i don't know if this makes a difference but give it a try
 
Last edited:
  • Like
Reactions: xdaGerry

xdaGerry

Member
Sep 25, 2017
42
8
0
Concord
You have rooted, right? can you upload log files (if there exist any) from /cache/recovery, system files *fstab* + default.prop from / and build.prop from /system (all together in one zip). and output from cat (if exist)
Code:
adb shell
cat /proc/partitions
cat /proc/mtd
cat /proc/dumchar_info
edit: try latest platform_tools from https://dl.google.com/android/repository/platform-tools-latest-windows.zip
edit 2: OP writes you should flash it from Flashify. i don't know if this makes a difference but give it a try
Flashify makes no difference.
I have used the adb code:
adb shell
cat /proc/partitions --> I did'nt know what to do with the results so I took screenshot
cat /proc/mtd -> No file exists
cat /proc/dumchar_info --> No file exists

I have copied the files and uploaded them to the link below:

http://www.mediafire.com/file/1x79rf0rmiz706l/v530_files.zip/file

I really happy that someone with a lot more knowledge than me is willing to help.
Thank You So Much!
 
  • Like
Reactions: aIecxs

aIecxs

Senior Member
Feb 17, 2016
935
293
73
ok i can not see any differences in your build.prop and fstab looks also fine. i think this build is just broken. but i have made some fixes in twrp can you please try? i have found some old twrp recovery_tf840-290318.img you may try too
(attachments removed)
 
Last edited:

aIecxs

Senior Member
Feb 17, 2016
935
293
73
I get Remote Command Unknown.
i have learned today that booting from fastboot will fail on some devices. so better way to test is still flash the image. on the other side, some devices won't let you flash recovery from fastboot. there you have to find a installer-zip, boot recovery from fastboot, then install recovery from zip.

i can not recommend a method because i don't have this device.
@tek3195 as you can read you may think twice about purchase
 
  • Like
Reactions: tek3195

xdaGerry

Member
Sep 25, 2017
42
8
0
Concord
Still Can not boot into TWRP

i have learned today that booting from fastboot will fail on some devices. so better way to test is still flash the image. on the other side, some devices won't let you flash recovery from fastboot. there you have to find a installer-zip, boot recovery from fastboot, then install recovery from zip.

i can not recommend a method because i don't have this device.

@tek3195 as you can read you may think twice about purchase
I followed the link to install TWRP from zip. I am going copy the instruction from the link here:

Connect the device to your PC.
Open a command window and run the following command from the proper location:

fastboot boot path/to/twrp.img

This will temporarily boot TWRP on your device.
If you are using a lockscreen pin/pattern/password and do not get prompted to enter your password,
reboot to the bootloader and try again. Go to install and browse to the zip and install the zip.
The zip will install TWRP to both boot slots. Installing TWRP at this time will remove root if you
are currently rooted.
If you accidently flash TWRP to your device using fastboot instead of temporarily booting the image,
you will need to download the latest factory image for your device and reflash the boot image.
I followed the instructions from above:
From fastboot mode: (I had copied twrp.img to c:\adb)
fastboot boot c:\adb\twrp.img (I did this for all versions twrp.img including the older version the result was)
Results were --> FAILED (remote: unknown command)

I found the install-recovery.sh This is the script file, which writes the stock recovery.

#!/system/bin/sh
#// LGE_UPDATE_S DMS_SYSTEM_GOTA [email protected] 2016/03/23
if ! applypatch -c EMMC:/dev/block/bootdevice/by-name/recovery:17466584:341e0f60ef1c09ea824a55bca7c8d7b151960e12; then
if applypatch -b /system/etc/recovery-resource.dat EMMC:/dev/block/bootdevice/by-name/boot:15174868:edb0d78f2f5f3b50fd16be4765dee539dda7a5c4 EMMC:/dev/block/bootdevice/by-name/recovery 341e0f60ef1c09ea824a55bca7c8d7b151960e12 17466584 edb0d78f2f5f3b50fd16be4765dee539dda7a5c4:/system/recovery-from-boot.p ; then
log -t recovery "Installing new recovery image: succeeded"
echo "<3>[CCAudit] SW update is succeed." > /dev/kmsg
else
log -t recovery "Installing new recovery image: failed"
echo "<3>[CCAudit] SW update is failed." > /dev/kmsg
fi
else
log -t recovery "Recovery image already installed"
fi
 
Last edited:
  • Like
Reactions: aIecxs

tek3195

Senior Member
Aug 19, 2017
399
152
43
49
Panama City FL.
@tek3195 as you can read you may think twice about purchase[/QUOTE]


Thanks @Alecxs. I appreciate it. Actually bought a LG G PAD X 8.0. Just looking for an inexpensive tab with good enough graphics to run CSR2. It arrives tomorrow, and the threads I looked at made it appear pretty straight forward.
 

pvineeth97

Senior Member
Nov 1, 2015
1,251
932
0
St. Louis
I followed the link to install TWRP from zip. I am going copy the instruction from the link here:

Connect the device to your PC.
Open a command window and run the following command from the proper location:

fastboot boot path/to/twrp.img

This will temporarily boot TWRP on your device.
If you are using a lockscreen pin/pattern/password and do not get prompted to enter your password,
reboot to the bootloader and try again. Go to install and browse to the zip and install the zip.
The zip will install TWRP to both boot slots. Installing TWRP at this time will remove root if you
are currently rooted.
If you accidently flash TWRP to your device using fastboot instead of temporarily booting the image,
you will need to download the latest factory image for your device and reflash the boot image.
I followed the instructions from above:
From fastboot mode: (I had copied twrp.img to c:\adb)
fastboot boot c:\adb\twrp.img (I did this for all versions twrp.img including the older version the result was)
Results were --> FAILED (remote: unknown command)

I found the install-recovery.sh This is the script file, which writes the stock recovery.

#!/system/bin/sh
#// LGE_UPDATE_S DMS_SYSTEM_GOTA [email protected] 2016/03/23
if ! applypatch -c EMMC:/dev/block/bootdevice/by-name/recovery:17466584:341e0f60ef1c09ea824a55bca7c8d7b151960e12; then
if applypatch -b /system/etc/recovery-resource.dat EMMC:/dev/block/bootdevice/by-name/boot:15174868:edb0d78f2f5f3b50fd16be4765dee539dda7a5c4 EMMC:/dev/block/bootdevice/by-name/recovery 341e0f60ef1c09ea824a55bca7c8d7b151960e12 17466584 edb0d78f2f5f3b50fd16be4765dee539dda7a5c4:/system/recovery-from-boot.p ; then
log -t recovery "Installing new recovery image: succeeded"
echo "<3>[CCAudit] SW update is succeed." > /dev/kmsg
else
log -t recovery "Installing new recovery image: failed"
echo "<3>[CCAudit] SW update is failed." > /dev/kmsg
fi
else
log -t recovery "Recovery image already installed"
fi
Send me the stock recovery.
 

xdaGerry

Member
Sep 25, 2017
42
8
0
Concord
How extract to the stock recovery

Send me the stock recovery.
See this post on how to extract the stock recovery from the tablet. --> https://forum.xda-developers.com/g-...mo-lg-v530-t3715663/post76052694#post76052694
Please note you need to put the tablet into fastboot mode before you run extract-partitions.py
The above post give instructions for extracting the stock boot img but you can also extract the stock recovery using the tools listed in the post.
Credit goes to Vincent_vann
The python LG tools are at --> https://github.com/Lekensteyn/lglaf
The sources and install instructions for cryptography library -> https://cryptography.io/en/latest/installation/
 

pvineeth97

Senior Member
Nov 1, 2015
1,251
932
0
St. Louis
See this post on how to extract the stock recovery from the tablet. --> https://forum.xda-developers.com/g-...mo-lg-v530-t3715663/post76052694#post76052694
Please note you need to put the tablet into fastboot mode before you run extract-partitions.py
The above post give instructions for extracting the stock boot img but you can also extract the stock recovery using the tools listed in the post.
Credit goes to Vincent_vann
The python LG tools are at --> https://github.com/Lekensteyn/lglaf
The sources and install instructions for cryptography library -> https://cryptography.io/en/latest/installation/
I already replaced stock recovery with TWRP so this method will be useless now. It's better to get a KDZ firmware file for LG V530.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone