yashsingh1/xdaforums huggingface dataset:
[LG Optimus 4X HD] b886b:
[MENTION=5799877]csk1jw[/MENTION], thanks for the new build. Do u mind sharing with us if u are on ext4 or f2fs?????
[LG Optimus 4X HD] csk1jw:
I have tried both, but currently on P880 I am with:

system - ext4
data - f2fs
cache - ext4

Well, F2FS Moto and upstream kernel do support FBE. However, I didn't port FBE over to P880 due to the poor IOs performance in pre-2013 devices.

On benchmarks, F2FS has shown some advantages over EXT4 but in real world, they are very close. The mount options matter a lot for both file systems. EXT4 can be tweaked to perform close to F2FS level by taking the risk of data integrity. Perhaps improvements in HW controllers would have also closed the gap between both file systems. A lot of academic papers on F2FS were written in the era of EMMC 4.41 or 4.5.

For my own assessment, I think F2FS is a more advanced file system and has better caching mechanism.
[LG Optimus 4X HD] Phil_Smith:
Flashed latest build (20170114).

Installation was no problem with f2fs-twrp-2.7.1.

I was able to flash ROM, Gapps and SuperSu with no reboot in between while keeping cache and data in f2fs and without any twrp error message.

Let's see how it goes - seems pretty fast till now!
[LG Optimus 4X HD] oF2pks:
After reading last posts, just remind you that with tool like 3CtoolboxFree you can do many more : trim/clean

etc ; within 3C/terminal/SUticked : type "setup-recovery" then aosp6/7 reboot will get you to twrp & f2fsOK..

3C can behave intrusive, but you can use it static : greenify + autostarts

Finally remember that depending twrp_romVersion and mount/flag used for format/f2fs, can give minor changes (?) : aosp6/7 omni6/7 and cm12 are on "old" regular =1.4 ;

I:operation_start: 'Change File System'
Formatting Cache using mkfs.f2fs...

F2FS-tools: mkfs.f2fs Ver: 1.4.0 (2014-10-18) [modified by Motorola to reserve space]

Info: Trim is disabled
Info: sector size = 512
Info: total sectors = 786432 (in 512 bytes)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
"Linux version 3.1.10-CM (root@nn-pc) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Sun Jan 15 23:58:55 CET 2017"
Info: format successful
I:mkfs.f2fs -t 0 /dev/block/mmcblk0p4 process ended with RC=0
Done.
I:Recreating /cache/recovery DATA.cpp folder.

Nameless3 =1.5

Only cm13 =1.6 and cm14.1 =1.7 include more options : defrag .... https://github.com/LineageOS/android_external_f2fs-tools/commits/cm-13.0/autogen.sh

I:operation_start: 'Change File System'
Formatting Cache using mkfs.f2fs...

F2FS-tools: mkfs.f2fs Ver: 1.6.1 (2016-03-22) [modified by Motorola to reserve space]

Info: Debug level = 0
Info: Label =
Info: Segments per section = 1
Info: Sections per zone = 1
Info: Trim is disabled
Info: sector size = 512
Info: total sectors = 786432 (384 MB)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
"Linux version 3.1.10-aosp67 (root@nn-pc) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Sun Jan 15 00:32:53 CET 2017"
Info: Overprovision ratio = 10.000%
Info: Overprovision segments = 43 (GC reserved = 28)
Info: format successful
I:mkfs.f2fs -t 0 /dev/block/mmcblk0p4 process ended with RC=0
Done.
I:Recreating /cache/recovery folder.

When you format via twrp run the save_log option and check the end.

Also good news is I have new multirom to multiboot aosp7 & aosp6 cm12 cm13 lgJB without changing twrp or boot.img ; will update my thread soon.
[LG Optimus 4X HD] sourly64:
[MENTION=7489364]oF2pks[/MENTION]

Thanks for tipp to use 3CtoolboxFree :good: After installing the tool the rom works much better then before (very slow in all functions-no daily use possible):cool:
[LG Optimus 4X HD] sourly64:
Possible to get xposed ?:angel:
[LG Optimus 4X HD] mrbambocha:
1. But how do I then choose recovery at start up if i have both CWM and TWRP?

