Commit b7fdd49
committed
Switch to nexus style mode completely v3
This is a 3rd iteration of the patch in which we go completely Nexus.
We eliminate external sdcard completely and use it as /data that can be fully encrypted.
In addition we perform series of storage layout changes, cleanups and optimizations.
Now to the details:
* Use original "userdata" parititon as /system (60% more space for GApps and ODEX data).
* Use original system partiton as /cache.
This also allow much faster boot with encrypted data (dalvik-cache is available on boot for asking user's password).
* Reduce size of primary zram swap to 96MB since profiling showed this to be sufficient (20% more RAM).
* Use original "cache" partition as secondary swap (to provide backup swap for smaller zram swap).
* We create pre-odexed build optimized for "small" devices which should allow the following:
- Avoid usage of userdata for DEX data of system apps and data duplication
- Avoid encryption of ODEX data of system apps
- Allow much faster access from /system partition
- Enable ART-small mode which pre-compiles ODEX data for system apps and relocaes to dalvik-cache
only bare minimum of clasees
* Add misc recovery related settings and coresponding changes to TWRP in order to support above (this device tree
can be used for building TWRP image)
* Remove duplicated default init.rc code
* General cleanups
Change-Id: Ieb2b58569fcc20bb2d77def3f205fd009386d7bc1 parent fd693a0 commit b7fdd49
File tree
5 files changed
+8
-10
lines changed- recovery/root/etc
- rootdir/etc
5 files changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | | - | |
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
| |||
0 commit comments