yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Original Android Development] lollyjay:
Are any devs making progress building Android 9 Pie for our flo/deb?
[Nexus 7 (2013) Original Android Development] Clamor:
This thread isn't about ROM developing. But as UA developer I can say that we are working on P.
[Nexus 7 (2013) Original Android Development] aradalien:
the zip wont flash for me it gives an error that it cannot find the updater script..

TWRP pic of the error

https://imgur.com/a/D7iXWU1
[Nexus 7 (2013) Original Android Development] Pipsname:
I get this error as well. Did a full reset of the device before starting.
[Nexus 7 (2013) Original Android Development] aradalien:
You need to redownload the Partition file because it was corrupted, i spoke with the author and he suggested this and it worked 1st time,

such a simple fix. OP :good:
[Nexus 7 (2013) Original Android Development] JT1510365:
Why can't I copy any of my apps or files to the system I did all the steps correctly to install this mod and everything is working fine except I can't copy anything to the system in my ROM I am trying to copy chrome using my root file manager to the system and every time it says copy failed I have well over 500 megabytes left in the system so it should be copying the files with no problem but its not. Please see screenshot and if clamor or anyone else could help me that would be great.

https://lh3.googleusercontent.com/-...-h848-n/Screenshot_20181008-144136%5B1%5D.png

Edit:

Here's my partition log:

View attachment 4614447
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=5653319]JT1510365[/MENTION] it is root issue or something related to that. You use magisk? Is it updated to latest version?

I can ensure that it isn't repartition issue, partition log is perfectly fine.
[Nexus 7 (2013) Original Android Development] JT1510365:
why does it say in the log then that my system partition type is ext2 or fat16 i wanted my system partition to be ext4 because that is what it was before why did it get changed then

---------- Post added at 09:11 PM ---------- Previous post was at 09:10 PM ----------

i can assure you its not a root issue this didnt happen before when i installed my rom with your mod not installed
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=5653319]JT1510365[/MENTION] /system fs is defined by system.img you flashed.

Today I pushed to /system via adb and there were no problems. I have just installed Magisk and tested. Copy to /system works.
[Nexus 7 (2013) Original Android Development] JT1510365:
it should be ext4 though not ext2 it says in the log i can assure you its not a root issue
[Nexus 7 (2013) Original Android Development] JT1510365:
Okay update:

still says copy failed even after i uninstalled magisk and tried supersu. I even formatted internal storage and still says copy failed when i try to copy my files so obviously your mod did not work for me and i did all the steps correctly. What is going on is there something else i can try to do. I was able to copy some files but now no more files can copy even though i have 600 megabytes of free space left in system.

I am using RR Remix 7.1.2 ROM by the way so you know:)
[Nexus 7 (2013) Original Android Development] MikiGry:
[MENTION=5653319]JT1510365[/MENTION]

Try Total Commander. I remember root browser (for example) having problem with copying anything to the /system or deeper
[Nexus 7 (2013) Original Android Development] drmarble:
/system is mounted read only. This is true on all android builds. You have to remount it read/write to copy files there. In adb the command is "adb remount".
[Nexus 7 (2013) Original Android Development] CocoBuzz:
Hi, I cannot download TWRP - it looks like file is no longer there or something like that :(
[Nexus 7 (2013) Original Android Development] drewski_1:
how are you trying to download?

the links currently work for me via browser. they are not working for me in the XDA Labs app.
[Nexus 7 (2013) Original Android Development] CocoBuzz:
I tried via Chrome and Opera on my desktop and phone. And it's failing. Sometimes it's says 410 Gone and sometimes it starts and brakes after second with Network error (not my network issue).

EDIT: I tried with MS Edge and it worked like a charm :D
[Nexus 7 (2013) Original Android Development] prsa01:
Trouble seeing tablet with adb tools

Note: total ADB noob -

OK, made it through below issue, needed to go back to my original NRT install and reinstall driver.

Trying to do first step, backups using adb,

adb shell

dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img receive error "dd: /dev/block/mmcblk0p2: Permission denied"

Hi,

Used to be able to access via adb primarily using wugs toolkit for updates etc. Now I can access storage via windows tools but adb reports no device errors. Win10 64 bit

I've tried:

o. Switching mtp/ptp and back

o. Delete device/reinstall driver (correct driver?)

Any thoughts, links, driver versions, stk/adb versions, etc would be very much appreciated. Thanks!
[Nexus 7 (2013) Original Android Development] MikiGry:
Type "su" in ADB first
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=4433692]prsa01[/MENTION] try

