New format option leaves recovery partition untouched. So yeah, no pc needed after formatting !
Basically it erases all the other existing partitions one by one. At the end recovery partition is intact so we can enter recovery interface and flash our preferred rom.
Set userdata as 'auto-size' partition . So default partition table is:
Select 'userdata' -> Scroll DOWN to 6 -> Select it
(You should see the change in the order of the partitions immediately! Don't worry nothing is committed. If you exit and re-enter SETTINGS menu everything will be reset.)
Select 'COMMIT CHANGES' -> Select 'APPLY'
(Of course you still have the option to re-order and re-size the partitions via pc, if the default layout doesn't fit your needs)
WARNING ! If you change the order of the partitions then have in mind that the same /dev/block/mtdblock<n>, n=0,1,2,... point to different mount points.
Clean up some code
01/Feb/2012 - UPDATE #5
Added new info when booting
After the partition table you should see a list with the existing bad blocks IF ANY. (CONFIRMED)
IF there are any bad blocks inside recovery,misc,boot,sboot,cache THEN they will be auto-re-sized by adding 1MB to each one.
Changed some output messages
02/Feb/2012 - UPDATE #6
Changed the function regarding auto-resizing:
IF there are any bad blocks inside recovery,misc,boot,sboot,cache THEN 1MB per 1bad block will be added to each partition with bad block(s). (CONFIRMED)
If you press&hold the middle [MENU] button during (re)booting you can immediately boot android from sdcard(emmc), assuming that you have flashed sboot partition with the appropriate image and you have the required folder in the root of your sdcard. Process of having dual boot(without using pc): Prerequisite: The folder(usually named 'Android' or 'ics') with the SD version of Android exists in the root of your sdcard
Boot the device in cLK pressing [BACK] button, having the sdcard inserted
Go to MAIN MENU/SETTINGS - Select ADD sBOOT
Select BOOT RECOVERY from MAIN MENU
Select 'install zip from sdcard' and use something like this(this is an example) flash_sboot.zip
Select 'reboot system now' and press&hold [MENU] button to directly boot Android (emmc)
After each change(resize/rearrange parts, add/remove sboot, enable/disable ExtROM) is committed there is no longer the need to reboot. clk will just auto return to main menu, and from there you can select your next action.
14/Feb/2012 - UPDATE #9
Changed cpu speed to 998MHz.
Added option to show/hide info(ptable and bbtable) at start-up under MAIN MENU/INFO.
If you invert screen colors, the change will remain after rebooting.
The speed of reading/writing or erasing is improved a bit.
Cleaned up some code.
22/Feb/2012 - UPDATE #10
Removed showing bad block info during startup. Bad blocks can be checked from SETTINGS/PRINT BAD BLOCK TABLE(if any bad blocks exist).
Added CID, IMEI , BT Mac Addr and WiFi Mac Addr under Device Info (Getting WiFi Mac doesn't work correctly ).
Revised the 'Enable/Disable ExtROM' option.
If enabled, a partition named "null" (which will be only 1 block in size) will be created after 'userdata' and the rest 191 blocks will automatically be used for 'cache' partition .
If disabled, 'cache' will automatically return to 5MB size .
Added ability to resize partitions by giving size in blocks too . NOT TESTED
fastboot oem part-resize name:size:b
where size is in blocks
i.e. fastboot oem part-resize misc:9:b => will resize 'misc' part to 9 blocks
Added ability to add partitions by giving size in blocks too . NOT TESTED
fastboot oem part-add name:size:b
where size is in blocks
i.e. fastboot oem part-add misc:8:b => will add 'misc' part with size 8 blocks (= 1MB)
Added option to enable/disable usb detection ("USB" mark at the bottom of the screen if device connected to pc) .
Changed version to LK_1.5black to avoid confusion regarding latest version of main cLK.
As you see we have the primary boot + 7 extra boot partitions.
However there is NO change to the MAX_NUM_PART (max number of the partitions) which is 12, so you can eventually add 5 (of the 7 extra) different boot partitions,
(unless you don't have a NAND installation and you have deleted 'system' and 'userdata' so you can use all 7 extra, but I think it will be a mess ).
Added ability to control menu navigation through fastboot:
acpuclock that Rick wrote and I managed to break, works again. So you have a new option under SETTINGS: SET MAX/DEFAULT CPU FREQ.
Changed the menus. Rearranged SETTINGS and INFO and their entries.
Fixed the charging while off problem that the last version had. Plus you don't need to unplug the cable in order to turn your phone on. Just press once the [CALL] button.
Fixed errors regarding partition rearrangement.
Also from that menu you can remove 'system' and 'userdata' from the partition table, by setting their order to 0. This will give you the chance to add 2 more extra boot partitions. If you went crazy and did that, but something doesn't work well, and you want back 'system' and 'userdata' you just have to RESET SETTINGS and the partition will return to default.
Fixed some errors regarding add/remove %x%boot.
Changed how the countdown in multiboot menu works. If you interact then the countdown is canceled.
Added option whether to fill the bad block table at startup or not, FILL/SKIP FILLING BBT @ STARTUP under SETTINGS.
Remember the option PRINT BAD BLOCK TABLE? If you don't select to FILL BBT @ STARTUP, then you won't see a BAD BLOCK TABLE because it will not be created. In simple words this means a little faster boot into cLK menu.
At a (re)boot event the way LK is determining what to do is:
First checks if any key was pressed, then checks the boot reason.
For example, if you selected 'Reboot to bootloader' from android but in the process you want to boot to recovery, you can just press&hold the [HOME] button until the phone vibrates.
Removed the function regarding auto-resizing small partitions which have bad blocks.
Added a fading animation before booting any kernel or recovery.
Leds work. If you boot into cLK menu and your device is connected to a pc the led will go green. If not connected the led will stay turned off.
Screen brightness can be adjusted. Added option under SETTINGS. The selected level will be the default at each boot.
Entering cLK menu is slightly slower than before.
Added an option to change UDC settings at will. This is an attempt to solve any usb issues you might have (fastboot errors) without having to re-compile cLK's binary with different udc settings. 1st set is the default one. 2nd is the set that cLK used to have initially (1.5_rc1). 3rd is not working for me either, but left it for testing. So lets see how this goes...
When in cLK menu you can select items with the [MENU] button too(added this for those with broken [CALL] button).
Added option to use inbuilt off-mode charging under SETTINGS/SET DEFAULT OFF-MODE CHARGING. From that menu you can select it (option USE INBUILT OFF-MODE CHARGING) and try it out.
If using inbuilt off-mode charging the device wakes up if you press POWER [button].
This is an experimental feature! Only tested with original battery and charger.
High Voltage (as measurement) is set to 4.2 V. Use at your own risk! Otherwise stick to the default way of charging (option USE RECOVERY'S OFF-MODE CHARGING).
Usb detection function changed (option under SETTINGS/ENABLE USB DETECTION). "USB" mark at the bottom of the screen if device connected to pc is replaced by turning led on/off if connected/disconnected.
Added some code as an experiment for a potential off-mode alarm application.
More info in this thread. Warning : I didn't know java or how to use eclipse and make an android app. Seriously, I still don't. But after some days I managed to write this application mostly because I wanted to know if this idea was possible. So consider it as an example. Any criticism accepted. I just hope that someone may find it useful and make the best out of it.
kernel patch to save reboot reason so is available on bootloader
old patched in zip as pushed in most branches
CWM patch for charging, unpatched CWM code is not properly reading kernel cmdline because /proc/cmdline file size is always 0 resulting in a always empty cmd line. I also changed the code to wait for key press then reboot phone to normal android.
cLK_power_clllapse patch adds detection of cLK to kernel and puts the reset vector at 0x11800000 where cLK will jump (+4) at power_collapse_exit
off_mode_charging just prevents the kernel from BUG() if off mode charging and panel is off ( and not detectable )
both of this patches are compatibile with current SD and magldr builds, please push them to your git trees
Click Next (to accept the default directory to install)
Click Next (to accept the default directory for local Package directory)
Click "Direct Connection", and click Next
Select a "local mirror", and click Next
Now in the search bar, you need to search for the following things to install
Once selected click Next to continue, and Finish
Now you will have an icon for Cygwin on the desktop, double-click this
now in the window that appears, run the following command
git clone git://github.com/cedesmith/cLK.git
then run the following commands to download the codesourcery toolchain
tar xvfj arm-2009q3-68-arm-none-eabi-i686-mingw32.tar.bz2
rm -rf yang
unzip ../../yang-1.1_win32.zip yang/yang.exe
mv yang/yang.exe .
sed -i s/yang/yang.exe/g compile
Step 2: Change partition sizes
To change your values for cache, system, boot etc... you need to change the following files
line 8 - system
line 28 - misc
line 32 - recovery
line 36 - boot
line 43 - cache
These will be located in c:\cygwin\home\<username>\cLK on your windows machine
Step 3: Compile cLK
Now you can compile by running the following command
Now your RUU_signed.nbh will be located in the following folder
Hopefully that should work, I have just tested this on my machine.
Anyone have any issues, let me know, I will amend the howto
For Android users who have made the leap of faith to Windows 8 or RT, the … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?