[Oct 17,2015][L 5.1.1][ CM12.1][SLIMLP][Unofficial] Kernel 3.0.101 [ION]

Search This thread

macs18max

Senior Member
Apr 3, 2010
1,089
3,493

Attachments

  • R1A0Jwh.png
    R1A0Jwh.png
    47.9 KB · Views: 108,418
Last edited:
  • Like
Reactions: nqkoidrug

werty100

Senior Member
Aug 31, 2011
828
679
LOGCAT

WIFI:
E/WifiHW ( 406): Failed to stop supplicant
E/WifiStateMachine( 406): Failed to start supplicant!

When some crashes happen logcat said this:
W/OpenGLRenderer( 661): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
W/OpenGLRenderer( 661): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
 

Robbie P

Senior Member
Feb 8, 2011
5,116
4,017
London
Robbie could you try this kernel and see if it still force closes
http://xdaforums.com/attachment.php?attachmentid=3093501&d=1420182482
I can't get fastboot to work, tried updating and using different cables/ports. keep getting "FAILED data transfer failure (unknown error)"
Managed to install the recovery earlier using werty100's zip (thanks)
I am still a clk noob:eek:
Am wondering if I go to magldr, I can use zImage and initrd.gz separately. The rom is installed already so don't need recovery.

Edit; That seems a bad idea. I extracted the original kernel and ramdisk from boot.img using http://xdaforums.com/showthread.php?t=2523070
Added 6mb zeros and booted from ad sd
It reboots after htc screen, seems p2 and p3 are not mounted, from attached dmesg;
"[ 34.227661] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/mmcblk0p2 at /system options: barrier=0 error: No such file or directory
[ 54.260925] fs_mgr: __mount(source=/dev/block/mmcblk0p3,target=/data,type=ext4)=-1
[ 54.261016] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/mmcblk0p3 at /data options: barrier=0,data=ordered,noauto_da_alloc error: No such file or directory"
Oh well, worth a try:)
 

Attachments

  • DMESG.TXT
    34.4 KB · Views: 63
Last edited:

macs18max

Senior Member
Apr 3, 2010
1,089
3,493
I can't get fastboot to work, tried updating and using different cables/ports. keep getting "FAILED data transfer failure (unknown error)"
Managed to install the recovery earlier using werty100's zip (thanks)
I am still a clk noob:eek:
Am wondering if I go to magldr, I can use zImage and initrd.gz separately. The rom is installed already so don't need recovery.

Edit; That seems a bad idea. I extracted the original kernel and ramdisk from boot.img using http://xdaforums.com/showthread.php?t=2523070
Added 6mb zeros and booted from ad sd
It reboots after htc screen, seems p2 and p3 are not mounted, from attached dmesg;
"[ 34.227661] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/mmcblk0p2 at /system options: barrier=0 error: No such file or directory
[ 54.260925] fs_mgr: __mount(source=/dev/block/mmcblk0p3,target=/data,type=ext4)=-1
[ 54.261016] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/mmcblk0p3 at /data options: barrier=0,data=ordered,noauto_da_alloc error: No such file or directory"
Oh well, worth a try:)

Looking at your dmsg, the ROM has booted with selinux set to enforcing mode which is preventing many drivers to load.

For cLK I have compiled the boot.img by setting cmdline = "androidboot.selinux=permissive"
So the ROM boots in permissive mode.

Not sure how we can set this in MAGLDR..

We few users has confirmed bluetooth working.
Azzam manage to get phone network, by manually selecting it in setting.
But I believe he uses cLK, so probably data may not work as a result of not updated libhtc_ril_wrapper.so.

Hopefully If you get it booting in MAGLDR, and get networks with data, It would confirm that the problem is with libhtcrilwrapper.
 

aazzam16661

Senior Member
Aug 22, 2012
442
593
24
Gombak, Selangor
I can't get fastboot to work, tried updating and using different cables/ports. keep getting "FAILED data transfer failure (unknown error)"

Looking at your dmsg, the ROM has booted with selinux set to enforcing mode which is preventing many drivers to load.

For cLK I have compiled the boot.img by setting cmdline = "androidboot.selinux=permissive"
So the ROM boots in permissive mode.

Not sure how we can set this in MAGLDR..

We few users has confirmed bluetooth working.
Azzam manage to get phone network, by manually selecting it in setting.
But I believe he uses cLK, so probably data may not work as a result of not updated libhtc_ril_wrapper.so.