adb root

Before commands
[Nexus 7 (2013) Original Android Development] prsa01:
Have tried "adb root" before and after the "adb shell" command as well as "su" inside and outside of adb shell

So far none of that works for me.

Does it matter whether tablet usb mode is mtp or ptp?

Any good quick reference links for adb so I'm not operating in the dark?

Thanks again!
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=4433692]prsa01[/MENTION] try use this commands calling cmd from folder with attached adb tools

adb root
adb shell
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img
dd if=/dev/block/mmcblk0p3 of=/sdcard/modemst2.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/persist.img
[Nexus 7 (2013) Original Android Development] d2warren:
My Nexus is semi bricked. I flashed the repartition zip, then typed the word in terminal which ended with an error (I think 8), then flashed the TWRP UA. Can't do anything in TWRP now because all my /directories fail to mount (invalid argument)
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=9152737]d2warren[/MENTION] flash partition log zip and attach picture of log to your post here.
[Nexus 7 (2013) Original Android Development] drewski_1:
i'm not sure there was an error (it didn't look like it from the on screen log during partition zip flash), but i had similar with all the /partitions failing to mount after flashing UA TWRP and rebooting to it.

i flashed the partition zip again which brought it back to stock, flashed it one more time and that time, things worked OK.

YMMV.
[Nexus 7 (2013) Original Android Development] mr_rubbish:
Wiping partitions after resize.

In case someone else gets the same problem as me, I thought I'd share what I did to complete the process successfully.

-I pushed the repartition.zip file to the device and executed it with TWRP.

-It completed and rebooted.

-When i tried to wipe the partitions they all failed with a mount error. Tried multiple times, identical results.

-Pushed LineageOS zip to device and attempted install. It finished with an Error 7. Essentially a complete failure to install. I think it was something about being unable to mount one of the partitions.

How I fixed it

- In TWRP: Wipe > Format data

- Type yes

- Once this completes go to: Wipe > Advanced Wipe

- Tick all the boxes and wipe. There should be no further mount errors.

However, I wonder if things might have been smoother if the instructions recommended installing the custom TWRP image as step 3, instead of towards the end of the process?

Anyway, I hope that someone finds these instructions useful!
[Nexus 7 (2013) Original Android Development] JT1510365:
tried that and still doesnt work

---------- Post added at 04:39 AM ---------- Previous post was at 04:37 AM ----------

total commander doesnt work either whenever i try to copy files to system it gives me an error
[Nexus 7 (2013) Original Android Development] iskyi:
Omg! I was getting mounting errors left and right and then I gave your method a try and formated my data and it worked!

Thanks for this. I was going crazy trying to correct my issue
[Nexus 7 (2013) Original Android Development] EclipseGT:
Is it possible to restore a TWRP backup after initial resizing or do i need to do a fresh clean rom install?
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=4994032]EclipseGT[/MENTION] it is possible to restore TWRP backup after repartition.
[Nexus 7 (2013) Original Android Development] oidenburga:
Hi, i have the problem that vendor will not mount after flashing the zip.

Recovery is already twrp-3.2.3-1_UA-flo.img

There is my log.
[Nexus 7 (2013) Original Android Development] MikiGry:
[MENTION=2636951]oidenburga[/MENTION]

Format it a few times. After that is should mount
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=2636951]oidenburga[/MENTION] you didn't make repartition and so have no /vendor
[Nexus 7 (2013) Original Android Development] oidenburga:
[MENTION=5468078]MikiGry[/MENTION]

That changes nothing, because vendor doesnt exist.

[MENTION=5424240]Clamor[/MENTION]

Sure i did.

I flashed the zip, then i wrote the word into the terminal, then it rebootet, then i flashed the new Recovery.

Hm odd ... I cant get into the Recovery from the bootloader anymore.

Only when i start the tablet normally it goes straight in the Recovery.

