For anyone who wants Viper but can't get it to work. - Google Pixel 4a Themes, Apps, and Mods

_mysiak_ said:
Default viper4android Magisk module doesn't work for me with SELinux enforcing. "Brute force" fix is to set SELinux to permissive, but I don't like this approach. Viper4android module should patch selinux policies during installation, but it fails for some reason. Fix is quite simple:
1. Locate and edit file
Code:
/data/adb/modules/ViPER4AndroidFX/post-fs-data.sh
2. Add this text to the end of the file
Code:
magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow audioserver system_file file { execmod }'
magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow mediaserver system_file file { execmod }'
magiskpolicy --live 'allow audioserver unlabeled file { read write execute open getattr }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default process { execmem }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default_tmpfs file { execute }'
magiskpolicy --live 'allow hal_audio_default audio_data_file dir { search }'
magiskpolicy --live 'allow app app_data_file file { execute_no_trans }'
magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio_tmpfs file { execute }'
3. save, reboot phone
4. go to viper4android app and toggle legacy mode off and on, it should work now with legacy mode enabled
Click to expand...
Click to collapse
Sourced from the Xiaomi Mi 10T forums.

daemonspudguy said:
Sourced from the Xiaomi Mi 10T forums.
Click to expand...
Click to collapse
I haven't tried this yet, but is this for any version of V4A?

breacherman said:
I haven't tried this yet, but is this for any version of V4A?
Click to expand...
Click to collapse
2.7.1.x

daemonspudguy said:
2.7.1.x
Click to expand...
Click to collapse
Ok, one more thing, though you didn't mention it, did you install audio modification library in magisk, without rebooting just before installing V4A + drivers, before running through this process? Or did you just install V4A without audio modification library?
Also, out of curiosity where did you get the .apk? Considering xda is no longer hosting files?

breacherman said:
Ok, one more thing, though you didn't mention it, did you install audio modification library in magisk, without rebooting just before installing V4A + drivers, before running through this process? Or did you just install V4A without audio modification library?
Click to expand...
Click to collapse
No AML.

Thanks man, this works for me. With AML already installed.

V4A - Android 11, no edits or tricks needed. Install from magisk and reboot.

Spaceminer said:
V4A - Android 11, no edits or tricks needed. Install from magisk and reboot.
Click to expand...
Click to collapse
Doesn't this change SELinux to permissive though?

Makishima said:
Doesn't this change SELinux to permissive though?
Click to expand...
Click to collapse
I wasn't sure, so I checked. Yes, I believe it does. I'm not sure why either because Viper appears to work with enforcing.

Related

[question]how to use sin2img????

i try to convert file .sin using tool sin2img but in the case if i trying to uses the system say Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\SI
N2IMG\[system.sin]'.
File name: 'C:\SIN2IMG\[system.sin]'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I
nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o
ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at SIN2IMG.Program.ExtractImage(String infile, String outfile)
at SIN2IMG.Program.Main(String[] args)
can somebody help me????i'm just newbie....
usage: system.sin system.img ::: by ex aZuZu
so without >> []
sin2img system.sin system.img >>> correct..
sin2img [system.sin] [system.img] >>> incorrect..

[tutorial]Add build.prop lines from cwm

