[rom][cm12.1] Last Hope Rom - Best Rom Ever? ;)


https://www.dropbox.com/s/61h3oki3muqcmb9/ViPER4Android-supolicy.zip?dl=0
With this zip flashed for me V4A works with Enforcing SELinux, so maybe it could help you too. I would really like to credit the author but I imported it from authors Dropbox to my personal Dropbox and can not find the source topic on XDA.
If anyone knows who is the author feel free to tell me and I will change the link.
Hi, this is not Viper4Andriod, isn't it? It is a script that let V4A work in selinux enforcing mode? If it is, where can i find V4A? What do I need to do with AudioFX? It replaces it?
 
Hi, this is not Viper4Andriod, isn't it? It is a script that let V4A work in selinux enforcing mode? If it is, where can i find V4A? What do I need to do with AudioFX? It replaces it?
Yes, you are right, this is just a mod to make V4A work with enforcing SE linux.
You can download V4A from their official XDA thread: http://forum.xda-developers.com/showthread.php?t=2191223 .
AudioFX stays active, but all you need to do is to go to settings->apps>AudioFX and disable it.
 
Just updated another mi2s to RC8 (not a clean install) and got Trebuchet crashing on every icon set but the CM12 default one.
Cleaning cache, dalvik cache, app settings does not help. (Trebuchet crashes even on a clean default home screen).

Anybody got this behaviour and a solution? I would like to avoid a clean install (a hell lot of work)
 
Just updated another mi2s to RC8 (not a clean install) and got Trebuchet crashing on every icon set but the CM12 default one.
Cleaning cache, dalvik cache, app settings does not help. (Trebuchet crashes even on a clean default home screen).

Anybody got this behaviour and a solution? I would like to avoid a clean install (a hell lot of work)

I got same behaviour with Deep Darkness Overhauled theme, now when seeing your post, I think it was highly probably because of icon theme, because I've switched to Dark Material theme which has no custom icon set, and is working fine. I found some clue when googling that it can be caused by enforcing selinux settings.
 
The thing is that:
  • It worked right after upgrade (I think from RC5 or so), but some apps had wrong icons. So I reinstalled the Miui v5 icon set and only then Trebuchet started crashing. Nova works fine, so this would be a workaround, but I would prefer to keep things simple and clean.
  • It works on another Mi2s (upgraded from RC6, where the RC6 was a clean install), but I am afraid to touch it ;-)
So, I have at least one phone where SE Linux enforcing policy does not cause a problem with the icon set.
 
Last edited:
I got same behaviour with Deep Darkness Overhauled theme, now when seeing your post, I think it was highly probably because of icon theme, because I've switched to Dark Material theme which has no custom icon set, and is working fine. I found some clue when googling that it can be caused by enforcing selinux settings.
Same problem with Deep Darkness Theme
 
I tested few other themes, too - Elegance, Bee, DCikonZ. All the same: Trebuchet crashes. I will paste a logcat later today.

EDIT: logs are attached.
 

Attachments

  • 00 Pressing "Update" to apply Miui v5 icons.txt
    16.2 KB · Views: 335
  • 01 Tapping on "Home" key to switch to Trebuchet.txt
    32.2 KB · Views: 299
Last edited:
Yes, you are right, this is just a mod to make V4A work with enforcing SE linux.
You can download V4A from their official XDA thread: http://forum.xda-developers.com/showthread.php?t=2191223 .
AudioFX stays active, but all you need to do is to go to settings->apps>AudioFX and disable it.
Did't work for me.
I installed de ZIP that let V4A work with SELinux
I installed the apk. I disabled AudioFX and installed the V4A driver.
Reboot.
Nothing. Driver status abnormal and no activated
 
Yep all !

before all , thanks you again Bugers for your works , that's awesome.

I begun the utilisation of this ROM in RC6 , to be honest , it was one of the worst rom i ever tried xD (xcuse me Bugers) , but it's normal , i'm a developer too on linux and a project can't be perfect in alpha and beta test , this is obvious !

Now i'm utilizing RC8p2 ! And i'm pretty impressed about how you optimized the rom , everything is smoother , faster , and more stable ... congratulations bro' !
But for me there is a problem which is during since very long time , this is the cameeeeera !! On my phone this is totally buggy , in RC6 it was working 2/3 times but here this isn't working at all , when i want to use camera i have a big loading time , and at the end this isn't working at all , so , please How can i send you a report or something like that with th camera bug , like that you can focus on that problem , because in my opinion if the camera don't work on our smartphone that is not a good and stable rom :/