I flashed it again, looks good
[Nexus 7 (2013) Original Android Development] Clamor:
It is normal state. New partition table proposes larger /recovery size (16MB) while stock gives only 10MB. During restoring stock process, it is impossible to restore larger recovery backup into new smaller partition. Whether not to leave user without recovery excess, recovery backup restores into /boot partition. I forgot to mention it in OP.
[Nexus 7 (2013) Original Android Development] oidenburga:
Hm, unfortunately when i flash Gapps nano, the Google Services force closes :(

i hoped this repartition will help

EDIT: ok, now it works! after the third wipe and flash...
[Nexus 7 (2013) Original Android Development] guillaumeserton:
[MENTION=5424240]Clamor[/MENTION]

Got the below message after flashing repartition pack.

"Can not extract updater-script. Do you have it in package?

Updating partition details...

...done"

I have downloaded twice the partition package and try it several times.

Any idea why I have this message?

Thanks a lot for your work.

[EDIT]

Finded on my own the solution.

Don't install the zip file from the USB OTG. Copy them into the /sdcard
[Nexus 7 (2013) Original Android Development] yourrealking:
Thank you for your work. I finally made it. Usually, I hate cumbersome things like this, but the Oreo ROM I installed did not have enough space even for the PICO version of GAPPS, so I had no choice. Maybe I am too stupid, but I had some difficulties with the following things. Maybe adding more information about those would help others.

<- All right, I did this and got those files. Now what to do with them? They are not necessary unless I want to go back to the original state?

<-- "Format everything" needs more information. Also, when I installed the ROM, the system size was changed back to the original size, I had to search the thread for solution. So, I had to mount system and resize it again. Maybe that should be mentioned in Step 9.

This gives me a question... What happens when I update the ROM? Usually, when I install an updated ROM, GAPPS are kept. But now, ROM + GAPPS is bigger than the original system size. If I install an updated ROM and it resizes the system to the original size, do I have to resize system and install GAPPS again?
[Nexus 7 (2013) Original Android Development] Clamor:
They are necessary only if something goes wrong. If this partitions in some way got formatted you lose your mac addresses and IMEI

Ok, I'll add more details about resize. About "Format everything (including internal storage) in Advanced Wipe menu of TWRP" it means that you have to select all partitions in that menu and format them.

I'm not sure how it will work, but for roms without gapps survival and addon.d support you need resize AFTER rom flash, just BEFORE gapps flash.
[Nexus 7 (2013) Original Android Development] Pheckphul:
Thank you!!

Just want to say "Thank you!" I wanted to install Lineage 14.1 onto my Deb, but the partition scheme was such that there wasn't enough space. Once I used your repartition package it was a breeze to install Lineage.

Thank you, thank you, thank you!!

Слава украине!
[Nexus 7 (2013) Original Android Development] MartinX3:
You saved my day!

Why is the "Format data" step not part of the first post manual, [MENTION=5424240]Clamor[/MENTION] ? :)
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=6031898]MartinX3[/MENTION]
[Nexus 7 (2013) Original Android Development] MartinX3:
Is not the format entry which creates new partitions.

In this entry you need to write "yes".

It's not in "Advanced Wipe menu of TWRP".

And mount errors affected formatting at my site, because the partitions simply didn't exists anymore.

The special "write 'yes' to format data" function saved my life.

Also I miss the step that you need to restart into the new TWRP to format the device.

And the hint, that you need to use fastboot to flash your twrp.img, because everything get's deleted.

[MENTION=7694808]mr_rubbish[/MENTION] made his post, because this important information is missing. :)
[Nexus 7 (2013) Original Android Development] JT1510365:
hey clamor can you provide a flashable zip that will give me 2gb space in system partition rather than it being 1.4gb? I need this for my flo so if you can that would be great:)
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=6031898]MartinX3[/MENTION] fair enough, I'll add that corrections. Done

[MENTION=5653319]JT1510365[/MENTION] Nah, it is pointless to my opinion.
[Nexus 7 (2013) Original Android Development] JT1510365:
well thats your opinion and i respect it but to me its very useful and helpful since i use a ton of apps and i rather have them in the system than as data apps and 1.4gb is not enough for me. It just wont do. I saw someone share a pie build for flo that was meant for a 2gb system partition. How can i make this work? Can you at least pm me and tell me how to edit the script myself or can you pm me a flashable zip? I really need the 2gbs and i would greatly appreciate if you could help me out since your a very talented and smart dev:)
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=5653319]JT1510365[/MENTION] If you move app to /system, it will remain in /data anyway, updating system of Google Play writes updates in /data not in /system so it is useless to make system larger than 1,5 GB. If you so desire to have 2 gig system fine then, I'll PM you, but be aware that you won't be able to restore original size with my script.
[Nexus 7 (2013) Original Android Development] JT1510365:
why wont i be able to restore original system size wouldnt it be the same process for your 1.4gb script? There should be a way to do it.
[Nexus 7 (2013) Original Android Development] virgilio999:
It works for my Flo 32GB. Thanks.