I have seen many questions about build.prop editing but very less of them have been convincing to be solved and modders don't need to tell people to add lines from next time​
First how to make a script sh file which contains your prop lines
Click to expand...
Click to collapse
Open npp and type:
#!/sbin/sh[This is the first line to call busybox]
busybox echo "" >> /system/build.prop[Call busybox for prop file]
busybox echo "Title of your added lines" >> /system/build.prop(not recommended but works absolutely)[This is the description line which is written inside build.prop for understanding of your apk's value nature..]
busybox echo "ro.config.ringtone=opal.ogg" >> /system/build.prop....(And just the same way add lines)[This line put your default ringtone to opal.ogg]
Provide a line break
busybox echo "" >> /system/build.prop[Call this line again for busybox to finish prop file]
save file with script.sh extension.....save it at the main folder which contains meta-inf folder too...
Add these lines to updater-script after
Click to expand...
Click to collapse
ui_print("Adding lines to build.prop");
package_extract_file("script.sh", "/tmp/script.sh");
set_perm(0, 0, 0777, "/tmp/script.sh");
run_program("/tmp/script.sh");
For modifying the script ...like deleting prop lines....its quite hard to manage through it..end up in bootloops...will see to work it out...if any of you have got the deleting prop lines successful then post here
Try this one
Code:
{ sed -i "/^$1=/{ h; s/^$1=\(.*\)/# $1 was \"\1\"\n$1=$2/ }; \${ x; s/$1//; x; t e; s/$/\n$1=$2/; : e }" "$TMP"; }
this will search your build.prop for a line and replace it with something that you want it to be... then it will echo all of that to a temporary file of your choosing for reference. it will also comment out what the old prop was
RErick said:
Try this one
Code:
{ sed -i "/^$1=/{ h; s/^$1=\(.*\)/# $1 was \"\1\"\n$1=$2/ }; \${ x; s/$1//; x; t e; s/$/\n$1=$2/; : e }" "$TMP"; }
this will search your build.prop for a line and replace it with something that you want it to be... then it will echo all of that to a temporary file of your choosing for reference. it will also comment out what the old prop was
Click to expand...
Click to collapse
Great..i will work through it
epicsilence said:
I have seen many questions about build.prop editing but very less of them have been convincing to be solved and modders don't need to tell people to add lines from next time​
Open npp and type:
#!/sbin/sh[This is the first line to call busybox]
busybox echo "" >> /system/build.prop[Call busybox for prop file]
busybox echo "Title of your added lines" >> /system/build.prop(not recommended but works absolutely)[This is the description line which is written inside build.prop for understanding of your apk's value nature..]
busybox echo "ro.config.ringtone=opal.ogg" >> /system/build.prop....(And just the same way add lines)[This line put your default ringtone to opal.ogg]
Provide a line break
busybox echo "" >> /system/build.prop[Call this line again for busybox to finish prop file]
save file with script.sh extension.....save it at the main folder which contains meta-inf folder too...
ui_print("Adding lines to build.prop");
package_extract_file("script.sh", "/tmp/script.sh");
set_perm(0, 0, 0777, "/tmp/script.sh");
run_program("/tmp/script.sh");
Click to expand...
Click to collapse
I cant quite understand this. Could you please make a simple way on how to do this. thanks :fingers-crossed:
Najmi Mansor said:
I cant quite understand this. Could you please make a simple way on how to do this. thanks :fingers-crossed:
Click to expand...
Click to collapse
1. Don't quote full op
2.Nope there is no other simple method, you may learn from now
Najmi Mansor said:
I cant quite understand this. Could you please make a simple way on how to do this. thanks :fingers-crossed:
Click to expand...
Click to collapse
Friend, npp means notepad ++ ..you can get it from sourceforge.net ...and for later instructions type and understand meaning written in brackets
And yes...you need to read more threads around xda so you can understand more threads easily..
Enjoy reading
RErick said:
Try this one
Code:
{ sed -i "/^$1=/{ h; s/^$1=\(.*\)/# $1 was \"\1\"\n$1=$2/ }; \${ x; s/$1//; x; t e; s/$/\n$1=$2/; : e }" "$TMP"; }
this will search your build.prop for a line and replace it with something that you want it to be... then it will echo all of that to a temporary file of your choosing for reference. it will also comment out what the old prop was
Click to expand...
Click to collapse
Can you explain this a bit further in terms of usage? What part of this code is the line to be replaced and the line to be supplanted? I assume 1 & 2 are the lines, but I still don't quite understand... Maybe you could give an example? Thank you.
epicsilence said:
Friend, npp means notepad ++ ..you can get it from sourceforge.net ...and for later instructions type and understand meaning written in brackets
And yes...you need to read more threads around xda so you can understand more threads easily..
Enjoy reading
Click to expand...
Click to collapse
Thanks for replying
Heatshiver said:
Can you explain this a bit further in terms of usage?
Click to expand...
Click to collapse
Hello, learn more about sed here...my friend once implemented it on galaxy s2 for verification....but same script did not applied for xperia series...so i think its more important to get to know deep about its usage......
SED-Complete Document(Unofficial)
Always share knowledge, sometimes we might get more than we know
anybody has sample zip for this including updater script commands and the file script.sh, thanks anyone can help
---------- Post added at 04:14 AM ---------- Previous post was at 03:30 AM ----------
TheDriller said:
Try this one
Code:
{ sed -i "/^$1=/{ h; s/^$1=\(.*\)/# $1 was \"\1\"\n$1=$2/ }; \${ x; s/$1//; x; t e; s/$/\n$1=$2/; : e }" "$TMP"; }
this will search your build.prop for a line and replace it with something that you want it to be... then it will echo all of that to a temporary file of your choosing for reference. it will also comment out what the old prop was
Click to expand...
Click to collapse
can u give an example of a line that ur trying to replace in buildprop? what if this line ro.config.dha_empty_max=36 you change the value to 40 . . pls? thanks

[SCRIPT][TWEAK][ LENOVO K900 ] HeliuM2.1.2 {Clovertrail+ Booster}{Gamers edition}}

This Script is exclusively for Lenovo K900 Smartphone
avoid using other mods that need extra files and resources like crossbreeder etc... they will not do you much good on x86
Instructions:
1. Install Smanager (
HTML:
https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
)
2. Download attachment .zip and extract .sh file and put in phone memory
3.Reboot phone
4.Run .sh file as root (cross bones and skull) using Smanager
5. Unleash the Beast
(to remove script simply reboot phone again)
What is Helium?
The first performance script for intel clovertrail+
what it does?
Version 2.2.1 [STABLE] [All other scripts removed]
1. Enables Intel's interactive based governor on all 2x logical Cores. third party apps (setCPU,Rom Toolbox,etc) will only change the governor on a single logical core.
2. Enable optimized ondemand governor on 2x secondary core to maintain battery life. [Performance not effected]
3. Tuned and Optimized Intel Governor
4.Increased Responsiveness
5.More fluid multi-tasking
6.VM Tweaks
7. Kernel Tweaks
8.System Apps load much faster.
9.Entropy generation to reduce UI lag
10. Helium ultraUI [ set of tweaks for android Graphics rendering + intel]
Testimonial
with this script Asphalt 8 with max graphics runs smoother on K900 than on HTC One, Xperia Z
CHANGELOG:
1.2
-removed
2.1.1
-all the features of the previous scripts
- UI and Gaming optimization
-much much better battery life than previous versions
-even better performance
[i recommend setting script to run at boot]
2.1.2
- 3D graphics tuning [i cant really tell the difference....some may prefer 2.1.1]
- fine tuning performance parameters [please report]
- 2D Rendering tweaks on all 3rd party apps. [smoother scrolling in whatsapp facebook etc.][if not use 2.1.1]
Please Test and Report
HIT THANKS IF THIS HELPS YOU
thanks
awesome work dude .. :good:
thanks.
also note benchmarks do not matter....u should be able to feel the difference
can this damage phone? more heat etc? or 100% safe mod?
Maro' said:
can this damage phone? more heat etc? or 100% safe mod?
Click to expand...
Click to collapse
the phone does heat up a bit...but that is expected from an x86 device.. however it hasnt got as hot as it used to get when the device was on stock settings.... so far im running this for over a week now...no issues...
"Run .sh file as root (cross bones and skull) using Smanager"
Root is required?
ajazz said:
"Run .sh file as root (cross bones and skull) using Smanager"
Root is required?
Click to expand...
Click to collapse
Yes...for rooted devices only
Works great games are soo much smoother! I think the battery takes a little hit but so worth it for smoother games.
Sent from my Lenovo K900_ROW using xda app-developers app
[Update]
mikey199 said:
Works great games are soo much smoother! I think the battery takes a little hit but so worth it for smoother games.
Sent from my Lenovo K900_ROW using xda app-developers app
Click to expand...
Click to collapse
Script updated to 2.1.1
should be much better on battery now...and still be smooth with no fall back on performance.
also no game should lag now.
Sent from my Lenovo K900_ROW using xda app-developers app
Sent from my Lenovo K900_ROW using xda app-developers app
mikey199 said:
Sent from my Lenovo K900_ROW using xda app-developers app
Click to expand...
Click to collapse
HTML:
https://play.google.com/store/apps/details?id=com.koushikdutta.superuser&hl=en
use this...updatd binaries. old speruser.apk binaries not updated for x86 phones
remove Chainfire's superuser.apk from system/app...
grant permissions to Smanager
run script as root n report
Anyone else with this problem ?
Super!!!
ArchenzeEL said:
HTML:
https://play.google.com/store/apps/details?id=com.koushikdutta.superuser&hl=en
use this...updatd binaries. old speruser.apk binaries not updated for x86 phones
remove Chainfire's superuser.apk from system/app...
grant permissions to Smanager
run script as root n report
Anyone else with this problem ?
Click to expand...
Click to collapse
That worked perfect no errors now. Thank you! This is great.
Sent from my Lenovo K900_ROW using xda app-developers app
thanks mate .. \m/
any reports?
any problems?
Works great love it. Have it set as su and boot in Smanager. I Can tell a difference when using mostly games. Seems like good performance and battery balance. I really enjoy it thank you for your hard work.
Sent from my Lenovo K900_ROW using xda app-developers app
exec sh '/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL'
rchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL' <
Helium Injection
Intel 2x thread core ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[7]: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[8]: can't create /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[9]: can't create /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[10]: can't create /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: Permission denied
Intel core tweaks ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[13]: can't create /sys/devices/system/cpu/cpufreq/intel/go_hispeed_load: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[14]: can't create /sys/devices/system/cpu/cpufreq/intel/vsync_count: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[15]: can't create /sys/devices/system/cpu/cpufreq/intel/touch_event: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[16]: can't create /sys/devices/system/cpu/cpufreq/intel/timer_rate: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[17]: can't create /sys/devices/system/cpu/cpufreq/intel/min_sample_time: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[18]: can't create /sys/devices/system/cpu/cpufreq/intel/timer_keep_load: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[19]: can't create /sys/devices/system/cpu/cpufreq/intel/load_for_deferrable: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[20]: can't create /sys/devices/system/cpu/cpufreq/intel/hispeed_freq: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[21]: can't create /sys/devices/system/cpu/cpufreq/intel/boostspeed_freq: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[22]: can't create /sys/devices/system/cpu/cpufreq/intel/down_differential: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[23]: can't create /sys/devices/system/cpu/cpufreq/intel/boost: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[24]: can't create /sys/devices/system/cpu/cpufreq/intel/input_boost: No such file or directory
secondary core battery optimization ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[27]: can't create /sys/devices/system/cpu/cpufreq/ondemand/up_threshold: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[28]: can't create /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[29]: can't create /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[30]: can't create /sys/devices/system/cpu/cpufreq/ondemand/down_differential: Permission denied
VM and Kernel tweaks ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[33]: can't create /proc/sys/vm/page-cluster: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[34]: can't create /proc/sys/vm/dirty_expire_centisecs: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[35]: can't create /proc/sys/vm/dirty_writeback_centisecs: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[36]: can't create /proc/sys/vm/min_free_kbytes: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[37]: can't create /proc/sys/vm/oom_kill_allocating_task: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[38]: can't create /proc/sys/vm/panic_on_oom: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[39]: can't create /proc/sys/vm/dirty_background_ratio: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[40]: can't create /proc/sys/vm/dirty_ratio: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[41]: can't create /proc/sys/vm/vfs_cache_pressure: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[42]: can't create /proc/sys/vm/overcommit_memory: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[43]: can't create /proc/sys/vm/min_free_order_shift: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[44]: can't create /proc/sys/vm/laptop_mode: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[45]: can't create /proc/sys/vm/block_dump: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[46]: can't create /proc/sys/vm/oom_dump_tasks: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[47]: can't create /proc/sys/kernel/sem: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[48]: can't create /proc/sys/kernel/shmmax: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[49]: can't create /proc/sys/kernel/shmall: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[50]: can't create /proc/sys/kernel/shmmni: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[51]: can't create /proc/sys/kernel/msgmni: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[52]: can't create /proc/sys/kernel/msgmax: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[53]: can't create /proc/sys/kernel/panic: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[54]: can't create /proc/sys/kernel/panic_on_oops: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[55]: can't create /proc/sys/kernel/threads-max: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[56]: can't create /proc/sys/fs/lease-break-time: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[57]: can't create /proc/sys/fs/file-max: Permission denied
Entropy Generator ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[60]: can't create /proc/sys/kernel/random/read_wakeup_threshold: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[61]: can't create /proc/sys/kernel/random/write_wakeup_threshold: Permission denied
Helium ultraUI Graphics ON
done!
Sent from my Lenovo K900_ROW using xda app-developers app
I did set it as root but i keep getting this error....help.
rajivmishra13 said:
exec sh '/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL'
rchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL' <
Helium Injection
Intel 2x thread core ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[7]: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[8]: can't create /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[9]: can't create /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[10]: can't create /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: Permission denied
Intel core tweaks ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[13]: can't create /sys/devices/system/cpu/cpufreq/intel/go_hispeed_load: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[14]: can't create /sys/devices/system/cpu/cpufreq/intel/vsync_count: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[15]: can't create /sys/devices/system/cpu/cpufreq/intel/touch_event: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[16]: can't create /sys/devices/system/cpu/cpufreq/intel/timer_rate: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[17]: can't create /sys/devices/system/cpu/cpufreq/intel/min_sample_time: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[18]: can't create /sys/devices/system/cpu/cpufreq/intel/timer_keep_load: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[19]: can't create /sys/devices/system/cpu/cpufreq/intel/load_for_deferrable: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[20]: can't create /sys/devices/system/cpu/cpufreq/intel/hispeed_freq: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[21]: can't create /sys/devices/system/cpu/cpufreq/intel/boostspeed_freq: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[22]: can't create /sys/devices/system/cpu/cpufreq/intel/down_differential: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[23]: can't create /sys/devices/system/cpu/cpufreq/intel/boost: No such file or directory
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[24]: can't create /sys/devices/system/cpu/cpufreq/intel/input_boost: No such file or directory
secondary core battery optimization ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[27]: can't create /sys/devices/system/cpu/cpufreq/ondemand/up_threshold: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[28]: can't create /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[29]: can't create /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[30]: can't create /sys/devices/system/cpu/cpufreq/ondemand/down_differential: Permission denied
VM and Kernel tweaks ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[33]: can't create /proc/sys/vm/page-cluster: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[34]: can't create /proc/sys/vm/dirty_expire_centisecs: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[35]: can't create /proc/sys/vm/dirty_writeback_centisecs: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[36]: can't create /proc/sys/vm/min_free_kbytes: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[37]: can't create /proc/sys/vm/oom_kill_allocating_task: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[38]: can't create /proc/sys/vm/panic_on_oom: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[39]: can't create /proc/sys/vm/dirty_background_ratio: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[40]: can't create /proc/sys/vm/dirty_ratio: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[41]: can't create /proc/sys/vm/vfs_cache_pressure: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[42]: can't create /proc/sys/vm/overcommit_memory: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[43]: can't create /proc/sys/vm/min_free_order_shift: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[44]: can't create /proc/sys/vm/laptop_mode: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[45]: can't create /proc/sys/vm/block_dump: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[46]: can't create /proc/sys/vm/oom_dump_tasks: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[47]: can't create /proc/sys/kernel/sem: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[48]: can't create /proc/sys/kernel/shmmax: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[49]: can't create /proc/sys/kernel/shmall: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[50]: can't create /proc/sys/kernel/shmmni: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[51]: can't create /proc/sys/kernel/msgmni: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[52]: can't create /proc/sys/kernel/msgmax: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[53]: can't create /proc/sys/kernel/panic: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[54]: can't create /proc/sys/kernel/panic_on_oops: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[55]: can't create /proc/sys/kernel/threads-max: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[56]: can't create /proc/sys/fs/lease-break-time: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[57]: can't create /proc/sys/fs/file-max: Permission denied
Entropy Generator ON
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[60]: can't create /proc/sys/kernel/random/read_wakeup_threshold: Permission denied
/storage/sdcard0/xda_download/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL/HeliuM_2.1.1_STABLE_K900_by_ArchenzeeL[61]: can't create /proc/sys/kernel/random/write_wakeup_threshold: Permission denied
Helium ultraUI Graphics ON
done!
Sent from my Lenovo K900_ROW using xda app-developers app
I did set it as root but i keep getting this error....help.
Click to expand...
Click to collapse
1. make sure ur devce is rooted
2. in super user app ...go to settings and allow all
3.download superuser app by clockworkmod from market.
4.update binaries from that app
5.use root expolrer to delete old superuser.apk from /system/app
6then run script
It seems that as i was using smanager for the first time...i was not enabling the root and boot options before executing the script.
This is how it looks like now....let me know how this look w now....Should i reboot next?
Sent from my Lenovo K900_ROW using xda app-developers app

Moving system apk from stock 4.0 to CM 11

Hi,
I got CM 11 running on my devices (Nexus Q) and want to add some system apk from the stock factory images and need some help. I mounted the factory image and copied TungstenLEDService.apk from /system/app to my computer and tried to install it over adb. This is what I have done so far.
Code:
adb install TungstenLEDService.apk
but it fails with INSTALL_FAILED_SHARED_USER_INCOMPATIBLE error. Ok fine, its a system apk, so I did the following.
I enabled root over adb on developer settings on the device and from the terminal I did
Code:
adb push TungstenLEDService.apk /sdcard/
adb shell
su
mount -o rw,remount -t ext4 /system
cp /sdcard/TungstenLEDService.apk /system/app/
And then I set the permission with Solid Explorer filemanager to -rw-r--r-- on TungstenLEDService.apk and rebooted. From logcat I got this error
Code:
Package com.google.tungsten.ledservice has no signatures that match those in shared user android.uid.system; ignoring!
What to do next? Do I need to resign the apk? How do I do that? I have not modified the apk in any way and the CM 11 build is from this xda thread: http://forum.xda-developers.com/showthread.php?t=2596910
mannberg said:
Hi,
I got CM 11 running on my devices (Nexus Q) and want to add some system apk from the stock factory images and need some help. I mounted the factory image and copied TungstenLEDService.apk from /system/app to my computer and tried to install it over adb. This is what I have done so far.
Code:
adb install TungstenLEDService.apk
but it fails with INSTALL_FAILED_SHARED_USER_INCOMPATIBLE error. Ok fine, its a system apk, so I did the following.
I enabled root over adb on developer settings on the device and from the terminal I did
Code:
adb push TungstenLEDService.apk /sdcard/
adb shell
su
mount -o rw,remount -t ext4 /system
cp /sdcard/TungstenLEDService.apk /system/app/
And then I set the permission with Solid Explorer filemanager to -rw-r--r-- on TungstenLEDService.apk and rebooted. From logcat I got this error
Code:
Package com.google.tungsten.ledservice has no signatures that match those in shared user android.uid.system; ignoring!
What to do next? Do I need to resign the apk? How do I do that? I have not modified the apk in any way and the CM 11 build is from this xda thread: http://forum.xda-developers.com/showthread.php?t=2596910
Click to expand...
Click to collapse
3 things that are probably causing issues.
1) it's a signed factory apk, and is looking for a factory rom to work on. You can try re-signing it using basic "test" signature. Also, make sure the apk is "deodexed".
2) Just incompatible with version 4.4 KitKat. In this case, you would probably have to re-write a lot of code.
3) Decompile and check the Android Manifest for anything unusual. Also, while decompiled, check all the folders for the last error message you posted. Might be a clue in there.
Moscow Desire said:
1) it's a signed factory apk, and is looking for a factory rom to work on. You can try re-signing it using basic "test" signature. Also, make sure the apk is "deodexed".
Click to expand...
Click to collapse
How do I deodex the apk / odex files? Any good and easy guides out there? Im a neewbie. Tell me like I'm 4 years old The apk / odex files is from android version 4.0.4
Signing with test signature, do you mean something like this
Code:
jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android TungstenLEDService.apk androiddebugkey
after the apk is deodoxed?
Moscow Desire said:
2) Just incompatible with version 4.4 KitKat. In this case, you would probably have to re-write a lot of code.
Click to expand...
Click to collapse
I hope not.
Moscow Desire said:
3) Decompile and check the Android Manifest for anything unusual. Also, while decompiled, check all the folders for the last error message you posted. Might be a clue in there.
Click to expand...
Click to collapse
I didnt see anything special in the Manifest, it looks like the one I posted below. Do I need to change android:versionCode and android:versionName?
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:sharedUserId="android.uid.system" android:versionCode="15" android:versionName="4.0.4-403218" package="com.google.tungsten.ledservice"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<application android:label="Tungsten LED Service">
<service android:name=".LEDService" android:exported="true">
<intent-filter>
<action android:name="com.google.tungsten.LedService" />
</intent-filter>
</service>
<receiver android:name="BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name="com.google.tungsten.ledservice.TungstenLedContainer" android:enabled="true" android:exported="true">
<intent-filter>
<action android:name="com.android.athome.START_SERVICE" />
</intent-filter>
<meta-data android:name="com.android.athome.service" android:resource="@xml/connector_info" />
</service>
</application>
</manifest>
mannberg said:
How do I deodex the apk / odex files? Any good and easy guides out there? Im a neewbie. Tell me like I'm 4 years old The apk / odex files is from android version 4.0.4
Click to expand...
Click to collapse
Ha! Can't do that mate. Have to work!
Now, here is what I use for pretty much all my needs when it comes to working with apks and other things.
http://forum.xda-developers.com/showthread.php?t=1619473
They have a pretty good support here at XDA, and also their own website. This saves you having to find all these apktools and such for decompiling, deodexing and stuff, which is a real pain. I use it under Win 7. Might have to install the latest version of Microsoft.net though.
First thing, is make sure your apk is deodexed or not. If it's not, you will see an odex file with the same name in your system folder of your old 4.0.4 files. If it's not, you'll need to deodex it before decompiling. If there's not an odex file, then you can go straight to decompiling. Then, you can look in all the folders and such. Then recompile it back, using the test keys for signing.
As with the manifest, it's possible you need to change the android versions. But the message you had, seems to be looking for something signed specifically for that 4.0.4. Probably a factory signed framework or systemUI.
CM uses unsigned files, or files signed using random testkeys.
You can also check XDA University about porting apps to KitKat. Lots of these folks do this, and port to other devices, so hopefully somebody there can tell you more. Or check the General Android Application Development forums.
MD
I dedoxed the apk and odex files. Changed the manifest and removed the sharedUserId and rebuilt the apk, signed with a test key. Then I copied the the apk to /system/app. So far everything is fine.
I tried to launch the service (tungsten.ledservice) with
Code:
adb shell am startservice -n com.google.tungsten.ledservice/.TungstenLedContainer
and when I check ps in adb shell I see a process called com.google.tungsten.ledservice. But nothing happens when I change the volyme. It should change the leds on the Nexus Q. I checked adb logcat and found this in the log.
Code:
D/AndroidRuntime( 2626):
D/AndroidRuntime( 2626): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 2626): CheckJNI is OFF
D/dalvikvm( 2626): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 2626): Added shared lib libjavacore.so 0x0
D/dalvikvm( 2626): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 2626): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 2626): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
E/cutils-trace( 2626): Error opening trace file: No such file or directory (2)
D/dalvikvm( 2626): Note: class Landroid/app/ActivityManagerNative; has 180 unimplemented (abstract) methods
E/memtrack( 2626): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2626): failed to load memtrack module: -2
D/AndroidRuntime( 2626): Calling main entry com.android.commands.am.Am
D/AndroidRuntime( 2626): Shutting down VM
This service use some library from /system/lib/, libled_service_jni.so and libtungsten_led.so. I guess some changes were made to the jni stuff between android 4.0.4 and 4.4. Is this fixable? Is it the java code that fails or the compiled c librarys?

