• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Tweaks Script for Stylo

the update.zip you do by putting in the root of your external sd and just going into recovery and press the option to "apply update from sdcard" and you just choose the update.zip but with the system.img i can't really tell you since i forget what i did
I was on 5.1.1. Does that mean I can't do the update.zip thing?
 
Ill tell you how to fix it.
Open file explorer.
Go to external_sd
Create a file named msm8916.sh
Make sure its blank.
Use the root exploit for 5.1.
Open lg_root.zip then extract it.
Connect your phone in download mode.
Run ports.bat and note the port that says lgvzndiagsomethingsomething.
Then open a terminal in the folder you extracted lg_root with shift+right click.
Now type Send_Command.exe \\.\COM#
Putting your port number in the place of "#" with no spaces.

Now type
Code:
dd if=/storage/external_SD/msm8916.sh of=/system/su.d/msm8916.sh
Alternatively you can try rm -f /system/su.d/msm8916.sh but I couldn't get that to work for me.
Create a file? Like just any file?
 
Ill tell you how to fix it.
Open file explorer.
Go to external_sd
Create a file named msm8916.sh
Make sure its blank.
Use the root exploit for 5.1.
Open lg_root.zip then extract it.
Connect your phone in download mode.
Run ports.bat and note the port that says lgvzndiagsomethingsomething.
Then open a terminal in the folder you extracted lg_root with shift+right click.
Now type Send_Command.exe \\.\COM#
Putting your port number in the place of "#" with no spaces.

Now type
Code:
dd if=/storage/external_SD/msm8916.sh of=/system/su.d/msm8916.sh
Alternatively you can try rm -f /system/su.d/msm8916.sh but I couldn't get that to work for me.
I don't see lgvzndiagsomethingsomething. The only ones I see are serial0, lgandnetmdm0, and lgandnetdiag1. Even when I use the last one I type the last code and nothing happens.
 
I don't see lgvzndiagsomethingsomething. The only ones I see are serial0, lgandnetmdm0, and lgandnetdiag1. Even when I use the last one I type the last code and nothing happens.

diag1 is the one you want he just forgot the last bit of it so not somethingsomething
 
I don't see lgvzndiagsomethingsomething. The only ones I see are serial0, lgandnetmdm0, and lgandnetdiag1. Even when I use the last one I type the last code and nothing happens.

and did you place the blank file into the external storage not in a sub folder?
 
Thanks for the help. My Stylo is all good.
Yep, as long as you have download mode you have unwavering root shell access. You can fix anything, I've recovered from some pretty ******** bricks. I was even flashing random partitions from my Leon and most of it worked while carefully avoiding sbl and aboot.
 
bootlooped on boost 5.1.1. steps by Bichofelix . all fine till i get here:

type: dd if=/storage/external_SD/msm8916.sh of=/system/su.d/msm8916.sh

when i do this...there is NO indication that anything happens. typing LEAVE justs exits the terminal, phone boots back into bootloop. isnt there any way to just delete the entire su.d folder from pc? i created it just to try this, so theres nothing there but this script
 
hmm...the file i downloaded semms to have a few changes vs the one that 6th_Hokage showed:

#!/system/bin/sh

#enable zram
echo "536870912" > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0
echo "100" > /proc/sys/vm/swappiness

# HMP scheduler settings for 8916

echo "2" > /proc/sys/kernel/sched_window_stats_policy

# HMP scheduler load tracking settings

echo "5" > /proc/sys/kernel/sched_ravg_hist_size

# HMP Task packing settings for 8916

echo "50" > /proc/sys/kernel/sched_small_task
echo "50" > /sys/devices/system/cpu/cpu0/sched_mostly_idle_load
echo "10" > /sys/devices/system/cpu/cpu0/sched_mostly_idle_nr_run


# apply gov settings
# disable thermal core_control to update scaling_min_freq