But really , that's awesome how you managed to optimize the rom and i thanks you so much , continue like this and good luck for the next ;)

Thanks.

PS: -RC6 install was a clean install , and RC8 install too
-i have got the same problem for V4A than the precedent post
 
Last edited:
  • Like
Reactions: bugers and Miyaku
Did't work for me.
I installed de ZIP that let V4A work with SELinux
I installed the apk. I disabled AudioFX and installed the V4A driver.
Reboot.
Nothing. Driver status abnormal and no activated
I think you have to do it the other way round. First apk, then this mod.
 
Did't work for me.
I installed de ZIP that let V4A work with SELinux
I installed the apk. I disabled AudioFX and installed the V4A driver.
Reboot.
Nothing. Driver status abnormal and no activated
yeah becase SELINUX is Enforcing, i try to reboot after reboot via terminal i cmd
Code:
su
setenforce 0
and play music than open viper is work, but is temporary, i still searching how to get its permanent, looking for init.d and su.d and all viper policy is not work

Sent from my MI 4W using Tapatalk
 
Did't work for me.
I installed de ZIP that let V4A work with SELinux
I installed the apk. I disabled AudioFX and installed the V4A driver.
Reboot.
Nothing. Driver status abnormal and no activated
Oh! I know why it didn't work. You have to use SuperSU asi it makes the su.d startup directory. Sorry guys, I totally forgot about this.
 
OK - I get a lot of corrupted file system errors lately and I hope it's not the hardware! Anyway it's time to update to the latest RC and I've spent the last few hours what I have to do to get it working (besides wiping all partitions and reformat to f2fs) and I'm still not sure whether I have the partition layout necessary for the latest RC :-/

Here's the layout I have at the moment:
Code:
rootfs  /  rootfs  ro,seclabel,relatime 0 0
tmpfs  /dev  tmpfs  rw,seclabel,nosuid,relatime,mode=755 0 0
devpts  /dev/pts  devpts  rw,seclabel,relatime,mode=600 0 0
proc  /proc  proc  rw,relatime 0 0
sysfs  /sys  sysfs  rw,seclabel,relatime 0 0
selinuxfs  /sys/fs/selinux  selinuxfs rw,relatime 0 0
debugfs  /sys/kernel/debug  debugfs  rw,relatime 0 0
none  /acct  cgroup  rw,relatime,cpuacct 0 0
none  /sys/fs/cgroup  tmpfs  rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs  /mnt/asec  tmpfs  rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs  /mnt/obb  tmpfs  rw,seclabel,relatime,mode=755,gid=1000 0 0
none  /dev/cpuctl  cgroup  rw,relatime,cpu 0 0
none  /sys/fs/cgroup/bfqio  cgroup  rw,relatime,bfqio  0 0
/dev/block/platform/msm_sdcc.1/by-name/system  /system  ext4  ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache  /cache  ext4  rw,seclabel,nosuid,nodev,noatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data  ext4  rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist  /persist  ext4  rw,seclabel,nosuid,nodev,relatime,nodelalloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/modem  /firmware  vfat  ro,context=u:object_r:radio_efs_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
tmpfs  /data/qcks  tmpfs  rw,seclabel,relatime,size=20480k,mode=750,gid=1000 0 0
/dev/fuse  /mnt/shell/emulated  fuse  rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse  /mnt/shell/emulated/0 fuse  rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