[GUIDE] VIPER4Android FX for Android 11 based Custom ROM

Hi Guys,
Here I will share with you a guide to install Viper4Android on Android 11 based ROM.
In this guide my devices is Mi 9T Pro running Havoc-OS 4.5 AOSP ROM.
I just migrated from xiaomi.eu Weekly ROM 21.6.2 and I also successfully installed it on that ROM using this method.
I read on the other thread that wifi might be broken after installing Viper4Android and you need to flash custom kernel to fix the issue.
Rest assured I have tested this method and the wifi is working fine, no need to flash any custom kernel.
This guide might also worked for other devices as reported by other users.
I'm running Havoc-OS 4.6 and Magisk 23.0 at the moment.
AOSP Based ROM (Havoc-OS 4.5 tested) :
1. Download and Install from TWRP rootless Viper4android FX here.
2. Open file browser that can access root folder. In this case I use Root Explorer
3. Go to /data/adb/modules/ViPER4AndroidFX/ , find file post-fs-data.sh. If the file not exist make new file and name it post-fs-data.sh .
4. Edit the file, copy and add this text at the end of row.
Code:
magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow audioserver system_file file { execmod }'
magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow mediaserver system_file file { execmod }'
magiskpolicy --live 'allow audioserver unlabeled file { read write execute open getattr }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default process { execmem }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default_tmpfs file { execute }'
magiskpolicy --live 'allow hal_audio_default audio_data_file dir { search }'
magiskpolicy --live 'allow app app_data_file file { execute_no_trans }'
magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio_tmpfs file { execute }'
5. Save the file.
6. If you create a new file during step 3, don't forget to add permission on to the file, tick every checkboxes available.
(though its not necessary to tick all of it but I don't understand so I just tick all of it).
7. Reboot your phone, go to Viper4Android - Settings and choose Legacy Mode.
8. Now the Viper4Android should be run successfully.
For MIUI 12 guide to install you can follow the original guide in this link below :
https://forum.xda-developers.com/t/mod-viper4android-miui-12-magisk-21-1.4203489/
Hope this thread will help you installing the Viper4Android
Credits to @_mysiak_ and reference thread here.
Buddy you're life saver... I'm using your method on Oxygen OS 11.1.1.3 on OnePlus Nord and everything working very smooth.

Categories

Resources