3. Whats the adb authorized for?

---------- Post added at 06:32 PM ---------- Previous post was at 06:27 PM ----------

Another newbie question (so much things to figure out how this all work together);

* After I installed the rom, do I always have to follow this root guide to get the phone rooted or is there other solutions?

* What do I need to do with the kernel? I saw something about github in the 2nd post and something here as well, but i have no idea of what to do with it or what to choose.

* i read that most people prefer Nova Launcher over Pixel launcher. What is the reason that you recommended pixel launcher over nova launcher?
[LG Optimus 4X HD] mrbambocha:
Whats the best way to batch install apks?

I found this command but dont know how to use ut / cant get it working?

for %f in (C:\your_app_path\*.apk) do adb install "%f"

Or this tool

https://xdaforums.com/showthread.php?t=1310742

Or this software

https://xdaforums.com/showthread.php?t=1531880
[LG Optimus 4X HD] mrbambocha:
Hi! Thank you very much for this new update and ROM!

This is the first time ive installed it and I think i have done something wrong because it goes really slow, and i just installed the base gapps, webview and pixel launcher. It takes about 10s for every app to start and 5s for every action. How can I troubleshoot it?
[LG Optimus 4X HD] Phil_Smith:
Not sure what you mean by either of those questions...

You can only use the recovery you flashed latest. So decide for one.

adb allows you to command your phone via a command window (e.g. cmd.exe in Windows). Or what do you mean with "authorized for"?

Nope, just flash the latest SuperSU zip file in recovery and you'll be rooted. Here it is again: (SuperSU-v2.79)

The github thing is only of interest when you're planning on building something yourself, or when wanting to get deeper into an understanding of how software is made and how / which features can be / are implemented.

Every ROM includes a kernel, so if you don't want to change it, there is no need to choose anything. (Wouldn't recommend changing the kernel of this ROM anyway, as it is the newest and probably best one for our phone).

Don't think there is two much performance difference or anything.. But if you wanna know - try them out ; )

What are you planning on doing? Why would you need to install so many apks that you needed such a script?
[LG Optimus 4X HD] mrbambocha:
Thanks Phil_Smith! That clarified a lot!

The script because I have a few downloaded apks.

Do you have any idea why its running so slow and what i can do about it?

I checked my RAM and its 55% in idle. ( I turned off all autostart programs except the most necesary)
[LG Optimus 4X HD] Salman Al-Badgail:
[MENTION=5799877]csk1jw[/MENTION] what will be yours upcoming smart phone, so that we can see your development too and we can purchase, like new device new forum & old p880 family ;)
[LG Optimus 4X HD] Phil_Smith:
I personally think that this isn't worth the trouble of getting such a script to run (if you're not really familiar with this kind of stuff).

I would suggest you install them manually at first, and then make backups in recovery, as well as backups in "titanium backup root" (check play store).

There you can to go to settings (right hardware key at the bottom of our phone) -> batch actions -> backup all user apps. Then you'll always be able to restore them with data - that is their current settings and history, etc. Of course it is best to store savings on an external sd, so you will also be able to restore everything in case you want to format all internal partitions somewhen.

55% RAM in idle seems normal to me. That sure isn't the reason for that.

But you can try to increase zram, which isn't a bad idea.

I would recommend you do a restart, as it is not uncommon that ROMs lag on their first boot.

Then you can turn off animations in developer settings to increase the general speed of opening applications.

To do this go to

"settings" -> "about phone"

and hit "build number" for 10 times or so. Now "developer options" appear as a new entry under "settings".

There set all three animations to 0x.

Please tell if that helped. Cheers!
[LG Optimus 4X HD] ze7zez:
However, the best use of the authors' links.

www.supersu.com/download

To increase the performance, it is recommended a minimum but not zero.

If possible choose a 0.4x - 0.6x.

---------- Post added at 12:36 ---------- Previous post was at 12:18 ----------

adb reboot recovery

1.

TWRP 3.0.2.0 and CM11. It works

2.

TWRP 3.0.2.0 and AOSP 601 or AOSP 711 - does not work.