I tried to do repartition in my Nexus 5 hammerhead 16GB. At start it seems to work but after installation RR Oreo the sistem partition turned into 1,05 GB.

It's so strange ..
[Nexus 7 (2013) Original Android Development] jhford:
Question

I'm about to try this. Does any part of the installation process require ADB? If so, please explain and provide a bit of guidance.

Thanks
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=263313]jhford[/MENTION] adb is required for some backup preparations, but they might be skiped (you may lose mac adresses, although, it never happend before). MTP is mandatory to have opportunity to backup user data and upload rom for flashing.
[Nexus 7 (2013) Original Android Development] jhford:
Are you referring to this?

dd if=/dev/block/mmcblk0p18 of=/sdcard/hboot-eng.img

My partitions are:

/dev/block/mmcblk0p22 827M 736M 90M 90% /system

/dev/block/mmcblk0p23 551M 15M 536M 3% /cache

/dev/block/mmcblk0p30 26G 13G 14G 49% /data

/dev/block/mmcblk0p4 14M 4.1M 10M 29% /persist

/dev/block/mmcblk0p1 86M 74M 12M 87% /firmware

Questions, if so:

1. Does this replace a Nandroid backup?

2. I assume that the "of" needs to point to my PC? Should I change this command to point to a directory, such "C:/.../downloads/clamor/hboot-eng.img?

3. At what point in your 9 step install instructions should I execute the command?
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=263313]jhford[/MENTION] I'm referring to first post.

1. No, it doesn't, but clean install of rom is preferable.

2. No, you shouldn't improvise if you don't know how. You have to pull images from root of internal storage after you run backup commands from first post.

3. At step 0. EFS and /persist backup should be done BEFORE repartition.

[MENTION=263313]jhford[/MENTION] No, you don't. Rom you are currently using doesn't matter.
[Nexus 7 (2013) Original Android Development] jhford:
Thanks. I overlooked the backup instructions in post #1. One more question, though. I already have the AOSP ROM installed. Do I have to return to stock before doing this?

Thanks again.
[Nexus 7 (2013) Original Android Development] MadHacker:
I have a FLO 16GB, after flashing repatriation zip, I could not mount system, vendor, etc.... Also said it they were 0 MB in size. :(

Any ideas of what went wrong?
[Nexus 7 (2013) Original Android Development] drewski_1:
You did the formatting step in the instructions?
[Nexus 7 (2013) Original Android Development] MadHacker:
6. Install TWRP from below (it is build with support of new partitions layout and sizes. It can be differed from official TWRP by next format 3.x.x-1 UA).

7. Format everything (including internal storage) in Advanced Wipe menu of TWRP (mount errors will not affect formatting!)

I thing so, installed new TWRP in step 6, went to Advanced Wipe menu, and wiped everything.....

Seen no format option there though.... probably the issue.... where do you find the format option?
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=1218926]MadHacker[/MENTION] try to format internal storage and wipe everything in advanced wipe menu once more. Then reboot into recovery and check if partitions display properly. If not, flash my size check zip and PM me photo of output
[Nexus 7 (2013) Original Android Development] m0crt:
Hi

Attempting to resize on an asus-grouper (2012 Nexus 7). Stuck with the unrecognised disk label on mmcblk0. Ideas?

/dev # cat /proc/partitions [J

major minor #blocks name

179 0 15392768 mmcblk0

179 1 12288 mmcblk0p1

179 2 8192 mmcblk0p2

179 3 665600 mmcblk0p3

179 4 453632 mmcblk0p4

179 5 512 mmcblk0p5

179 6 10240 mmcblk0p6

179 7 5120 mmcblk0p7

179 8 512 mmcblk0p8

179 9 14228480 mmcblk0p9

179 32 2048 mmcblk0boot1

179 16 2048 mmcblk0boot0

Filesystem Size Used Available Use% Mounted on

tmpfs 487.5M 20.0K 487.5M 0% /dev

tmpfs 487.5M 20.0K 487.5M 0% /tmp

/dev/block/mmcblk0p4 436.0M 7.4M 428.6M 2% /cache

/dev/block/mmcblk0p9 13.4G 983.6M 12.4G 7% /data

