[ROM][UNOFFICIAL][6.0.1] crDroid [12/21]

Luncer

Senior Member
May 4, 2014
486
978
0
Astara
@Luncer yes bro it works flawless. Everything works except for camera. And SD card is recognized by every app.
You are awsome bro
Thanks alot
If you want sony apps and features (keyboard music etc) for this rom and other roms just call me
Thia is our work (port xperia features and apps for cm and aosp roms) in iran and iranian forums

Sent from my Xperia Z1 using Tapatalk
 
  • Like
Reactions: markakash

zhuoyang

Senior Member
May 4, 2009
431
215
63
Ampang
There is no such thing as one time bootup. Whether you use fastboot boot boot.img or a simple reboot, your system will always boot 1 kernel that sits in your boot partition. So, if someone wants to use recovery on marshmallows, they need to flash 3.4 kernel first (which means that your 3.10 kernel will be overridden), then boot into recovery, use it for whatever reason they need, and then return to 3.10 by flashing it in fastboot. In other words, after you are done using recovery, you need to reboot in fastboot and flash 3.10 kernel: fastboot flash boot boot.img.
There is. Here's fastboot help menu for reference.
Code:
usage: fastboot [ <option> ] <command>

commands:
  update <filename>                        reflash device from update.zip
  flashall                                 flash boot, system, vendor and if found, recovery
  flash <partition> [ <filename> ]         write a file to a flash partition
  flashing lock                            locks the device. Prevents flashing partitions
  flashing unlock                          unlocks the device. Allows user to flash any partition except the ones  that are related to bootloader
  flashing lock_critical                   Prevents flashing bootloader related partitions
  flashing unlock_critical                 Enables flashing bootloader related partitions
  flashing get_unlock_ability              Queries bootloader to see if the device is unlocked
  erase <partition>                        erase a flash partition
  format[:[<fs type>][:[<size>]] <partition> format a flash partition. Can override the fs type and/or size the bootloader reports.
  getvar <variable>                        display a bootloader variable
[B][COLOR="Red"]  boot <kernel> [ <ramdisk> ]              download and boot kernel[/COLOR][/B]
  flash:raw boot <kernel> [ <ramdisk> ]    create bootimage and flash it
  devices                                  list all connected devices
  continue                                 continue with autoboot
  reboot [bootloader]                      reboot device, optionally into bootloader
  reboot-bootloader                        reboot device into bootloader
  help                                     show this help message

options:
  -w                                       erase userdata and cache (and format
                                           if supported by partition type)
  -u                                       do not first erase partition before
                                           formatting
  -s <specific device>                     specify device serial number
                                           or path to device port
  -l                                       with "devices", lists device paths
  -p <product>                             specify product name
  -c <cmdline>                             override kernel commandline
  -i <vendor id>                           specify a custom USB vendor id
  -b <base_addr>                           specify a custom kernel base address.
                                           default: 0x10000000
  -n <page size>                           specify the nand page size.
                                           default: 2048
  -S <size>[K|M|G]                         automatically sparse files greater
                                           than size.  0 to disable
 

optimumpro

Senior Member
Jan 18, 2013
6,278
13,649
253
There is. Here's fastboot help menu for reference
Of course you can boot kernel from bootloader. But that was not the point. If you read carefully, you'll see that the guy suggested that you can have 3.4 and 3.10 kernels on the phone at the same time and boot them at will, which is impossible.

By the way, to address M twrp problem, you can just build it with 3.10 kernel in rom environment, if you know how to do it... Twrp is much more superior than CM's own crap.
 

SuperLamic

Senior Member
Oct 24, 2011
937
1,080
0
Prague
Of course you can boot kernel from bootloader. But that was not the point. If you read carefully, you'll see that the guy suggested that you can have 3.4 and 3.10 kernels on the phone at the same time and boot them at will, which is impossible.

By the way, to address M twrp problem, you can just build it with 3.10 kernel in rom environment, if you know how to do it... Twrp is much more superior than CM's own crap.
I spoke about booting 3.4 only for twrp, not to use it for Android. You should read all related posts before posting
 

zhuoyang

Senior Member
May 4, 2009
431
215
63
Ampang
Whether you use fastboot boot boot.img or a simple reboot, your system will always boot 1 kernel that sits in your boot partition.
This statement is pure wrong , when you do a fastboot boot boot.img , fastboot will upload that boot.img to phone and boot it without flashing it to the boot partition.

By the way, to address M twrp problem, you can just build it with 3.10 kernel in rom environment, if you know how to do it... Twrp is much more superior than CM's own crap.
about TWRP , I will try to build it when I am free. For time being , CM recovery can do basic things and it's better than no recovery.
 

optimumpro

Senior Member
Jan 18, 2013
6,278
13,649
253
I spoke about booting 3.4 only for twrp, not to use it for Android. You should read all related posts before posting
Doesn't matter what you use it for, you can't have that:

"If you use fastboot boot boot.img it's only one time bootup with this kernel - that means if you boot up second time it will use your regular (flashed) kernel."

You can boot 20 times, but it will still boot that 3.4 kernel. In order to have 3.10, you must flash it and override 3.4. That's my point that you don't seem to be getting.
 

SuperLamic

Senior Member
Oct 24, 2011
937
1,080
0
Prague
Doesn't matter what you use it for, you can't have that:

"If you use fastboot boot boot.img it's only one time bootup with this kernel - that means if you boot up second time it will use your regular (flashed) kernel."

You can boot 20 times, but it will still boot that 3.4 kernel. In order to have 3.10, you must flash it and override 3.4. That's my point that you don't seem to be getting.
I think you mean fastboot FLASH boot option, but I mean fastboot BOOT (without flash) option. If you FLASH something, then yes, you've overwritten the old kernel, but if you only BOOT then you only booted (and ignored boot partition) from fastboot.

So if you only BOOT 3.4 and then you can use 3.4 twrp recovery and that's my point.
 

mo120697

Senior Member
Sep 17, 2014
466
244
0
Ludwigsburg
Unfortunately the problem is not that simple.
Camera just doesn't work yet in marshmallow.
We'll have to wait for Sony to release camera for marshmallow or someone else to get it working.
But camera is working in latest fxp aosp 5.1 buikds, with full manual controls. What about cherry picking those commits?
 

optimumpro

Senior Member
Jan 18, 2013
6,278
13,649
253
I think you mean fastboot FLASH boot option, but I mean fastboot BOOT (without flash) option. If you FLASH something, then yes, you've overwritten the old kernel, but if you only BOOT then you only booted (and ignored boot partition) from fastboot.

So if you only BOOT 3.4 and then you can use 3.4 twrp recovery and that's my point.
If that's true, I didn't know that. I just can't find any documentation in support. Moreover, if that's true, it is a huge security hole.
 

markakash

Senior Member
Jul 31, 2014
505
5,561
133
Belgium
If that's true, I didn't know that. I just can't find any documentation in support. Moreover, if that's true, it is a huge security hole.

@optimumpro yes bro whatever SuperLamic said is correct. I tried his method of using boot instead of flash and itworked. I first booted 3.4 kernel and then I worked in recovery and then I just did normal reboot and the system booted.3.10 kernel.
 
  • Like
Reactions: kentexcitebot

kentexcitebot

Senior Member
Mar 30, 2014
575
481
0
Moorpark
about TWRP , I will try to build it when I am free. For time being , CM recovery can do basic things and it's better than no recovery.
This is the only reason why I'm not trying out this ROM. I want to safely restore to my working rom since MM has bugs, but CWM can't do that. I don't want to do anything complicated just to get TWRP working.
 
Last edited:

optimumpro

Senior Member
Jan 18, 2013
6,278
13,649
253
nope, I even tried to apply optimumpro's death touch fix, it definitely got better but not completely.

btw I cherry-picked some great features from other kernels to this new 3.10 one. ( https://github.com/SuperLamic/kernel/tree/6.0.0 )
That patch does not do much in of itself. It simply hooks the kernel to the value in /system/user/clearpad.idc file. That's why you have noticed the difference. Now, you can bring that value down to fix the screen.
 
Last edited:

SuperLamic

Senior Member
Oct 24, 2011
937
1,080
0
Prague
That patch does not do much in of itself. It simply hooks the kernel to the value in /system/user/clearpad.idc file. That's why you have noticed the difference. Now, you can bring that value down to fix the screen.
I don't think that the touch problems on 3.10 kernel are caused by the same thing like in 3.4 kernel. It literally stops recognizing all touches until you pull out notification bar from top or sleep and wake the device. Maybe some bug in driver? .. I don't know
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone