yashsingh1/xdaforums huggingface dataset:
[G2 General] Backfisch:
Hello everybody

first of all I ll thank you for your guide Resizing LG G2 partition size.

But no I have problems with installing a new rom. Everytime I enter twrp I get the message "Can't mount /system". So its impossible for me to install a new rom.

All partitions seems to be fine. gdisk works perfect without any errors.

My partition table looks like:

30 819200 3686401 1.4 GiB 0700 system
31 3686402 4014083 160.0 MiB 0700 cache
34 4014084 4034565 10.0 MiB 0700 cust
35 4034566 30777310 12.8 GiB 0700 userdata

If someone have any idea how I can solve this problem?

Thanks

Chris
[G2 General] blackmatrix64:
I am thinking to try this tool, but I would like to know if flashing kdz will work in case I screw things up, or am I risking to permanently brick the phone?
[G2 General] Backfisch:
Okay, going back to stock partitions will fix my problem and my system partition is again 2.7 GB :(

With the customised partitions i was unable to install neither Resurrection Remix Rom nor Google Edition 1.5. Both return an error in twrp.
[G2 General] blackmatrix64:
I have the same problem. Did you fix it by any chance?
[G2 General] Backfisch:
Yes, going back to the stock values of the partition using the gdisk again.

Its also import to make sure the partition format works correct. Better format twice....
[G2 General] blackmatrix64:
Okay, the fix is that you have to restore TWRP backup, in my case CM13 booted all good. But now I have a different problem, the MTP connection is really unstable, disconnects and reconnects for no reason. Same problem using twrp mtp or cm mtp. Tried two different cables, two different pc, and resized the partitions twice using different values. Still no luck. Anyone had any similar experience?

EDIT: Seems my charging port is failing. Many cables have hard time being stable, but some of them work better.
[G2 General] pipyakas:
Back when I tried to resize the /system partition, all non-lg rom doesnt install because of that error, and they are the ones that has the most potential of freeing some space

you can only get some space from /cache and other partitions without getting errors
[G2 General] blackmatrix64:
I have gained 2 Gb extra space on the internal memory, and it works great so far. The only problem is that flashing roms from twrp returns the error /system can not be mounted, and you have to install the rom by restoring twrp backups.
[G2 General] Backfisch:
Am I right in thinking that you cant install an rom update with modified partitions by flashing it in twrp?

If restoring my backup is the only way to install my rom, I will delete some music and pictures on the userdata partition...
[G2 General] GodKiller_222:
You can install roms with "system" folder and files in it, on modified partitions (if you have enough space in /system, of course).

But you won't be able to install CyanogenMod-based roms with partition image in them (system.img, system.bin, etc.)
[G2 General] SantoSubito:
I played with this a bit and something went wrong :o Now i can't flash any os neither TOT or KDZ. I dismantled my phone to enter 9006 mode and recover it from there. But with no success :c What should i do now? I have my stock values of 30f saved, but after flashing kdz and tot i have stock recovery. It doesn't have adb suppor so i can't start gdisk operation. And i can't push any rom or recovery by sideload. When recovery starts I have list of errors. It can't mount system, data etc. I think I bricked it quite well xd
[G2 General] blackmatrix64:
Did you fix it yet? Does download mode work? Why didn't work flashing kdz in the first place?
[G2 General] SantoSubito:
Yes it does. After flashing kdz phone enters recovery and I have list of errors. And when i tried to flash tot i have error something with laf partition and gpt. Yesterday i tried to recover it from 9008 but I'm also getting error :c
[G2 General] GodKiller_222:
Try to flash TOT-firmware with modded dll (bypass gpt-error). One of this should do the trick.
[G2 General] SantoSubito:
Yeah it worked. But not in 100%. When its 94% my phone reboots and LG Tool shows:

...

CACHE

CACHE

CUST

Wiating for the device 120s

then device reboots and get bootloop

BoardDiag have this wierd dload error and also i cant do nothing with this tool
[G2 General] GodKiller_222:
TOT-flashing returns modded partitions to there default sizes and order. Now you just need to flash kdz\tot that brings your phone to life. For example, my D802 only accepts Indian TOT firmware - most of other TOTs bootloop him (after hard-brick recovery, as I had dozens of them allready with my partitions and coding experiments) and there are some other exeptions (locked bootloader gives us no reasons, why). When it runs - you are free to install everything you want and make experiments again))
[G2 General] matteo0026:
Hi guys, i tried to repartition my g2 with parted, but now i can't flash roms because of system.img file dimension... i resized system to 1000 mb and flashing aicp 12.1 it tell me E1001: can't update system image. I used parted, not this method because this i don't understand, too because the example was made with 32 gb g2... now i tried to flash tot 10b, but it tell me that system is repartitioned and LAF retrieveGPT() failed. I tried to go to recovery, but after white factory reset screen it goes to download mode. So now how i can do to return back or anyway flash a firmware?
[G2 General] SantoSubito:
You are in simmilar situation as I am. Try flashing TOT with dll from GodKiller(previous page). In my case it worked. But i'm getting error when flashing CUST partition :c I'm still searching for the solution. Where can i find more types of tot firmware? With these from storagecow I'm getting error :c
[G2 General] matteo0026:
Ok i resolved flashing tot of storagecow and the dll LGUP_8974.dll of the modded pack of dll files ... The problem was the dll file... Boh... so now i upgrade to lp and i return back to modding...