If the problem is in TWRP.img the boot.img or something else?
[LG Optimus 4X HD] Phil_Smith:
Could you please explain why?

This doesn't seem to make too much sense to me. Turning animations off in any sort of system must save resources in comparison to any animations, as far as I know.

Did you try the

adb shell setup-recovery
adb reboot

?

---------- Post added at 13:25 ---------- Previous post was at 12:58 ----------

[MENTION=4810659]ze7zez[/MENTION] - You're definitely right about my SU attachment. Didn't think of that for a second.
[LG Optimus 4X HD] b886b:
Thanks for your input :good:, I am now on your marshmallow rom and that is running great, it is rock stable and the performance is great, but I am eager to further improve its performance, so I would like to have f2fs on data partition. However, I don't know which recovery can have both f2fs partition and be able to install your rom, as I knew that cwm is the recommended recovery to install AOSP roms, but at the same time f2fs is not supported in cwm.... Is there any tips or tricks to this????
[LG Optimus 4X HD] Phil_Smith:
[MENTION=4716493]laufersteppenwolf[/MENTION] 's creation.

Thread here: everything about f2fs for our device.

Unfortunately a dead download link on the page, so here you go: f2f2s twrp 2.7.1

But be aware, that you need to reboot to recovery once, after you changed data and/or cache to f2f2s and also did "format data".

As far as my experience is concerned this is the only "trick" needed.
[LG Optimus 4X HD] ze7zez:
Because this may result in incorrect display interface in some situations.

And then there is speculation on the problem instead of using.

Decreases overall performance on the line: device <-> user.

Why do it yourself problems?

0.0x is really needed only in a few cases.

Thank you. It works correctly in the AOSP 601 and AOSP 711. :good:

This question is answered [MENTION=5799877]csk1jw[/MENTION] :

adb reboot recovery not opening recovery
[LG Optimus 4X HD] Phil_Smith:
Okay, never heard of this before. Thanks for the info!
[LG Optimus 4X HD] ze7zez:
With this file, you can do it yourself also TWRP_3.0.2.0.zip or CWM_6.0.4.5.zip

Just replace recovery.img. It works. Checked.

In the evening, I'll put links.
[LG Optimus 4X HD] Phil_Smith:
Wow, that's good to know! Seems like we all stumbled around a bit long then in the f2fs thread^^.

You also checked that new 3.0.2.0. can also change file system into f2fs (and not only reads it)?
[LG Optimus 4X HD] asgz:
I need your advice about browser, currently I am using CM browser but looking for lightest one. Any suggest ?
[LG Optimus 4X HD] ze7zez:
TWRP 3.0.2.0 includes busybox v1.21.1-jb bionic (2013-07-25).

There are commands for f2fs e2fs:

e2fsck

mke2fs

resize2fs

tune2fs

I have not tried yet, because only beginning to explore the themes custom ROM for P880.

TWRP F2FS 2.7.1.0 includes busybox v1.22.1 bionic (2014-05-29).

There are commands for f2fs:

e2fsck

fibmap.f2fs

fsck.f2fs

mke2fs

mkfs.f2fs

tune2fs
[LG Optimus 4X HD] oF2pks:
f2fs sidetrack

Since I finished to re-compile/unpack more than a dozen recoveries, I can clear few things:

-

official

p880 recoveries twrp3.0.2/cwm6.0.5 do not include f2fs support

-

unmodified

p880 recoveries (from source) do not include specific p880 cold boot to recovery : always ext4

-aosp7 & omni7 are using same old f2fs than cm12 :

1.4

-"

setup-recovery

" is an arbitrary sh designation for one action/phrase to skip p880 cold boot : echo "boot-recovery" | /sbin/dd of=/dev/block/mmcblk0p5 bs=1 count=13

- [MENTION=4716493]laufersteppenwolf[/MENTION] twrp2.7.1 was compiled with an added tool

fibmap

.f2fs, probably to countercheck the specific p880 cold boot (ext4)

-all recoveries can not mount any partition if p880 specific mmcblk0p5 is not void/wiped by postrecoveryboot.sh

