yashsingh1/xdaforums huggingface dataset:
[LG V30 Guides, News, & Discussion] sankhauaa:
Thanks for your nice work.But cant understant where i open comand window?? in adb folder?? or in twrp terminal. Do u please make a zip file for create vendor partition ??

---------- Post added at 08:09 PM ---------- Previous post was at 08:04 PM ----------

I have lg v30 plus and want to create vendor partition please anyone write step by step guide with proper command.
[LG V30 Guides, News, & Discussion] zacharias.maladroit:
Just imagine that before step "2. Make a backup of EVERYTHING on your phone (system, boot, recovery, data and so on)"

that there is:

Boot into TWRP/Recovery

that should make it clear, no ?

Also Step "7. Reboot into recovery again"

connects nicely and makes sense, right ?
[LG V30 Guides, News, & Discussion] SGCMarkus:
Updated the Guide a bit, added a "reboot to TWRP" at the beginning.

Also made it clear that your command line/terminal should be opened wherever you have access to ADB (for me thats anywhere, on Windows and Linux, as i have added the folder to my PATH variable (google is your friend how todo that)).

And no, I wont make a flashable .zip file for this, even though it would be possible.

I decided todo it this way, to give the user still the option to abort, in case something would go wrong with repartitioning (thats why it will also only print the commands you have to execute, and wont execute them itself).
[LG V30 Guides, News, & Discussion] sankhauaa:
Actually i see a theread in lenovo zuk z2 plus .one devoloper create a system to vendor.zip to create vendor partition. Ok Nice job for your side.And thanks for your valuable reply

Here is that vendor creating zip file https://androidfilehost.com/?fid=962187416754475515
[LG V30 Guides, News, & Discussion] sankhauaa:
Vendor partition created

But trebled twrp cannot mount /delete vendor partition

How to solve? Pls help
[LG V30 Guides, News, & Discussion] zacharias.maladroit:
You took a look at the script, understood what was modified and did the proper actions with the echo and --pretend changes, right ?
[LG V30 Guides, News, & Discussion] pkumar0202:
failed to mount /vendor

my bad

did not see this : --pretend

will try and re-post the status;)
[LG V30 Guides, News, & Discussion] zacharias.maladroit:
I'll quote it again since obviously no one seems to get it:

and in plain text:

remove echo with the quotation marks - so that only the content remains

remove the --pretend so that the commands actually DO something
[LG V30 Guides, News, & Discussion] pkumar0202:
Sorry, My bad

will try again and post the status :)
[LG V30 Guides, News, & Discussion] Alex-M8:
Whenever i do ./backup_gpt.sh i get permission denied

---------- Post added at 02:33 AM ---------- Previous post was at 01:57 AM ----------

Nevermind that, i didn't read the steps properly. Although now that it's out of the way i'm having a hard time understanding how you run the script and if you're supposed to edit it or copy the commands?

---------- Post added at 02:42 AM ---------- Previous post was at 02:33 AM ----------

Update: i removed the --pretend when editing the script in notepad and it ran but my vendor partition is 0mb even though it said "operation completed successfully"

---------- Post added at 03:26 AM ---------- Previous post was at 02:42 AM ----------

2nd update: So it seems that there's a mismatch or something and the treblelized lineageos 15.1 rom booted fine so i decided to restore the partition table which failed and gave me an error :rolleyes:
[LG V30 Guides, News, & Discussion] Alex-M8:
I may be the only one with this problem but if the restore script fails what other option do i have to restore my partition table?
[LG V30 Guides, News, & Discussion] theandrewgordon:
Mine didnt restore either. I was able to restore through the LG up tool and then re twrp etc...
[LG V30 Guides, News, & Discussion] SGCMarkus:
Did you actually backup the GPT before? and was it still at the same location?

Before i sent my V30 to repair i restored the GPT that way.
[LG V30 Guides, News, & Discussion] theandrewgordon:
Indeed, good question. I did have a backup to sd card, and didnt move it. I tried several times but eventually needed my phone back. Sorry for not posting before, Its not a knock, I just figured I did something wrong.