I only see one system partition ... does that mean I'm already on the latest layout? Unfortunately I don't remember precisely which scripts I used when I migrated from Mokee to the Last Hope Rom :-(

EDIT: atm I'm running cm-12.1-20151213 ...
 
I think you have unified system partition made by m1cha and you have to upgrade to xiaomi unified partition
OK - I get a lot of corrupted file system errors lately and I hope it's not the hardware! Anyway it's time to update to the latest RC and I've spent the last few hours what I have to do to get it working (besides wiping all partitions and reformat to f2fs) and I'm still not sure whether I have the partition layout necessary for the latest RC :-/

Here's the layout I have at the moment:
Code:
rootfs  /  rootfs  ro,seclabel,relatime 0 0
tmpfs  /dev  tmpfs  rw,seclabel,nosuid,relatime,mode=755 0 0
devpts  /dev/pts  devpts  rw,seclabel,relatime,mode=600 0 0
proc  /proc  proc  rw,relatime 0 0
sysfs  /sys  sysfs  rw,seclabel,relatime 0 0
selinuxfs  /sys/fs/selinux  selinuxfs rw,relatime 0 0
debugfs  /sys/kernel/debug  debugfs  rw,relatime 0 0
none  /acct  cgroup  rw,relatime,cpuacct 0 0
none  /sys/fs/cgroup  tmpfs  rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs  /mnt/asec  tmpfs  rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs  /mnt/obb  tmpfs  rw,seclabel,relatime,mode=755,gid=1000 0 0
none  /dev/cpuctl  cgroup  rw,relatime,cpu 0 0
none  /sys/fs/cgroup/bfqio  cgroup  rw,relatime,bfqio  0 0
/dev/block/platform/msm_sdcc.1/by-name/system  /system  ext4  ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache  /cache  ext4  rw,seclabel,nosuid,nodev,noatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data  ext4  rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist  /persist  ext4  rw,seclabel,nosuid,nodev,relatime,nodelalloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/modem  /firmware  vfat  ro,context=u:object_r:radio_efs_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
tmpfs  /data/qcks  tmpfs  rw,seclabel,relatime,size=20480k,mode=750,gid=1000 0 0
/dev/fuse  /mnt/shell/emulated  fuse  rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse  /mnt/shell/emulated/0 fuse  rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

I only see one system partition ... does that mean I'm already on the latest layout? Unfortunately I don't remember precisely which scripts I used when I migrated from Mokee to the Last Hope Rom :-(

EDIT: atm I'm running cm-12.1-20151213 ...
 
  • Like
Reactions: swimmer
As for camera, no other app can trigger on the camera. In example Google Translate, or Skype

Sent from my MI 2S using Tapatalk

Edit, now works
 
Last edited:
I can confirm that this is the best rom ever:
0 bugs
0 reboots
0 camera issues and also is faster than other roms
Battery life despite lollipop bugs is aceptable
Because you are the 0FC man please do me a favor. Install the Trivago app and inform about possible FCs.. I have this ROM with microG, and I want to make clear if it's a non-gapps issue. thanks for helping (in advance of course, but you ll help me out, i feel it)

PS Let us know which GAPPS package, you installed. Thanks

Sent from my MI 2S using Tapatalk
 
trivago app, why?

266bdedeec03dbf48afec3c6a0cf1c32.jpg


Sent from my MI 2SC using Tapatalk
 
  • Like
Reactions: kamakasnh
trivago app, why?

266bdedeec03dbf48afec3c6a0cf1c32.jpg


Sent from my MI 2SC using Tapatalk
right yeah, install it please and then tell me if there is any FC

Edit, Now I realized the "why", ok I use the browser but why there is a FC? I have in one or two other apps but trivago was easy to remember..

Sent from my MI 2S using Tapatalk
 
Because you are the 0FC man please do me a favor. Install the Trivago app and inform about possible FCs.. I have this ROM with microG, and I want to make clear if it's a non-gapps issue. thanks for helping (in advance of course, but you ll help me out, i feel it)

PS Let us know which GAPPS package, you installed. Thanks

Sent from my MI 2S using Tapatalk
well i dont have any force close with trivago
im with mini gapps and maybe the force closes comes from the gapps because it try to achieve localization with google data and the microG doesnt have that?
 
  • Like
Reactions: kamakasnh
Anybody could tell me what is currently the best/most recommended partition layout? Micha unifined? Xiaomi unifed?

Is there a chance to do that on Mac and also format to f2fs? // Edit: I am on Micha's CM with old split layout.
 
Last edited:
Anybody could tell me what is currently the best/most recommended partition layout? Micha unifined? Xiaomi unifed?

Is there a chance to do that on Mac and also format to f2fs? // Edit: I am on Micha's CM with old split layout.
The unified of xiaomi. Find Windows PC , open in fastboot mode, open MiPcSuite and flash everything. You will lose everything

Sent from my MI 2S using Tapatalk
 
I haven't been here for a while so I'm just curious - how things are going? ROM works stable? Can I use "Best ROM ever" medal? ;)

My absence here doesn't mean that nothing is happening ;) Next upgrade is really huge in terms of changes under the hood and solves few problems which I always wanted to have them working ;) One of them is ..... encryption - fully working ;)

Cheers,
BuGi
 
Last edited:
After 3 days and a clean install, there were only one random reboot.
The system seems to be stable.
The issues with camere are still there

This camera thing is not my priority because of leak of 100% reproductive scenario and any help with solving this. If you have something which I can use to fix or maybe you have working patch or suggesting how to fix this let me know or contact me directly by email (available on official website).