yashsingh1/xdaforums huggingface dataset:
[Moto X Q&A] :
Please try Gsam... Even without root. Go from 100 to about 10 and post screens from it. Including kernel wakelocks and the "screen" screen. ?

Just texting, that's a lot of drain. Especially if you have those things off completely. Location especially. Is it off, or you just aren't using it to your knowledge?
[Moto X Q&A] CDubbs89:
Okay, will download it when I get a chance. Yes, location is completely off I turn it on a need basis.
[Moto X Q&A] superp32:
Is location why my wifi is using so much battery?
[Moto X Q&A] :
Could be.... But this isn't the place to tall about it... It's off topic and not related to the Op. :)

Post some screens in the Battery thread in general maybe?
[Moto X Q&A] superp32:
Actually I'm on att 4.4.4 and am having the same issues but I see what your saying. Just assumed that's why you were asking about location being on :)
[Moto X Q&A] :
Location services can be linked to all sorts of battery issues. The first step is turning it right off to see if the problems stop. Then go from there. ?
[Moto X Q&A] theBIGone:
My European Moto X also drains within 10 hours of moderate use. Also for me, the screen uses about 40% of the battery while I have almost no screen on time. could this be the Active Display feature that is draining the phone?
[Moto X Q&A] aamszia:
my phone is bricked ... anyone have AT&T 4.4.4 ?
[T-Mobile LG G3] Harmtan2:
Is there a way to hide the home touch buttons in the messaging app? I've tried covering it to a user app and that didn't work. Going to the menu just doesn't bring up messaging as an option. Any help would be appreciated. Thanks!
[Galaxy S I9000 Q&A, Help & Troubleshooting] orgasmaddictz:
Hey so my phone fell off this morning and i thought everything was alright, then i restarted it and it would only access to the CWM 6.0.4.7 recovery mode, i've been trying all things, wipes, when i hit wipe data/factory reset, it resets at the middle of the process, if i try to backup/reinstall rom from the external sdcard it fails giving me an "Status 0" error, i can only assume this is happening because of the fall...

What can i do?

Please help, really desperated
[Galaxy S I9000 Q&A, Help & Troubleshooting] orgasmaddictz:
Someone please help? it's very needed and i'm in a hurry
[Galaxy S I9000 Q&A, Help & Troubleshooting] kalpetros:
Maybe the internal SD card broke because of the fall.

If that's the case then the only thing you can do is to install a ROM in the external SD card.
[Galaxy S I9000 Q&A, Help & Troubleshooting] orgasmaddictz:
So... if that was the case, how can i fix the internal SD? Or how can i install the ROM in the external SD?

Also, the recovery menu only apperas if i have my external SD inside, if i get it out, the cellphone just gets to the Samsung Galaxy S screen...
[Galaxy S I9000 Q&A, Help & Troubleshooting] kalpetros:
Read the following:

My Android Solutions

My Android Collections

Data wipe error or Can't mount /dev/block/mmcblk0p1

Fix broken internal storage on GT-I9000M (/dev/block/mmcblk0 corrupted)
[Galaxy S I9000 Q&A, Help & Troubleshooting] fire6water:
Odin back to stock and reroot.. Hope you backed up.
[Galaxy S I9000 Q&A, Help & Troubleshooting] orgasmaddictz:
Okay guys im reading but i really don't understand, i'm a completey ignorant in this topic, i don't want to screw this but i really don't understand anything...
[Galaxy S I9000 Q&A, Help & Troubleshooting] orgasmaddictz:
Can someone help me? After spending the whole night reading i finally did it and i restored my phone back to the stock rom installing it in my external SD, i made two partitions, one of 10gb in fat 32 and the another one 4gb ext3 (used this for the system), but now i can't use the camera because the "usb storage is connected" and the external sd cannot be mounted...