- [MENTION=3081601]alfsamsung[/MENTION] cm13 doesn't support f2fs for now

So once again, IMHO, Multirom Trampoline is best universal solution to specific p880 cold boot : it provides a stand by menu (linux primary kernel) where you can reboot to bootloader directly (or primary/2nd roms...), I 'm working on it to solve the miss of "warm reboot to recovery" option...

I believe that twrp' sources & missing fstab2, have nothing wrong , the origin is the non-standard (secure?) cold boot for p880: all other Tegra3 devices have hybrid ext4/f2fs OK(asusTF700 with official twrp). The best will be to find [MENTION=4716493]laufersteppenwolf[/MENTION] twrp2.7.1 repo; the worst is to use cwm editions.

Actually, [MENTION=6051920]fritzcola[/MENTION] twrp 2.8.6 is best f2fs=1.4 format solution followed by twrp2.7.1 switch; if you use my f2fsCM13(adb unauthorized) edition, format is done with modern 1.6 f2fs.

I'll have Multirom twrp3.0.0 ready soon with f2fs=1.4
[LG Optimus 4X HD] Salman Al-Badgail:
SuperSU v2.79 SR3 For MM & N (ZIP & APK) PRO Ver.

Kindly check the attachments & try, However this is working fine with CM 13, I didn't tested on N

Features

Superuser access prompt

Superuser access logging

Superuser access notifications

Per-app notification configuration

Temporary unroot

Deep process detection (no more unknowns)

Works in recovery (no more segfaulting)

Works when Android isn’t properly booted

Works with non-standard shell locations

Always runs in ghost mode

Wake on prompt

Convert to /system app

Complete unroot

Backup script to survive CyanogenMod nightlies

Icon selectable from 5 options + invisible

Theme selectable from 4 options

Launch from dialer: *#*#1234#*#* or *#*#7873778#*#* (*#*#SUPERSU#*#*)

NOTE: Not all phones take both codes. On some phones you need to use single *# instead of double *#*#
[LG Optimus 4X HD] ze7zez:
Link to remember.

Thread SuperSU on XDA from 2014-09-04.
[LG Optimus 4X HD] mrbambocha:
Thanks for the backup / restore function.

I tried to increase zram and turn off animations but still as slow. Everything lags really hard. It was the same with the previous version.

Something wrong with my phone or am i doing something wrong at the setup?

Like I said I have the base google apps and turned of al unnecessary aps autostart.
[LG Optimus 4X HD] b886b:
I personally use lightning browser, it is light and the rendering speed is good as well.
[LG Optimus 4X HD] oF2pks:
Looks you probably miss an app/permission (GoogleCalendarSync->calendar ?) somewhere ; you can track that with WakelockDetector or xda_BetterBatteryStat. Also give a try to Zipme for serial app restore.zip https://play.google.com/store/apps/details?id=zip.me&hl=en

[MENTION=5799877]csk1jw[/MENTION] , could you patch the kernel in your next release, with "gitdiffHEAD_kexeced_x3.diff" ; thus we'll be able to use aosp7 straight (regular install/update as primary) to multiboot other 2nd rom, with latest MultiROM based on official twrp latetst source_20170124 (no more error install between aosp7 and Gapps/Webview & f2fsV1.4.1)

This kexec patch is on par with official Nameless2.1 kernel from [MENTION=4716493]laufersteppenwolf[/MENTION] https://github.com/NamelessRom/android_kernel_lge_p880/commits/n-2.1/arch/arm/boot/compressed/head.S

Actually aosp7 cannot be installed as 2nd (ie without kexec) due to error 7 install. Conversely aosp6 works fine as 2nd, but needs ~15-20mn slow install (without overheat or battery drop!) and SuperSu2.78SR5+upgrade SuperSU.apk2.79.

Except a probable ../kernel/lge/x3/arch/arm/boot/compressed/Makefile.rej (already done) the patch should be flawless.

