Giter Club home page Giter Club logo

Comments (5)

clamor-s avatar clamor-s commented on August 10, 2024

@brainstorm hmm, analyzing your table I can see that you didn't made this partition layout using my zip, but nevertheless, since /data was untouched you should be able to make repartition with my zip. There should be some additional factors that blocked this process, if you really tried to enter trigger word just after flash (no reboot).

It is impossible to return to stock using my zip once more, since it can fix only its own changes.At this point voron00 made a mistake.

from android_device_unlegacy_recovery.

brainstorm avatar brainstorm commented on August 10, 2024

I just booted TWRP again today and here's the full log via adb shell, still didn't change anything manually (yet), just in case it's useful to you and/or @voron00:

host $ md5sum mako_clamor_repartition.zip
d78dc5026044c57e25b2160e5ff0e00b  mako_clamor_repartition.zip
host $ adb push mako_clamor_repartition.zip /sdcard
mako_clamor_repartition.zip: 1 file pushed. 9.5 MB/s (186130 bytes in 0.019s)
host $ adb shell
~ # twrp install /sdcard/mako_clamor_repartition.zip
Installing zip file '/sdcard/mako_clamor_repartition.zip'
Checking for Digest file...
Skipping Digest check: no Digest file found



Unlegacy repartition script


Made by CLAMOR


****** Applying dark magic ******

     Nexus 4 16GB
        Stock

Your Nexus is ready for update partitions
Please NOW go to Main screen -> Advanced -> Terminal
Write word   modify   and wait till phone reboots

Done processing script file
~ # modify
umount: can't umount /system: Invalid argument
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)   rm 21
(parted)   rm 22
(parted)   rm 23
(parted)   mkpart primary 159383552B 1732247551B
(parted)   name 21 system
(parted)   mkpart primary 1732247552B 1994391551B
(parted)   name 22 vendor
(parted)   mkpart primary 1994391552B 2099249151B
(parted)   name 23 cache
(parted)   mkpart primary 2099249152B 15756951551B
(parted)   name 26 userdata
(parted)   quit
Information: You may need to update /etc/fstab.

Need size of filesystem
Creating filesystem with parameters:
    Size: 262144000
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8000
    Inode size: 256
    Journal blocks: 1024
    Label:
    Blocks: 64000
    Block groups: 2
    Reserved block group size: 15
Created filesystem with 11/16000 inodes and 2065/64000 blocks
Creating filesystem with parameters:
    Size: 104857600
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6400
    Inode size: 256
    Journal blocks: 1024
    Label:
    Blocks: 25600
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/6400 inodes and 1438/25600 blocks
Creating filesystem with parameters:
    Size: 13657702400
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8176
    Inode size: 256
    Journal blocks: 32768
    Label:
    Blocks: 3334400
    Block groups: 102
    Reserved block group size: 815
Created filesystem with 11/833952 inodes and 93267/3334400 blocks
host $

After rebooting, here's what I'm seeing:

~ # fdisk -l /dev/block/mmcblk0
Found valid GPT with protective MBR; using GPT

Disk /dev/block/mmcblk0: 30777344 sectors, 2740M
Logical sector size: 512
Disk identifier (GUID): 98101b32-bbe2-4bf2-a06e-2bb33d000c20
Partition table holds up to 28 entries
First usable sector is 34, last usable sector is 30777310

Number  Start (sector)    End (sector)  Size       Code  Name
   1            1024          132095       64.0M   0700  modem
   2          132096          133119        512K   0700  sbl1
   3          133120          134143        512K   0700  sbl2
   4          134144          138239       2048K   0700  sbl3
   5          138240          139263        512K   0700  tz
   6          139264          184319       22.0M   0700  boot
   7          184320          229375       22.0M   0700  recovery
   8          229376          230935        780K   0700  m9kefs1
   9          230936          232495        780K   0700  m9kefs2
  10          232496          234055        780K   0700  m9kefs3
  11          234496          235519        512K   0700  rpm
  12          235520          236543        512K   0700  aboot
  13          236544          237567        512K   0700  sbl2b
  14          237568          241663       2048K   0700  sbl3b
  15          241664          242687        512K   0700  abootb
  16          242688          243711        512K   0700  rpmb
  17          243712          244735        512K   0700  tzb
  18          244736          245759        512K   0700  metadata
  19          245760          278527       16.0M   0700  misc
  20          278528          311295       16.0M   0700  persist
  21          311296         3383295       1500M   0700  system
  22         3383296         3895295        250M   0700  vendor
  23         3895296         4100095        100M   0700  cache
  24        30775296        30776319        512K   0700  DDR
  25        30776320        30777310        495K   0700  grow
  26         4100096        30775295       12.7G   0700  userdata
~ #

And then @voron00 lineage6 release attempt to install:

host $ adb push lineage-16.0-20190223-UNOFFICIAL-mako-signed.zip /sdcard
lineage-16.0-20190223-UNOFFICIAL-mako-signed.zip: 1 file pushed. 10.5 MB/s (376465446 bytes in 34.299s)
host $ adb push open_gapps-arm-9.0-pico-20190225.zip /sdcard
open_gapps-arm-9.0-pico-20190225.zip: 1 file pushed. 10.7 MB/s (94053681 bytes in 8.394s)
host $ adb shell
/sdcard # twrp install lineage-16.0-20190223-UNOFFICIAL-mako-signed.zip
Installing zip file '/data/media/lineage-16.0-20190223-UNOFFICIAL-mako-signed.zip'
Installing zip file '/data/media/lineage-16.0-20190223-UNOFFICIAL-mako-signed.zip'
Checking for Digest file...
Skipping Digest check: no Digest file found
Warning: No file_contextsTarget: google/occam/mako:5.1.1/LMY48T/2237560:user/release-keysChecking size of the partitions...Invalid partition table detected. Perhaps, you already tried to resize your partitions. You must restore original partition table before installationUpdater process ended with ERROR: 7
Error installing zip file '/data/media/lineage-16.0-20190223-UNOFFICIAL-mako-signed.zip'
Done processing script file

from android_device_unlegacy_recovery.

clamor-s avatar clamor-s commented on August 10, 2024

@brainstorm repartition went successfully, you got 1.5G /system and a /vendor as intended. Reason why you might got problems earlier is interference between my script and voron00's script in his Lineage 16 build. Luckily, he removed it from his build and left only size check, so now everything should be fine.

from android_device_unlegacy_recovery.

brainstorm avatar brainstorm commented on August 10, 2024

Thanks a ton @clamor95 and Voron, I'll give it a spin then. Again, thumbs up and kudos for your work here 👍 👍

from android_device_unlegacy_recovery.

brainstorm avatar brainstorm commented on August 10, 2024

Yep, works like a charm now :)

from android_device_unlegacy_recovery.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.