---------- Post added at 09:54 AM ---------- Previous post was at 09:49 AM ----------

I can message you the bin in case I just bombed something.
[LG V30 Guides, News, & Discussion] SGCMarkus:
if the script doesnt work try it the manual way (in TWRP ofcourse)

sgdisk --load-backup=/path/to/GPT_orig.bin /dev/block/sda

exchance with the right path ofcourse
[LG V30 Guides, News, & Discussion] theandrewgordon:
Very fair thought. I actually tried that to no avail but I am unable to test again as I am back to boombox on regular twrp. I was just suggesting that if someone gets stuck, the LG Up software is helpful... but I understand that isn't actually the correct solution. :)
[LG V30 Guides, News, & Discussion] Alex-M8:
Yes i did run the backup script beforehand but it still said operation failed when i tried restoring, though i should still have the backup since it was on my external sd card which means that i might be able to restore it at a later time, but right now i don't see the need for it.

---------- Post added at 08:24 PM ---------- Previous post was at 08:19 PM ----------

You can restore the partition table through LG UP?

---------- Post added at 08:28 PM ---------- Previous post was at 08:24 PM ----------
[LG V30 Guides, News, & Discussion] theandrewgordon:
I guess so, I kinda bricked it where it wasnt booting just stuck on LG, then I ended up getting it into download mode i think by holding vol down and power till it cycled, then when it did I held the up button... or something to that affect. in download mode I could use LG Up and "flash oreo upgrade" section from the instructions.... I wish I remembered better but hope this helps

---------- Post added at 02:35 PM ---------- Previous post was at 02:34 PM ----------

And Yeah I know so to some extent because it failed to restore and after LG Up it was back to stock.
[LG V30 Guides, News, & Discussion] FcBayernMinga:
Permission Denied

Hey, I also get "permission denied" - even when I run ADB shell with su and got the "#" on the beginning of each line.

I'm on Win10 and use cmd with Admin rights.

On my rooted H930 with DotOS 2.4 I enabled in Magisk under "Superuser" the shell.

Also USB Debugging in Developer Settings is enabled.

Even in TWRP Terminal i get "permission denied". Do I have to flash and use a twrp-treble.img ?

Help!!?!! :) [MENTION=3475147]SGCMarkus[/MENTION] [MENTION=6800260]Alex-M8[/MENTION] [MENTION=4661812]Saxithon[/MENTION]
[LG V30 Guides, News, & Discussion] Alex-M8:
Sorry for late reply but if you get permission denied you're either booted up with usb debugging or in twrp when you're supposed to be doing this in fastboot mode. And if that isn't the case did you run su in the adb shell line?
[LG V30 Guides, News, & Discussion] FcBayernMinga:
Hi, thank you for your answer - unfortunaletly I couldn't make it yet ;(

I tried following options:

1. With Booted Phone and USB Debugging enabled -> adb shell is working, also "su" but when running the ./make_vendor script -> permission denied.

2. In TWRP-RECOVERY:

a) in inbuilt in Terminal -> running the ./make_vendor script -> permission denied.

b) with CMD from Laptop: I also get "permission denied" -> I changed the directory to the folder containing the *.sh files -> but it states:

/sdcard # cd treble_partition/[J

/sdcard/treble_partition # ./make_vendor.sh [J

/sbin/sh: ./make_vendor.sh: Permission denied

/sdcard/treble_partition # [6n_

3. In BOOTLOADER/FASTBOOT MODE: i can only start fastboot commands, no adb commands.
[LG V30 Guides, News, & Discussion] Arif Ferdian:
IN TWRP RECOVERY, conect your phone to pc, open adb coment on pc, and follow the step on 1st page, youll be good then.