why is this happening? please help!
[Galaxy S I9000 Q&A, Help & Troubleshooting] orgasmaddictz:
desperated bump
[Galaxy S I9000 Q&A, Help & Troubleshooting] orgasmaddictz:
Also, i have some backups made with the CWM recovery but i really can't advance if i don't have the sd...
[Galaxy S I9000 Q&A, Help & Troubleshooting] Gokulbalram:
You tried flashing Stock? If that doesn't work, take the device to a Samsung Service Center.
[Galaxy S I9000 Q&A, Help & Troubleshooting] orgasmaddictz:
I installed stock rom on external sd, then did this and i was and it worked, then updated to 2.3.6 and flashed CWM Recovery, after that i updated to 10.2 CM and then to 11, then i used NeatKernel for Kitkat and swtiched the external to internal and my phone is fully working now.

Thank you very much guys
[Oppo Find 7 and 7a] Entropy512:
FAQ

Q: Coldbird already had repartitioning support. Why did you create this different approach?

A: Even before he started work, I strongly recommended that he not touch the partition table of the device. It's a really bad idea and is fundamentally dangerous. It's pure luck that someone hasn't hardbricked yet. (A number of people have come close.) If you read through his thread and the ColorOS 2.0.2 thread, you'll see that the repartitioning approach fails frequently, and in multiple ways. (Missing partition contents, partition table ending early, etc. The latter is really scary, one person had the process fail at mmcblk0p19 - what if someone else's partition table write operation aborted even earlier?.) Also, nearly everyone that has implemented support for that approach has needed a separate build to support it. (Oppo is the first to manage autodetection.) I also provided him all of the reference information from Steven676's work.

LVM is far safer. The underlying partition table is not touched in any way. Instead, LVM remaps sectors on the fly so that two partitions that are not adjacent to each other on the physical storage appear as a single contiguous partition to the filesystem drivers. Linux has supported LVM for on the order of a decade, if not more. I've been using LVM on my file server since 2006. (Yes, the system is 8 years old and still working other than needing a new power supply after a thunderstorm. Nothing to do with LVM. :) ) In addition, the lvm.conf configuration used here provides protection against accidental typos causing damage. Undoing the changes is as simple as doing a wipe of /data and /sdcard from any standard recovery and can be done in seconds, not of running a special batch file that runs a bunch of fastboot commands and takes 4-5 minutes. Similarly, the LVM setup process currently described in the Omni thread involves flashing a single ZIP from recovery that takes only 10-15 seconds, and most of that process is flashing an LVM-aware recovery. (The only limitation currently is that the ZIP must be on external storage - USB OTG or MicroSD)

To put it simply, it Just Works. No need to back up a pile of partitions other than /data and /sdcard because those partitions are never touched or altered.

Q: I have a device with a ridiculously oversized /system partition, can I get some of that back for /data?

A: Yes, you can. Add the physical /system partition to the lvm.conf filters and add it to the lvpool when creating it, then create a smaller /system LV out of this big pool. (see updater.sh in device/samsung/aries-common/ of any AOSP-derivative for hints here.) Be careful though - leave enough spare space for growth (new Android versions, etc.) While it should be possible to use some of the LVM tools along with ext4 resize tools to reorganize the LVs without wiping, this is very difficult and you'll probably have to make users wipe /data if you want to alter /system.
[Oppo Find 7 and 7a] Entropy512:
*reserved 2*
[Oppo Find 7 and 7a] systop:
Nice work, I hope all the patches can be widely used on some other devices and other roms.
[Oppo Find 7 and 7a] Entropy512:
Yup. I know Andre from PA was working on it last week but I haven't heard from him lately.

My priority when I return from vacation will be fixing up the TWRP side of things. It's working for now, but the user interface on non-LVM configs is a little funky thanks to RECOVERY_SDCARD_ON_DATA being compile time. This has never been a problem before since a single TWRP binary never had to support two different configurations before. I plan on either doing a property-based approach or fstab-based like CWM. (It should be possible for someone to make a CWM build that automatically detects configuration without any modifications to CWM, based on reading the code - but I haven't tried it myself.)

