[S-OFF] BLACKROSE (Custom HBOOT) [2012.04.21]

Search This thread

dburg84

Senior Member
Sep 14, 2010
481
116
Edit: It did not brick me following the resizing tutorial. However it did not resize.

Sent from my Nexus One using Tapatalk
 
Last edited:

intersectRaven

Senior Member
Mar 13, 2010
2,260
1,558
www.intersectraven.net
If the image on post #2 works, you should be able to retain the data by going to recovery BEFORE flashing the modified SPL, deleting cache partition, backup (CWM 5.0.2), flash modified SPL, then restore the backup. Since the recovery now sees the modified partition sizes, it should restore properly. (well at least with CWM 5.0.2) :p

*I haven't tested the SPL method. I'm just basing it on my own MTD command method since the concept is the same although if the modified SPL works, it would be simpler to do. :)
 
  • Like
Reactions: efrant and cyberon

dburg84

Senior Member
Sep 14, 2010
481
116
Where you able to do that without loosing data?

Yes. I followed post 2 and the image. All system/userdata was there after restore.

EDIT: Hmmm... well it did not brick me but this is what df -h reports. Let me try it again.

# df -h
/dev/block/mtdblock3 145.0M 113.4M 31.6M 78% /system
/dev/block/mtdblock5 196.3M 155.1M 41.2M 79% /data
/dev/block/mtdblock4 95.0M 41.3M 53.7M 43% /cache
 
Last edited:
  • Like
Reactions: cyberon

dburg84

Senior Member
Sep 14, 2010
481
116
I am on cwm recovery. The latest rom manager installs.

Anyway I tried again without restoring system/data/cache. Basically just followed post 2 without backing up. I am getting the same result as posted by me above.

I will try a full wipe then flashing the hboot. Hopefully that will work. Maybe the recovery must be modified as well?

Edit: after full wipe I get the same result. doesn't appear to be resizing.
 
Last edited:

boqonx

Senior Member
Dec 22, 2004
318
28
Hong Kong
I flashed #2 as well, it didn't get resized either..hboot re-partition solution is cleaner, since we don't need to fiddle with the kernel nor the recovery.
 

dla5244

Retired Recognized Developer
Apr 20, 2011
242
1,302
Incheon
I am on cwm recovery. The latest rom manager installs.

Anyway I tried again without restoring system/data/cache. Basically just followed post 2 without backing up. I am getting the same result as posted by me above.

I will try a full wipe then flashing the hboot. Hopefully that will work. Maybe the recovery must be modified as well?

Edit: after full wipe I get the same result. doesn't appear to be resizing.

thank you for testing

I am noticed that nothing changed.
I made mistake and tested new repartition blackrose
As a result, i succeed in repatition.
I will update soon.

ps.you can repartition without modify kernel command line and use fastboot flash,erase command(compared with intersectRaven's custom MTD)
 

rjmohit

Senior Member
Sep 20, 2010
328
63
Google Pixel 3 XL
Please suggest another partition layout

145/95/196 Stock
105/5/331 Oxygen
125/5/306 MIUI
150/5/281 Cyanogen

How about we just resize the cache partition to its 1/4th size and give the extra to /data w/o touching the system partition in the stock layout. I heard some apps (like games) require a minimum of 20MB of cache to function properly. Also everything we download thru market is downloaded in the cache partition. If this is re-sized to a very low value (~5MB), downloading big apps will be a problem.
So I would suggest the following layout:

145/25/266
 

kaiser_tytnii

Senior Member
Nov 15, 2007
613
88
Toronto
looking forward to repartitioning! thanks a lot!

---------- Post added at 11:36 AM ---------- Previous post was at 11:35 AM ----------

How about we just resize the cache partition to its 1/4th size and give the extra to /data w/o touching the system partition in the stock layout. I heard some apps (like games) require a minimum of 20MB of cache to function properly. Also everything we download thru market is downloaded in the cache partition. If this is re-sized to a very low value (~5MB), downloading big apps will be a problem.
So I would suggest the following layout:

145/25/266

Cache to SD-EXT will solve it no?
 

cyberon

Senior Member
Jan 4, 2010
1,392
514
Google Pixel
Samsung Galaxy S21 Ultra
How about we just resize the cache partition to its 1/4th size and give the extra to /data w/o touching the system partition in the stock layout. I heard some apps (like games) require a minimum of 20MB of cache to function properly. Also everything we download thru market is downloaded in the cache partition. If this is re-sized to a very low value (~5MB), downloading big apps will be a problem.
So I would suggest the following layout:

145/25/266


That being true, i agree, currently my MIUI uses 128/2/170 so i purpose:

145/30/261

Thanks
 
Last edited:

kaiser_tytnii

Senior Member
Nov 15, 2007
613
88
Toronto
We dont have cache to sd-ext, its dalvik cache to ext, which is a different thing altogether.
The problem of files being downloaded to cache can be solved by changing some values in the ROM, but then it becomes ROM specific and we are looking for a general solution here. :)

Maybe I was not getting this right but my Desire has been using CM7 Partition for a long time, as layout on Alpharev (130/5/302), maybe we need MTD version of CM7 for Nexus 1 specifically?

