[ROM] [6.0 and 5.1] nAOSProm for Xperia S

What su are you using ?

  • Superuser included into the rom

    Votes: 202 51.7%
  • SuperSu

    Votes: 174 44.5%
  • else?

    Votes: 15 3.8%

  • Total voters
    391
Search This thread

rexzone007

Member
Jul 5, 2017
6
0
I did something wrong when I tried to repartition the device. When i start the mobile I get that 27.94 of 29.72 is used and it says that the system takes 27.72 GB. I think that what I did is I deleted some partitions and then I recreated some the wrong way.
Could someone explain what the right partitions should be so I can create them correctly (if it's possible I'd prefer the commands).

PS: I tried to install nAOSP 7.x but i don't think it's any different
Thanks in advance
NT1Y5WB-GqSfrI7lcnOfTqSgqiHN4GRIULRJLmQnrtHg9wBjfOIcUz7YRLJsBJ1lhCO8AxefKHTsGAPGMZ15uDS7gXomu-KHDd9lKS2jlMmavLMd8qqn4JpqhGQzswt4YptaYWt-8-fOyYNoO2IgRkiOF9xwIVwKZgQBayK4oFmt9QWbmKDZw0792w5mDsQgw-gzEg3vst9tjzlcOhKFmbq-H1eNlQgKn8Tka2Vy9tdcdnCieGzCiOeFvfb5AlSMZVVbwYYqbtiN7Wjbh2oljVRhF841DXCL93ysBaaVDF3xJb6Z6RNh1Bmsd_EduT68WaO9aqWXpKpOizGACVGyEZeTrbulT-gMft6P5ZRxnaMnoKAhmksYU_dySFMNB_kzH8aky0q8nnwxf8Ke1Qd8As6Vw_QrckTR5DyEyV36IGm2Pt4jvDeHBhPH9DS4Jv-gXnxba9uPP09aEDHkjunJB-PangAyrOedHl3crr5DHlopC3u8J07HR0qTZ-3NIAQzl_2dUXaQhyuQN3nf7hqJppey067dBq4_1d0fVDMvFBoi_uVr0paWlf6EkwN9apiE4rVCn3BW4_hJh2IgnlsOqJSzaQsYKJN4lmbxA_lLwcjRG2ezmL7BjQZB1w=w378-h672-no


Finally after several attempts I will summarize my odyssey

First the mistakes I made and then some steps

sorry for mi english

errors y problems
1. Not use the recovery that comes in the rom, all the video tutorials that I found said to lower the twrp and had not read well the tutorial of xda for android 6.0
2. I had a serious problem, nor did flashtool work to return to stock, I had to resort to install by adb sideload but I found a page with factory roms with modifications
https://www.needrom.com/download/se-xperia-s-lt26i/
3. There I put the recovery that is from the rom

Now if steps

1. Use only this driver, there are others that appears as an msdos window and I did not work
http://adbdriver.com/downloads/
2. Just use this for adb, the Minimal ADB and Fastboot to me did not work
https://developer.android.com/studio/releases/platform-tools.html
3. Install the fastboot that comes with the rom (which I do not read well in the tutorial written by using video tutorial), the trwp of the official page for some reason does not start the commands adb shell (Already depends on each one if using flashtools or by commands, I did it for flashtools)
4.Keep in mind that sometimes the adb shell does not run, that it tries several times to make it work
5.As you enter to follow the steps of the partitions
https://forum.xda-developers.com/showpost.php?p=65233973&postcount=3797
6. I did not install it as a rom on the sdcard. I did it for adb sideload
A) they have to activate adb sideload in the recovery
B) remember to put a short name and in the same folder of the adb
C) the command is
Adb devices

To check the connection
Adb sideload (rom name) .zip

Note: do not install the gapps yet, it gave me error. Then you can install them

7. To my good start I take an hour, I do not know why but I pass
8. When it works and can install the gapps http://opengapps.org/
I suggest the micro, the lower ones did not execute me and they gave error
9.There it takes a little but not so much and ready, it's already

Note: to have patience because sometimes it does not turn out to be the first, thanks for the people that allow us to have this rom even if it is a cleaver who has his years above

Note: if anyone wants can improve my mini guide with pleasure
 
Last edited:

datakey

New member
Nov 20, 2008
3
0
I was wondering, then Android doesn't allow having an "SD card" storage partition?
If I there is a new updated ROM or switch to other ROM, I will always lose all the data?
Or I have misunderstood something?

Edited: I will try again to mix your instructions with the ones on how to partition for NooB, and flashing the Android nASOP 7.1.2. What didn't booted was installing GApps.
 
Last edited:

schumifer

Senior Member
Apr 15, 2007
106
27
Hello to all faithfull Xperia S users!
Has anyone had any chance with teamviewer quicksupport?
I get a message the the device supports addon for AOSP 1 but that should contact teamviewer for it.
And then i find out that they only support official ROMS
Any way around that?
Thanks
 

luigi0824

Senior Member
Jul 31, 2012
379
28
Santa Rosa
I know that 5.1.1 is old but I downgraded because of the sluggish performance of the 7.1.2 rom. My issue is that apps can't write on sdcard and I don't have this issue on the latest rom. How do I fix it?
 

7aras

New member
Dec 31, 2017
2
0
Do others too, feel that 7.1.2 rom feels slugish and if so, would Oreo (Go edition) be the way to go on, instead of regular Oreo?
 

mirhl

Senior Member
Oct 15, 2012
3,116
1,170
Latest 60 fps rom was mentioned just 10 posts before yours.
Don't ask question in the wrong android version threads (and that have been asked countless of times in the relevant ones anyway) and wait for new developments.