echo "0" > /sys/module/msm_thermal/core_control/enabled
echo "1" > /sys/devices/system/cpu/cpu0/online
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# causes perms error
# echo "1" > /sys/devices/system/cpu/cpu0/rq-stats/hotplug_disable

echo "200000" > /sys/devices/system/cpu/cpu0/sched_mostly_idle_freq
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "998400" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# enable thermal core_control now

echo "1" > /sys/module/msm_thermal/core_control/enabled
echo "80000 998400:60000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
echo "99" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
echo "130000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo "200000" > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
echo "1 200000:85 200000:90 200000:80" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
echo "150000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
echo "20000" > /sys/devices/system/cpu/cpufreq/interactive/max_freq_hysteresis
echo "1" > /sys/devices/system/cpu/cpufreq/interactive/use_sched_load
echo "1" > /sys/devices/system/cpu/cpufreq/interactive/align_windows
echo "1" > /sys/devices/system/cpu/cpufreq/interactive/use_migration_notif
echo "3" > /sys/devices/system/cpu/cpufreq/interactive/boost
echo "10000" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
echo "180000" > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

# sdtweaks

echo "deadline" > /sys/block/mmcblk0/queue/scheduler
echo "deadline" > /sys/block/mmcblk1/queue/scheduler
echo "2048" > /sys/block/mmcblk0/queue/read_ahead_kb
echo "2048" > /sys/block/mmcblk1/queue/read_ahead_kb

# Bring up all cores online

echo "1" > /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu2/online
echo "1" > /sys/devices/system/cpu/cpu3/online
 
hmm...the file i downloaded semms to have a few changes vs the one that 6th_Hokage showed:

#!/system/bin/sh

#enable zram
echo "536870912" > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0
echo "100" > /proc/sys/vm/swappiness

# HMP scheduler settings for 8916

echo "2" > /proc/sys/kernel/sched_window_stats_policy

# HMP scheduler load tracking settings

echo "5" > /proc/sys/kernel/sched_ravg_hist_size

# HMP Task packing settings for 8916

echo "50" > /proc/sys/kernel/sched_small_task
echo "50" > /sys/devices/system/cpu/cpu0/sched_mostly_idle_load
echo "10" > /sys/devices/system/cpu/cpu0/sched_mostly_idle_nr_run


# apply gov settings
# disable thermal core_control to update scaling_min_freq

echo "0" > /sys/module/msm_thermal/core_control/enabled
echo "1" > /sys/devices/system/cpu/cpu0/online
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# causes perms error
# echo "1" > /sys/devices/system/cpu/cpu0/rq-stats/hotplug_disable

echo "200000" > /sys/devices/system/cpu/cpu0/sched_mostly_idle_freq
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "998400" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# enable thermal core_control now

echo "1" > /sys/module/msm_thermal/core_control/enabled
echo "80000 998400:60000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
echo "99" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
echo "130000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo "200000" > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
echo "1 200000:85 200000:90 200000:80" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
echo "150000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
echo "20000" > /sys/devices/system/cpu/cpufreq/interactive/max_freq_hysteresis
echo "1" > /sys/devices/system/cpu/cpufreq/interactive/use_sched_load
echo "1" > /sys/devices/system/cpu/cpufreq/interactive/align_windows
echo "1" > /sys/devices/system/cpu/cpufreq/interactive/use_migration_notif
echo "3" > /sys/devices/system/cpu/cpufreq/interactive/boost
echo "10000" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
echo "180000" > /sys/devices/system/cpu/cpufreq/interactive/timer_slack

# sdtweaks

echo "deadline" > /sys/block/mmcblk0/queue/scheduler
echo "deadline" > /sys/block/mmcblk1/queue/scheduler
echo "2048" > /sys/block/mmcblk0/queue/read_ahead_kb
echo "2048" > /sys/block/mmcblk1/queue/read_ahead_kb

# Bring up all cores online