Once TWRP is in better shape, I plan on doing the Find 5 and N1. These will have the challenge of not having a MicroSD slot, so I may have to change TWRP so that it use /tmp instead of /sdcard when doing "adb sideload", or at least gives the user that option.
[Oppo Find 7 and 7a] 4tune:
Good stuff :good: I don't really need it as of yet, but when my new device is provided (warranty) I will surely give this a try.
[Oppo Find 7 and 7a] tork987:
I hope ayysir will merge the LVM support very soon ^^

Find 7u PA 4.6 beta 1
[Oppo Find 7 and 7a] uppon2:
Awesome work mate. I have avoided other methods because I'm always the guy that will have a device fail at very bad timing; like during boatloader or SBL stage.

I'm really glad you have continued to work on this. I have hit thanks a few times but would also like to thank you here :)
[Oppo Find 7 and 7a] Entropy512:
He had issues with merging support, hopefully now that I've added more documentation he can try again. :)
[Oppo Find 7 and 7a] ayysir:
how are the *.std files created?

atm this is tough for me to port from omni to cm base which AOSPA Oppo trees
[Oppo Find 7 and 7a] maxwen:
the std files are also part of the device tree

https://github.com/omnirom/android_device_oppo_find7/tree/android-4.4/configs
[Oppo Find 7 and 7a] Entropy512:
For the fstabs - they are simply moves/renames of the fstab files and other storage-related items from the standard Oppo configuration (they should appear as renames/moves in the Gerrit commit...)

For the init.fs.rc file - all of the "export <blah>_STORAGE" lines from init.qcom.rc/init.find7.rc are cut out of the RC file and put into .std

Obviously, the .lvm versions of the files are the ones where the fstab has been altered to support a single data partition with emulated storage.
[Oppo Find 7 and 7a] Wendigogo:
Amazing work and amazing posts. Thanks a lot for your sharing. ?

I've got a question related to your configuration (/data and /sdcard merged) : are the LV hot-resizables?
[Oppo Find 7 and 7a] Entropy512:
In theory, you could probably use some of the ext4 resizing tools to do something like this, but I haven't looked into it as there isn't much point in the current config (since the LVM userdata volume is allocated to use all space on the volume group).

Something like that might be more useful if someone ever uses LVM to regain some of the wasted /system partition space on certain excessively bloated devices (like some GS4 units).
[Oppo Find 7 and 7a] Wendigogo:
Thanks for your answer.

Seems I misunderstood the way it's implemented here. All space is allocated to /data? So there's no more internal sdcard right?

But in that case an external sdcard is mandatory. How is it managed when there's no sdcard?

Enjoy!
[Oppo Find 7 and 7a] Entropy512:
Android has supported emulated storage (where /data/media is mapped to /sdcard with a special FUSE daemon that makes /sdcard have DOS-like permissions despite an underlying ext4 partition) since ICS. It's pretty much the standard in all new devices - the Find 7 is to my knowledge the only device launched in 2014 not to use emulated storage. Most devices in 2013 also did - Oppos were again the rare exception.

As I understand it - for some reason Chinese users prefer the legacy pre-ICS partitioning scheme. My guess is due to UMS vs. MTP - MTP is required for access to emulated storage, UMS can't be used, but a lot of older desktop OSes have issues with MTP. So Oppo finds themselves in conflict between their home market (China) and expanding in the West. That said, the Find 7 was kind of a screwup in achieving this goal, since the internal sdcard partition was ext4 which meant UMS was a no-go for it.
[Oppo Find 7 and 7a] Wendigogo:
I've got it now. Thanks for your explanations

I saw that Oppo phones didn't follow Android guidelines (yet?) by not using the emulated_storage mounting method but I didn't know why.

And your right, mtp doesn't work in Windows XP (or is hard to make working) and there's a lot of Asian people still using it. Obvious once you said it...

And that's also why only external sdcard is accessible in UMS mode in recovery.

