remay / tmf-hudl

Custom ROM for the Tesco Hudl 1 - Keep your Hudl working after 26th June 2020
https://rob.themayfamily.me.uk/hudl
MIT License
17 stars 1 forks source link

Re-partition flash #6

Open remay opened 3 years ago

remay commented 3 years ago

Could we re-partition the flash and return unused system partition to userdata? Is this even desirable?

remay commented 3 years ago

Default partition map:

CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0 board.ap_has_alsa=0 init=/init initrd=0x62000000,0x00800000
mtdparts=rk29xxnand:
0x00002000@0x00002000(misc),
0x00004000@0x00004000(kernel),
0x00008000@0x00008000(boot),
0x00010000@0x00010000(recovery),
0x00020000@0x00020000(backup),
0x00100000@0x00040000(cache),
0x00002000@0x00140000(kpanic),
0x00200000@0x00142000(system),
0x00020000@0x00342000(factory),
-@0x00362000(userdata)

That's in 512 byte blocks.

So just over 1GiB for everything except userdata, and the rest of the 16GiB for userdata.

Is userdata further partitioned (i.e. is there any restriction to apps I can install based on /data/data/apps(?) being restricted to less that all of userdata?

AndrewChqng commented 3 years ago

Managed to shrink system to 384Mb (degoogling and replacing with MicroG/Xposed), cache to 12Mb, factory to 2Mb, recovery to 12Mb(CWM doesn't need all) which gives me 14.1GB for everything else

CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0 board.ap_has_alsa=0 init=/init initrd=0x62000000,0x00800000
mtdparts=rk29xxnand:
0x00002000@0x00002000(misc),
0x00004000@0x00004000(kernel),
0x00008000@0x00008000(boot),
0x00006000@0x00010000(recovery),
0x00020000@0x00016000(backup),
0x00006000@0x00036000(cache),
0x00002000@0x0003C000(kpanic),
0x000C0000@0x0003E000(system),
0x00001000@0x000FE000(factory),
-@0x000FF000(userdata)

I don't think userdata is partitioned since google switched to emulated sd card so can use extra storage usefully

remay commented 3 years ago

Really interesting to have confirmation that this is possible. I'm just not sure that the way these old devices might be used that we need another chunk of userdata. If I did the sums right you increased userdata by 1 GB?

AndrewChqng commented 3 years ago

I forgot to check the original state but here's what my Diskinfo now shows disc