BTW, didn't find : include/linux/magic.h +(#define F2FS_SUPER_MAGIC	0xF2F52010) in your kernel f2fs patches (?).
[LG Optimus 4X HD] asgz:
When I am push the power button, camera is working, inside of settings I didn't find any option for disable it. How can I disable ?
[LG Optimus 4X HD] teyma:
Use search in settings, the option is called "Jump to Camera".
[LG Optimus 4X HD] asgz:
Thanks a lot fixed it
[LG Optimus 4X HD] dave2609:
Hey guys,

Im on december build and will flash januari build,

But is it still possible to dirty flash from december to januari build?

P.s I wont change to f2fs

Cheers
[LG Optimus 4X HD] Phil_Smith:
OP wrote in his opening post:

>Coming from the same ROM
- format /cache
- format /system
- apply ROM zip
- apply Gapps zip ...or more Gapps if using modular Gapps
- reboot

So you see - /data can stay untouched in your case

Edit: Just saw you wrote "is it still possible to dirty flash"...

What makes you believe it might not be possible anymore?
[LG Optimus 4X HD] dave2609:
Hey phil

I did think it wasnt possible anymore because of the implement of f2fs.

So I thought that i would maybe lose data.

But what are the advantages of f2fs in daily use?

Is it worth switching to f2fs?

Thnx
[LG Optimus 4X HD] Phil_Smith:
Well, what has been done lately is more a compatibility thing. You don't have to use f2fs, it is only better supported in the ROM.

Also you simply still cannot use it without explicitly flashing an f2fs compatible recovery - so no worries ;)

I did feel quite a difference changing to f2fs, so I would say - yes, it is worth switching!

Also it is fun :)

But of course when you do, you'll have to do the full wipes, so backup your data if you wanna try that out!

I personally use titanium backup root to save my apps with their settings on an external sd and also I frequently do full backups in recovery, which I save on my external sd and on my PC.

I would highly suggest you do that anyway! Experimenting with costum ROMs always holds surprises and I had a few occasions on which I couldn't do anything other than a complete wipe of everything, including data and media.
[LG Optimus 4X HD] dave2609:
Quite a difference in what?

And what recovery do you use?
[LG Optimus 4X HD] Phil_Smith:
Have the feeling that the phone generally responds faster under f2fs (might be profound due to better caching in comparison to ext4).

What definitely is profound is that you'll gain a little write speed using f2fs.

As this does not apply for read speed, it is almost always recommended to only have data and/or cache in f2fs and to leave the system partition in etx4, since it is read-only during runtime.

Here is the recovery I use:

https://xdaforums.com/optimus-4x-hd/development/recovery-custom-twrp-3-0-3-0-2016-12-16-t3533444

Please say thanks to [MENTION=7489364]oF2pks[/MENTION] if you also want to try it out.
[LG Optimus 4X HD] dave2609:
And does this recovery install android 7 without any errors or problems?
[LG Optimus 4X HD] Phil_Smith:
Can't tell that for sure, as I'm on another ROM right now and only tried out the latest 7 build with an older twrp with f2fs support (2.7.1).

But there - yes, it went through fine. Without any error or anything
[LG Optimus 4X HD] andy_96:
Please, provide complete instruction for moving to f2fs in this ROM.
[LG Optimus 4X HD] Salman Al-Badgail:
I am amazed by the speed and battery in aosp 5 build by csk1jw, using from last 15 days. [MENTION=7763089]dave2609[/MENTION] i think you should a try
[LG Optimus 4X HD] dave2609:
Is is better than aosp 7??
[LG Optimus 4X HD] Salman Al-Badgail:
That's a tough question, :D Give a try to 5 and report back asap, ;)
[LG Optimus 4X HD] dave2609:
Hey salman,

I tried aosp5, and is is fast and stable.

But aosp 7 looks nicer and performs as fast.

The only real advantage of aosp 5 is the better stability.

What are your thoughts about your experience with aosp 5.

Expecially performance and stability.

Thnx

---------- Post added at 11:32 PM ---------- Previous post was at 11:24 PM ----------

Guys,

Another question Expecially for [MENTION=5799877]csk1jw[/MENTION].

Is it able to improve stability and performance on this rom a bit more?

Because sometimes this rom is very fast. But it can be suddenly laggy for a while and after that it will get smooth again.