Thanks again for your enlightenment. ?
[Oppo Find 7 and 7a] kishd:
Reading some of the comments on G+ it looks like Oppo might be using this solution for their KitKat release. I would be so pleased if they did.
[Oppo Find 7 and 7a] Wendigogo:
You could be pleased... :p
[Oppo Find 7 and 7a] kishd:
Had some problems with camera focus on earlier versions of omnirom for find 7. Now those have been addressed. I installed Omni and am on the nightlies with lvm. My find 7 and find 7a will not see another rom again.
[Oppo Find 7 and 7a] Wendigogo:
Glad to know.

So you switched to unified storage ? How did you do that ? When installing OmniRom ? Through TWRP ?

Enjoy!
[Oppo Find 7 and 7a] kishd:
Yes used lvm when I switched to o omnirom though you don't have to. Safe quick and easy process. Takes less than a second.
[Oppo Find 7 and 7a] Wendigogo:
Something asked when installing the rom or is it done by default?

Did you lost files in internal SD?
[Oppo Find 7 and 7a] farenteria:
You do it separately by flashing a file, and then rebooting recovery. Yes, it wipes your internal storage
[Oppo Find 7 and 7a] Wendigogo:
Thanks for your answer.

Could you give me a link to this file or an how-to please?
[Oppo Find 7 and 7a] farenteria:
It's in the Omni Rom thread. It's probably still one of the most thanked posts in there, so it should be easy to find
[Oppo Find 7 and 7a] Wendigogo:
Hi,

I'e got a question regarding the implementation of lvm. Maybe more than one in fact ...

Is it possible to hide the little small internal sdcard to "user" (I mean every users but system and root) ? Because it's too small to use it : lot's of apps choose it by default to store their data, the camera for photos etc. and explorer shows it while there's no interest. Or to remove it completly and bind external sdcard to it (then hiding the "real" external sdcard as it's not mandatory) ?

On the other hand I'm not so confident in external sdcard and putting all my "life" here is a little scary for me. Is it possible to reduce /data and enlarge your p... ooops enlarge /sdcard0 ? Adding 5 or 7 more GBs to /data should be far enough for a lot of us Imo.

Thanks for your appreciated work !
[Oppo Find 7 and 7a] leungclj:
I have LVM running on my find 7, but I also have a find 5 as my secondary / backup device. Will it be possible to have LVM implanted for the find 5 too?
[Oppo Find 7 and 7a] Entropy512:
I have no idea what you are talking about. There is no "little small internal sdcard". With LVM, all internal storage is merged into a single partition and /sdcard is emulated (just like on nearly every other Android device after ICS.)

Possible? Yes. Have I had the time to even start on it lately? No. Heck, in the past month, I've spent two and a half weeks out of town.
[Oppo Find 7 and 7a] Wendigogo:
I have 2 "sdcards" availables in MS Windows ES File Explorer give me the screenshot below ...

The second one is my external SDcard for sure but what is the first one ?
[Oppo Find 7 and 7a] tork987:
Your internal storage
[Oppo Find 7 and 7a] theradec:
one last check to see if I got it right

Make sure you have LVM compliant TWRP (I think 2.8.0.1 is ok)

Download setuplvm_find7_FULL_WIPE_09012014.zip (not sure if it's the latest though)

Copy LVM Ready Rom on external uSD (I think LVM will wipe the internal SD)

Recovery flash setuplvm

Reboot recovery ?

Flash rom

Reboot

Flash gapps

Also,

Entropy512 you're quite a savior for us Find7 users, so

Paypal transaction ID 7T114296PV1567627.
[Oppo Find 7 and 7a] farenteria:
Yes, and the reboot recovery is also necessary.
[Oppo Find 7 and 7a] Entropy512:
One thing to note: After flashing setuplvm, you'll have an older (but still LVM-aware) recovery and might want to reflash the latest TWRP. I need to create a new setuplvm ZIP, I'm deciding to give up on flashing an LVM-aware recovery and simply requiring TWRP 2.8.0.1 or later. I'm going to try and simplify this over the weekend.

Also, usually, you want to flash Omni (or PA) and flash gapps at the same time, THEN reboot. DU may also support LVM, gotta talk to Alex.

You are correct - setuplvm will wipe internal SD. So both setuplvm, gapps, and whatever you're flashing have to be on the external SD (it fails to reformat/wipe the internal SD if it's being flashed from the internal SD). Also, if you're already running an Omni nightly that's more recent than late August, no need to flash it. Just setuplvm (which will wipe) and reboot. :)
[Oppo Find 7 and 7a] theradec:
Thank you for the answers