The problem that remains that i don't understand how to use this guide in 16 gb version
[G2 General] GodKiller_222:
It's weird, on D802 we don't even need /cust partition. It should exists, but can be small and has no files at all. What is your phone model?

D802 16Gb example:

30 800000 4155445 1.6 GiB 0700 system
31 4155446 4220983 32 MiB 0700 cache
32 ---- ---- deleted 0700 tombstones
33 ---- ---- deleted 0700 spare
34 4220984 4223033 1 MiB 0700 cust
35 4223034 30777310 12,6 GiB 0700 userdata
36 ---- ---- deleted 0700 grow

It's not as hard, as it looks. Just recalculate partitions begin-end values in sectors and place them one after another. 1kb = 2 sectors. 1Mb=2*1024 sectors. 1Gb=2*1024*1024 sectors.
[G2 General] matteo0026:
Ok thanks, but i can't do this on 5.0+ roms because the new format, system.new.dat, has in BoardConfig specified dimension for make system.img that be everytime of 2.7 gb and you can't flash it...
[G2 General] SantoSubito:
Finally my phone works! :D I even really don't know what happend but today it was even not booting into download mode. I thought i did something wrong with mobo (in hardware way) because it smells wierd. But somehow my phone got into 9008 and finally BoardDiag worked. I flashed PrimimaryGPT and it rebooted! I'm still facing problems like missing download mode, and broken power button (because of all this combinations with buttons and capacitors), but at least I have recovery and almost completely working phone :D Thanks for support!
[G2 General] pipyakas:
Actually I was tinkering with the /system size and found out that setting it to 2600mb would work with all cm/aosp rom

The amount of space saved is not as much but at least everything work
[G2 General] blackmatrix64:
Believe it or not, whenever I flash a new custom ROM, I use this guide to restore my original partitions, and then after I install the new ROM, I reuse this guide to expand partitions again. For us 16gb this thread has been a huge help. Thank you!
[G2 General] matteo0026:
Ok, I tried to do the guide using gdisk, but ROMs won't flash for system.new.dat file that expects that /system will be 2.7 gb and not another value. So I can try to extract it, edit a little updater-script and trying another time! I'll edit you!

Edit: for now I only backed to standard size of /system, but I changed dimension of /cache to 110 MB and removed tombstones, spare and grow partitions, earning at least 1 GB in userdata partition.
[G2 General] SMMS:
LG G2 (D802) Don't BootUP

Hi

Sorry for poor English

I'm Re-partition my phone (D802) with this method in TWRP (with gdisk)

Thats worked .... :cowboy:

After all the stuff was done

i'm flashing custom rom (AOSPExtended) and GAPPS and reboot phone to boot up new rom

unfortunately didn't boot anything .... Only LG logo appeared :(

I did not have access to the recovery (TWRP) completely (even hardware keys method do nothing - for bring me back into TWRP)

I didn't know what to do :confused:

so, I tried to install Stock Rom (with LGFlashTool v1.8 and TOT File)

Then I got this error:

[15:23: 1] ## [ERROR] : Partition Change system Partition[15:23: 1] ERROR: system Partition was Changed.

[15:23: 1] LAF retrieveGPT() failed.

:eek:

then, I tried to install Stock Rom (with LG Flash Tool 2014 and KDZ(Android 5.0.2) File)

It was successfully installed

but didn't boot and Notification light blinks (even after 20 minutes)

What should I do? :confused:

no custom recovery (any method to install TWRP with this condition)

no fastboot (any method for boot into fastboot - Vol+ and Power button or Vol+ and plug usb don't worked - I tested everything)

i can only enter to Download Mode

Is there a software method?

Or only the hardware method can solve it? (please tell me if hardware method can solve it)

p.s. : i replace eMMC on this phone in repair shop before but i don't have any problem with that till now

Plz Help

Thanks
[G2 General] jututt:
Ok, i successfully freed up some space by moving /cache and /cust into /grow after /userdata.

Deleted /tombstone and /spare, created a new 740 mb /vis partition mounted via an init.d script

here follows my df output

Filesystem Size Used Free Blksize
/dev 928.34M 132.00K 928.21M 4096
/sys/fs/cgroup 928.34M 12.00K 928.33M 4096
/storage 928.34M 110.41M 817.93M 4096
/mnt/shell 928.34M 0.00K 928.34M 4096
/mnt/asec 928.34M 0.00K 928.34M 4096
/mnt/obb 928.34M 0.00K 928.34M 4096
/system 2.66G 1.28G 1.38G 4096
/data 10.64G 2.73G 7.91G 4096
/sns 7.86M 4.06M 3.80M 4096
/persist-lg 7.86M 4.30M 3.55M 4096
/mpt 31.48M 4.64M 26.84M 4096
/cache 15.73M 56.00K 15.68M 4096
/persist 31.48M 4.08M 27.41M 4096
/firmware 63.95M 52.36M 11.59M 16384
/mnt/shell/emulated 10.64G 2.73G 7.91G 4096
/st.../em.../legacy 10.64G 2.73G 7.91G 4096
/mnt/ntfs 928.34M 0.00K 928.34M 4096
/vis 740.16M 372.92M 367.23M 4096

as you can see there are lot of 928 megs mounting points (where I managed to put chrome and others cache via symlink), tmpfs partitions they load, how can I reduce those 928 to let's say 200 megs?

---------- Post added at 10:38 AM ---------- Previous post was at 10:19 AM ----------

Ok, they are tmpfs, half of RAM size, sort of RAMdisk, leave those alone
[Android Auto General] TransAmMan:
This is sort of a dumb questions but is there any preferred order when using Android Auto to turn the car radio off? What I mean is should I unplug the USB from my phone first when Android Auto is active, or should I shut the car down (radio turns off), then unplug my phone, or does it not matter?

It took a while to get my Android Auto to work, I just kept trying and it looks pretty cool. I'm using a AVIC-8100NEX with a Sony Xperia Z3 compact unlocked running 5.0.2. The only bug I've had is for some reason, my phone lost the bluetooth pairing with my radio after the 3rd time I used Android Auto. I never had this problem before with this phone or radio during normal use. I was curious if it was the way I shut it off.

Thanks for any help

Jason
[Android Auto General] Solutions Etcetera:
For me, it seems best to turn off the car then unplug the phone.

But here, it is much more important how you connect than disconnect. If I turn on bluetooth on the phone, start the car and wait for bluetooth to connect, and then plug it in, everything works fine. But if the phone is plugged in before the NEX is on, it will create a new pairing in favor of the old one. And sometimes it will delete the pairing entirely.

Weird.
[Android Auto General] mikereidis:
You didn't mention a reason, but I think safety is a valid reason to turn car off first.

Once the car is safely parked, and the engine (or hybrid or EV ECU) is safely off, THEN you can pick up the phone and unplug it.

This order should also be the most provably legal method in the many locales where phone use/distracted driving laws are active.

This order could also be advantageous for minimizing power spikes and tiny little sparks on the power connectors.

Logically, with all software working as it should, there should be no software preference. It's a disconnection to the still running phone either way. I've noted no difference except that Android Auto might run a little longer before it crashes itself to sleep or otherwise terminates.

Android Auto supports a "Byebye" request packet and a response packet. Shutting the headunit down gives it an extra second to do cleanups like this.

All of this seems to support "Power off car or HU, then unplug" as a good habit.

But if something crashes (HU or AA software), or you want to switch phones while "hot" (which nobody has ever mentioned that I've read) it might be less distracting to yank and replug, which of course should only be done when it's safe to do so.
[Android Auto General] mrnmukkas:
Wow, I've been searching everywhere for someone with the same issue as me and tried figuring out why my phone keeps (intermittently) forgetting my car as a bluetooth device after I've connected it to Android Auto. I will be testing out your suggestion, thanks beforehand though, I never would've guessed it had to do with the order you connect it in, rather than disconnect.
[Android Auto General] Solutions Etcetera:
My comments were based on using AA with a Moto X. Now that a Nexus 6P is my daily driver, I just plug it in, make sure it is unlocked, and start the engine. I don't even turn BT on anymore as AA does that automatically.

No issues this way in over a week. Nice to be Nexusing again!
[Android Auto General] mrnmukkas:
Odd, I've been having these issues first with my Nexus 6 and now Nexus 6P. It just sometimes removes my car from the saved bluetooth devices list and the next time I get in the car it demands to be paired again. Anyway, I'll try your solution and report back.
[Android Auto General] mrnmukkas:
Alright, so I tried letting the bluetooth connect and then plugged in the cable, unfortunately that still made my phone forget about the car as soon as I disconnected it.

However, your last message got me thinking, maybe I'm overcomplicating this. I've noticed that the phone indeed does get connected to bluetooth, regardless of whether I pair it if/when it prompts me or not, Android Auto does seem to handle the pairing by itself.

I've only once noticed that the phone actually failed connecting and that was with my Nexus 6 which always felt like it had a wonky bluetooth. That time I couldn't place a call with the car handsfree, or even start the "phone app" on the Auto screen. So far the phone app has never refused to work on my Nexus 6P, regardless of if I skipped the pairing request.

So the best method I've found is to plug the phone to the USB before starting the car, this way it doesn't even prompt me to make a bluetooth connection, it just starts Android Auto right away and does the pairing automatically.

The only nuisance with this solution is that I get a new Smart Lock notification every time the phone connects, but I guess I can live with that (though it's not very elegant).
[Android Auto General] Solutions Etcetera:
Yeah, I've seen that with all my phones. Be nice to turn that off but haven't found a way short of completely turning off smartlock.
[Android Auto General] BPryde:
Would this imply that you are alone? Here is the reason for my question:

Pull into the train station, Wife will be driving the rest of the way to work. I unplug my phone because i take it with me. HU goes back to Main Menu, she plugs her phone in and says "Play Music" ,she then drives to work listening to her own music. I dont think using AA should force us to power off the car before unplugging. We do this scenario everyday and have never had an issue. Just wanted to throw that into the conversation.
[Android Auto General] mikereidis:
In the end, I don't think it's a big deal to worry about order, unless one method crashes or has other bad results.

The reasonings I gave are IMO rather tiny, and "split some hairs", just to come down in slight favor of one order over another.

Do whatever works for you and save your worry for the bigger issues in life...

New hybrid or electric drivers may ask "How do I drive it". Answer: just like any other car or however suits you.
[Android Auto General] Insertnamehere12:
I have had the opposite experience in my 2016 VW gti. I have to unplug before shutting the car off.

With 3 different HTC(m9, a9, 10) phones, and the galaxy s7, if I turn the car off before unplugging I will have to pair the phone again. AA will auto pair it, but I still have to give the car message access and dismiss the new smart lock notification.
[Android Auto General] Wilbour:
Old but relevant thread

I am using a Samsung A8 with a 2019 Subaru HU. I too have been having success with unplugging the USB cable first before turning off the radio/engine. Without power to the USB port as on turning off the engine, it seems to mess with the handshake randomly. For now, every time I stop and park I pull the cord first. Seems to better handle the disconnect better, but time will tell.
[Android Auto General] fadinizjr:
I rarely do this because I am lazy. But for me the best way to disconnect is to pull the notification that is telling me that android auto is connect to my phone and then touching the option to disconnect it. Sometimes when i simply disconnect the USB the android auto app on my phone complains about a connection error code xxx (I forgot the exact code)
[Nexus 5 Q&A, Help & Troubleshooting] jb91:
How can you update a ROM (cyanogen in this example) on an encrypted device, using CWM? I know that OTA is not possible when it's encrypted. But can you even create nandroid backups of encrypted devices, and restore these encrypted backups after flashing the updated ROM version? I'm totally lost how to update the ROM without losing all my data.
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
I'm not sure cwm supports encrypted devices. Use twrp. And you can create nandroids of encrypted devices using twrp.
[Nexus 5 Q&A, Help & Troubleshooting] jb91:
The problem is, i can't use TWRP because a part of my screen doesn't respond. Is there no way to create and restore nandroid backups of encrypted data on CWM?
[Nexus 5 Q&A, Help & Troubleshooting] 31ken31:
I really dont think so
[Framaroot] mithun200020012003:
I successfully rooted my Infocus M2 but SuperSU updated failed. Pls help.

I am running Android 4.4.2 version.

Regards...
[Framaroot] rakhman:
Framaroot
[XDA Assist] Zigtech:
I bought a samsung tab4 10.1 t537a it's through att. I was wondering if I could flash t530nu lollipop on it due to the fact I do t use the sim at all ?
[XDA Assist] Razvan:
Hi there,

There is some Lollipop ROM's but all is unofficial. Take a look here:

Galaxy Tab 4 Android Development

For any other questions please ask directly here: Galaxy Tab 4 Q&A, Help & Troubleshooting

Good luck
[XDA Assist] Zigtech:
So if I found a rom for a 530nu could I install it or would I brick my device? It easier to find one for a 530nu than it is for a 537a
[XDA Assist] Razvan:
Use link I gave you above and ask there for an relevant answer.

Good luck
[Nexus 4 Q&A, Help & Troubleshooting] kuzimoto:
Hi xda, I can not for the life of me figure out why I can't get an OTG enabled kernel to work properly on my N4. On every single kernel I've tried where OTG is working, the WiFi appears permanently disabled. I've tried many different kernels. To list a few....

Matr1x-cfs_v11.5.zip

Matr1x-cfs_v14.5.zip

franco.kernel-SaberMod-r213.2.zip

franco.Kernel-SaberMod-r213.zip

ziddey-otg.fk-r197.zip

ziddey-otg.aosp-r6.zip

ziddey-otg.fk-r199-CM.zip

ziddey-otg.fk-r199.zip

ziddey-otg.aosp-r7.zip

hellscore_b45_USB-OTG_jsutvarshney.zip

fk-r206-USB-OTG_justvarshney.zip

None of those work 100%. The best one was hellscore because I also had the USB options show up under storage, and was able to format the USB drive and everything. But still no WiFi....

I'm using SlimKat V9. Android 4.4.4.

My process for testing all of these is as follows:

1. Flash .zip

2. Wipe Cache/Dalvik

3. Reboot to system

4. Test to see if OTG/WiFi work

5. Upon failure reboot to recovery

6. restore my initial backup of boot/system

7. Goto step 1 again... Rinse/repeat.

Is that flawed? Is there another method I should try, or have I somehow been using all the wrong kernels?
[Nexus 4 Q&A, Help & Troubleshooting] kuzimoto:
bump as no response for a few days.
[ONE Q&A, Help & Troubleshooting] Ronii10:
Hi guys i'm in a need of a new phone I and want to buy the OPO but I have heard many bad things about this device, all the bugs, yellow screen etc so should I buy this phone or not? What phone would you recommend? Thanks! :)
[ONE Q&A, Help & Troubleshooting] DemonPhoenix:
Its a great phone overall, The price for it right now is great for the phone. Its the cheapest thing for the specs that you get. Tho its an old 801 Snapdragon Chip, it gets the work done even by today's standards.

There has been bugs but those has been gone by now.

The Yellow tint happens to people once in a while now but mostly can be solved by colors or some fixes by users.

The Touchscreen inresponsivesness has now been solved with a new firmware that fixes that and its really great now.

The bugs are still here but come on dude. Its Lolipop, all the bugs that are present here are usually present everywhere else since its lolipop.

Overall, yes i do recommend this phone only if ur willing to live with the bugs and slowly let them be squashed by Devs, CM, and time
[ONE Q&A, Help & Troubleshooting] Ronii10:
Thank you for the answer I found one bug that that still are unresolved the late calls issue I live in Sweden and I use a carrier called Comviq, many people have reported that they can't recive calls and when they reboot their devices they get a ton of missed calls
[ONE Q&A, Help & Troubleshooting] ambervals6:
No. Too old and outdated now. Get something better.

Sent from my SM-G920T
[ONE Q&A, Help & Troubleshooting] DemonPhoenix:
This is more on the CM bug sides and is currently being fixed. Some of the issues go slowly by time so yeah.

---------- Post added at 11:36 PM ---------- Previous post was at 11:33 PM ----------

The One Plus One is not old nor outdated. Its still a great phone for the price. Not everyone goes mainstream and buys the LG G4 or Galaxy S6/S6 Edge. I would love to buy them cause they are great phones but hey if ur talking about Specs, its something we lose but if you're gonna talk price, the OPO wins all the mainstreams by a huge mile.
[ONE Q&A, Help & Troubleshooting] davebugyi:
Indeed, the 801 and 3 GB RAM is outdated and even the calculator app is lagging. Also the screen is 1080p only which is soooo 2010. /sarcasm
[ONE Q&A, Help & Troubleshooting] Ronii10:
This isn't a CM bug maybe a lollipop bug, people have tried with other roms and they still receive late calls