I don't think that's the case since there is only 1 version of CM7 for Desire (Brovo) for Stock Partition and CM7 Partition
 

Top Liked Posts

  • There are no posts matching your filters.
  • 135
    BlackRose

    This is Nexus One custom bootloader(Based on HBOOT 0.35.2017)

    FEATURE

    Security OFF
    None padlock mark even unlocked
    Password protection
    Engineering command
    BlackRose custom command
    Change boot logo
    Resize Partition
    Select menu by pressing trackball
    Switch vibration at boot
    CRC32 check function
    Prevent overwrite HBOOT by RUU


    REQUIRE

    Windows PC or Linux PC
    USB Debugging(ADB) ON(Setting-Application-Development-USB Debugging)
    Connect USB before execute BlackRose installer

    ADB and Fastboot USB Driver - Windows
    http://www.mediafire.com/?bhxmn903d6cz9eg

    GO

    Windows PC: BlackRose.exe
    Linux PC: BlackRose

    Possible argument
    skip: go to blackrose menu immediatly(not recommand because hboot version check step is skipped)
    editor: go to blackrose editor(standalone)

    Guide
    Install
    http://www.youtube.com/watch?v=cC7nyRxVvk4
    Uninstall
    http://www.youtube.com/watch?v=mGrnDsSrS5s
    Update(from 120215)
    http://www.youtube.com/watch?v=TK5kepkO9oI
    Resize partition
    http://www.youtube.com/watch?v=ScIMetgk7Zw
    Execute BREditor(standalone)
    http://www.youtube.com/watch?v=FSbSL4kUloQ

    *.Those who using older version custom BlackRose(eg.111231), Since older version can't communicate with BlackRose installer so you need to follow my direction.
    Once you follow my direction, you no need to do this later

    1.customize same as previous partition layout using BlackRose editor(view "execute BREditor")
    2.fastboot flash hboot hboot_brcust.nb0
    3.fastboot reboot


    *.If you are using MAC OSX and failed to install by using installer,
    Download blackrose_manual_120421.zip and follow instruction in zip file

    Change Log

    120421

    Disable password protection (temporary)
    *.As you know, there is no way to recover password.
    That's why I designed 2nd password.
    I received many message about forget password.
    So I decided to disable password protection until I design new solution.

    Fix stock BlackRose partition layout label.

    120216

    Bootloader(HBOOT)
    Add new function(I will not reveal, It doesn't matter for normal user)

    120215

    Bootloader(HBOOT)
    Change message when protected by password (not allowed -> protected)
    Add bootloader commandline in order to communicate BlackRose installer

    Installer

    Now surpport below HBOOT version
    0.33.0012
    0.33.2012
    0.35.0017
    0.35.2017
    7.35.5017(BlackRose)

    Recreate program (not rebuild but recreate :D)
    1.BREditor has merged
    2.Install process has revemped
    3.Communicate with HBOOT
    4.Convenient,Optimized
    5.ETC
    * Since i'm not god, please feel free to report bug)

    111231

    Happy New Year!

    HBOOT(Bootloader)
    Update release date(because it's the last day of 2011)

    Installer and Editor
    Common: Execute file is not packed (fix ploblem executable-file deleted by Virus Scanner)
    Installer: Improve install process
    Update exploit

    Installer: Fix install bug(perfectly, 111231_2)

    Installer: Improve installer(111231_3)
    Editor: Bug fix(111231_3)

    111217

    HBOOT(Bootloader)
    New CRC32 function
    (this function is used for make custom bootloader)

    Installer and Editor
    Installer: Can flash ANY bootloader
    Editor: Show warning message when set password

    Editor: bug fix(partition and "understand" bug,111217_2)

    111208

    HBOOT(Bootloader)
    Password protection
    rebase blackrose custom command
    remove unlock, lock command
    remove simlock menu(replaced powerdown)
    remove clearstorage menu(replaced reboot)
    display off, on message when switch vibration at boot
    add extension label(no more identify 5017 or 5117)
    bug fix(getvar version)
    cleanup

    Installer and Editor
    improve blackrose installer
    new blackrose editor(you must use this)

    breditor: make it clear(password -> protection)(111208_2)
    breditor: password bug fix(111208_3)

    111128

    fix BlackRose custom command ploblem(brcmd 5)
    improve BlackRose installer

    111126

    select menu by using trackball instead of power key(default)
    *.I analysed key dispatch routine perfectly and revamped routine.
    I recommand update BlackRose 111126 because that is better than 111125

    fix key label

    111125

    switch trackball selection (permanent!!!, view advenced section)
    etc

    111118

    HBOOT(Bootloader)
    can't flash image without signature when S-ON
    (can't flash by unsigned RUU, while can flash by flash command? that's not fair.)
    change command (oem brset -> oem brcmd)
    new command (brcmd 2, brcmd 5)

    Installer
    can apply custom partition blackrose (view Advenced section, more easily)
    can update blackrose from custom partition blackrose. (view update section)

    can install blackrose even you dosen't achieve adb root permission(111118_2)
    fix BlackRose windows installer error(111118_3)
    rebase BlackRose installer(111118_4)
    fix BlackRose installer error(111118_5)

    111111:eek:

    change title color
    can flash some image(boot,recovery,system,userdata,radio,zimage) even S-ON and locked bootloader
    rework writemainver(reason:when you uninstall blackrose, stored mainversion will be cleared.)
    add custom command(fastboot oem brset)
    can switch vibration during at boot
    can select by pressing trackball (View Advenced section in BlackRose Installer)
    optimization and cleanup

    can install BlackRose on linux (111111_2)
    fix BlackRose linux installer error (111111_3)

    111009
    When you update ROM(by PASSIMG, RUU), BlackRose doesn't write new mainver

    111006
    New based on 0.35.2017(Engineering HBOOT) - Thanks to PhaseBurn :)
    Original Image(0.35.2017): http://xdaforums.com/showpost.php?p=18141273&postcount=116

    None padlock mark(even you unlocked bootloader)
    Prevent overwrite HBOOT by OTA or RUU
    Disable fastboot command(oem unlock), because no need to unlock bootloader
    Can receive Google OTA

    FAQ

    1.Phone is brick, dosen't turn on screen

    You have flashed unsigned RADIO
    If you want unbrick your phone, The answer is JTAG or HTC Service Center(The engineer can refuse to repair your phone)

    2.Can I lock bootloader again?

    To relock the bootloader, You have to achieve radio S-OFF(secu_flag=0), otherwise you would see the error [Lock Failed]

    3.How to achieve radio S-OFF?

    AT@SIMLOCK=7,0 or AT@SIMLOCK=8,0

    I disassembled radio(AMSS)
    it need HTC Special SIM-CARD or SIM-EMULATOR(XTC-CLIP)

    but...
    If we can disable SMI-MPU and modify only one byte to AMSS routine on SDRAM
    We can achive Radio S-OFF without HTC-Special-CARD.

    4.I can't update radio by using recovery.

    If cache partition size less than radio image, you couldn't update radio by using recovery.
    so I suggest a way to update radio

    fastboot flash radio [RADIO IMAGE(e.g radio.img)]

    5.I can't see my device when execute BlackRose installer

    If you are using sense rom, adb device isn't worked.
    You must install htc sync.

    -Thanks for your favor-

    Donation

    rugmankc
    efrant
    madj42
    fzr-r4
    texasice
    gdarren


    WOW, I cannot appreciate it enough :)

    Lecahel
    38
    Supplement

    BlackRose custom command

    fastboot oem brcmd [command]

    svib : Enable/Disable vibration during at boot (Output string is none. but setting will be changed.)
    brec : Go to recovery mode
    pass [password]: Create encrypted password/Authentication

    Change boot logo

    1.Prepare 480*800 bmp file to change
    2.nbimg.exe -F [BMP FILE] -n
    3.rename *.nb file to splash1.img
    4.fastboot flash splash1 [SPLASH1 IMG]

    Password Protection

    1.fastboot oem brcmd pass [ORIGINAL PASSWORD]
    2.Note your encrypted value
    3.Input encrypted value in BREditor
    4.Apply custom BlackRose

    NEVER input original password in BREditor

    If you would like to unlock protection
    fastboot oem brcmd pass [ORIGINAL PASSWORD]

    TIP
    If lock state, oem pass command work as unlock method
    Otherwise, work as create encrypted password

    If you type wrong password third in a row, device is turned off

    Apply custom BlackRose
    *.If you use BlackRose installer method, no need to read

    Apply
    1.fastboot flash hboot [CUSTOM BLACKROSE BINARY]
    2.fastboot reboot-bootloader

    If you will change partition layout
    1.fastboot flash hboot [CUSTOM BLACKROSE BINARY]
    2.fastboot reboot-bootloader
    3.fastboot erase cache
    4.fastboot oem brcmd brec
    5.full wipe
    6.update rom
    7.reboot
    7
    *whistles innocently*
    7
    efrant,
    Doesn't help :(

    You are obviously doing something wrong.

    Follow these steps:
    1) Boot device into fastboot mode and plug into computer;
    2) Type fastboot devices to make sure your computer sees your device;
    3) Download the attachment, extract the two files and place them in the same folder as your fastboot binary;
    4) Type fastboot boot go.lol
    5) Type fastboot flash hboot hboot_blackrose.nb0
    6) Reboot into fastboot mode to make sure it installed. Done.

    Note: The hboot_blackrose.nb0 attached is from an older version, so if you want a newer one, just flash it the same way...
    5
    Impressive! A really interesting approach. Even though Radio S-OFF would be preferred a modified hboot that unlocks more commands than the current stock-unlocked hboot does, right?

    Yes, we can do anything(except radio)
    I found hidden functions during disassemble hboot
    saveprt2sd, savemem2sd, mw etc...
    i temporary changed oem lock function to saveprt2sd and it worked.

    I found 0.33.2012 hboot(ENG) image
    but since I use SLCD Nexus One, I couldn't flashing

    Blackrose has potential

    Sent from my Nexus One using XDA App