Hopefully If you get it booting in MAGLDR, and get networks with data, It would confirm that the problem is with libhtcrilwrapper.

I do use Clk but I can only Receive Calls not cannot call someone, also it says "no Signal" which is weird as I have once had a 10 min chat with someone using this Rom
 
  • Like
Reactions: mosi hd2

HypoTurtle

Senior Member
May 5, 2011
1,970
1,257
Looking at your dmsg, the ROM has booted with selinux set to enforcing mode which is preventing many drivers to load.
For cLK I have compiled the boot.img by setting cmdline = "androidboot.selinux=permissive"
So the ROM boots in permissive mode.
Not sure how we can set this in MAGLDR..
We few users has confirmed bluetooth working.
Azzam manage to get phone network, by manually selecting it in setting.
But I believe he uses cLK, so probably data may not work as a result of not updated libhtc_ril_wrapper.so.
Hopefully If you get it booting in MAGLDR, and get networks with data, It would confirm that the problem is with libhtcrilwrapper.

You should be able to add the cmdline while compiling the kernel. Unless MaGLDR adds one of it's own.
 
  • Like
Reactions: mosi hd2

abo we2am

Member
Aug 22, 2012
49
6
:good::good::good::good::good::good::good:
Good job my friend you are so big.
Thanks a lot for keeping hd2 alive.
 

macs18max

Senior Member
Apr 3, 2010
1,089
3,493
when I split up the boot.img, the first 2000 bytes are discarded, that is where the cmdline was with that selinux command was situated. If it could go in the kernel, that would be excellent.

Robbie
Attaching the kernel for Magldr. selinux set to permissive in cmdline.
 

Attachments

  • permissive.zip
    3.5 MB · Views: 278

Robbie P

Senior Member
Feb 8, 2011
5,116
4,017
London
Robbie could you try this kernel and see if it still force closes
http://xdaforums.com/attachment.php?attachmentid=3093501&d=1420182482
I put this oom kernel into the original boot.img using a hexeditor (leaving 1st 2000bytes), put module in /system, rezipped and reinstalled the rom onto freshly formatted sdcard.
It doesn't seem to cure the FCs on APKs installed from sdcard. In fact reboots to cm bootanimation seem more frequent. But it could be the hexedited boot.img at fault.
will try permissive kernel in magldr now:fingers-crossed:

Edit; Permissive kernel does not boot for me. Used magldr ad sd with 6mb zeros in initrd.gz from before. rom install from previous clk setup. Have attached dmesg

Edit2; thought I would also attach recovery log of the clk install. I had it set up so that I could install -pixelfreak-'s LS too with dalvik on nand, hence the large userdata partition, not had a chance to do so yet :).

Edit3; did task 29, since I noticed some stuff in /userdata:confused:, re-installed magldr, re-installed recovery using daf.exe, re-installed rom.zip with oom boot.img (there is no boot partition in nand this time) and tried to boot with permissive zImage and previous 6mb initrd.gz. rom does not boot. Attached recovery log2 I have also uploaded a new dmesg, but it has overwritten the previous dmesg above because I did not change the name:eek:
 

Attachments

  • recovery.log.txt
    22.6 KB · Views: 49
  • DMESG.TXT
    201 KB · Views: 29
  • recovery2.log.txt
    22.2 KB · Views: 25
Last edited:

macs18max

Senior Member
Apr 3, 2010
1,089
3,493
I put this oom kernel into the original boot.img using a hexeditor (leaving 1st 2000bytes), put module in /system, rezipped and reinstalled the rom onto freshly formatted sdcard.
It doesn't seem to cure the FCs on APKs installed from sdcard. In fact reboots to cm bootanimation seem more frequent. But it could be the hexedited boot.img at fault.
will try permissive kernel in magldr now:fingers-crossed:

Edit; Permissive kernel does not boot for me. Used magldr ad sd with 6mb zeros in initrd.gz from before. rom install from previous clk setup. Have attached dmesg

Edit2; thought I would also attach recovery log of the clk install. I had it set up so that I could install -pixelfreak-'s LS too with dalvik on nand, hence the large userdata partition, not had a chance to do so yet :).

Edit3; did task 29, since I noticed some stuff in /userdata:confused:, re-installed magldr, re-installed recovery using daf.exe, re-installed rom.zip with oom boot.img (there is no boot partition in nand this time) and tried to boot with permissive zImage and previous 6mb initrd.gz. rom does not boot. Attached recovery log2 I have also uploaded a new dmesg, but it has overwritten the previous dmesg above because I did not change the name:eek:

Thanks robbie. Looking at your attached dmesg seems like the ROM booted with selinux in permissive mode.


We need to create selinux policies for our device, and I don't know how to. Here are few list of denial by selinux security.

Code:
[   11.724365] type=1400 audit(1420335182.575:37): avc: denied { sys_module } for pid=1396 comm="insmod" capability=16 scontext=u:r:sysinit:s0 tcontext=u:r:sysinit:s0 tclass=capability
[   11.780181] type=1325 audit(1420335182.635:38): table=filter family=2 entries=27
[   11.815948] type=1400 audit(1420335182.665:39): avc: denied { getattr } for pid=1450 comm="chown" path="/dev/smd1" dev=tmpfs ino=815 scontext=u:r:sysinit:s0 tcontext=u:object_r:smd_device:s0 tclass=chr_file
[   11.860534] type=1325 audit(1420335182.715:40): table=filter family=10 entries=27
[   11.860931] type=1400 audit(1420335182.715:41): avc: denied { getattr } for pid=1450 comm="chown" path="/dev/smd1" dev=tmpfs ino=815 scontext=u:r:sysinit:s0 tcontext=u:object_r:smd_device:s0 tclass=chr_file
[   11.922698] type=1400 audit(1420335182.775:42): avc: denied { write } for pid=1452 comm="touch" name="active" dev=mmcblk0p2 ino=111197 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   11.943756] type=1400 audit(1420335182.795:43): avc: denied { write } for pid=1454 comm="touch" name="pap-secrets" dev=mmcblk0p2 ino=111204 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   11.994567] type=1400 audit(1420335182.845:44): avc: denied { write } for pid=1456 comm="touch" name="chap-secrets" dev=mmcblk0p2 ino=111198 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.078887] type=1400 audit(1420335182.935:45): avc: denied { write } for pid=1458 comm="touch" name="options.smd" dev=mmcblk0p2 ino=111203 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.148223] type=1400 audit(1420335183.005:46): avc: denied { write } for pid=1460 comm="touch" name="ppp" dev=mmcblk0p2 ino=111196 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=dir
[   12.180084] type=1400 audit(1420335183.035:47): avc: denied { write } for pid=1462 comm="touch" name="ppp-gprs.pid" dev=mmcblk0p2 ino=111205 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.249237] type=1400 audit(1420335183.105:48): avc: denied { setattr } for pid=1463 comm="chown" name="active" dev=mmcblk0p2 ino=111197 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.257568] type=1400 audit(1420335183.115:49): avc: denied { setattr } for pid=1463 comm="chown" name="chap-secrets" dev=mmcblk0p2 ino=111198 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.258453] type=1400 audit(1420335183.115:50): avc: denied { setattr } for pid=1463 comm="chown" name="ip-down" dev=mmcblk0p2 ino=111199 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.259277] type=1400 audit(1420335183.115:51): avc: denied { setattr } for pid=1463 comm="chown" name="ip-up" dev=mmcblk0p2 ino=111200 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.260070] type=1400 audit(1420335183.115:52): avc: denied { setattr } for pid=1463 comm="chown" name="ip-up-vpn" dev=mmcblk0p2 ino=111201 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.260864] type=1400 audit(1420335183.115:53): avc: denied { setattr } for pid=1463 comm="chown" name="options" dev=mmcblk0p2 ino=111202 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.261657] type=1400 audit(1420335183.115:54): avc: denied { setattr } for pid=1463 comm="chown" name="options.smd" dev=mmcblk0p2 ino=111203 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.262451] type=1400 audit(1420335183.115:55): avc: denied { setattr } for pid=1463 comm="chown" name="pap-secrets" dev=mmcblk0p2 ino=111204 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.263244] type=1400 audit(1420335183.115:56): avc: denied { setattr } for pid=1463 comm="chown" name="ppp-gprs.pid" dev=mmcblk0p2 ino=111205 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.264770] type=1400 audit(1420335183.115:57): avc: denied { setattr } for pid=1463 comm="chown" name="resolv.conf" dev=mmcblk0p2 ino=111206 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.294250] type=1325 audit(1420335183.145:58): table=filter family=2 entries=28
[   12.307342] type=1400 audit(1420335183.165:59): avc: denied { setattr } for pid=1465 comm="chmod" name="active" dev=mmcblk0p2 ino=111197 scontext=u:r:sysinit:s0 tcontext=u:object_r:system_file:s0 tclass=file
[   12.344909] type=1325 audit(1420335183.195:60): table=filter family=10 entries=28
[   12.349609] type=1400 audit(1420335183.205:61): avc: denied { getattr } for pid=1467 comm="chown" path="/system/bin/pppd" dev=mmcblk0p2 ino=87372 scontext=u:r:sysinit:s0 tcontext=u:object_r:ppp_exec:s0 tclass=file
[   12.350311] type=1400 audit(1420335183.205:62): avc: denied { getattr } for pid=1467 comm="chown" path="/system/bin/pppd" dev=mmcblk0p2 ino=87372 scontext=u:r:sysinit:s0 tcontext=u:object_r:ppp_exec:s0 tclass=file
[   12.404571] type=1400 audit(1420335183.254:63): avc: denied { read } for pid=1469 comm="chmod" name="pppd" dev=mmcblk0p2 ino=87372 scontext=u:r:sysinit:s0 tcontext=u:object_r:ppp_exec:s0 tclass=file
[   12.405242] type=1400 audit(1420335183.254:64): avc: denied { write } for pid=1469 comm="chmod" name="pppd" dev=mmcblk0p2 ino=87372 scontext=u:r:sysinit:s0 tcontext=u:object_r:ppp_exec:s0 tclass=file
[   12.410949] init: Warning!  Service akmd needs a SELinux domain defined; please fix!