/dev/block/mmcblk0p9 13.4G 983.6M 12.4G 7% /sdcard

/dev/block/mmcblk0p3 639.8M 563.7M 76.0M 88% /system
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=9687828]m0crt[/MENTION] first of all this thread is for FLO/DEB (Nexus 7 2013), not for first gen Nexus 7

If you think that I did not try to repartition Nexus 7 2012 you are mistaking, it involves usage of nvflash (maybe) with complex hex edits. Grouper has no simple ways to repartition.
[Nexus 7 (2013) Original Android Development] m0crt:
All noted Clamor. I noticed another posy earlier re the 2012. Appreciate the reply.
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=2562703]eduncan911[/MENTION] well, if you read OP carefully you would notice

And in the second post
[Nexus 7 (2013) Original Android Development] ripee:
Out of respect for Clamor, please remove my link. Users can figure out to look for the link in my signature.

But while we're on the subject, thank you Clamor for this repartitioning tool! :D I just used it on my grandma's flo to be able to flash lineage-16.0 and pico Open GApps.
[Nexus 7 (2013) Original Android Development] MadHacker:
FORMAT help

Still can't find the "FORMAT" option in "Advanced Wipe" menu .....

Could someone please enlighten me to where it's hiding, Thanks
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=1218926]MadHacker[/MENTION] sorry for such a long wait. You have to check partitions you would like to format and swipe over swipe to wipe ("wipe" is mistake it should be "format", but we have what we have).
[Nexus 7 (2013) Original Android Development] Cobra11Murderer:
Problem resolved. Works great had to use pico for the rom however 9.0 running with no issues. Thanks op for the help and the script to make this easy
[Nexus 7 (2013) Original Android Development] amityg:
Did you get to terminal and type modify? I also had 0. Fastboot flash recovery new twrp ...booted to new twrp and yes to format
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=2749856]amityg[/MENTION] that situation was fixed immediately, repartition went as intended. [MENTION=4303121]Cobra11Murderer[/MENTION] did not perform data format in TWRP. After format everything went ok.
[Nexus 7 (2013) Original Android Development] :
Hi followed guide. Got to step 6. Installed modified twrp

Tablet now does this (photo) then reboots and repeats
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=9533206]NotEvenFinalForm[/MENTION] you should continue, move to step 7, perform a data format, and then format else partitions.
[Nexus 7 (2013) Original Android Development] :
I couldnt continue. The device kept rebooting and doing the same thing. I had no control in twrp.

I flashed back to stock then followed the process again and it worked. Still have no idea why it did that in the first place.
[Nexus 7 (2013) Original Android Development] cyclone866:
I ran into the exact same issue that you did with all the errors in TWRP. How did you flash stock again? I just ran the flash-all.bat with the factory image but now i get stuck in a bootloop at the Google logo. I can still get into the bootloader with adb though. :confused:
[Nexus 7 (2013) Original Android Development] :
Ill make a lil step by step

1. Use wugfresh nexus toolkit to flash latest stock image. Which is android 6

2. Boot and enable android debugging. Unlock ur oem again if necessary

3. Install standard latest twrp.

4 flash the repartition file again but this time in the terminal it should say write 'stock'

5 reboot to twrp reflash partition file this time should say modify.

6 it automatically rebooted to bootloader. Install the modified twrp.

7 follow the rest of his steps.

Worked for me let me know how it goes
[Nexus 7 (2013) Original Android Development] Ghoul159:
Hello, everyone a small doubt. Do i need to be on modified twrp to install roms and backups? Can anyone explain fifth point?
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=9533206]NotEvenFinalForm[/MENTION] main goal of what you did was return to stock and than again repartition, to do that flashing a stock image isn't necessary, even more, it can be dangerous since partition layout is not as for stock.

[MENTION=4828798]cyclone866[/MENTION] flashing stock image as is over new partition layout is ALWAYS a bad idea. You needed to format data and then wipe everything in Advanced wipe menu (errors won't affect formatting).

[MENTION=7120843]Ghoul159[/MENTION] no you don't need a modified TWRP, official TWRP will work as well, but nevertheless I recommend to use modified since it was made especially for this partition layout and supports work with /vendor and wider support for f2fs.
[Nexus 7 (2013) Original Android Development] Clamor:
Users! Thanks to all who used my repartition script and partition layout!

Dear ROM developers! Hope with some time we will reach state when we could use common vendor.img for all ROMs.