NOT in TWRP build terminal, but on PC, but your Phone must on TWRP mode
[LG V30 Guides, News, & Discussion] FcBayernMinga:
Thanks for your answer! I exactly did that (step 2b from my description) -> it ends in permission denied
[LG V30 Guides, News, & Discussion] rdeets:
I keep getting permission denied as well. I removed all of the --pretends.
[LG V30 Guides, News, & Discussion] siulmagic:
I need help no matter what i do, my adb shell command line looks like this. I am in recovery.
[LG V30 Guides, News, & Discussion] rdeets:
That's how mine looks as well. I think that's how Windows 10 implements it. You can still run scripts via that.
[LG V30 Guides, News, & Discussion] siulmagic:
Okay thanks for the info.
[LG V30 Guides, News, & Discussion] SGCMarkus:
Blame windows

Im using the WSL for that instead, works fine
[LG V30 Guides, News, & Discussion] Alex-M8:
That is very weird, did you try using minimal adb?
[LG V30 Guides, News, & Discussion] seadersn:
is it the script itself failing or sth inside it? what's the output of "ls -la" inside working directory in terminal emulator or adb?
[LG V30 Guides, News, & Discussion] siulmagic:
I keep trying to run backup_gpt.sh, but i keep getting file not found, but if i do ls on the directory it shows backup_gpt.sh is there, so no idea why its doing this.

Edit: nvm file was corrupt dunno how.
[LG V30 Guides, News, & Discussion] FcBayernMinga:
No - whats that? Minimal?
[LG V30 Guides, News, & Discussion] rdeets:
I'm sure this is a VERY noob question, but how do you run su in the adb shell line? I've tried Googling, and all I can find is stuff referencing root in android terminal emulator.
[LG V30 Guides, News, & Discussion] lqqsdz:
1.Create a repartition folder in external_sd

2.Copy the files in the zip to external_sd
[LG V30 Guides, News, & Discussion] BaschtlWaschtl:
hi..

nice thread. is it possible to repartition System and Data?

i thinking about move space from System to Data.. i have 1,8 GB free on System.. Maybe we can move 1,2 gb from System to Data?

is this possible?

Greets
[LG V30 Guides, News, & Discussion] SGCMarkus:
Possible yes, but i wouldnt recommend doing it (In case a future Stock ROM requires the extra space, and you would need to completly format the data partition, and therefor internal memory to expand it this way)
[LG V30 Guides, News, & Discussion] siulmagic:
I had to kdz back to stock, i had the treble partitioning plus the treble twrp, i restored my stock android and it would not boot no matter how many times i wiped, system.data,cache or dalvik. To my understanding stock kernel docent care about the vendor partition , so why did it not want to boot?
[LG V30 Guides, News, & Discussion] zacharias.maladroit:
Alright, just to gauge how things are:

Do you guys REALLY understand what happens and how to go about the repartitioning of the device ?

cause by just reading the script I'm also having a bit of a hard time to envision it :D

I haven't actually migrated to Treble yet - so trying to figure out on how to make this more user-friendly

One thing is for sure though:

this is a bit of interactive and more like 2-part approach, so best probably would be

to run it, note down the would-be changes (since the script is only pretending/showing but NOT modifying),

create a custom script and then run it again (this time for real)

That's the real issue with the repartitioning: the steps (the values and changes) are custom to each and every device (that's at least my inital understanding - could be the same for all (64 GB devices),

but of course 128 GB storage devices most probably would be different)
[LG V30 Guides, News, & Discussion] rdeets:
So... Yeah... I am at a lost. I've managed to get the treble partition installed. Trebelized Lineage OS installs and boots fine. But if I wipe system/data/cache and install the 9.0 GIS, nothing but bootloops. I've tried flashing 9.0 both in fastboot and TWRP. No luck. Nooooooooooo luck.
[LG V30 Guides, News, & Discussion] siulmagic:
I don't see you flashing los 15.1, you need to flash that in order to populate you vendor partition, witch has the the v30 libs that the gsi needs to work. the los 15.1 will flash a vendor image, without that the gsi image will mostlikelly never boot.
[LG V30 Guides, News, & Discussion] rdeets:
I've subsequently done that. Then tried to flash 9.0 via both fastboot and TWRP. No luck.
[LG V30 Guides, News, & Discussion] siulmagic:
And did you wipe vendor before flashing los15.1?
[LG V30 Guides, News, & Discussion] rdeets:
Yep
[LG V30 Guides, News, & Discussion] siulmagic:
Hmm what i did was:

1.reparttion syatem with make vendor.sh

2.flashed treble twrp

3.wipe vendor

4.flashed los 15.1

5.Wiped data plus sytem, cache, dalvik

6.flashed the gsi image with twrp.

After all of that the gsi image booted, i used the pixel expirience one.

---------- Post added at 12:35 AM ---------- Previous post was at 12:14 AM ----------

Hmm this mostlikelly why my stock rom would not boot, i have the 128gb version. So this script is for 64gb models then not 128gb?

Thanka for the insight Zach.
[LG V30 Guides, News, & Discussion] rdeets:
I do exactly that. When I go to reboot after flashing GSI, is it normal for TWRP to say "no OS installed?"

Is it possible my GSI download was corrupt? It flashes 100%.

---------- Post added at 05:45 PM ---------- Previous post was at 05:30 PM ----------

How big are the partitions supposed to be?

Mine are:

System: 2015 MB

Vendor: 489 MB

Data: 110583 MB

Do those look correct, or do I need to resize them?
[LG V30 Guides, News, & Discussion] siulmagic:
For me twrp did not say that, i just rebooted to system and it worked. Yea the parttion's are fine, its just that zhak put me in doubt if the make-vendor script fine works fine for 128gb models or not.
[LG V30 Guides, News, & Discussion] rdeets:
Okay. Is arm64 a only the correct GIS build? That's the one that I've been trying to use.
[LG V30 Guides, News, & Discussion] siulmagic:
Yup thats the correct one for us.
[LG V30 Guides, News, & Discussion] rdeets:
Don't ask me how, but I finally got it to boot P. The only thing I did differently was rebooting to recovery before immediately rebooting to system.
[LG V30 Guides, News, & Discussion] siulmagic:
Awesome man, glad you finally got it to work. =).
[LG V30 Guides, News, & Discussion] Ainz_Ooal_Gown:
I'm getting this after treble-izing my LS998 and flashing the latest Lineage OS "A vendor image mismatch has been detected. Typically, this means your vendor image is out of date. Please ensure your vendor image matches OPR1.170623.026"
[LG V30 Guides, News, & Discussion] zacharias.maladroit:
That message is harmless, it also happens on e.g. Pixel 2 XL when vendor, kernel and GSI don't match - just tap it away
[LG V30 Guides, News, & Discussion] Ainz_Ooal_Gown:
Thank you. I'm gonna try the android P thing via GSI
[LG V30 Guides, News, & Discussion] :
Does this method work for V30+ (128GB)
[LG V30 Guides, News, & Discussion] masterkairo:
Guys, do i need to flash Treble TWRP first before proceed? or normal one can do also?
[LG V30 Guides, News, & Discussion] Ainz_Ooal_Gown:
yes
[LG V30 Guides, News, & Discussion] opoeta:
Good morning, my device stuck on twrp, and dont boot on dlownload mode, any sugestions ?
[LG V30 Guides, News, & Discussion] Deandre7452:
Somebody need to do a video on this because I wanna do this myself but don't wanna mess up my device so I can really understand how to get treble on my V30+ in that's a help for others to
[LG V30 Guides, News, & Discussion] lowkeyst4tus:
No video need.. Just read instructions.. It's universal, arm & arm64.. I struggled with this to and can't leave y'all hanging.. You still have to use op instructions for backup and restore.. Save them.. I also recommend practicing the option method.. He did it this way for a reason.. Down the road it might be needed to understand other issues.. The only reason I do it this way is because it doesn't need a PC flash in twrp to add and remove vendor partition.. There is a hiccup with the zip.. The option method doesn't play well with h932.. Nor does the fixes.. Only cause the option method uses system to repartition.. It will give the same errors if you pick repartition system.. I repartition my data and it worked perfectly.. https://xdaforums.com/axon-7/development/tool-party-v0-1-vendor-partition-t3831517
[LG V30 Guides, News, & Discussion] Deandre7452:
Thanks will try this zip out to see if I can get it working and I'm on US998
[LG V30 Guides, News, & Discussion] FcBayernMinga:
Please give us an update, when the ZIP worked for you!