echo "1" > /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu2/online
echo "1" > /sys/devices/system/cpu/cpu3/online
Just compared them, they look exactly the same.
What do you see that was changed?
I no longer support this script as cm12 is nearing completion and there are better ways to mitigate battery/heat.
Also nobody ever sent me '/system/etc/init.qcom.post_boot.sh' from a boost phone. I Just want to know why the **** boost usersbootloop.
 
umm, a couple of lines actually..unless im comparing the wrong things. at the very bottom...

# Bring up all cores online

echo "1" > /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu2/online
echo "1" > /sys/devices/system/cpu/cpu3/online

i dont know about these things at all...just comparing things as 2x's now ive looped my device tryn to install. more than likely on my own fault...just makin sure. from what ive read its a great script...thank you
 
umm, a couple of lines actually..unless im comparing the wrong things. at the very bottom...

# Bring up all cores online

echo "1" > /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu2/online
echo "1" > /sys/devices/system/cpu/cpu3/online

i dont know about these things at all...just comparing things as 2x's now ive looped my device tryn to install. more than likely on my own fault...just makin sure. from what ive read its a great script...thank you

Those lines turn cores 2-3 on. You can actually change 1 to 0 and have your phone run 1-4 cores all the time.

Will you please run this command and give me the resulting file?

Code:
su
dd if=/system/etc/init.qcom.post_boot.sh of=/sdcard/init.qcom.post_boot.txt
Please and thank you. I can probably still support the boost stylo of you give me that file. Just upload it in your reply.
 
Those lines turn cores 2-3 on. You can actually change 1 to 0 and have your phone run 1-4 cores all the time.

Will you please run this command and give me the resulting file?

Code:
su
dd if=/system/etc/init.qcom.post_boot.sh of=/sdcard/init.qcom.post_boot.txt
Please and thank you. I can probably still support the boost stylo of you give me that file. Just upload it in your reply.


i would LOVE to help. as i said...phone is toast until i get a zv5 system image. plz see my "NEW BOOST System Update" thread here. i tried runnin this script...prolly my fault..n bootlooped my phone. was able to fix it once...applied zv5 update...(im such an idiot..had workin phone, zv5 update w/root....and didnt BACKUP...UGGHHH!!!)...tried ur script again...bootlooped again. now im stuck with security boot #11 till i get a zv5 image. once i have it....i promise ill do whatever you ask my friend. thank you for your reply
 
i would LOVE to help. as i said...phone is toast until i get a zv5 system image. plz see my "NEW BOOST System Update" thread here. i tried runnin this script...prolly my fault..n bootlooped my phone. was able to fix it once...applied zv5 update...(im such an idiot..had workin phone, zv5 update w/root....and didnt BACKUP...UGGHHH!!!)...tried ur script again...bootlooped again. now im stuck with security boot #11 till i get a zv5 image. once i have it....i promise ill do whatever you ask my friend. thank you for your reply
I know this sounds weird but have you tried LG support tool (not flash tool) and doing emergency recovery?
If you can get something from there it downloads a kdz we can intercept.
 
yeah..pretty sure ive exhausted all options. the phone is "remembering" that i installed zv5 update. even after tryin 6th_Hokage's OFFICIAL UNBRICK GUIDE on XDA (which sucessfully installs 5.1.1)..the phone will not boot cuz of authentication failure #11. im pretty sure its cuz the unbrick system.img file he gives is on zv4. the phone wont seem to accept ANYTHING less than zv5. since the update is just commin out...someone will post an UPDATE.zip or the system.img. hopefully that straightns me out. total rookie mistake not makin some sort of backup on my part. as for the " download mode thing and try to run rm -f /system/su.d/*" thing you speak of...is that using ADB? no way i can from what i read....phone def. not in debug mode, plus adk tools dont recognize my device. i DO have download mode obviously....just seem to b stuck in a catch-22. i really appreciate your help man. thank you
 