I'll probably wait for your new setuplvm to jump to LVM

(I'm still on TeamEOS atm)

Still not decided between Omni and Dirty Unicorns (I think D.U. 8.0 is also LVM aware)
[Oppo Find 7 and 7a] Wendigogo:
:eek:

So it's the same partition to store photos and datas ? But I can't find /data/apps here ?
[Oppo Find 7 and 7a] theradec:
Found in Dirty Unicorns thread

Does that mean if I'm on DU 8.1 I can proceed as if I was on recent Omni build:

Just flash setuplvm, and voilà, LVM for me
[Oppo Find 7 and 7a] maxwen:
Final answer can only give DU but AFAIK yes
[Oppo Find 7 and 7a] magostinelli:
How Can I check if I'm on Lvm after the setup?

Inviato dal mio FIND7 utilizzando Tapatalk
[Oppo Find 7 and 7a] WhoIsJohnGalt1979:
Hello, a quick question based on information shared by aut0mat3d in the Oppo forum around basebands where he says ".........are the partitions i am talking about : modem: baseband and low level drivers, sbl1: Qualcomm SBL1 bootloader image and rpm: Resource and Power Manager. The android system have to communicate with this drivers which is done by propreitary binary modules - called "blobs".

If you flash or update ColorOs, these partitions would be updated in any way. Custom roms do not come with these updates, they resist on the driver-state the phone was when the custom rom was flashed. So, if you updated to a newer ColorOs you will have another base than the custom rom is made for. This can cause problems: If you have different low level drivers as the Rom depends on some functions will not wok correctly......" So if am on color os 1.2.6 i and shift to lvm based omni rom, do i have to flash the corresponding modem too? which in this case would be Omni Rom: Q_V1_P14 Modempackage_v1.2.0i_Find7a.zip. Some direction would help in understanding modems cos clearly "Baseband info shown in Device Info is no readout value, it is set by rom source."
[Oppo Find 7 and 7a] theradec:
Dang !

The LVM File I have downloaded if for Find7, not find7a

(as what the red message said when I tried to flash setuplvm_find7_FULL_WIPE_09012014.zip on my 7a

Could someonekindly direct me towards the Find7a download link (search engine is down atm, so can't look for it in Omni Thread)
[Oppo Find 7 and 7a] maxwen:
there is no diff between 7a and 7s
[Oppo Find 7 and 7a] theradec:
When I try to flash setuplvm_find7_FULL_WIPE_09012014.zip on my Find7a, I have this error message

This package is for "FIND7" devices

This is a find7a

Error executing updater binary in zip '/external_sd/Roms/LVM/setuplvm_find7_FULL_WIPE_09012014.zip

Failed

TWRP is 2.8.0.1
[Oppo Find 7 and 7a] Entropy512:
This isn't really related to LVM, but in general:

Any ColorOS 1.2.x baseband should work fine with Omni.

JB 2.x basebands may work but aren't particularly tested

The basebands/bootloader of KK seem to have compatibility issues that need to be resolved

And I really need to update my baseband packages.
[Oppo Find 7 and 7a] theradec:
Is there anything I could do to fix my Error executing updater binary ?

* Storage was not unified (Was thinking about it, but Entropy warnings in OP kinda cool me off and showed me how LVM is safer).

* Did a 4way wipe, and tried just installing lvm-> no luck.

Do I need to reverse to the Entropy512's lvm aware TWRP or is 2.8.0.1 fine ?

Can I flash Entropy512 twrp with TWRP manager or is it better to push it ?
[Oppo Find 7 and 7a] magostinelli:
Whats is the disk space after LVM?

What size has each mount point?

(Posting the result of df command must be appreciated)
[Oppo Find 7 and 7a] beton87:
From my Find7a

shell@FIND7:/ $ df
Filesystem Size Used Free Blksize
/dev 901.2M 128.0K 901.1M 4096
/sys/fs/cgroup 901.2M 12.0K 901.2M 4096
/mnt/asec 901.2M 0.0K 901.2M 4096
/mnt/obb 901.2M 0.0K 901.2M 4096
/mnt/fuse 901.2M 0.0K 901.2M 4096
/system 1.3G 671.4M 629.7M 4096
/data 12.2G 8.8G 3.4G 4096
/cache 503.6M 8.1M 495.5M 4096
/persist 4.9M 4.1M 788.0K 4096
/firmware 64.0M 54.7M 9.3M 16384
/data/qcks 20.0M 0.0K 20.0M 4096
/mnt/shell/emulated 12.2G 8.8G 3.4G 4096
/mnt/media_rw/sdcard1: Permission denied
/storage/sdcard1 59.5G 18.1G 41.3G 131072

[MENTION=591147]Entropy512[/MENTION]

I see new version of TWRP is comming. Could you post a link to latest version of LVM setup zip in this thread download section or a link to it in OP? It would be usefull to have here quick guide/link for user to setup/revert LVM configuration.
[Oppo Find 7 and 7a] magostinelli:
I've /data 2 .9G, so I dont'have LVM?
[Oppo Find 7 and 7a] Entropy512:
I'm going to try and figure out why 2.8.0.1 is problematic, although I have a guess:

There were some issues ayysir from PA had with the lvmsetup ZIP not properly extracting the LVM config file and binary from the ZIP. So it would only work if recovery had the LVM config file and ZIP.

Part of the "final" LVM support in TWRP 2.8.0.1 moved some binaries around, which may be why lvmsetup fails.

The ADB instructions in one of the commit messages linked from the OP will work. I'll try and clean things up this weekend to get rid of the lvmsetup incompatibility issues.
[Oppo Find 7 and 7a] jaxenroth:
Little help please

Was running Omni w/ unified, twrp 2.8.0.1 Sold phone and went to go back to standard partitioning, did wipe and reloaded rom now lost internal storage. Any help would be great. Thx.
[Oppo Find 7 and 7a] binaryfalcon:
deleted
[Oppo Find 7 and 7a] beton87:
[MENTION=591147]Entropy512[/MENTION]

Could write how to restore stoc partitions after LVM? I tried to flash ColorOS recovery and wipe data, but the it seems I lost internal sdcard partition. How to get back stock partitions?
[Oppo Find 7 and 7a] tork987:
Flash this -> https://docs.google.com/file/d/0BwMuJQayzBWQQ3M0SXVXdW14aDA/edit?usp=docslist_api
[Oppo Find 7 and 7a] beton87:
thanks mate, totally forgot about that one.

So I went back and through with LVM setup process. TWRP 2.8.0.1 has issues, I used twrp_lvm_09012014.img i had downloaded earlier, so I have no link. This one works with setting up partitions properly
[Oppo Find 7 and 7a] theradec:
What did you use to downgrade your TWRP from 2.8.0.1 to twrp_lvm ?

TWRP Manager ?

Flashify ?

other ?
[Oppo Find 7 and 7a] beton87:
fastboot from adb tools and usb cable

EDIT: Recovery from post: http://xdaforums.com/showpost.php?p=55187001&postcount=558
[Oppo Find 7 and 7a] Entropy512:
Hmm. That's interesting that a ColorOS factory reset doesn't format the internal SD. "stock" recoveries should wipe everything.

Another option is with any LVM-aware TWRP, esp. TWRP 2.8.0.1: If the recovery detected LVM, format the raw_sd and raw_data partitions. If the recovery did not detect LVM, just format the sdcard and data partitions.

Actually, even a non-LVM-aware TWRP can format data and sdcard. But "downgrading" back to a split partition when you're in an LVM config can be done by formatting raw_sd and raw_data and then rebooting recovery.

(raw_sd and raw_data only appear when TWRP boots and sees an LVM configuration)