Does anyone know how to create this policies?
I don't know how to do as I don't understand. I spent couple of hours reading about it in android developement site, by nothing.

Currently i'm using this.
https://github.com/CyanogenMod/android_device_qcom_sepolicy
Aslo depending on device some defaults are taken from here
https://github.com/CyanogenMod/android_external_sepolicy


May be hypoturtle can help
An example of selinux device policy can be seen here https://github.com/Evervolv/android_device_hp_tenderloin-common/tree/kitkat/sepolicy
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 158
    attachment.php


    Bringing to you CM12.1 and SLIMLP 5.1.1. This is an unofficial ROM which is built from source by merging Evervolvs Legacy code and HD2 related files.




    Credits:
    CM TEAM and SLIM TEAM for the amazing features and allowing me to build the rom.
    EVERVOLV TEAM for the legacy codes.
    marc1706, Tytung, Sportsstar89, Securecrt, Xylograph, ph03n!x, datagr, Rick_1995, Daekin, BSDgeek_Jake
    texasice, marco.palumbi, Robbie-P, PixelFreak, chautruongthinh, Nikez for all HD2 kernels, libs, mods, corrections
    azam, gilbert, spezi , elginsk8r , Kirmaniarslan, , legacyxperia, christian, onell, philipped346, Robbie-P



    Working:
    Display
    Audio/heaphone
    Phone/data
    Wifi/Wifi tether
    Camera /Flash Light (little laggy)
    Camcorder (software encoded, little laggy)
    Mass storage
    MTP
    adb
    Media playback (software encoded)



    Bugs:
    Bluetooth / Bluetooth tethering (Not tested yet tested so I dont know if it works)
    Usb tether (Not tested yet)



    Download:
    | 2015-09-29 | CM12.1 ROM Dev-Host
    | 2015-10-17 | SlimLP ROM Dev-Host
    | 2015-09-22 | NativeSD Recovery Google drive



    Source on Github
    Kernel
    Device
    Display
    Audio
    Media


    41
    Installation Instruction:

    1. You need MAGLDR installed
    2. Use NativeSD RECOVERY by downloading and extracting the folder name "recovery" into your sdcard. Then in MAGLDR, Choose boot folder as "recovery" in "Services > BootSettings > AD SD Dir".... Then Boot "AD SD"
    3. You need a sdcard with 2 sd-ext partitions. You can create using recovery or laptop. There are lot of tutorial may not be exact
    Installation video by onell http://xdaforums.com/showpost.php?p=62279769&postcount=563
    Installation video by intoSmartphones Toderici https://www.youtube.com/watch?v=4mj_pgtlXC8

    You can use ext4 or f2fs. But you should make sure that both partitions are of the same format.
    Which mean if sdext is ext4 then sd-ext2 also should be ext4. ---OR--- if sdext is f2fs then sd-ext2 also should be f2fs.
    If you had additional swap or sdext3 partition, no problem, it will not interfere with the ROM. No need to remove addtional partition swap or sd-ext if any exist.
    4. Reboot to recovery again..
    5. Now copy the zip to the ROM and Install the ROM
    6. Reboot to MAGDLR
    7. Choose boot folder as NativeSD folder in MAGLDR > Services > BootSettings > AD SD Dir
    8. Boot AD SD (Boot time take 20 mins... )
    9. You can install both ROM (Like NativeSD ROM ) as ROM install in separate folder.

    Tips:
    With GAPPS the ROM runs very slow due to Low RAM.. Install Gapps only if needed..
    Once ROM has booted and you see the setup screen, wait 3 mins before you move further to setup.
    Setting up ROM initially is very slow, but after half hour, it will come to a decent speed.
    Solve black screen during call issue
    I also found settings/sounds/interruptions/priority-interruptions/calls was not selected by default. After selecting, there appears to be no delay (when receiving calls) between when you hear the ringing tone on the calling phone and when I hear my phone ringtone, The screen wakes up after a couple of seconds ok and I can answer from the lockscreen, so hopefully no more missed calls.:fingers-crossed::good:

    Logs:
    Oct 17 2015
    Updated Slimrom with zram
    Sep 22 2015
    Compiled kernel with Sabermod 5.2 toolchain
    Fixed flashlight. Flashlight now stays on when screen off.
    Upstream update CM
    Sep 22 2015
    Remove JustArchi optimization
    Supported DirectSD. Multiple ROM installation.
    Remove swap/zram
    Added Lspeed tweaks. credit to Paget96
    Reduce ION_SF and ADSP
    Update Slim and CM's
    Jul 5 2015
    Fixed flashlight
    Fixed adb
    Added Nitro X Omega Mod to CM and SlimROM | credit: k1ks
    JustArchi 's for CM12.1 | credits: JustArchi
    Fix headphone (cm fix)
    Fixed Software encoder/decoder
    Fixed Camera
    Initial Release 31 Dec 2014
    Fixed Audio and Display/ Booted ROM
    13
    OK. Guys I havent updated the main page but if someone wants to install and play around with CM12.1 you will find it in xda download section of this thread
    ROM
    http://xdaforums.com/devdb/project/dl/?id=12132
    Kernel(to be place in sdcard)
    http://xdaforums.com/devdb/project/dl/?id=12131

    Brief instuction.
    You need MAGLDR and class10 2 sd-ext partitions(EXT4).
    You need to install the recovery in OP.
    Download and copy ROM into sdcard and install via recovery
    Download sdcard.zip and extract the NativeSD folder in your sdcard.

    In Magldr Change ADSD directory to NativeSD and boot into ADSD

    Check whats working / whats not and report.
    Note first boot take around 30 mins
    11
    Here is an update cm12.1 for testing
    http://d-h.st/GuU2

    --Changed ioscheduler to bfq as CM team has done some optimisation in the ROM with bfq and claim it performs well.
    --Updated kernel with latest bfq
    --Reduce ION_SF heap and ADSP heap
    --Fully odex rom. size is a huge though 500MB+ (Sorry but boots faster)
    --Removed any swap or zram scripts. I have observed that even when using swap or zram only 3MB is used most of the time. Only once it shot to 5MB. (tested using "adb shell free" command)
    --Lspeed tweak. http://xdaforums.com/android/software-hacking/tweak-l-speed-v1-0-02-02-2015-t3020138
    I have added few of LSpeeds script, As one drawback in our recovery is that users cannot flash other installer such as mods, tweak, hacks in our device we use in our recovery system and data is mounted on custom folders and not partitions. So I hope @Paget96 wont mind me directly using his script in the ROM.


    Requirement. Need 2 SD-ext partition (ext4 or f2fs). But It is compulsary that both partition are same. For example
    if sd-ext is ext4 than sd-ext2 should also be ext4
    or
    if sd-ext is f2fs than sd-ext2 should also be f2fs.
    If you have additional partition, (swap or sd-ext) no need to repartition as it will not interfere with the ROM.
    10
    comrades, whether to continue the work on the development?

    Yes. I did compile 5.1 data, wifi, works. But the ROM is a bit slower than Kitkat and battery drain is still not fixed.

    I am really busy in life now, but sometimes when I have a free weekend, I just compile and try to fix stuff.

    Also just another note, In future release I will not support cLK bootloader and/pr NativeSD.
    Only directsd and data2ext with magldr bootloader