I will try it on my H930 then.
[LG V30 Guides, News, & Discussion] FcBayernMinga:
I tried the zip with normal twrp and it worked!

Used my h930.

[MENTION=3475147]SGCMarkus[/MENTION] please add that Script to this thread, as it is so much easier to execute!

https://xdaforums.com/axon-7/development/tool-party-v0-1-vendor-partition-t3831517
[LG V30 Guides, News, & Discussion] Deandre7452:
Ok idk what I did but I can't flash a zip file anyways coming from Du rom 9.0 zip from the V30 thread then flash the zip here https://forum.xda developers.com/axo...ition-t3831517 went to normal twrp to continue the zip press up to get the vendor either 500mb or 800mb I choose 800mb so idk what I'm doing wrong I don't get this so like I say I can't flash zip file yeah need help
[LG V30 Guides, News, & Discussion] lowkeyst4tus:
The location is important.. I'm hoping someone can edit the options.. Twrp needs vendor to be in a specific location or you have to start over.. I played with to many of them yesterday and got a brick.. I can make the qpst files but I'm stuck on the part where I need Linux to use " cat" utility to merge the primaryGPT.bin ( 7 of them, from 0 to 6).. I'm a windows user and hate Linux for this reason.. If I can find someone on Linux to merge them with cat utility I can finish making msimage.mbn, etc..
[LG V30 Guides, News, & Discussion] Deandre7452:
Yeah me to I'ma have to go back to stock I think then flash twrp again or just go flash a gsi rom in see will that work before I go back to stock I don't have enough time to do nothing

Idk gsi not working at all I just gotta sit at stock into I get help with this are somebody will do a video for better understanding because I'm not getting it at all how to do this so I'ma go back to stock in get root what I know how to do
[LG V30 Guides, News, & Discussion] wireeater:
So can anyone help me with this one?

I was trying to create the partition for the H932. The /system option just was not working for the Lineage TREBLE install so I selected the option to use the /data to create the partition. After creating it and loading the ROM it started to boot straight into TWRP. I have the dual TWRP on my phone (download mode/recovery). I also had a TWRP backup. I ran that and it still boots into TWRP.

I would say it's almost like it's not

"Installing zip file '/external_sd/Party_v0.5_ARM_20180831.zip'

Checking for Digest file...

Skipping Digest check: no Digest file found

I:Update binary zip

Verifying package compatibility...

Package doesn't contain compatibility.zip entry

I:Zip does not contain SELinux file_contexts file in its root.

I:Legacy property environment not used in updater.

__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

Extracting tool...

Archive: /external_sd/Party_v0.5_ARM_20180831.zip

inflating: e2fsck

inflating: keycheck

creating: META-INF/

creating: META-INF/com/

creating: META-INF/com/google/

creating: META-INF/com/google/android/

inflating: META-INF/com/google/android/update-binary

inflating: META-INF/com/google/android/updater-script

inflating: mke2fs

inflating: README.md

inflating: resize2fs

inflating: sgdisk

#########################################

# #

# - P A R T Y - #

# #

# The Android Partition Treblerizer #

# #

#########################################

# #

# v0.5 (c) Oki @ XDA 2018-08-31 #

# #

#########################################

This tool creates or removes the vendor

partition taking space from system or

userdata partitions. This way, developers

will be able to create Treble ROMs for

legacy devices. and users can switch back

and forth from Non Treble to Treble ROMs.

Press Vol Up to continue...

CURRENT CONFIGURATION:

SYSTEM size: 6.16 GB

DATA size: 51.49 GB

VENDOR SIZE: 800 MB

- Vendor isn't next to system or data partitions.

Partition table structure not compatible with

this program.

No changes were applied to the partition table.

I:Updater process ended with RC=0"
[LG V30 Guides, News, & Discussion] FcBayernMinga:
I think I have read somewhere that the standard vendor size is 512 MB not 800 MB! Why did you choose 800 ?
[LG V30 Guides, News, & Discussion] jaysonic88:
Hello. I have a H932 and am (was) considering using this. I did see from a search on the thread at least one H932 user had issues though it may have been by deviating from outlined options (800MB vendor rather than 512MB). Would you consider this safe for H932 following the OP instructions exactly?
[LG V30 Guides, News, & Discussion] seadersn:
bravery brought in, done :) thx!
[LG V30 Guides, News, & Discussion] zepvalue:
US998 Testing

Thanks for the awesome work @ SGCMarkus

I am trying to install it on my Lg v30 US998 flashed with US99820b_03_0524 Oreo (Used to unlock bootloader) at the moment I keep having error 7 while trying to install your ROM.

I followed every step and this is my output from your script:

/vendor missing
*********Resize /system to 1569792 = 1682309 - 112518 + 1 (inclusize) = 1569792
To really repartition, copy the following commands, and execute them
e2fsck -f /dev/block/bootdevice/by-name/system
resize2fs /dev/block/bootdevice/by-name/system 1569792

Setting name!
partNum is 21
REALLY setting name!
Setting name!
partNum is 25
REALLY setting name!
Disk /dev/block/sda: 15525888 sectors, 59.2 GiB
Logical sector size: 4096 bytes
Disk identifier (GUID): 98101B32-BBE2-4BF2-A06E-2BB33D000C20
Partition table holds up to 32 entries
First usable sector is 6, last usable sector is 15525882
Partitions will be aligned on 2-sector boundaries
Total free space is 0 sectors (0 bytes)

Number Start (sector) End (sector) Size Code Name
1 6 12293 48.0 MiB FFFF laf
2 12294 24581 48.0 MiB FFFF lafbak
3 24582 32773 32.0 MiB FFFF mpt
4 32774 35333 10.0 MiB FFFF drm
5 35334 36869 6.0 MiB FFFF sns
6 36870 37125 1024.0 KiB FFFF misc
7 37126 45317 32.0 MiB FFFF ftm
8 45318 49413 16.0 MiB 0700 operatorlogging
9 49414 51461 8.0 MiB 0700 eri
10 51462 61701 40.0 MiB 0700 carrier
11 61702 78597 66.0 MiB FFFF factory
12 78598 78725 512.0 KiB FFFF encrypt
13 78726 78853 512.0 KiB FFFF eksst
14 78854 78981 512.0 KiB FFFF rct
15 78982 79109 512.0 KiB FFFF ssd
16 79110 79237 512.0 KiB FFFF keystore
17 79238 95621 64.0 MiB FFFF persdata
18 95622 103813 32.0 MiB FFFF persist
19 103814 105861 8.0 MiB FFFF srtc
20 105862 112005 24.0 MiB FFFF qni
21 112006 112517 2.0 MiB FFFF pstore
22 112518 1682309 6.0 GiB 8300 system
23 1813382 2343813 2.0 GiB FFFF cache
24 2343814 15525881 50.3 GiB FFFF userdata
25 15525882 15525882 4.0 KiB FFFF grow
26 1682310 1813381 512.0 MiB 8300 vendor
sgdisk --pretend --delete=22 --new=22:112518:1682309 --change-name=22:system --new=26:1682310:1813381 --change-name=26:vendor --print /dev/block/sda
This will format system and vendor again, so it can be used
make_ext4fs /dev/block/sda22
make_ext4fs /dev/block/sda26

I ran it twice since I saw that you have a check in case vendor is already there so it wouldn't be a problem (great code style!)

It seems that the vendor folder is successfully created

26 1682310 1813381 512.0 MiB 8300 vendor

but when I look at the properties of the vendor it looks like it doesn't really have any size. So if I ran the script again it actually shows that there is no vendor partition...

I attached a couple of screenshots in case somebody could help

hxxps://imgur.com/a/b8O4CVf
[LG V30 Guides, News, & Discussion] SiphoMandle:
Yes I had similar issues. I think it's normal for everyone. Just run those commands a few times. Also after running the commands. Reboot to recovery. Go to mount, and make sure system and vendor are mounted if there's an option to do so. Then install the trebilised TWRP zip. Reboot to recovery. Install lineage trebilised.