yeah..pretty sure ive exhausted all options. the phone is "remembering" that i installed zv5 update. even after tryin 6th_Hokage's OFFICIAL UNBRICK GUIDE on XDA (which sucessfully installs 5.1.1)..the phone will not boot cuz of authentication failure #11. im pretty sure its cuz the unbrick system.img file he gives is on zv4. the phone wont seem to accept ANYTHING less than zv5. since the update is just commin out...someone will post an UPDATE.zip or the system.img. hopefully that straightns me out. total rookie mistake not makin some sort of backup on my part. as for the " download mode thing and try to run rm -f /system/su.d/*" thing you speak of...is that using ADB? no way i can from what i read....phone def. not in debug mode, plus adk tools dont recognize my device. i DO have download mode obviously....just seem to b stuck in a catch-22. i really appreciate your help man. thank you
Go back and read how I tell the first user to use the download mode exploit.
1) install universal LG driver
2) use download mode exploit mentioned on first page
3) double click ports.bat with phone connected via USB. (If you can get a PORT number, we want the one with the word 'diag' in the name)
4) open folder you extracted download mode exploit to and press shift+right click then select 'open terminal here'
5) Run Send_Command.exe \\.\COM#
Replace '#' with your com number.
6) You may now execute commands.
 
ok...i understand. in download mode...COM5 got it. (rm -f /system/su.d/*)...am i suppose to put an astrisk there? or something else? do i try the blank file thing? i mean..is it possible that /su.d is it even on the phone right now? gosh i miss the days of Boost n custom recovery..lol. thanks again for your help and patience
 
kaay. tried the LG Support Tool thing....it actually recognized the device. got excited when it said update available..then shrunk in my chair 30 secs later when it said "your phone is up to date". bummer. also tried the LG PC SUITE...only to discover a huge warning that said versions 5.0+ are not supported due to "security issues" in system. just gonna sit back n "ride-the-pine" till somethin new develops. really appreciate your time n efforts dude...thanx
 
ok...i understand. in download mode...COM5 got it. (rm -f /system/su.d/*)...am i suppose to put an astrisk there? or something else? do i try the blank file thing? i mean..is it possible that /su.d is it even on the phone right now? gosh i miss the days of Boost n custom recovery..lol. thanks again for your help and patience
Try the blank file first, make sure to put it on external. Then try rm -f and yes you put the asterisk. It deletes everything in that folder
 
alrighty ma man. i actually took the day off werk to try n force myself to learn this stuff. startin to make sense now. unfortunately, outside of basic knowlege, the phone has remained in the same state. still.."Authentication Failed #11". ive gone as far as to install 5.0.2 back onto phone. got myself another "Authentication Failed"...only this time it was of a (#2) variety. reinstalled 5.1.1 over that...back to (#4). i just havnt been able to find a succesful way to "roll back" the update versions in a way that the PHONE itself accepts being rolled back. lol. i just gotta laugh. i think im stuck till i get a zv5 system.img, or maybe even a zv5update.zip. really appreciate your time n patience....
 
alrighty ma man. i actually took the day off werk to try n force myself to learn this stuff. startin to make sense now. unfortunately, outside of basic knowlege, the phone has remained in the same state. still.."Authentication Failed #11". ive gone as far as to install 5.0.2 back onto phone. got myself another "Authentication Failed"...only this time it was of a (#2) variety. reinstalled 5.1.1 over that...back to (#4). i just havnt been able to find a succesful way to "roll back" the update versions in a way that the PHONE itself accepts being rolled back. lol. i just gotta laugh. i think im stuck till i get a zv5 system.img, or maybe even a zv5update.zip. really appreciate your time n patience....

okay you can try this
1. Run 5.1.1 system.img from my thread
(You will get [Authentication Fail #18] on boot...or at least should)
2. run update.zip for 5.1.1 (http://forum.xda-developers.com/general/general/lg-g-stylo-boost-mobile-t3113080)
in theory it should get you up and running...
 
Back
Top Bottom