Everything worked well... But even though stock gapps successfully installed, I don't have apps such as launcher, keyboard, etc... after the boot. I think it's not for only me, and is there any solution existing?
Are you using Dirty Unicorns? It's the only rom I have encountered this issue.Everything worked well... But even though stock gapps successfully installed, I don't have apps such as launcher, keyboard, etc... after the boot. I think it's not for only me, and is there any solution existing?
No... Every rom I tried caused the problem... Is it becauase I'm trying on Oreo?Are you using Dirty Unicorns? It's the only rom I have encountered this issue.
Even if you install successfully, system partition backs to default size when you reboot. I had to flash pico gapps.
I tried like 5 oreo roms until DU and it was fine. Maybe some recent commits cause this problem. Try older roms like AOSIP and let me know if you have time.No... Every rom I tried caused the problem... Is it becauase I'm trying on Oreo?
Alright thnxI tried like 5 oreo roms until DU and it was fine. Maybe some recent commits cause this problem. Try older roms like AOSIP and let me know if you have time.
Edit: Maybe latest TWRP cause this. I don't know. But something recent caused this.
I had the same problem with the Unlegacy ROM. I solved the problem by following these steps:Alright thnxMaybe I should try older twrp
So, you mean I should wipe whole phone and then flash rom, reboot recovery, type command to resize partition(since rom would change system partition to 1gb back as OP said), and finally the gapps?I had the same problem with the Unlegacy ROM. I solved the problem by following these steps:
1. Flash latest TWRP.
2. Reboot recovery
3. Factory reset (if you wipe all partitions, even the internal storage, factory reset after)
4. Flash rom
5. Reboot recovery
6. Flash GAPPS
7. Reboot
Worked for me![]()
Yes, you may try this out, but wiping internal storage is not mandatorySo, you mean I should wipe whole phone and then flash rom, reboot recovery, type command to resize partition(since rom would change system partition to 1gb back as OP said), and finally the gapps?
LOL... Not working. Anyway, thanks to your helpYes, you may try this out, but wiping internal storage is not mandatory
Oh, that's unfortunateLOL... Not working. Anyway, thanks to your help![]()
i have the same prob bud :'(Everything worked well... But even though stock gapps successfully installed, I don't have apps such as launcher, keyboard, etc... after the boot. I think it's not for only me, and is there any solution existing?
works like charm thank you very much.Hello guys!
Try this:
1) Install ROM
2) Backup ROM
3) Enable "Use 'rm -rf' instead of formatting" in TWRP settings
4) Format /system and use 'resize2fs -f /dev/block/mmcblk0p25'
5) Reboot TWRP
6) Restore backup
7) Install Stock OpenGapps
8) Done!
The idea behind it is that ROM installation somehow corrupt /system partition thus any write operations above normal data region silently fail.
~ # ./parted /dev/block/mmcblk0 p
Model: MMC SEM16G (sd/mmc)
Disk /dev/block/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
...
25 193MB 1267MB 1074MB ext4 system
26 1267MB 1298MB 31.5MB crypto
27 1298MB 2032MB 734MB ext4 cache
28 2032MB 15.8GB 13.7GB ext4 userdata
29 15.8GB 15.8GB 5632B grow
Number Start End Size File system Name Flags
...
25 193MB 1731MB 1538MB ext4 system //system is now resized to 1.5GB
26 1731MB 1762MB 31.0MB crypto
27 1762MB 2032MB 270MB ext4 cache //cache is reduced to 270
28 2032MB 15.8GB 13.7GB ext4 userdata //the userdata was untouched
29 15.8GB 15.8GB 5632B grow
In addition to this, I found that fix https://forum.xda-developers.com/showthread.php?t=2222297It worked, Thank you!
What i essentially did was make a nandroid backup followed by "adb pull /sdcard/" on the computer.
Followed your instructions (just before the flashing section), pushed the sdcard data back and restored the backup.
chowned and chmodded the /sdcard directory:
Resized the /system bit, rebooted and hoped it wouldn't 'bootloop'.Code:chown media_rw:media_rw /sdcard chmod 755 /sdcard
The process was nerve wracking, but now the handset is ready for a future stable ROM (I'm still on stock).
chown -R media_rw:media_rw /data/media/
find /data/media/ -type d -exec chmod 775 {} ';'
find /data/media/ -type f -exec chmod 664 {} ';'
restorecon -FR /data/media/
Amazing. Thank you for this guide. it works like a charm. I just wanna ask a question. I want 3 gb space instead of 2 gb. i did all things correct but just last step gonna fail. you said resize2fs -f /dev/block/mmcblk0p25 2000M". i changed it to "resize2fs -f /dev/block/mmcblk0p25 3000M". it mess it up everything and i back to the original, it worked. but there is missing 1 gb.TL;DR
Success: Repartition of a Nexus 5 16GB
Success: Flash cm-14.1-20161028-UNOFFICIAL-hammerhead.zip
Success: Flash open_gapps-arm-7.1-stock-20161217.zip
FAIL: Getting through the Google/CM set up process (Google Play services crashes)
Success: Flash Aroma Gapps
Gapps selections:
AimCode:AndroidPay=0 Books=0 CalculatorGoogle=1 CalendarGoogle=1 CalSync=0 CameraGoogle=1 Chrome=1 ClockGoogle=1 CloudPrint=0 ContactsGoogle=1 DialerFramework=1 DialerGoogle=1 DMAgent=0 Docs=0 Drive=0 Earth=0 ExchangeGoogle=0 FaceDetect=0 FaceUnlock=1 Fitness=1 GCS=1 Gmail=0 GoogleNow=0 GooglePlus=0 GoogleTTS=0 Hangouts=0 Hotword=0 Indic=0 Japanese=0 Keep=1 KeyboardGoogle=1 Korean=0 Maps=1 Messenger=0 Movies=0 Music=1 NewsStand=0 NewsWidget=0 PackageInstallerGoogle=0 Pinyin=0 PixelIcons=1 PixelLauncher=1 Photos=1 PlayGames=0 PrintServiceGoogle=0 ProjectFi=0 Sheets=0 Slides=0 Search=1 Speech=0 StorageManagerGoogle=0 Street=0 TagGoogle=0 Talkback=0 Translate=1 VRService=0 Wallpapers=1 WebViewGoogle=1 YouTube=1 Zhuyin=0 inclorexcl=1
To convert my Nexus 5 16GB into a Pixel using CM14.1 and Stock Open Gapps (I didn't want to keep flashing random pixel-experience.zip files)
Issue (strikethrough issues are with Stock Gapps)
When using Aroma Gapps:
1. Launcher3 crashes everytime the G search bar is clicked on
2. Google Now is not on the left pane despite my chosen packages
1. I couldn't Sign into my WiFi because no soft keyboard would appear (workaround: I created a password-less Hotspot on another phone)
2. I wasn't able to get past through the Google setup process; Google Play Services would crash every time I attempted to skip Tap & Go taking me back to a SIM card missing screen. On skipping this, I get taken to Tap & Go... and repeat
I've wiped all the caches (of course). If anyone has any ideas, it would be great.
Question to @surfrock66
You have a parted command that says:
Should this not be:Code:~ # ./parted /dev/block/mmcblk0 mkpart primary 3056MB 30.8GB
I may not have understood this fullyCode:~ # ./parted /dev/block/mmcblk0 mkpart primary 3056MB 31.3GB
Thanks surfrock66 for the original method; my method varies slightly and is as follows:
Code:Download and unpack parted.rar via the # With phone in TWRP Recovery $ sudo adb push parted / $ sudo adb shell ~ # chmod +x parted ~ # ./parted /dev/block/mmcblk0 p Model: MMC SEM16G (sd/mmc) Disk /dev/block/mmcblk0: 15.8GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 524kB 67.6MB 67.1MB fat16 modem 2 67.6MB 68.7MB 1049kB sbl1 3 68.7MB 69.2MB 524kB rpm 4 69.2MB 69.7MB 524kB tz 5 69.7MB 70.3MB 524kB sdi 6 70.3MB 70.8MB 524kB aboot 7 70.8MB 72.9MB 2097kB pad 8 72.9MB 73.9MB 1049kB sbl1b 9 73.9MB 74.4MB 524kB tzb 10 74.4MB 75.0MB 524kB rpmb 11 75.0MB 75.5MB 524kB abootb 12 75.5MB 78.6MB 3146kB modemst1 13 78.6MB 81.8MB 3146kB modemst2 14 81.8MB 82.3MB 524kB metadata 15 82.3MB 99.1MB 16.8MB misc 16 99.1MB 116MB 16.8MB ext4 persist 17 116MB 119MB 3146kB imgdata 18 119MB 142MB 23.1MB laf 19 142MB 165MB 23.1MB boot 20 165MB 188MB 23.1MB recovery 21 188MB 191MB 3146kB fsg 22 191MB 192MB 524kB fsc 23 192MB 192MB 524kB ssd 24 192MB 193MB 524kB DDR 25 193MB 1267MB 1074MB ext4 system 26 1267MB 1298MB 31.5MB crypto 27 1298MB 2032MB 734MB ext4 cache 28 2032MB 15.8GB 13.7GB ext4 userdata 29 15.8GB 15.8GB 5632B grow ~ # umount /data ~ # umount /sdcard ~ # umount /cache ~ # ./parted /dev/block/mmcblk0 rm 25 ~ # ./parted /dev/block/mmcblk0 rm 26 ~ # ./parted /dev/block/mmcblk0 rm 27 ~ # ./parted /dev/block/mmcblk0 rm 28 ~ # ./parted /dev/block/mmcblk0 mkpart primary 193MB 2291MB ~ # ./parted /dev/block/mmcblk0 mkpart extended 2291MB 2322MB ~ # ./parted /dev/block/mmcblk0 mkpart primary 2322MB 3056MB ~ # ./parted /dev/block/mmcblk0 mkpart primary 3056MB 15.8GB ~ # ./parted /dev/block/mmcblk0 p ~ # ./parted /dev/block/mmcblk0 name 25 system ~ # ./parted /dev/block/mmcblk0 name 26 crypto ~ # ./parted /dev/block/mmcblk0 name 27 cache ~ # ./parted /dev/block/mmcblk0 name 28 userdata ~ # mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p25 ~ # mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p27 ~ # mke2fs -b 4096 -T ext4 /dev/block/mmcblk0p28 ~ # ./parted /dev/block/mmcblk0 p ~ # mount -a ~ # exit Model: MMC SEM16G (sd/mmc) Disk /dev/block/mmcblk0: 15.8GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 524kB 67.6MB 67.1MB fat16 modem 2 67.6MB 68.7MB 1049kB sbl1 3 68.7MB 69.2MB 524kB rpm 4 69.2MB 69.7MB 524kB tz 5 69.7MB 70.3MB 524kB sdi 6 70.3MB 70.8MB 524kB aboot 7 70.8MB 72.9MB 2097kB pad 8 72.9MB 73.9MB 1049kB sbl1b 9 73.9MB 74.4MB 524kB tzb 10 74.4MB 75.0MB 524kB rpmb 11 75.0MB 75.5MB 524kB abootb 12 75.5MB 78.6MB 3146kB modemst1 13 78.6MB 81.8MB 3146kB modemst2 14 81.8MB 82.3MB 524kB metadata 15 82.3MB 99.1MB 16.8MB misc 16 99.1MB 116MB 16.8MB ext4 persist 17 116MB 119MB 3146kB imgdata 18 119MB 142MB 23.1MB laf 19 142MB 165MB 23.1MB boot 20 165MB 188MB 23.1MB recovery 21 188MB 191MB 3146kB fsg 22 191MB 192MB 524kB fsc 23 192MB 192MB 524kB ssd 24 192MB 193MB 524kB DDR 25 193MB 2291MB 2098MB ext4 system 26 2291MB 2322MB 31.0MB crypto 27 2322MB 3056MB 734MB ext4 cache 28 3056MB 15.8GB 12.7GB ext4 userdata 29 15.8GB 15.8GB 5632B grow # This didn't work for me $ sudo adb push cm-14.1-20161028-UNOFFICIAL-hammerhead.zip / $ sudo adb push open_gapps-arm-7.1-stock-20161217.zip / $ sudo adb reboot recovery # So I copied over the files once I reboot into recovery # I had to reboot into recovery again to see my CM14.1 and Gapps files # Flashed them using TWRP $ sudo adb shell ~ # unmount /system/ /sbin/sh: unmount: not found # I have no idea why this happened ~ # resize2fs -f /dev/block/mmcblk0p25 2000M resize2fs 1.42.9 (28-Dec-2013) Resizing the filesystem on /dev/block/mmcblk0p25 to 512000 (4k) blocks. The filesystem on /dev/block/mmcblk0p25 is now 512000 blocks long. ~ # mount -a mount: mounting /dev/block/mmcblk0p1 on /firmware failed: Invalid argument mount: mounting /usb-otg on vfat failed: No such file or directory # I have no idea why this happened either ~ # exit
~ # [6n./parted /dev/block/mmcblk0 p
Model: MMC SEM16G (sd/mmc)
Disk /dev/block/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 524kB 67.6MB 67.1MB fat16 modem
2 67.6MB 68.7MB 1049kB sbl1
3 68.7MB 69.2MB 524kB rpm
4 69.2MB 69.7MB 524kB tz
5 69.7MB 70.3MB 524kB sdi
6 70.3MB 70.8MB 524kB aboot
7 70.8MB 72.9MB 2097kB pad
8 72.9MB 73.9MB 1049kB sbl1b
9 73.9MB 74.4MB 524kB tzb
10 74.4MB 75.0MB 524kB rpmb
11 75.0MB 75.5MB 524kB abootb
12 75.5MB 78.6MB 3146kB modemst1
13 78.6MB 81.8MB 3146kB modemst2
14 81.8MB 82.3MB 524kB metadata
15 82.3MB 99.1MB 16.8MB misc
16 99.1MB 116MB 16.8MB ext4 persist
17 116MB 119MB 3146kB imgdata
18 119MB 142MB 23.1MB laf
19 142MB 165MB 23.1MB boot
20 165MB 188MB 23.1MB recovery
21 188MB 191MB 3146kB fsg
22 191MB 192MB 524kB fsc
23 192MB 192MB 524kB ssd
24 192MB 193MB 524kB DDR
25 193MB 2291MB 2098MB ext4 system
26 2291MB 2322MB 31.0MB crypto
27 2322MB 2836MB 514MB ext4 cache
28 2836MB 14.7GB 11.9GB ext4 userdata
29 15.8GB 15.8GB 5632B grow
Total System Size (KB) | 1033516
Used System Space (KB) | 835184
Current Free Space (KB) | 198332
Additional Space Required (KB) | 616648 << See Calculations Below
resize2fs -f /dev/block/mmcblk0p25 2000M
mount -a
Hi, I'm searching for the stock partition table log for my Nexus 5 16GB.Yes, this...my numbers show the methodology, but for the 16GB nexus 5 (or any other phone) you need to start by looking at the starting state of the partition table, then do the math from start to finish. I hope I've provided enough methodology and warnings that someone will either abort or do it right.