Hope it can:silly:
[LG Optimus 4X HD] csk1jw:
New build 20170207

New build is up.
[LG Optimus 4X HD] dave2609:
What is improved or changed?
[LG Optimus 4X HD] ze7zez:
All of you have written in the first post.
[LG Optimus 4X HD] dave2609:
Okay so only a security update?

And if so, does that change anything?

Anyway did anyone notice bugs on youtube?

Such as the statusbar and a bar below the screen with other videos displayed.

I will post screenshot later:svetius:
[LG Optimus 4X HD] Phil_Smith:
[MENTION=5799877]csk1jw[/MENTION] - that would be interesting to know, if you don't mind explaining.

I was always wondering what those cryptic update numbers meant, or what changes one could expect from them.

Thanks in advance and as usual - thanks a lot for your work on our old phone!

You're the only one left now who is still creating new ROMs! Will check out the latest build in the next days when I find the time and report a little : )
[LG Optimus 4X HD] ze7zez:
In numbers there is nothing cryptic.

Go to Codenames, Tags, and Build Numbers, then everything will be clear.

ROM is really great, as possibilities hardware P880, which is a small amount of physical memory.

Video recording is amazingly efficient.

There are really minimal delay between audio and video, so synchronization is not full, but good enough.
[LG Optimus 4X HD] raodone:
Question

Hello to the whole community.

Currently on my device I run Android 5.1.1 and I recently discovered that they already adapted the android nougat for this device, I would love to try it, but could anyone tell me what known errors you have after the last update? And if it is advisable to use this ROM? :confused:

Thanks for your reply greetings from venezuela
[LG Optimus 4X HD] ze7zez:
You you will reach the most fun and joy when you install the ROM and begin to explore its features.

Is not this great adventure? :cowboy:
[LG Optimus 4X HD] raodone:
Yes my friend

I have another question, would anyone be so kind as to explain the process of installing this ROM? And if I could pass the respective links would be even better :(

I currently have CWM 6.0.4.5 do not touch recovery
[LG Optimus 4X HD] csk1jw:
The broken AOSP components are supposed to be replaced by Google's counterparts from your GApps selection which is a very common procedure for switching to any XDA custom ROMs.
[LG Optimus 4X HD] Salman Al-Badgail:
Can you please tell me about battery???
[LG Optimus 4X HD] CrazyWinner:
Better than mm. I usually get 2 and half hours screen on
[LG Optimus 4X HD] prem911:
Thanks Phil. Yes there are 2 issues with my approach. I had chosen SU and its version was 2.4.6. Without SU, things went fine. But there was no default browser. But the webview didnot help either. Which SU version should we use?
[LG Optimus 4X HD] Phil_Smith:
So you were able to boot, but aren't rooted?

If I got that right, try SU version 2.78.:

https://www.dropbox.com/s/j0cuxk783kogioj/SuperSU-v2.78.zip?dl=0

This version explicitly is compatible with Android 7 (usually SU searches for updates automatically, but in your case it just might have not^^)

What do you mean by "there was no default browser"?

You installed a slim version of Gapps, which has no browser included, so you need to get one from Google Play Store

(or you just install Gapps Stock in the first place, as recommended in OP).

Webview is essential for getting this ROM to work the way the developer has built it, so this is a different thing and might have solved your boot problem.
[LG Optimus 4X HD] Salman Al-Badgail:
Great to hear that, I think once the crash is stopped this rom will be NO.1
[LG Optimus 4X HD] sourly64:
[MENTION=7008914]Phil_Smith[/MENTION]

Thanks for tipp to use SU 2.78 :) Have root and can work with TitaniumBackup :good:

Before do a clean install on CWM 6.0.4.4 with stock opengapps

For now it looks the rom is very fast and smooth.Have to test the next days on daily use ,but my first impression

much better than Marshmallow before

Many thanks to csk1jw for this job to emulated this rom to LG P880 :good::good::good:
[LG Optimus 4X HD] Phil_Smith:
Glad to hear everything worked out for you :)

Gesendet von meinem LG-P880 mit Tapatalk