EDIT: Well, I'm the last poster.. I'll post a little fun fact.
Visit any facebook event from nightly in desktop mode, and phone will reboot.
Code:
kgsl kgsl-3d0: android.browser[28063]: gpu fault ctx 6 ts 6685 status 80010110 rb 01c8/0277 ib1 107312c4/002a ib2 104c8000/080f
kgsl kgsl-3d0: |adreno_snapshot| GPU snapshot froze 320Kb of GPU buffers
kgsl kgsl-3d0: |kgsl_device_snapshot| snapshot created at pa 61e00000 size 59960
------------[ cut here ]------------
kernel BUG at /home/builder/android/rom/naosp-6.0/kernel/msm/drivers/gpu/msm/adreno.h:784!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
CPU: 1    Not tainted  (3.4.0-oc-ga553399 #0)
PC is at adreno_reset+0xa8/0x188
LR is at dispatcher_do_fault+0xa6c/0xce8
pc : [<c03b3d3c>]    lr : [<c03a16cc>]    psr: 60000013
sp : cb4dde80  ip : 00000000  fp : d6998618
r10: 00000005  r9 : df3947a0  r8 : c0c8da44
r7 : c0c8dd18  r6 : 00000001  r5 : 00000000  r4 : c0c8d710
r3 : c0c8c988  r2 : cb4dde90  r1 : ffffffff  r0 : c0c8d710
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5787d  Table: 4d85c06a  DAC: 00000015

PC: 0xc03b3cbc:
3cbc  e59f514c e5933004 e12fff33 e3a00064 e5956000 ebf34e2d e0806006 e5943528
3cdc  e5933000 e5933000 e59310dc e3710001 0a000012 e5943110 e1a00004 e28d2004
3cfc  e5933000 e12fff33 e59d3004 e203303f e353003f 0a000003 e5953000 e0633006
3d1c  e3530000 aaffffec e5943528 e5933000 e5933000 e59310d8 e3710001 1a000000
3d3c  e7f001f2 e5943110 e1a00004 e3a02000 e5933004 e12fff33 e1a00004 ebffff6b
3d5c  e3500000 0a000017 e1a00004 e3a05000 ebfff736 e1a00004 ebfff66b e2506000
3d7c  1a000002 e3550000 1a000006 ea00000d e3a00014 e2855001 ebf37588 e3550005
3d9c  1afffff3 ea000018 e59433fc e3530003 da000004 e5940000 e1a03005 e59f1054

LR: 0xc03a164c:
164c  0a000002 e59f02c8 ebf70ba9 ea000002 e59f02bc e59f12bc ebfcee4c e5953004
166c  e1a00006 e59f12c8 e5932004 e58d2000 e595200c e58d2004 e59f2294 e5933008
168c  eb005b1d e5953004 e1a00004 e5931004 ebfffd1f e1a00004 e5951004 ebfffab5
16ac  e3a05000 e1a00008 e5845604 e584581c e5845818 eb106762 e1a00004 eb004971
16cc  e1a06000 e1a00008 eb106673 f57ff05f e1973f9f e1872f95 e3320000 1afffffb
16ec  f57ff05f e1560005 0a000000 e7f001f2 e1a00004 e1a01009 e1a0200a e1a05009
170c  ebfffd2e e1a00006 ea00003a e1a07005 e4951004 e3510000 0a000035 e3500000
172c  1a000002 e3a00001 e2811014 ebfcca8d e5151004 e3a00002 e2811014 ebfcca89

SP: 0xcb4dde00:
de00  d0e3f260 c07bbd04 58610716 00000c61 c0c002e8 c0c03620 cb4dde34 c00b0470
de20  00000000 c03b3d40 60000013 c000dcd4 00000000 c000da68 c0c8d710 ffffffff
de40  cb4dde90 c0c8c988 c0c8d710 00000000 00000001 c0c8dd18 c0c8da44 df3947a0
de60  00000005 d6998618 00000000 cb4dde80 c03a16cc c03b3d3c 60000013 ffffffff
de80  c0c8d710 d699861c c0c8d710 00000000 00000001 c03a16cc 00000006 00001a1d
dea0  80010110 000001c8 00000277 107312c4 0000002a 104c8000 0000080f cb4ddf20
dec0  00000000 c008752c 00000000 00000006 00001a1d 80010110 000001c8 00000277
dee0  107312c4 0000002a 5195645f 107312c4 80010110 10000000 000001c8 00000277

FP: 0xd6998598:
8598  656a626f 73207463 65636170 6c6c6120 7461636f 006e6f69 00000000 00000000
85b8  00000000 000003e8 42736d47 756b6361 61725470 6f70736e 622e7472 756b6361
85d8  68635370 6c756465 782e7265 d6006c6d 00000000 00000001 00000000 00000100
85f8  00000200 00000000 c0c8d710 d6f29000 00010001 00001a1d 00000000 00000000
8618  80000044 00000002 00000002 d0ea59e0 001450ca 00000000 00000001 d6998634
8638  d6998634 00000001 c0c8d710 d6f29000 00010001 00001a1f 00000000 00000000
8658  00000046 00000000 00000002 d0ea5e40 00000000 00000000 00000001 d6998674
8678  d6998674 00000001 c0c8d710 d6f29000 00010001 00001a1e 00000000 00000000

R0: 0xc0c8d690:
d690  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
d6b0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
d6d0  00000000 00000000 00000000 00000000 6c73676b 3064332d 00000000 00000000
d6f0  00000000 c0c8d710 00000000 00000000 00000000 00000000 00000000 00000000
d710  e1b86000 c095f2da 00000003 00000001 00000100 00000000 04300000 f0080000
d730  00020000 00000000 00000000 00000000 00000000 e265a000 00000000 00000000
d750  10008000 6285a000 00002000 0000000a e1b0dfe0 00000001 00000000 c0c8b9b4
d770  0000ff00 00000000 c095f473 c09a68a7 07c86590 00032f07 00000000 00000000

R2: 0xcb4dde10:
de10  c0c002e8 c0c03620 cb4dde34 c00b0470 00000000 c03b3d40 60000013 c000dcd4
de30  00000000 c000da68 c0c8d710 ffffffff cb4dde90 c0c8c988 c0c8d710 00000000
de50  00000001 c0c8dd18 c0c8da44 df3947a0 00000005 d6998618 00000000 cb4dde80
de70  c03a16cc c03b3d3c 60000013 ffffffff c0c8d710 d699861c c0c8d710 00000000
de90  00000001 c03a16cc 00000006 00001a1d 80010110 000001c8 00000277 107312c4
deb0  0000002a 104c8000 0000080f cb4ddf20 00000000 c008752c 00000000 00000006
ded0  00001a1d 80010110 000001c8 00000277 107312c4 0000002a 5195645f 107312c4
def0  80010110 10000000 000001c8 00000277 107312c4 104c8000 0000002a 0000080f

R3: 0xc0c8c908:
c908  140f8000 00000000 e2000000 14000000 00000000 e2000000 00000002 00000800
c928  00000000 01000d10 00000000 00000200 c083ea54 00000000 00000000 c03a8674
c948  c03a8254 c03a7e34 c03a6e8c c03aa6fc c03a7cfc 00000000 00000000 c03a7878
c968  c03a6eb8 00000000 00000000 00000000 00000000 00000000 00000000 c03a6f78
c988  000001fc 000001f8 000001fa 000000c1 000000c0 ffffffff 000001c0 000001c3
c9a8  000001c4 000001c5 ffffffff 000001f6 000001c1 00000458 00000459 0000045a
c9c8  0000045b 00000578 000001f9 000001dd 000001dc 0000057a 000005d0 ffffffff
c9e8  ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 0000039d

R4: 0xc0c8d690:
d690  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
d6b0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
d6d0  00000000 00000000 00000000 00000000 6c73676b 3064332d 00000000 00000000
d6f0  00000000 c0c8d710 00000000 00000000 00000000 00000000 00000000 00000000
d710  e1b86000 c095f2da 00000003 00000001 00000100 00000000 04300000 f0080000
d730  00020000 00000000 00000000 00000000 00000000 e265a000 00000000 00000000
d750  10008000 6285a000 00002000 0000000a e1b0dfe0 00000001 00000000 c0c8b9b4
d770  0000ff00 00000000 c095f473 c09a68a7 07c86590 00032f07 00000000 00000000

R7: 0xc0c8dc98:
dc98  a012a012 c0c8dc9c c0c8dc9c d0e3f260 00000001 00000000 00000200 001450ca
dcb8  c0d66ba0 c03a2b60 c0c8d710 ffffffff ffffffff 00000000 00000000 00000000
dcd8  00000000 00000000 00000000 00000200 0014500c c0d66ba0 c03a2b64 c0c8d710
dcf8  ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000 00000000
dd18  00000000 d6f2982c d6f2a82c 2eae2eae 00000000 00000000 00000000 00000000
dd38  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dd58  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dd78  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R8: 0xc0c8d9c4:
d9c4  e169f238 e1afd854 e169f240 e1afd85c 00000001 00000300 c0c8d9dc c0c8d9dc
d9e4  c00c0488 00000000 00000000 00000000 c0d66ba0 00000000 00000000 ffffffff
da04  ffffffff 00000000 00000000 00000000 00000000 00000000 000001f5 00000001
da24  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000008
da44  00000000 aecbaecb c0c8da4c c0c8da4c d0e3f260 00000002 00000000 00000001
da64  00000000 c0c8da68 c0c8da68 d599d599 c0c8da74 c0c8da74 e1ac20c0 c0c42fa8
da84  e2001200 e0ca5558 e0ca54c0 00000001 0000000d 008b008b 00000000 e1c00000
daa4  00080000 0000ea38 00005927 00000001 00000001 e1b8c000 c0c8dabc c0c8dabc

R9: 0xdf394720:
4720  d0b43b58 c8d47000 d0b43b90 d0b43b90 00000001 00000000 00000000 00000001
4740  df3945c0 0000018f 00000000 00000000 00000000 00000000 00000000 00000000
4760  df3946a0 0000018f 00000000 00000000 00000000 00000000 00000000 00000000
4780  d6f2a000 00000ad7 c0386700 df290780 df394f70 d6f2a028 ca53d0c0 0014500d
47a0  d6998600 d6998680 d6998640 d6998c40 d6998d80 00000000 00000000 00000000
47c0  df394cc0 00000194 00000000 00000000 00000000 00000000 00000000 00000000
47e0  c1aa6c80 00000000 00001000 00000000 c1aa87e2 00000000 00001000 00000000
4800  df394b00 00000194 00000000 00000000 00000000 00000000 00000000 00000000
Process kworker/u:3 (pid: 32626, stack limit = 0xcb4dc2f0)
Stack: (0xcb4dde80 to 0xcb4de000)
de80: c0c8d710 d699861c c0c8d710 00000000 00000001 c03a16cc 00000006 00001a1d
dea0: 80010110 000001c8 00000277 107312c4 0000002a 104c8000 0000080f cb4ddf20
dec0: 00000000 c008752c 00000000 00000006 00001a1d 80010110 000001c8 00000277
dee0: 107312c4 0000002a 5195645f 107312c4 80010110 10000000 000001c8 00000277
df00: 107312c4 104c8000 0000002a 0000080f 00000006 c0c8df30 d6998600 c0c8d710
df20: 00000000 ffffffff c0cc68c4 c0c8dc94 d6f29000 c03a2398 00000005 c0c8d824
df40: c0c8da44 c0c8d710 00000000 000000c8 00000000 cd92a900 c0c8df30 c0d67c00
df60: e1b86200 00000000 c03a2160 00000000 00000089 c009c868 cd92a900 c0c8df30
df80: c0c8df34 cd92a900 c0d67c00 cb4dc000 c0cc4eb4 cd92a910 c0d67c00 c0cc72fc
dfa0: 00000089 c009cd08 00000000 cdcdbf20 cd92a900 c009cae4 00000013 00000000
dfc0: 00000000 00000000 00000000 c00a3070 00000000 cd92a900 00000000 00000000
dfe0: cb4ddfe0 cb4ddfe0 cdcdbf20 c00a2fec c000efac c000efac 0007047f 00070498
[<c03b3d3c>] (adreno_reset+0xa8/0x188) from [<c03a16cc>] (dispatcher_do_fault+0xa6c/0xce8)
[<c03a16cc>] (dispatcher_do_fault+0xa6c/0xce8) from [<c03a2398>] (adreno_dispatcher_work+0x238/0x4ac)
[<c03a2398>] (adreno_dispatcher_work+0x238/0x4ac) from [<c009c868>] (process_one_work+0x26c/0x4bc)
[<c009c868>] (process_one_work+0x26c/0x4bc) from [<c009cd08>] (worker_thread+0x224/0x380)
[<c009cd08>] (worker_thread+0x224/0x380) from [<c00a3070>] (kthread+0x84/0x94)
[<c00a3070>] (kthread+0x84/0x94) from [<c000efac>] (kernel_thread_exit+0x0/0x8)
Code: e5933000 e59310d8 e3710001 1a000000 (e7f001f2) 
---[ end trace 4057a5f960bab47d ]---
Kernel panic - not syncing: Fatal exception
CPU0: stopping
[<c00142a0>] (unwind_backtrace+0x0/0xe0) from [<c0012b70>] (handle_IPI+0x150/0x2e8)
[<c0012b70>] (handle_IPI+0x150/0x2e8) from [<c00086e8>] (gic_handle_irq+0x1b0/0x1c0)
[<c00086e8>] (gic_handle_irq+0x1b0/0x1c0) from [<c000d9c0>] (__irq_svc+0x40/0x70)
Exception stack(0xe1679ce0 to 0xe1679d28)
9ce0: 00000107 0000002a 00000006 e19b4094 20000013 01de37fc 00000006 0000002a
9d00: 00000107 e2104c80 e1679dd4 e20fd080 0000019f e1679d2c c028a750 c028a08c
9d20: a0000013 ffffffff
[<c000d9c0>] (__irq_svc+0x40/0x70) from [<c028a08c>] (avc_lookup+0x7c/0xdc)
[<c028a08c>] (avc_lookup+0x7c/0xdc) from [<c028a750>] (avc_has_perm_flags+0x38/0x168)
[<c028a750>] (avc_has_perm_flags+0x38/0x168) from [<c028ba08>] (inode_has_perm+0x3c/0x48)
[<c028ba08>] (inode_has_perm+0x3c/0x48) from [<c02911bc>] (inode_has_perm_noadp.constprop.41+0x58/0x60)
[<c02911bc>] (inode_has_perm_noadp.constprop.41+0x58/0x60) from [<c0288ab4>] (security_dentry_open+0x18/0x70)
[<c0288ab4>] (security_dentry_open+0x18/0x70) from [<c015b62c>] (__dentry_open+0x128/0x29c)
[<c015b62c>] (__dentry_open+0x128/0x29c) from [<c015c550>] (nameidata_to_filp+0x50/0x5c)
[<c015c550>] (nameidata_to_filp+0x50/0x5c) from [<c016c4a0>] (do_last+0x86c/0x88c)
[<c016c4a0>] (do_last+0x86c/0x88c) from [<c016c578>] (path_openat+0xb8/0x3ec)
[<c016c578>] (path_openat+0xb8/0x3ec) from [<c016c8d8>] (do_filp_open+0x2c/0x78)
[<c016c8d8>] (do_filp_open+0x2c/0x78) from [<c015c9a8>] (do_sys_open+0xdc/0x168)
[<c015c9a8>] (do_sys_open+0xdc/0x168) from [<c000ddc0>] (ret_fast_syscall+0x0/0x30)
subsystem-fatal-8x60: Q6 NMI was sent.

EDIT2: also of interest, for a wholly neat battery, I found that aside of the usual disabling of wifi/gps scanning, turning off *double tap to wake* is also of a not indifferent importance to avoid a possible pesky wakelock
 
Last edited:

JesusP97

New member
Apr 2, 2018
2
0
Headphones not working

Great work guys! I was able to install the 6.0 rom succesfully, the only issue is that the phone is not detecting the headphones plugged in the jack

Does anyone knows a solution for this?

Thanks in advance
 

Airgio

Senior Member
error

nAOSP 6.0/5.1 Ultimate Flashing Procedure

So regarding the numbers of comments I will assume that I have not well explain how to flash the ROM, Gapps, Xposed, SuperSU etc...

Why it is more complicated than before ?
This is not the fault of devs but due mainly to security enforcement (new Android permissions system, new Selinux rules, new dm-verity on some devices to check that /system is not modified...).

So due to that :
  • New SuperSU comes with a System and System-less installation
  • OpenGapps need to be flashed with the ROM before the FIRST boot of the ROM.
  • Some patches need to be integrated on AOSP.
(Of course it is not legal to integrate GApps directly to the ROM so don't ask me to do it. I will not :). Ask Google.)

Infortunately if we don't respect a STRICT flashing method it will fail. So let's go to explain that again :)

GApps Flashing
For nAOSP 6.0
How to flash Gapps is explained into the Flashing section below but you need to know that on nAOSP 6.0 since b12,
you need to DON'T flash PackageInstallerGoogle.
To do it the ROM include a file into /persist/gapps-config.txt that exclude this package to be installed by Gapps.
If you already have a file gapps-config.txt somewhere it will probably override the file provided with the ROM so you need to add on your custom file the input 'PackageInstallerGoogle'.

The reason is to don't remove the AOSP PackageInstaller that permit to manager Superuser permissions since 6.0 b12.

Flashing
If you WANT to flash nAOSP 5.1 before b29 or noemulated versions

I suppose that you have not changed partitions on your device. If this is not the case revert to partition layout with a separate /data (p14) and /sdcard (p15).
Go to 'Manual procedure' section below.

If you DON'T come from nAOSP 6.0 or 5.1-b29+ and want to install last nAOSP version (except noemulated)

You will have to repartition your device if it is not yet done. DON'T ask a solution without re-partitionning. You want the last Android version, you need to evolve with Google decision.


PLEASE READ CAREFULLY. This is not a complex procedure but you have to repartition the device if not yet done and to backup your data prior.

Backup:

We will format /data and /sdcard so you need to take backup and put it outside of the phone.
Use your current TWRP to backup your ROM (system/boot/data) into /sdcard
Once done, backup on your computer the /sdcard content (use a file browser with mtp or adb pull)

Recovery/TWRP:

Extract recovery.img from the Zip file
(Alternative to below procedure if you already have TWRP: start TWRP/Install/Select image/Select Boot/Reboot)
Enter the device into fastboot mode
flash the recovery.img into boot partition like a boot image (fastboot flash boot recovery.img)
restart the device (fastboot reboot)
You should be on the recovery (it can be a little bit long to start the first time)

Repartitionning:

Go to Mount on TWRP gui (uncheck system, data, cache etc)
Connect on the recovery with "adb shell"

fdisk -l /dev/block/mmcblk0

Copy the output of the command to a file with your backup. It will permit you to revert if needed and to help you if you have an issue (read carefully and you will not have)

Interesting parts are those in bold :
/dev/block/mmcblk0p14 42945 261695 7000024 83 Linux
/dev/block/mmcblk0p15 261696 954240 22161424 83 Linux

It can be not exactly the same values for you depending the size of your /data (p14) and /sdcard (p15)

so here we go (don't forget the section backup. this procedure will erase your data)

fdisk /dev/block/mmcblk0

Command (m for help): p

Command (m for help): d
Partition number (1-15): 15

Command (m for help): d
Partition number (1-14): 14

Command (m for help): n
First cylinder (769-954240, default 769): 42945
Last cylinder or +size or +sizeM or +sizeK (42945-954240, default 954240): (just press enter if the default value is the good one)
Using default value 954240

Command (m for help): t
Partition number (1-14): 14
Hex code (type L to list codes): 83

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table (You can have an error message about old table used. This is because you have not un mount every partitions before. This is not a problem, just continue to read the procedure)

Once repartitioning done, do NOT do anything else and just reboot the device (to be sure that the partition table is take into account by the kernel)

Now we will convert /data and /cache to F2FS.
Ext4 is not supported anymore on nAOSP 6.0 (Ext4 is still supported on 5.1 but you should migrate to F2FS). You don't need to take care about the 16384 byte to reserve for encryption. TWRP will do it for you.

Into TWRP:
Wipe
Advanced Wipe
select Data
Repair or Change File system
Change File System
F2FS
Swipe to Change

Press Home and do the same procedure to convert Cache partition to F2FS

Once done, again, do NOT do anything else and just reboot the device (required by TWRP)

If you still see 0MB or a wrong size for data after the reboot, try to format data (Wipe/Format Data). In the worst case, convert data to ext4 and convert back to f2fs will do the job

Upload the ROM/Gapps/SuperSU...

Upload the ROM/Gapps and every zip that you want to flash into /sdcard (/data/media/). Use "adb push" for example.

Congratulation
If everything is fine you should be able to mount /cache and /data and to see a big /data volume arround 28 GiB.
Later you will be able to restore your data (Pictures, Music, ...) if you want.
Do not restore TWRP folder because previous TWRP backup are not compatible with the new partition layout.

Now please follow the Manual procedure of this post just below

If you come from OneOfaKind or pure Marshmallow or another ROM than nAOSP

Don't asume that it will work to flash nAOSP if you already are in an similar system on another ROM.
Why ? At least selinux enforced can be your nightmare if you don't flash the ROM correctly.
So re-read from top and proceed with one of the 2 options.

Manual procedure

TWRP ?
The only supported TWRP version is the one included into nAOSP zip files. Please stop to flash something else it will not work correctly. Anyway the FOTA will be flashed automatically with last versions. (previous recovery version should be able to flash a new ROM except in some cases that will be mentionned. With block flashing used, it's now avoid a lot of incompatibility issues but in the doubt please follow the procedure below to have the last supported recovery)

You are not sure about which TWRP version you have ?
Ok we will flash it before starting the update:

  • Extract recovery.img from the Zip file
  • (Alternative to below procedure: start TWRP/Install/Select image/Select Boot/Reboot)
  • Enter the device into fastboot mode
  • flash the recovery.img into boot partition like a boot image (fastboot flash boot recovery.img)
  • restart the device (fastboot reboot)
  • You should be on the recovery (it can be a little bit long to start the first time)

So we can flash now ?!

I want Xposed
Flash it no issue reported with it. Be aware that Xposed is only tested with SuperSU installed but there is no issue reported with the embedded Superuser.

I want SuperSU
Donwload the last stable version 2.65. Please don't use the BETA one.
SuperSU comes with 2 differents installation mode : system-less and system. We need on nAOSP to install it in SYSTEM mode.
Infortunatly, SuperSU thinks that it needs to be installed into systemless mode but this is wrong.

So to flash SuperSU 2.65 you need to:
  • Mount /system
  • Create a file /system/.supersu and put inside SYSTEMLESS=false (don't need to do it with last nAOSP versions)
  • Flash SuperSU (You will see system mode displayed during the flashing. If you see system-less that means that you have a mistake on /system/.supersu or /system is not mounted)

I don't want to lose my theme files
Since nAOSP 6.0-b06 and 5.1-b29 you will not lost them ;). If you want to clean flash without theme restoration, you will have to wipe /system before.

Can I flash ROM + Gapps + SuperSU + Xposed + ... together ?
In fact yes you can flash everything together in one shot but if you are not really familiar with the flashing process divide it in multiple steps to understand what can be wrong. (Note that on my side I'm only testing ROM+Gapps)
If you want to flash everything I suggest you to do it like that :
  • Install ROM zip
  • Install GApps (Only if you want it. Don't forget restriction mentionned)
  • Install SuperSU (Only if you want it. Don't forget the /system/.supersu)
  • Install Xposed
  • Wipe cache/dalvik
  • Reboot


ROM Updater
Are you still reading ? Hope so :)

Now you are able to flash correctly everything manually. It's not so complicated but ok it is not so simple.
So I propose you an alternative based on ROM Updater.

  • Start the ROM (at least nAOSP 6.0-b05-f01 and 5.1-b29 versions)
  • Go to Settings/About/Updates
  • Enable backup before update (if you want an automatic backup. You should do it !)
  • Select Post update

Post Update (before 6.0-b07)
Now you should have a dialog box (Post update) that ask you to enter some text.
Before doing anything you need to know that TWRP use OpenRecoveryScript to permit some automation. Documentation is available at http://wiki.rootzwiki.com/OpenRecoveryScript

I will assume that you want to install Gapps, SuperSU and Xposed. Be free to remove what you don't want. So enter in the field this content :
install /data/media/0/gapps.zip
mount system (SuperSU doesn't mount /system but try to read variables from /system/.supersu)
install /data/media/0/supersu.zip (Don't forget the /system/.supersu)
install /data/media/0/xposed.zip

(of course you will have to change the path of your files to valid ones. Don't forget copy/paste possibility of your explorer to help you. The root path should be common if you have uploaded files on your own/primary android user: /data/media/0/)

Post Update (since 6.0-b07 and 5.1-b29)
Before doing anything you need to know that TWRP use OpenRecoveryScript to permit some automation. Documentation is available at http://wiki.rootzwiki.com/OpenRecoveryScript

I will assume that you want to install Gapps, SuperSU and Xposed. Be free to remove what you don't want:
Select + / select Gapps.zip / OK
Select + / select SuperSU.zip / In the before field put 'mount system' / OK (SuperSU doesn't mount /system but try to read variables from /system/.supersu)
Select + / select Xposed.zip / OK

If you need to add extra commands, use the additional script feature that will display a DialogBox.

That's it

Hope it will be easier for everyone now :)



when i try to change data to f2fs there's an error failed to mount data invalid argument
 

gaurav560

New member
May 31, 2019
4
0
Thanks for the Rom however is am struck with the installation.
I had Chroma 5.01 installed on my phone since 4 years. I re-partitioned the SDCARD properly and installed Marshmallow from your tutorial at https://forum.xda-developers.com/xpe...lipop-t2940839.

There was no error at any different error than what told on tutorials. Everything went smooth but at the time of first boot up, my phone is struck at AOSP colourful logo of 4 balls animation . I waited for 5-6 hours for setup to finish but no use. During my efforts to restore it, I discovered that root access is not available.

fastboot mode and adb method not working as phone cant be switched off or get into fastboot mode.
Tried flashing Stock rom but still the same.

Is there any way where this problem can be overcome. No hard reset or soft reset method working so far as to my knowledge( If i am not doing anything wrong).

Please help as i love this phone for its dedicated HDMI output feature.
 

SuperUs8r

New member
Nov 28, 2013
3
0
Cologne
Possible problem with partitioning

I tried to do each step carefully, but at the end of the partitioning part, there were some errors and the size of the partition was still 0.
But I pushed the .zip file and flashed the rom. it was installed and booted, now I get an "Encryption Error".
 

alex_ncfc

Senior Member
Feb 24, 2012
214
37
I tried to do each step carefully, but at the end of the partitioning part, there were some errors and the size of the partition was still 0.
But I pushed the .zip file and flashed the rom. it was installed and booted, now I get an "Encryption Error".

I also really need some help with this!

I have now tried this so many times and can't get any sort of progress. The furthest I get with any 6.0 ROMs is the same as the above, the Encryption Error, and I've been following the guides on partitioning very carefully. I can't get any 6.0 or 7.0 AOSP ROMs working. I managed to get a 7.0 one working but it wouldn't let me set up or log into a Google Account! It seems there is always a problem, and I just have no idea how to get this working. I've flashed to stock and re-tried 3 or 4 times now and just wish I could get one of these ROMs going, clearly it works for other people so what am I doing wrong?

I have tried it as below:
Flashed to stock 4.1.2 ROM
Flashed TWRP recovery
Gone into ADB SHELL whilst TWRP is on the screen and partitioned the device as per all the guides
Flashed the ROM
Flashed GAPPS
Then on boot, it just stays on the splash screen (with the moving dots) forever! Am I missing something?

Please can someone help as I really need this phone working by tomorrow and there are hardly any apps working on 4.1.2 Stock.

Thanks
 

alex_ncfc

Senior Member
Feb 24, 2012
214
37
https://forum.xda-developers.com/xperia-s/s-development/rom-naosprom-xperia-s-t2958516/post65233973

Mickybart had ext4 deprecated for a while in the past, and you may only just need to format to F2FS.

Thanks mirhl. Noob question here, does my Xperia S need to be rooted to do these operations or are these AOSP ROMs pre-rooted? As I can't seem to be able to root my device. The bootloader is unlocked and I can flash ROMs but I don't know if it needs to be rooted to install the ROMs once I've wiped the phone??

Thank you
 

alex_ncfc

Senior Member
Feb 24, 2012
214
37
Argh I just got Marshmallow 6.0 up and running and it was working fine and then I intended to flash GAPPS - but on restart noticed I can't get into recovery ? there is no wait option, like a vibration or LED to get into recovery. I tried ADB REBOOT RECOVERY - still no good. Just starts booting the phone instantly, so have no way of installing the Play Store.

So yet AGAIN I reverted to stock, partitioned, installed the MM ROM and then installed GAPPS straight after whilst in TWRP - guess what, now it's just sitting on the boot logo animation and not going anywhere. I have wasted 2 days trying to sort this damn thing out and I can't get it right.
 

imska

Senior Member
Aug 7, 2015
204
72
free-droid.com
Argh I just got Marshmallow 6.0 up and running and it was working fine and then I intended to flash GAPPS - but on restart noticed I can't get into recovery ? there is no wait option, like a vibration or LED to get into recovery. I tried ADB REBOOT RECOVERY - still no good. Just starts booting the phone instantly, so have no way of installing the Play Store.

So yet AGAIN I reverted to stock, partitioned, installed the MM ROM and then installed GAPPS straight after whilst in TWRP - guess what, now it's just sitting on the boot logo animation and not going anywhere. I have wasted 2 days trying to sort this damn thing out and I can't get it right.

No need for gapps, check out microG, f-droid and aurora store. You might also want to take a look at nanodroid installers for these goodies as it also has an option to install google sync adapters if you sync contacts and calendar with google
 

djibe89

Senior Member
May 24, 2014
1,157
598
Samsung Galaxy Tab S2
Google Pixel 4a
Hello everyone, we agree that there is no problem when using ADB from Windows and vanilla partition 15 shows:

/dev/block/mmcblk0p15 108481 954240 27064320 c Win95 FAT32 (LBA)

I can use fsutil like any Linux partition ?

Thanks for your help.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 245
    nAOSP ROM 5.1 and 6.0 for Xperia S

    The purpose of this rom is to provide a rom not so far of the AOSP with some cool features (nAOSP means "near AOSP").

    As I'm using some external works to do this rom, I first want to thanks the community and specially billchen1977,ViPER4Android Team ,Cyanogenmod Team , FXP Team

    nAOSP 6.0 Marshmallow Changelog (features, issues, etc)
    b14
    IMPORTANT: temporary removed due to an annoying undetected bug !
    • android-6.0.1_r70 (October security fixes)
    • Kernel: security fixes (from nAOSP 7.0)
    • 2D: Support 60 fps + managed by the GPU to reduce CPU load (improve global responsivness)

    Previous versions


    b13

    • android-6.0.1_r66 (September security fixes)
    • Kernel: Quadrooter vulnerabilities fixes @millosr)
    • Kernel: kcal: fix display corruption with value 256
    • Settings: Rework of Settings/nAOSProm for a more user-friendly interaction
    • Settings: Add automatic proximity speakerphone settings for Dialer
    • telephony: proper shutdown and radio capability support
    • translation: Russian (WIP, @KGrandly)

    b12
    Please read the associated post to don't have issues with Superuser
    • android-6.0.1_r61 (August security fixes)
    • Superuser: Bye to Superuser, welcome to Superuser with AppOps
    • su: Support for multiuser and the new Superuser
    • Ui: Battery styles (see Settings/nAOSProm/More) - compatible with GravityBox (thanks @millosr)
    • Ui: Optimizing application displays the application name (thanks @millosr)
    • ROM Updater : Remove download action from notification
    • Layers: doze invert color is now automatically set by the theme (manual option removed)
    • Bluetooth: Accept all incoming files
    • Settings: Display safe entries into nAOSP section (depends on current user, root access ...),battery styles, substratum, root access control per user
    • SELinux: add missing nfc and mediaserver rules (+ fix selinux denied ioctl by checking binder fd type: sockets using ashmem accessors)
    • Boot: check f2fs not run anymore
    • kernel: bma250: more fix about bma250_ic_write issues when motion (pickup/significant) are in use with accelerometer.
    • Gapps: /persist/gapps-config.txt

    b11
    • android 6.0.1_r52 (July Security patches)
    • Daydream: supported (see Settings/Display) - disabled by default
    • Sensors: Significant motion added (Full doze and localization/low power mode support) - disabled by default
    • Sensors: Pickup sensor implementation reviewed (just a high_g detection on Y axe) - disabled by default
    • Kernel: accelerometer: merge bma250_ng and bma250_motion drivers to avoid conflict and provide a better hardware managment
    • Kernel: cpufreq: Fix issues when a cpu goes back online and was clocked to the max frequency of 2.05 Ghz.
    • Kernel: Color calibration: full support of RGB Multipliers with kcal_ctrl driver implementation.
    • Kernel: Leds: Store the brightness requested. That permit to better control the requested brightness when thermanager/other changing the max_brightness value.
    • CPU Hotplug: mpdecision daemon is back (will manage cpu1 online state)
    • Offline charging: new pictures for chargemon (thanks @Jurn_Software)
    • Day/night mode: support new kcal_ctrl driver.
    • Settings: Enable/disable some sensors (pickup, significant motion, ...), Support substratum application
    • Themes: Full support of Layers 4.0
    • Dialer/InCall: Automatic spearkerphone (see Dialer/Settings/proximity speakerphone) - disabled by default
    • Translations: update for uk @Jurn_Software ), fr

    b10
    • android 6.0.1_r46 (June Security patch)
    • Settings: Double Tap to sleep can be disabled (thanks @millosr)
    • Quick Settings: Immersive mode (hide NavBar and/or Status Bar). If you dirty flash, you can add it with SystemUI Tuner. (thanks @millosr)
    • Dialer: Fix "invalid number" issue (based on @runekock feedback. thanks)

    b09_r43
    • android 6.0.1_r43 (May Security patch)
    • Eleven updated
    • TWRP: 3.0.2+

    b09
    • android 6.0.1_r20 (April Security patch)
    • kernel: Intermediate security fix of march added
    • Quick Settings: add Caffeine (thanks @millosr)
    • ROM Updater: fix a permission issue (thanks @millosr)

    b08
    • android 6.0.1_r17 (March Security patch)
    • Hw Keys: launch Camera application with Camera key can be configured to Disabled, Long press only or default
    • Translation: update pt/pt-rBR @ThunderBolt_BR)

    b07
    • TWRP: Flash/Backup/Restore FOTA image supported (recovery.img)
    • Lockscreen: display Dialer or Vocal Assist shortcut (see Settings/nAOSProm/More)
    • Quick Settings: quick pull down with one finger can now be disabled (see Settings/nAOSProm/More)
    • Battery: Display time since last full charge (thanks to @millosr)
    • ROM Updater: Complete review of OpenRecoveryScript support with a new user-friendly solution to select zip files, set pre and post installation per zip file, change zip flash order, etc (big thanks to @millosr). (if you want to migrate to the new gui, you will just have to remove the aditional script content and use the new way to redo it.)
    • Translation: few updates (polish, serbian, french ...)

    b06b
    • Fix /system/.supersu not created
    • Fix Viper4Android version (2.4.0.1)
    • ROM Updater: default path changed to Download folder. Support dependency to avoid incremental flash by mistake on a wrong ROM.

    b06
    • ViPER4Android : 2.4.0.1
    • TWRP: 3.0.0
    • ROM Updater: Support manual download and additional parameters (don't wipe or execute post update controlled by upstream). Old ROM will be flagged as "Old" or "Old | Downloaded".
    • Recovery: OTA will automatically flash recovery.img into FOTA
    • Layers: OTA will preserve theme files when flashing a new ROM
    • Quick Settings: Add ADB over network support
    • NavBar: On-screen keys can be enabled/disabled from Settings/nAOSProm/More
    • SuperSU: force system installation with the new stable version 2.65 (/system/.supersu). Can be overrided by /data/.supersu
    • Fix offline charging
    • Fix FM Radio and Bluetooth crash when FMRadio is closed without headphone.
    • Fix DeskClock crash when trying to view world cities
    • Fix recent button (dismiss all) overlap NavBar in landscape mode
    • Translation: en, fr, es (@vayavalla), pt-rBR @ThunderBolt_BR), uk @Jurn_Software), it @nicofossa), pl @A6ekAK), sr @millosr)). Thanks Guys for your help :)

    b05
    • android-6.0.1_r16
    • Google Now on Tap : Support with Long press on Home
    • TWRP: Add Crypto and Battery status
    • OTA: support (see Settings/About phone/Updates)
    • Settings: Add About nAOSProm

    b04
    need a /data Format. See post #3561
    • GSM: 2G/3G switch fixed
    • Selinux : Enforcing by default
    • SuperSU : Supported with Selinux enforcing (Beta 2.52) (For remember the ROM include by default Superuser)
    • Xposed : Supported with Selinux enforcing
    • AOSP Camera 2: Fix portrait issue (no more cropping to 3000x3000 px)
    • Hw Keys: Use Camera button to launch Camera Application (Short press if screen is off and long press if screen is on)
    • Superuser: Fix text color for theme support
    • Auto Power Mode : Doze and applications standby enabled by default (see Settings/nAOSProm)
    • Localisation: support GPS/Wifi/GSM fix with Google GMS
    • /data: remove inline_data mount option. (Fix Telegram/WhatsApp and some corruption issues)
    • init rc: complete rework of init process to simplify it (remove some scripts and unused services)
    • Bluetooth 3.0 Headset: Seems to support HFP and A2DP profiles (thanks to report with your model)

    b03
    • kernel: Overclocking issues fixed
    • Quicksettings: Add lockscreen control
    • USB OTG support (thanks @Phantasm4489)
    • Superuser integration
    • Developer mode and Tuner UI enabled by default
    • Theme issues : SuperSU/Superuser and WakeUp use new icons into Settings. (not the best for WakeUp but that will simplify things)

    b02
    • android-6.0.1_r10
    • Long press on Home : Mapped to Nothing in Modern layout to avoid SystemUI crash. Bug need to be fixed upstream.
    • Quick Settings: Add Fast Charge tile
    • NFC: support is back
    • Night/Day Mode: Available into Quick Settings
    • Settings: Color Calibration improved to support Night and Day settings. Presets are now available.
    • Bug to send photo into hangout : fixed upstream (need to have Storage permission)

    b01
    As this is the initial release, please refer to this post


    nAOSP 5.1 Lollipop Changelog (features, issues, etc)
    b30
    • android-5.1.1_r36
    • Support /sdcard legacy path (fix issue with some apps like ES File Explorer)
    • Hw Keys: launch Camera application with Camera key can be configured to Disabled, Long press only or default

    Previous versions

    b29
    New partition layout with /data and /sdcard merged. please read the flashing procedure.
    • New partition layout (merge /data and /sdcard)
    • ROM Updater: OTA support (see Settings/About phone/Updates) (Thanks @millosr)
    • OTA: flash recovery.img, preserve RRO Theme
    • SuperSU: force system installation with the new stable version 2.65 (/system/.supersu). Can be overrided by /data/.supersu
    • TWRP: 2.8.7.0.1 with new partition layout support + Flash/Backup/Restore FOTA image supported
    • Settings: Add About, Development settings enabled by default
    • Quick Settings: Add tiles Fast Charge and Day/Night mode, Quick pull down can be disabled from Settings
    • NavBar: On-screen keys can be enabled/disabled from Settings/nAOSProm/More
    • Kernel: KSM disabled by default (see Settings/nAOSProm/More)
    • Apps: Update ViPER4Android (2.4.0.1), Superuser, Browser and Music
    • Fake Signature support: come back after commit lost since b28
    • Hw Keys: Use Camera button to launch Camera Application (Short press if screen is off and long press if screen is on)

    b28_r34

    b28
    Thanks to @millosr who's working to apply Google Security Update and more
    • android-5.1.1_r33 (Thanks @millosr)
    • Font Size slider into Settings/Display/Font (Thanks @millosr)
    • WakeUp: Fix language mismatch and add Serbian Translation (Thanks @millosr)
    • Webview: Webview will be updated by Google when GApps are installed (Thanks @millosr)

    b27

    b26
    • android-5.1.1_r13
    If you come from version less than b25, read this post first

    b25 version b
    • android-5.1.1_r9
    • SELinux
    • Layers (support themes with Layers Manager available on the play store; don't confuse with CM Theme Engine)
    • Settings: Integration of SuperSU, WakeUp, Layers Manager and migration from Developer Options to a dedicated nAOSProm category
    • Settings: support feature to control Ambient Inversion color
    • TWRP 2.8.7.0 (recovery.img available under the zip file)
    • Superuser: materialized embedded part
    • Translation: Italian (thanks @nicofossa ), French
    to flash b25, read this post first

    b24
    • FMRadio: bug fix (crash when back button pressed on the headphones activity)
    • UI: Clear Recents App button position fixed when NavigationBar is used
    • Dex2oat: permit dex2oat to run more than 6 minutes (fix installation timeout issues like with Facebook)
    • Audio Effect: add ViPER4Android with NEON_HQ mode, QCOM Acoustic Echo Cancellation (aec will be used by default on VoIP)
    • Audio: review code, enable QCOM Fluence mode and enable double mic (endfire)
    If you like ViPER4Android, please go to thanks developers of ViPER4Android and not me. You will find more detail on the section "Good to know :)".

    b23
    • android-5.1.1_r4
    • Thermal protection: Migration to thermanager with a configuration file located at /system/etc/thermanager.xml. (fix device reboot when too hot). For those who overclock the CPU, please read Overclocking section.
    • f2fs : patch to support at least TWRP 2.8.5.0
    • Recents App: close recents app migrate to floating action button style and to a new location on the bottom right

    b22
    • FM Radio: new application forked from AOSP 5.1 FMRadio (support favorites, fm band, speaker ...)
    • kernel: Better detection of sweep gesture, pickup driver support removed temporary
    • WakeUp : add Ambient/Doze action. Double Tap and Proximity enabled by default
    • Notification: Lightbar support. Delay On changed to 500ms. (See Settings/Developer)
    • GPU: revert low gpu frequencies to stock ones
    • Next/Previous track: Volume keys can now be used with Ambient Display enabled (media control when screen is off)
    • Data Roaming: Disable by default (thanks to @mirhl)
    • Ambient: Adaptive brightness support (default) and fix custom brightness (Settings/Developer)
    • Adaptive brightness: review lux/brightness (default; custom by end user supported).
    • Dialer: Material Icon

    b21
    • android-5.1.1_r1
    • kernel: Add wake gesture (thanks to @ztc1997)
    • kernel: Touchscreen can power off/on itself based on the proximity sensor state (only in standby mode)
    • Wake Up: New application embedded to control Wake Gesture and Kernel configuration.
    • Settings: remove double tap option
    • Screen will not be turned on if you plug/unplug USB cable anymore

    b20
    • android-5.1.0_r5
    • Bluetooth fixed
    • GPU: some corruptions are fixed
    • Kernel : Merge of OC and standard kernel. By default GPU and CPU use stock frequencies (gpu scaling enabled by default). SmartMax and ROW set by default. mpdecision is disabled (compensate with 192Mhz low frequency, a better governor etc).
    • Audio FX removed (more in nAOSP spirit)

    b19
    • android-5.1.0_r1
    • Browser: Incognito mode
    • USB Fast Charge: Can be enable on Settings/Battery/menu. (disabled by default after a reboot)
    • Overclocking: OC kernel is replaced by OC Ultra kernel. OC Ultra kernel will start at 1.51Ghz by default and you are free to change the frequency after boot. For those who use OC kernel, change to OC Ultra in developer before dirty flash to b19
    • some code reworks to easier maintenance with billchen works (regarding last nAOSProm 5.1 alpha1)

    b18
    After flashing the ROM, please flash the b19-alpha3 kernel or at least change the sdcard read ahead to 128 kB. (For those who use OC_Ultra, flash b19-alpha3)
    • Brightness: Screen brightness level like stock ROM (als/curve parameters). Lowest brightness can be set to 2% (5/255). Boot brightness is set to 30%
    • dt2w: Fix touchscreen not responding issue (thanks to @ztc1997)
    • Screen: Color calibration added (check Settings/Developer)
    • USB Fast Charge supported (thanks to @ztc1997) use at your own risk
    • SD card: Read ahead set to 2048kb by default
    • Zram: switch to lz4 compressor/decompressor (thanks to @ztc1997) + Fix random hard reboot when changing zram disk size on developer GUI.
    • GPU: Dynamic clocking supported. 2d will run at 96Mhz and 3d at 177Mhz by default. GPU governor is set to ondemand by default. The max frequency depend of the kernel used
    • Overclocking: OC Ultra kernel is set to start at 1.51Ghz for the CPU. You are free to overclock up to 2.05Ghz.
    • Hotplug CPU: disabled on all OC kernel. It is safe to start it with OC kernel but you shouldn't do it on OC Ultra.
    • Music/Eleven: bugs fix

    b17
    • kernel: last update from billchen1977 source.
    • Base: rewrite some code to share the effort with uCyan 12.0 (eg: migration to persist properties)
    • Developer: Complete rewrite of the code to integrate nAOSProm features. This is clean now and you will not lost settings after a dirty flash (for those who used kernel OC, please read the overclocking section about this change).
    • Mms: Material style for Mms application (this is not a full materialized application but should be enough :))
    • Browser: Migrate to CM 12 version (minor change from AOSP, Material support. Stability is not compromise)
    • Gallery2: Migrate to CM 12 version (beta)
    • Music: Replaced by Eleven and AudioFX from CM 12 (beta).

    b16
    • kernel: switch to cma by default (thanks billchen1977)
    • kernel: if you don't want cma, flash boot-b16-nocma.zip after flash of the rom
    • lightbar: Multiple mode (Always off, on with 5 sec timeout, on/off with the screen). Brightness/Adaptive brightness control supported on each mode (except Always off)
    • music: control music with long press on volume key when screen is off. long press on camera key to play/pause.
    • sdcard: support f2fs/ext4/vfat
    • overclocking: OC Ultra reduce to 1.836 Ghz
    • Settings: Developer permit to enable/disable "music control", double tape to wake, shake to wake. Wifi permit to support EAP-SIM and EAP-AKA.
    • shake to wake: disable by default
    • RIL: update to support conference call (and base support for eap-sim but not tested)

    b15
    Mainly a repack version of multiple evolution since b14 to b14d kernel.
    • pickup device integrated (to trigger Ambient display for example)
    • freeze issues fixed
    • multi boot f2fs/ext4 supported (for cache and data)
    • zram set to 192 MiB
    • Low Memory Killer can be set by the end user (see Settings/Developer)

    b14 version b
    b14b replace b14. Strange issues fixed by a complete recompilation. (Music player issue fixed too.)
    • Double tape to wake (in the middle of the screen) (thanks billchen1977)
    • Double tape to sleep (on the statusbar)
    • Lightbar : support adaptive brightness, state linked with display (on/off/brightness/dim)
    • Ambient/Doze : brightness can be set by the user (see Settings/Developer)
    • Adaptive brightness : speed up the brightness increase when environment become brighter (~1.5s vs ~4.0s previously)
    • f2fs : supported by the kernel (thanks dennes544/billchen1977) and recovery (mkfs.f2fs)
    • oom: more free memory will be available to avoid some memory allocations issue

    b13
    • bluetooth: multiple issues fixed (files transfer are now operational in both directions)

    b12
    • Browser: fix crash on Settings
    • Nfc: add HAL (thanks billchen1977)
    • Physical buttons : improvement based on comments
      - You are now able to use the old layout or the modern one (Go on Developer options). By default the modern one is used.
      - Modern layout: Long press on App Switch (ex Menu key) will trigger the menu for legacy app. Long press on Home will trigger assist (same behaviour than Nexus with navbar but without the bubble due to hardware constraint)

    b11 version b
    b11b replace b11 with webview fix (used by gapps, browser, etc)
    • android 5.0.2_r1
    • developer: zram/lightbar/kernel parameters can be set with developer options (section nAOSProm).
    • button: Menu key press will show recent apps. Long press on home will trigger menu key for legacy app (Android <= 2.3).
    • Adaptive brightness : Fix black screen when too low. Review of lux/britghtness. Slide the light control to adjust as you want (variation based on the auto brightness configuration defined)
    • Ambient/Doze : Fix brightness/readable notification. (display doze when pick up the device need some improvement)
    • memory: oom/zram tuning again

    b10
    Overclocking supported but by default a NON-OVERCLOCKED KERNEL will be flashed. See the Overclocking section
    • kernel: new governor smartmax (set by default)
    • kernel: new io scheduler SIO and ROW (ROW is set by default)
    • overclocking: 2 kernel available (OC and OC Ultra) see the Overclocking section
    • memory: tuning zram/lowmemory (swappiness to 100, ...) see the ZRAM section
    • kernel: bug fix (OTG, random reboot since b09c) (thanks billchen1977)
    • Ambient Display (consume some power so you can disable it on Settings/Display) (thanks billchen1977)
    • lightbar: turn off support (set sys.lightbar.enable=false on build.prop and reboot)
    • graphic: bootanimation and default wallpaper from Lollipop

    b09
    Update: zram management - flash boot-b09b.img kernel (possible fix for random reboots)
    • Memory management improvement
    • kernel: zram patch for ARM compatibility + swap support
    • enable swap with 1 zram device set to 100MB by default (zram is a compressed device in memory)
    • revert to more conservative oom/lowmemory values
    • kernel: bug fix
    • battery.capacity set to 1750

    b08
    • Android 5.0.1_r1
    • kernel : cleanup pmem deprecated API, fix clock for msm mercury

    b07
    • update to be inline with billchen1977 test7 (kernel update for cpu gouvernor, ksm, multi user crash fix)
    • Multi users supported

    b06
    • Android 5.0.0_r7
    • Switch to @billchen1977 kernel_msm
    • Superuser (embedded into Settings)
    • Clear all recent apps (add button on the top right)
    • Quick Settings : One finger pull down when trigger from the right of the status bar
    • Advanced power menu with reboot support (normal, safe, recovery, bootloader)
    • Email : Fake security for exchange (no pin, no remote erase, etc need to be set)
    • GSM / Wifi / Bluetooth / GPS / Camera
    • Auto brightness
    • Lightbar
    • FM Radio
    • Busybox (Full)
    • Recovery support with FOTAkernel

    b04-01
    see my previous post


    Download
    Release available under :
    https://www.androidfilehost.com/?w=files&flid=49217

    Overclocking
    Overclocked kernel are tested on my own device BUT I won't be responsible for any damages on yours
    Please don't enable mpdecision on OC kernel and b20+ version except if you know what you are doing.
    Since b20 kernels are merged so the overclocking is available in the default kernel. By default the ROM will use stock frequencies.


    Thermanager
    By default if the device is too hot it will reduce the screen brightness and CPU clock. When the device will be cool enough it will restore brightness and CPU clock but at 1.5Ghz only.
    If you want to force thermanager to restore the clock to a specific value defined by an external overclocking tool, you can edit /system/etc/thermanager.xml.
    See http://forum.xda-developers.com/showpost.php?p=62419397&postcount=2465

    ViPER4Android
    All credits go to ViPER520 and the amazing works.
    You should read detail and go to thanks developers.
    xda : http://forum.xda-developers.com/showthread.php?t=2191223
    website: http://vipersaudio.com/blog/?page_id=31

    Layers
    Themes are supported with Layers Manager.
    This is not a CM Theme Engine so you can just use Layers themes.

    Howto flash
    6.0 and 5.1 procedure
    (OLD) 5.1: Read and thanks UlvarinPL

    Translation help
    6.0 translation files

    Known issues
    6.0

    Source
    nAOSP 5.1
    nAOSP 5.1 noemulated
    nAOSP 6.0

    Release
    Kernel: 3.4.0
    Android: 5.1.1 and 6.0.1

    Thanks
    - billchen1977
    - ViPER4Android Team
    - Cyanogenmod Team
    - FXP Team
    - TWRP Team
    - All the community around Android

    FAQ
    54
    nAOSP 6.0/5.1 Ultimate Flashing Procedure

    So regarding the numbers of comments I will assume that I have not well explain how to flash the ROM, Gapps, Xposed, SuperSU etc...

    Why it is more complicated than before ?
    This is not the fault of devs but due mainly to security enforcement (new Android permissions system, new Selinux rules, new dm-verity on some devices to check that /system is not modified...).

    So due to that :
    • New SuperSU comes with a System and System-less installation
    • OpenGapps need to be flashed with the ROM before the FIRST boot of the ROM.
    • Some patches need to be integrated on AOSP.
    (Of course it is not legal to integrate GApps directly to the ROM so don't ask me to do it. I will not :). Ask Google.)

    Infortunately if we don't respect a STRICT flashing method it will fail. So let's go to explain that again :)

    GApps Flashing
    For nAOSP 6.0
    How to flash Gapps is explained into the Flashing section below but you need to know that on nAOSP 6.0 since b12,
    you need to DON'T flash PackageInstallerGoogle.
    To do it the ROM include a file into /persist/gapps-config.txt that exclude this package to be installed by Gapps.
    If you already have a file gapps-config.txt somewhere it will probably override the file provided with the ROM so you need to add on your custom file the input 'PackageInstallerGoogle'.

    The reason is to don't remove the AOSP PackageInstaller that permit to manager Superuser permissions since 6.0 b12.

    Flashing
    If you WANT to flash nAOSP 5.1 before b29 or noemulated versions

    I suppose that you have not changed partitions on your device. If this is not the case revert to partition layout with a separate /data (p14) and /sdcard (p15).
    Go to 'Manual procedure' section below.

    If you DON'T come from nAOSP 6.0 or 5.1-b29+ and want to install last nAOSP version (except noemulated)

    You will have to repartition your device if it is not yet done. DON'T ask a solution without re-partitionning. You want the last Android version, you need to evolve with Google decision.


    PLEASE READ CAREFULLY. This is not a complex procedure but you have to repartition the device if not yet done and to backup your data prior.

    Backup:

    We will format /data and /sdcard so you need to take backup and put it outside of the phone.
    Use your current TWRP to backup your ROM (system/boot/data) into /sdcard
    Once done, backup on your computer the /sdcard content (use a file browser with mtp or adb pull)

    Recovery/TWRP:

    Extract recovery.img from the Zip file
    (Alternative to below procedure if you already have TWRP: start TWRP/Install/Select image/Select Boot/Reboot)
    Enter the device into fastboot mode
    flash the recovery.img into boot partition like a boot image (fastboot flash boot recovery.img)
    restart the device (fastboot reboot)
    You should be on the recovery (it can be a little bit long to start the first time)

    Repartitionning:

    Go to Mount on TWRP gui (uncheck system, data, cache etc)
    Connect on the recovery with "adb shell"

    fdisk -l /dev/block/mmcblk0

    Copy the output of the command to a file with your backup. It will permit you to revert if needed and to help you if you have an issue (read carefully and you will not have)

    Interesting parts are those in bold :
    /dev/block/mmcblk0p14 42945 261695 7000024 83 Linux
    /dev/block/mmcblk0p15 261696 954240 22161424 83 Linux

    It can be not exactly the same values for you depending the size of your /data (p14) and /sdcard (p15)

    so here we go (don't forget the section backup. this procedure will erase your data)

    fdisk /dev/block/mmcblk0

    Command (m for help): p

    Command (m for help): d
    Partition number (1-15): 15

    Command (m for help): d
    Partition number (1-14): 14

    Command (m for help): n
    First cylinder (769-954240, default 769): 42945
    Last cylinder or +size or +sizeM or +sizeK (42945-954240, default 954240): (just press enter if the default value is the good one)
    Using default value 954240

    Command (m for help): t
    Partition number (1-14): 14
    Hex code (type L to list codes): 83

    Command (m for help): w
    The partition table has been altered.
    Calling ioctl() to re-read partition table (You can have an error message about old table used. This is because you have not un mount every partitions before. This is not a problem, just continue to read the procedure)

    Once repartitioning done, do NOT do anything else and just reboot the device (to be sure that the partition table is take into account by the kernel)

    Now we will convert /data and /cache to F2FS.
    Ext4 is not supported anymore on nAOSP 6.0 (Ext4 is still supported on 5.1 but you should migrate to F2FS). You don't need to take care about the 16384 byte to reserve for encryption. TWRP will do it for you.

    Into TWRP:
    Wipe
    Advanced Wipe
    select Data
    Repair or Change File system
    Change File System
    F2FS
    Swipe to Change

    Press Home and do the same procedure to convert Cache partition to F2FS

    Once done, again, do NOT do anything else and just reboot the device (required by TWRP)

    If you still see 0MB or a wrong size for data after the reboot, try to format data (Wipe/Format Data). In the worst case, convert data to ext4 and convert back to f2fs will do the job

    Upload the ROM/Gapps/SuperSU...

    Upload the ROM/Gapps and every zip that you want to flash into /sdcard (/data/media/). Use "adb push" for example.

    Congratulation
    If everything is fine you should be able to mount /cache and /data and to see a big /data volume arround 28 GiB.
    Later you will be able to restore your data (Pictures, Music, ...) if you want.
    Do not restore TWRP folder because previous TWRP backup are not compatible with the new partition layout.

    Now please follow the Manual procedure of this post just below

    If you come from OneOfaKind or pure Marshmallow or another ROM than nAOSP

    Don't asume that it will work to flash nAOSP if you already are in an similar system on another ROM.
    Why ? At least selinux enforced can be your nightmare if you don't flash the ROM correctly.
    So re-read from top and proceed with one of the 2 options.

    Manual procedure

    TWRP ?
    The only supported TWRP version is the one included into nAOSP zip files. Please stop to flash something else it will not work correctly. Anyway the FOTA will be flashed automatically with last versions. (previous recovery version should be able to flash a new ROM except in some cases that will be mentionned. With block flashing used, it's now avoid a lot of incompatibility issues but in the doubt please follow the procedure below to have the last supported recovery)

    You are not sure about which TWRP version you have ?
    Ok we will flash it before starting the update:

    • Extract recovery.img from the Zip file
    • (Alternative to below procedure: start TWRP/Install/Select image/Select Boot/Reboot)
    • Enter the device into fastboot mode
    • flash the recovery.img into boot partition like a boot image (fastboot flash boot recovery.img)
    • restart the device (fastboot reboot)
    • You should be on the recovery (it can be a little bit long to start the first time)

    So we can flash now ?!

    I want Xposed
    Flash it no issue reported with it. Be aware that Xposed is only tested with SuperSU installed but there is no issue reported with the embedded Superuser.

    I want SuperSU
    Donwload the last stable version 2.65. Please don't use the BETA one.
    SuperSU comes with 2 differents installation mode : system-less and system. We need on nAOSP to install it in SYSTEM mode.
    Infortunatly, SuperSU thinks that it needs to be installed into systemless mode but this is wrong.

    So to flash SuperSU 2.65 you need to:
    • Mount /system
    • Create a file /system/.supersu and put inside SYSTEMLESS=false (don't need to do it with last nAOSP versions)
    • Flash SuperSU (You will see system mode displayed during the flashing. If you see system-less that means that you have a mistake on /system/.supersu or /system is not mounted)

    I don't want to lose my theme files
    Since nAOSP 6.0-b06 and 5.1-b29 you will not lost them ;). If you want to clean flash without theme restoration, you will have to wipe /system before.

    Can I flash ROM + Gapps + SuperSU + Xposed + ... together ?
    In fact yes you can flash everything together in one shot but if you are not really familiar with the flashing process divide it in multiple steps to understand what can be wrong. (Note that on my side I'm only testing ROM+Gapps)
    If you want to flash everything I suggest you to do it like that :
    • Install ROM zip
    • Install GApps (Only if you want it. Don't forget restriction mentionned)
    • Install SuperSU (Only if you want it. Don't forget the /system/.supersu)
    • Install Xposed
    • Wipe cache/dalvik
    • Reboot


    ROM Updater
    Are you still reading ? Hope so :)

    Now you are able to flash correctly everything manually. It's not so complicated but ok it is not so simple.
    So I propose you an alternative based on ROM Updater.

    • Start the ROM (at least nAOSP 6.0-b05-f01 and 5.1-b29 versions)
    • Go to Settings/About/Updates
    • Enable backup before update (if you want an automatic backup. You should do it !)
    • Select Post update

    Post Update (before 6.0-b07)
    Now you should have a dialog box (Post update) that ask you to enter some text.
    Before doing anything you need to know that TWRP use OpenRecoveryScript to permit some automation. Documentation is available at http://wiki.rootzwiki.com/OpenRecoveryScript

    I will assume that you want to install Gapps, SuperSU and Xposed. Be free to remove what you don't want. So enter in the field this content :
    install /data/media/0/gapps.zip
    mount system (SuperSU doesn't mount /system but try to read variables from /system/.supersu)
    install /data/media/0/supersu.zip (Don't forget the /system/.supersu)
    install /data/media/0/xposed.zip

    (of course you will have to change the path of your files to valid ones. Don't forget copy/paste possibility of your explorer to help you. The root path should be common if you have uploaded files on your own/primary android user: /data/media/0/)

    Post Update (since 6.0-b07 and 5.1-b29)
    Before doing anything you need to know that TWRP use OpenRecoveryScript to permit some automation. Documentation is available at http://wiki.rootzwiki.com/OpenRecoveryScript

    I will assume that you want to install Gapps, SuperSU and Xposed. Be free to remove what you don't want:
    Select + / select Gapps.zip / OK
    Select + / select SuperSU.zip / In the before field put 'mount system' / OK (SuperSU doesn't mount /system but try to read variables from /system/.supersu)
    Select + / select Xposed.zip / OK

    If you need to add extra commands, use the additional script feature that will display a DialogBox.

    That's it

    Hope it will be easier for everyone now :)
    46
    nAOSP ROM 6.0 b01 released

    This is the first version of nAOSP with Android 6.0.1_r3

    The target for this first version is to have pretty much the same user experience for those who come from nAOSP 5.1 b28.

    My works is based on @billchen1977 one so big thanks again to him !

    Please read carefully this post and specially the flashing procedure !

    Release changelog :

    • kernel: Wake Gesture support (double tap, sweep). Touchscreen power managed by proximity sensor when screen off
    • kernel: governor SMARTMAX by default. OC supported.
    • Selinux: Fully supported and configured but will stay in permissive mode for this first release. You can Enforce it safetly and report denied in case of issue (adb shell dmesg | grep denied). Thanks for your help
    • TWRP: Support new partition layout and encryption footer length. /data/media will be preserved and used for backup/restore (recovery.img on the OTA zip file)
    • WakeUp: Permit to control wake gesture (Settings/nAOSProm/WakeUp)
    • ViPER4Android: Sound FX managed by ViPER4Android
    • Email: Patched to bypass Exchange Security Policy (No Pin code etc)
    • Browser, Music and Gallery2: AOSP version replaced by CyanogenMod version
    • Dialer: Materialized Icon added
    • Quick Search: Removed. Be free to use another application like Google Search provided with GApps
    • GApps: Patch to avoid force close due to permissions (you need to flash the ROM + OpenGapps in one shot and to reboot directly after that)
    • Double Tap to Sleep on the status bar
    • Minfree setting supported
    • Volume/Camera Keys can control track (next/previous/stop) when screen off and music is playing
    • Doze: Support adaptive brightness (Ambient Display)
    • Notification during Doze: Invert color for dark theme supported (avoid a black text on black background)
    • Menu/Home Keys: By default press Menu will launch App switcher and long press on Menu will trigger Menu. Long press on Home will launch Search Engine. This is the modern layout but you can use the old one too
    • Power Key: Include Reboot menu (Normal, Soft, Recovery and Bootloader)
    • Quick Setting: Can be pull down directly with one finger on the 1/3 right of the Status bar
    • Recent Applications : Close all applications button on the right bottom
    • Lightbar: Support adaptive brightness, On during 5sec, On/Off with the screen or Off, Notification
    • Settings: nAOSProm section that permit you to configure the ROM, to start WakeUp, Layers Manager and SuperSU if available.
    • Battery: Menu include the Fast Charge option (Fast charge will be always disabled after a reboot)
    • KSM: Kernel Same-page merging disabled by default. (See Settings/nAOSProm)
    • Signature Spoofing: Permit an application to fake his signature mainly for Microg/NoGapps (disable by default)
    • Adaptive Brightness: Speed up transition when you go to a brighter environment (~1.5s).
    • Busybox include
    • Partition Layout: /data and /sdcard merged. F2FS is the only filesystem supported for /cache and /data now

    Known issues

    Encryption

    So Encryption is working but don't use it for now because GSM radio will not be able to start correctly and TWRP will not be able to mount /data. You can try just for fun. The flashing procedure take care to prepare the device for a possible encryption in the futur but will not encrypt the device. (go into Settings/Security/Encrypt. Don't forget to set a PIN/passphrase/schema before)

    Battery doesn't charge when the device is off on a sector charger

    Don't panic if your device hasn't any power and can't start when you press Power button. It is not dead (It happens to me during my test).
    So simply connect your phone in usb to a computer. The led should be red/orange. Keep it like this. After few minutes the device will start and you will see the Sony logo. If it display a battery on screen, you can press power button to start the device. Once done, go in airplane mode and wait to have around 10%. Of course you can enable fast charge and plug the device quickly to an adapted charger (1A).

    Where is Superuser ?

    The ROM doesn't come with any Superuser application. I recommand to use SuperSU (tested beta 2.52 but the stable 2.46 is reported to be fine). I will integrate SuperSU in a next release to avoid this extra step.

    Flashing Procedure

    PLEASE READ CAREFULLY. This is not a complex procedure but you have to repartition the device if not yet done and to backup your data prior.

    Backup:

    We will format /data and /sdcard so you need to take backup and put it outside of the phone.
    Use your current TWRP to backup your ROM (system/boot/data) into /sdcard
    Once done, backup on your computer the /sdcard content (use a file browser with mtp or adb pull)

    Recovery/TWRP:

    Extract recovery.img from the Zip file
    Enter the device into fastboot mode
    flash the recovery.img into boot partition like a boot image (fastboot flash boot recovery.img)
    restart the device (fastboot reboot)
    You should be on the recovery (it can be a little bit long to start the first time)

    Repartitionning:

    Go to Mount on TWRP gui (uncheck system, data, cache)
    Connect on the recovery with "adb shell"

    fdisk -l /dev/block/mmcblk0

    Copy the output of the command to a file with your backup. It will permit you to revert if needed and to help you if you have an issue (read carefully and you will not have)

    Interesting parts are those in bold :
    /dev/block/mmcblk0p14 42945 261695 7000024 83 Linux
    /dev/block/mmcblk0p15 261696 954240 22161424 83 Linux

    It can be not exactly the same values for you depending the size of your /data (p14) and /sdcard (p15)

    so here we go (don't forget the section backup. this procedure will erase your data)

    fdisk /dev/block/mmcblk0

    Command (m for help): p

    Command (m for help): d
    Partition number (1-15): 15

    Command (m for help): d
    Partition number (1-14): 14

    Command (m for help): n
    First cylinder (769-954240, default 769): 42945
    Last cylinder or +size or +sizeM or +sizeK (42945-954240, default 954240): (just press enter if the default value is the good one)
    Using default value 954240

    Command (m for help): t
    Partition number (1-14): 14
    Hex code (type L to list codes): 83

    Command (m for help): w
    The partition table has been altered.
    Calling ioctl() to re-read partition table

    Once repartitioning done, do NOT do anything else and just reboot the device (to be sure that the partition table is take into account by the kernel)

    Now we will convert /data and /cache to F2FS.
    Ext4 is not supported anymore on nAOSProm. You don't need to take care about the 16384 byte to reserve for encryption. TWRP will do it for you.

    Into TWRP:
    Wipe
    Advanced Wipe
    select Data
    Repair or Change File system
    Change File System
    F2FS
    Swipe to Change

    Press Home and do the same procedure to convert Cache partition to F2FS

    Once done, again, do NOT do anything else and just reboot the device (required by TWRP)

    If you still see 0MB for data after the reboot, try to format data (Wipe/Advanced Wipe/Select Data/Format)

    Congratulation, if everything is fine you should be able to mount /cache and /data and to see a big /data volume arround 28 GiB.

    FOTA recovery:

    Now it is time to put the new recovery into the FOTA partition

    Upload the recovery.img into your phone (adb push recovery.img /sdcard/). Yes /sdcard is a symlink somewhere to /data/media :)
    Flash the recovery.img to the fota partition as usual (dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p11)

    Upload the ROM/Gapps/SuperSU...

    Upload the ROM/Gapps and every zip that you want to flash into /sdcard (/data/media/). Use "adb push" for example.

    Flash the ROM and GApps

    You can now flash the ROM as usual

    If you want GApps, please flash Gapps just after the ROM and once done, don't flash anything else and restart the phone. You should be able to configure Gapps without force close. The first boot can be a little bit longer due to application compilation as usual.

    Don't restore GApps with TB. I'm only testing OpenGApps micro.

    Once everything is working fine, just reboot into the recovery and flash what else you need (SuperSU, Xposed...)

    In fact SueprSU and Xposed can be flashed with ROM + Gapps in the same process. If this is the first time that you flash this ROM I suggest you to keep 2 steps and to be sure that ROM + Gapps is working.

    Restore your own data

    You can restore your /sdcard data (Pictures, Music, ...) if you want.
    Do not restore TWRP folder because previous TWRP backup are not compatible with the new partition layout.

    Congratulation

    That's it :)

    ...more to come
    42
    Hi guys,

    I'm back in an other country. I need some time to catch every posts but I will take care of the ROM again really soon.
    41
    Plz Can Someone Give me Step By Step Guide For This Noob I wanna Install This Rom

    Hope XDA Will Help :)
    Installing lolipop rom from stock or 4.xx:

    1. Unlock bootloader, gain root privileges on current rom! - It's a must have! bootloader unlock bootloader unlock v2
    Root

    2. Flash TWRP 2.8.7.0 into FOTAkernel. (put recovery.img on sd and type
    dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p11 in terminal emulator (app from google play)) (OR use TWRP Manager/Rashr app on phone - you can find it on google play, - easier way TWRP on googleplay) recovery
    3. Reboot phone, copy rom and proper gapps on phone. (dont forget this step or you will have to start from stock rom again :p) OpenGapps
    4. Install Rashr app and flash the kernel (boot.img - from the rom .zip/or rom source or any other suporting android 5.x/doomkernel etc). (easiest way for me, way easier than playing with bootloader itself) (it can flash TWRP as well but i prefer TWRP manager)
    5. Reboot phone and keep clicking up volume key during restart, to start TWRP.
    6. Wipe everything except sdcard.
    6.5 - optional step - migrate all partitions on phone except sdcard to f2fs. (wipe menu in TWRP, theres an option for that, Do it one by one) (there is thread about it on 1st page Xperia S Android Development) here and here is ext4 vs f2fs test
    7. Into TWRP, unmount every partitions except the sdcard.
    8. Flash the ROM.
    9. Wipe cache/dalvik.
    10. Flash gapps. (U can combine steps from 8 to 11 by selecting rom and gapps at once in TWRP install menu, but you dont have to do this)
    11. Wipe cache/dalvik.
    12. Reboot and wait 1-30 minutes. (depends of luck, i have never waited more than 5 minutes but some ppl here had to wait like a half hour till it ends booting, so dont be scared! just wait)
    13. Enjoy rom.

    Updating rom from 5.xxx to 5.xxx next version, new beta etc.

    1. Copy rom and proper gapps on phone. OpenGapps
    2. Reboot phone and keep clicking up volume key during restart to start TWRP.
    3. Wipe everything except sdcard. ( = clean install)
    3.5 Wipe cache/dalvik. ( = dirty install)
    3.7 Wipe everything except sdcard and data. I](To save your previously installed apps. I call it "half dirty") [/I]
    Choose one of these three, dirty works fine ok 90% times. Sometimes after dirty flash you may encouter bugs or errors (luck dependent?) So always before cryin a river on forum make sure you did a clean flash, if bug still exist than u can report it here
    4. Unmount every partitions except the sdcard.
    5. Flash the ROM.
    6. Wipe cache/dalvik.
    7. Flash gapps.
    8. Wipe cache/dalvik.
    9. Reboot and wait 1-30 minutes.
    10. Enjoy rom.

    Hope it helped ;). Next time use search or please pin my post somewhere because it's way easier to install this way than by following OP instructions. No offense @mickybart :p
    But your description is not easy to understand to common non xda maniac users :p. And i have to say its hard to find any allinone guide here to do/read about most common things needed to change rom. Well I remember how hard it was for me when i started playing with custom 4.1.2 roms.
    Cheers!

    PS. After "few" edits I dont know what more can i say here :p, so feel free to correct my mistakes or add new points ;)

    PS2. And to all newbies I strongly suggest to read all guides I have linked here before you start doing anything.
    Read all, than start to follow step by step instruction so you wont get stuck somewhere.


    PS3. English is not my native language, I apologize for any mistakes I did. (correct me if they are terrible - I'll edit them :p)

    PS4. Most important one? If you've bricked your phone please don't blame me for that ;). It's like "youknowhat", it happens :p
    There are many ways to fix it. Tutorial how to repair bricked phone.Don't be scared to fail, but if you stick to tut you 99% wont ;).