[Guide] Ubuntu Lucid 10.04 Defy CHROOT port - Defy General

Ubuntu Lucid 10.04 android-vnc Defy port
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
THIS DOESNT MODIFY, REPLACE OR CHANGE YOUR CURRENT ROM OR ANDROID OS. IT RUNS IN CHROOT USING VNC, LIKE A VIRTUAL MACHINE! SO IT CANNOT BRICK OR HARM YOUR DEVICE!
Requirements :
Root and Busybox installed
At least 3.5GB free space on SD card
Android Terminal Emulator (Available on Play Store)
android-vnc-viewer (Available on Play Store)
Click to expand...
Click to collapse
Downloads :
Ubuntu image + scripts
ubuntu.sh script
*Froyo kernel scripts​
Click to expand...
Click to collapse
Installation guide
1. Download Ubuntu image from Downloads section
2. Extract Ubuntu 7-zip file contents to /sdcard/ubuntu
3. Download ubuntu.sh from attachments to /sdcard/ubuntu and replace the existing one
4. Start Terminal Emulator
5. Type in the following lines, each line is followed by enter (return) key, you'll need to run this only the first time :
su
cd /sdcard/ubuntu
sh ubuntu.sh
6. The Installation script starts and it creates necessary files and folders on internal memory, type in starttux
7. When the starttux command finishes, type in ui
8. Now you'll have to switch to android-vnc-viewer without closing Terminal Emulator (press home key to go to launcher and start vnc)
9. Setup VNC viewer :
password : 12345678
address : 127.0.0.1
port : 5901
color format : 24-bit color
10. Now press connect and Ubuntu GUI will start!
11. To exit Ubuntu GUI press menu while in vnc -> disconnect
12. Return to terminal emulator and type in killui
13. Type stoptux
14. Type exit
15. Type exit if Terminal is still opened, reboot device for proper unmount.
Click to expand...
Click to collapse
Video instalation guide :
http://www.youtube.com/watch?v=O9ercgiqwi0
Screenshot gallery :
Click to expand...
Click to collapse
Notes :
Tested on Defy CM10 2007+ by Quarx and HTC HD2 CM9 4.0.4 HWA build
I recommend using touchpad as input in vnc viewer
127.0.0.1 is known as localhost
If you have any errors post them here
The script can run without ubuntu.sh from downloads, but I recommend to replace it anyway
Credits : anantshri for image file
Soon I'll port Backtrack 5
Fell free to donate
Click to expand...
Click to collapse

F.A.Q
Q : Can this brick or harm my device?!
A : It simply can't cause it doesn't change anything inside your system!
Q : Is this a ROM or what?
A : THIS ISN'T A CUSTOM ROM! This is an image file that starts using Terminal and VNC (for gui), and it doesn't change or modify your system.
Just like a virtual machine.
Q : Can we use BT keyboard & mouse?
A : Yes.
Q : I've got problems with mouse/keyboard mapping, solution?
A : Open $HOME/.vnc/xstartup file with a text editor, and copy the text below :
Code:
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
#x-window-manager &
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
For noobs : "XKL_XMODMAP_DISABLE=1" fixes the mapping or wrong positioning the mouse.
Q : Can we use this for other devices than Defy?
A : The script supports ext4 module roms, so it should work on ICS (I've tested on Jelly Bean) and GB rooted devices.
To change the resolution (by default 850x480) type this into the terminal after starttux command :
Code:
vncserver -geometry 1280×800
1280x800 represents scren resolution, so if you use SGS3 e.g, use vncserver -geometry 1280x720
Q :Can this work on ARMv6?
A : I don't have an ARMv6 device, so I haven't tested it, I think that it may work pretty slow, but it should still work somehow.
So please, if anyone has ARMv6 based device, please test and report.

why not 12.04????
Enviado desde mi MB525 usando Tapatalk 2

Both 11.04 and 12.04 aren't supported on our CPU or it would be slow (their image files are way to big for my sd card)
I've also tried this on HTC HD2 and it works.
Tommorow expect Backtrack 5.

mihovil13 said:
Both 11.04 and 12.04 aren't supported on our CPU or it would be slow (their image files are way to big for my sd card)
I've also tried this on HTC HD2 and it works.
Tommorow expect Backtrack 5.
Click to expand...
Click to collapse
Pre-Installed 11.10 and 12.04 OMAP3/OMAP4 images...
https://wiki.ubuntu.com/ARM/OMAP

Thanks for the link, I'll try in cca 12h.
Also tommorow (in my time) I'll post a port of BT5 (I hope that this script could get it work)

Can wie use phone?
Sent from my MB526 using xda app-developers app

What phone?
Swyped off my Defy using Jelly Bean

Defy development is on fire these days....gonna try this in 10 days when I go home...!!!!!
Sent from my MB526 using xda app-developers app

Can I install and play linux games?
Is it possible to connect Bluetooth mouse and keyword?
Sent from my MB525 using xda app-developers app

Yes it is, I use BT mouse and keyboard, games are already installed.
I'll edit FAQ now

Updated second post with FAQ

mihovil13 said:
What phone?
Swyped off my Defy using Jelly Bean
Click to expand...
Click to collapse
The phone apk so can i telephone with this Rom...
Sent from my MB526 using xda app-developers app

Jojo1992 said:
The phone apk so can i telephone with this Rom...
Sent from my MB526 using xda app-developers app
Click to expand...
Click to collapse
Apparently you haven't read the OP.
This isn't a ROM, it's like a virtual machine inside your system.
Your ROM stays as it is, this starts using an app (VNC and Terminal)

Problem
I have followed all the steps in terminal but i get an error after i enter 'starttux'.
See the screenshot if u can help me,,, thank u

oxristsis said:
I have followed all the steps in terminal but i get an error after i enter 'starttux'.
See the screenshot if u can help me,,, thank u
Click to expand...
Click to collapse
Try changing the script files using Notepad++ to this (delete all the text and replace with this)
ubuntu.sh
Code:
echo " "
echo "Ubuntu Chroot v0.2-anant-netbook"
echo "This process does NOT damage Android OS!"
echo " "
echo "Original Script by Charan Singh"
echo "Modified for Ubuntu Chroot by Max Lee at NexusOneHacks.net"
echo "Xperia Customized by Anant shrivastava http://anantshri.info "
echo " "
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
echo "Cleaning up old Chunks . . ."
rm /system/bin/tuxcmd
rm /system/bin/starttux
rm /system/bin/stoptux
echo "Creating necessary directories"
if [ ! -d /data/local/mnt ]
then
mkdir /data/local/mnt
fi
#copy the files to places
echo "Setting up files"
cp -f starttux /system/bin
cp -f stoptux /system/bin
cp -f tuxcmd /system/bin
echo "Ubuntu is now configure!"
echo " "
echo "to Start ubuntu type 'starttux'"
echo "once ubuntu started use tuxcmd to gain shell"
echo "when you want to shutdown type 'stoptux'"
starttux
Code:
#Mount SYSTEM RW
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
#exporting useful variables
export kit=/sdcard/ubuntu
export bin=/system/bin
export mnt=/data/local/mnt
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
# Mounting Image to the farthest loop point
# FIXME : check if mount sucessfull otherwise abort whole process.
mknod /dev/block/loop255 b 7 255
busybox losetup /dev/block/loop255 $kit/ubuntu.img
busybox mount -t ext2 /dev/block/loop255 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
# Mounting SD Card inside the CHROOT
busybox mount -o bind /sdcard /data/local/mnt/sdcard
#seting environment
sysctl -w net.ipv4.ip_forward=1
echo "Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4"
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "Setting localhost on /etc/hosts "
echo "127.0.0.1 localhost" > $mnt/etc/hosts
echo "Brought to you by NexusOneHacks.net and the open source community! "
echo "Customized by Anant shrivastava http://anantshri.info"
echo "Ubuntu configured to use it just type 'tuxcmd'"
tuxcmd
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
export kit=/sdcard/ubuntu
export bin=/system/bin
export mnt=/data/local/mnt
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
echo "Brought to you by NexusOneHacks.net and the open source community! "
echo "Customized by Anant shrivastava http://anantshri.info"
echo " "
busybox chroot $mnt /bin/bash
stoptux
Code:
#Cleanup
#After exit command is executed clear it all up
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
export kit=/sdcard/ubuntu
export bin=/system/bin
export mnt=/data/local/mnt
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
echo "Cleaning the Ubuntu leftover and returning back the memory to Android."
echo "by Anant Shrivastava http://anantshri.info "
echo "Shutting down Ubuntu"
sync
busybox umount -l $mnt/sdcard
busybox umount -l $mnt/dev/pts
busybox umount -l $mnt/proc
busybox umount -l $mnt/sys
busybox umount -l $mnt
busybox losetup -d /dev/block/loop255
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
echo " "
echo "Please reboot to properly unmount Ubuntu"
echo "Specially If you recieved an error before this line"
You maybe even don't have to go type tuxcmd after the starttux shell, if the shell changes to root:localhost automatically, then just type ui

update : I've managed to get BT5 working!!

Gnome shell 3 is working ?
Sent from my MB525 using xda premium

tarunyad said:
Gnome shell 3 is working ?
Sent from my MB525 using xda premium
Click to expand...
Click to collapse
is not avaliable for ubuntu 10.04, so no gnome shell 3...

Yes but there's gnome preinstalled in the image
Swyped off my Defy using Jelly Bean

Related

init.d performance startup script

I've adapted the original performance tweaks by 'hardcore' @ XDA for my overclocked/undervolted Galaxy Tab. The tweaked values are pretty much the same as the ones recommended by the original poster, but my simple init.d/ script allows me to log default system values when pushing new values, which is useful for debugging. The script also contains comments to describe the role of each setting. Note that if you don't have init.d/ support in your kernel / initramfs, you can still run the script manually at each system start (use an app like GScript).
Code:
#!/system/bin/sh
#
# Original tweaks by 'hardcore' @ XDA
# http://forum.xda-developers.com/showthread.php?t=813309
# This is a startup script designed for /system/etc/init.d/.
# Note that "run-parts" support (for init.d/ scripts) is normally provided by custom a initramfs,
# which should bundle busybox in /sbin/. The /sbin/run-parts.sh script should take care of
# running init scripts (by calling /sbin/runparts), and it should subsequently trigger
# the device startup (using "setprop filesystem.ready 1", or similar).
# Note that the recovery mode typically doesn't run /system/etc/init.d/ startup scripts.
# Ensure /sbin/busybox takes precedence.
# Normally this is redundant, because the /init.rc startup script already sets the correct path.
export PATH=/sbin:$PATH
# Logging of old/new sysfs values, useful for double-checking.
logFile=/data/local/tmp/S_perf_tweaks.log
if [ -f $logFile ]
then
rm $logFile
fi
touch $logFile
# This function logs the old value and writes the new value.
echo_()
{
echo '' >> $logFile
echo -n "${2}${3} (${1}): " >> $logFile
#head -1 ${2}${3} >> $logFile
#read $firstLine < ${2}${3}
#echo -n $firstLine >> $logFile
contents=`echo -n $(cat ${2}${3})`
echo -n $contents >> $logFile
echo -n " ---> " >> $logFile
echo $1 > ${2}${3}
contents=`echo -n $(cat ${2}${3})`
echo -n $contents >> $logFile
}
# Note that the settings pushed by VoltageControl.apk
# could also be managed here (this only applies to kernels with clock/frequency tables and undervolt sysfs support):
#echo_ "50 50 50 25 25 25 25 " "/sys/devices/system/cpu/cpu0/cpufreq" "/UV_mV_table"
#echo_ 1400000 "/sys/devices/system/cpu/cpu0/cpufreq" "/scaling_max_freq"
echo "---------" >> $logFile
# Remount all partitions that use relatime with noatime and nodiratime instead.
# Note: atime generates a write-after-every-read, relatime is an optimized version of atime.
for k in $(mount | grep relatime | cut -d " " -f3)
do
echo "mount -o remount,noatime,nodiratime $k" >> $logFile
sync
mount -o remount,noatime $k
done
# Here is a sample test to measure read/write performance on rfs partitions:
### test for write: dd if=/dev/zero of=/data/test count=30000
### test for read: dd if=/data/test of=/dev/zero
echo "---------" >> $logFile
# Log the mount table
mount >> $logFile
echo "---------" >> $logFile
# Optimize the cfq/bfq I/O scheduler for flash memory (defaults are designed for spinning harddisks).
# Lower the idle wait, re-enable the low latency mode, remove the penalty for back-seeks,
# and explicitly tell the kernel that the storage is not a spinning disk.
for i in $(ls -1 /sys/block/stl*) $(ls -1 /sys/block/mmc*) $(ls -1 /sys/block/bml*) $(ls -1 -d /sys/block/tfsr*)
#for i in `ls /sys/block/stl* /sys/block/mmc* /sys/block/bml* /sys/block/tfsr*`;
do
# DEF noop anticipatory deadline cfq [bfq]
echo_ "bfq" $i "/queue/scheduler"
# DEF 1 ?
echo_ "0" $i "/queue/rotational"
# DEF 1 ?
echo_ "1" $i "/queue/iosched/low_latency"
# DEF 2 ?
echo_ "1" $i "/queue/iosched/back_seek_penalty"
# DEF 16384 ?
echo_ "1000000000" $i "/queue/iosched/back_seek_max"
# DEF 6 ?
echo_ "3" $i "/queue/iosched/slice_idle"
sync
done
# Set tendency of kernel to swap to minimum, since swap isn't used anyway.
# (swap = move portions of RAM data to disk partition or file, to free-up RAM)
# (a value of 0 means "do not swap unless out of free RAM", a value of 100 means "swap whenever possible")
# (the default is 60 which is okay for normal Linux installations)
# DEF 60
echo_ "0" "/proc/sys/vm" "/swappiness"
# Lower the amount of unwritten write cache to reduce lags when a huge write is required.
# DEF 20
echo_ "10" "/proc/sys/vm" "/dirty_ratio"
# Increase minimum free memory, in theory this should make the kernel less likely to suddenly run out of memory.
# DEF 3102
echo_ "4096" "/proc/sys/vm" "/min_free_kbytes"
# Increase tendency of kernel to keep block-cache to help with slower RFS filesystem.
# DEF 100
echo_ "1000" "/proc/sys/vm" "/vfs_cache_pressure"
# Increase the write flush timeouts to save some battery life.
# DEF 250
echo_ "2000" "/proc/sys/vm" "/dirty_writeback_centisecs"
# DEF 200
echo_ "1000" "/proc/sys/vm" "/dirty_expire_centisecs"
# Make the task scheduler more 'fair' when multiple tasks are running,
# which improves user-interface and application responsiveness.
# DEF 10000000
echo_ "20000000" "/proc/sys/kernel" "/sched_latency_ns"
# DEF 2000000
echo_ "2000000" "/proc/sys/kernel" "/sched_wakeup_granularity_ns"
# DEF 1000000
echo_ "1000000" "/proc/sys/kernel" "/sched_min_granularity_ns"
sync
# Miscellaneous tweaks
setprop dalvik.vm.startheapsize 8m
#setprop wifi.supplicant_scan_interval 90
echo '' >> $logFile
echo "---------" >> $logFile
#This apply a tweaked deadline scheduler to all RFS (and ext2/3/4, if existent) partitions.
#for i in /sys/block/*
#do
# DEF noop anticipatory deadline cfq [bfq]
#echo deadline > $i/queue/scheduler
#echo 4 > $i/queue/iosched/writes_starved
#echo 1 > $i/queue/iosched/fifo_batch
#echo 256 > $i/queue/nr_requests
#done
Thanks for this Daniel - since I know absolutely nothing about anything Android, all I can say is that I have 2 questions
1 - Would this script be any benefit to someone running a custom ROM (Overcome 1.1.3 in my case) and a custom kernel (Richard Trip's 1.4gHz EXT4)? I ask because I don't know if these guys have already including these tweaks or not... but maybe I should ask them instead...
2 - Is there any way you could put that script - in its most efficient, non-debugging form - in to a script file that us speed-freaks can just toss in to init.d and reboot?
Please do forgive me for any newbishness I have displayed here.
So should I put this script in /system/etc/init.d/ ?
UPDATE: Ok, I've done the script(without extension at the back of the file name) and put it in ~/init.d/, it runs well. I comment out the remount and logging function tho Tested it on some games that required load time like gangstar which lags alot previously, now just dnt have any lag time in it! Thanks!
Anyway, im running Overcome rom with richard's kernel, other than voltage script, i saw 2 more script that does the following:
10fixsh does:
"#!/system/bin/sh
busybox mount -o remount,rw /
find /sbin -maxdepth 1 -type l -exec rm {} \;
busybox mount -o remount,ro /
"
99done does:
"#!/system/bin/sh
sync;
setprop mcr.filesystem.ready 1;
"
So I just add your script as userinit since they do not have conflicting calls
Personally thinks that similar tweaks should be included in custom kernels so that those who wish to do more extreme settings can go with it while those who just wants increased performance as it is can still have the boost provided by such init script.
fastcx said:
Personally thinks that similar tweaks should be included in custom kernels so that those who wish to do more extreme settings can go with it while those who just wants increased performance as it is can still have the boost provided by such init script.
Click to expand...
Click to collapse
so basically just copy and paste the whole "code" in the first post, and create it as userinit.sh and put the userinit.sh file in /system/etc/init.d ?
am i right?
kay_kiat88 said:
so basically just copy and paste the whole "code" in the first post, and create it as userinit.sh and put the userinit.sh file in /system/etc/init.d ?
am i right?
Click to expand...
Click to collapse
still need more time to test, after some verification, none of the "/proc/sys/kernel" setting works with any of the kernel i'm using. thats y i need more time to rectify..
used richard's kernel and overcome kernel, both dont do anything now..perhaps wrong command in the script? Cause run-parts.sh does specify where to run script, and init.d does have 2 script in there that runs. So i'll need more time to make sure it works now..
Dont need to have .sh as extension, just a name for your script like the other 2 script that i posted in previous reply. And I did not copy the whole script to run, as the script seems questionable in some part..
fastcx said:
still need more time to test, after some verification, none of the "/proc/sys/kernel" setting works with any of the kernel i'm using. thats y i need more time to rectify..
used richard's kernel and overcome kernel, both dont do anything now..perhaps wrong command in the script? Cause run-parts.sh does specify where to run script, and init.d does have 2 script in there that runs. So i'll need more time to make sure it works now..
Dont need to have .sh as extension, just a name for your script like the other 2 script that i posted in previous reply. And I did not copy the whole script to run, as the script seems questionable in some part..
Click to expand...
Click to collapse
okay.. so basically just copy everything under the "code" and create it as userinit?
edit: hmmm okay thanks for you help. i don't think it's of any use for me now as my tab is quite fast and i don't do any intensive stuff on it. thanks anyway!
kay_kiat88 said:
okay.. so basically just copy everything under the "code" and create it as userinit?
edit: hmmm okay thanks for you help. i don't think it's of any use for me now as my tab is quite fast and i don't do any intensive stuff on it. thanks anyway!
Click to expand...
Click to collapse
Now i'm editing init.rc file instead, but it's not the safest thing to do
Wow all the best.. lol.
Sent from my GT-P1000 using Tapatalk
fastcx said:
Now i'm editing init.rc file instead, but it's not the safest thing to do
Click to expand...
Click to collapse
The init.rc file gets extracted from the initramfs ramdisc (packaged inside the zImage kernel) at each device startup. Changing this file's content is not a good idea. Regards, Dan
fastcx said:
So should I put this script in /system/etc/init.d/ ?
UPDATE: Ok, I've done the script(without extension at the back of the file name) and put it in ~/init.d/, it runs well.
Click to expand...
Click to collapse
Yes, the filename of the startup script must start with "S_" and must not end with ".sh". This is standard Linux stuff.
fastcx said:
find /sbin -maxdepth 1 -type l -exec rm {}
Click to expand...
Click to collapse
Removing the symlinks from "/sbin/" ... why ?
Normally Busybox should be installed properly in "/sbin/" by your kernel provider, you shouldn't have to touch this folder.
fastcx said:
99done does:
"#!/system/bin/sh
sync;
setprop mcr.filesystem.ready 1;
"
Click to expand...
Click to collapse
The "mcr.filesystem.ready" is only relevant if the "init.rc" file in the kernel zImage's initramfs ramdisc responds to a change to the "mcr.filesystem.ready" property (for example, when its value changes from 0 to 1). This is typically used to start the device normally, after *all* of the "/system/etc/init.d/" startup scripts have been executed.
The line of code "setprop mcr.filesystem.ready 1" is therefore typically included in "/sbin/runparts.sh", not in one of the "S_startup_scripts" (as this may trigger the device normal startup prematurely).
It really depends on your kernel, so it should be documented by your kernel provider.
daniel.weck said:
Yes, the filename of the startup script must start with "S_" and must not end with ".sh". This is standard Linux stuff.
It really depends on your kernel, so it should be documented by your kernel provider.
Click to expand...
Click to collapse
Great! thanks for clarifying! Sadly none of the kernel provider states any info on such matter. Will try your script again, as previously running thru gscript not all command works..
Copied your script 100%, put it in init.d with chmod 755, named it S_userinit, doesnt run..i double checked by cat value that I stated to change in the script.
Help? It obviously runs the UV script in init.d tho.
EDIT: Got it to work by editing the UV script, now settings are in! Great! Time to test anyway, nodiratime is not needed, noatime already has it
So how can I use this script - I want to
Hi, Just connected to my galaxy tab running froyo, and went looking in my filesystem for the init.d folder and yeah there isn't one
do i create one? where? and what permissions?
I try to keep this brief and not waste too much of your time.
many thanks for the script
Ttime & effort ++
andytof46 said:
Hi, Just connected to my galaxy tab running froyo, and went looking in my filesystem for the init.d folder and yeah there isn't one
do i create one? where? and what permissions?
I try to keep this brief and not waste too much of your time.
many thanks for the script
Ttime & effort ++
Click to expand...
Click to collapse
you will need a kernel that support init script, after that, /etc/init.d(or /system/etc/init.d) will be created
fastcx said:
Copied your script 100%, put it in init.d with chmod 755, named it S_userinit, doesnt run..i double checked by cat value that I stated to change in the script.
Help? It obviously runs the UV script in init.d tho.
EDIT: Got it to work by editing the UV script, now settings are in! Great! Time to test anyway, nodiratime is not needed, noatime already has it
Click to expand...
Click to collapse
Don't suppose you could post a copy of your trimmed & tweaked version of Daniel's script for us to use?
Cuz I, for example, have no idea what's useful in the original script, and what's not useful. But I at least know how to edit the UV script, heh.
jeebspawnshop said:
Don't suppose you could post a copy of your trimmed & tweaked version of Daniel's script for us to use?
Cuz I, for example, have no idea what's useful in the original script, and what's not useful. But I at least know how to edit the UV script, heh.
Click to expand...
Click to collapse
LOL here it goes
Code:
#!/system/bin/sh
#set UV
echo "0 0 0 0 0 0 0 0 " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo 1000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#select enabled states
echo "0 0 0 0 0 0 0 0 " > /sys/devices/system/cpu/cpu0/cpufreq/states_enabled_table
#set scheduler for stl, bml and mmc
for i in `ls /sys/block/stl*` /sys/block/bml* /sys/block/mmcblk*
do
echo "bfq" > $i/queue/scheduler
echo "0" > $i/queue/rotational
echo "1" > $i/queue/iosched/low_latency
echo "1" > $i/queue/iosched/back_seek_penalty
echo "1000000000" > $i/queue/iosched/back_seek_max
echo "3" > $i/queue/iosched/slice_idle
done
# Remount all partitions with noatime
for k in $(busybox mount | grep relatime | cut -d " " -f3)
do
sync
busybox mount -o remount,noatime $k
done
# Tweak kernel VM management
echo "0" > /proc/sys/vm/swappiness
echo "10" > /proc/sys/vm/dirty_ratio
echo "4096" > /proc/sys/vm/min_free_kbytes
# Tweak kernel scheduler, less aggressive settings
echo "18000000" > /proc/sys/kernel/sched_latency_ns
echo "3000000" > /proc/sys/kernel/sched_wakeup_granularity_ns
echo "1500000" > /proc/sys/kernel/sched_min_granularity_ns
# Misc tweaks for battery life
echo "2000" > /proc/sys/vm/dirty_writeback_centisecs
echo "1000" > /proc/sys/vm/dirty_expire_centisecs
# Miscellaneous tweaks
setprop dalvik.vm.startheapsize 8m
done
NOTE: If you change any settings in uv app, u'll revert S_volt_scheduler to ONLY UV settings, so It's recommended to edit your UV setting on this file instead of using uv app from now on if you wants to keep your other settings
Thanks dude!
I hit your Thanks Button too.
jeebspawnshop said:
Thanks dude!
I hit your Thanks Button too.
Click to expand...
Click to collapse
Thanks U should thanks the thread starter too U should just take it as reference, modify any that you feels ok, and perhaps post here as feedback on which makes things better, especially disc scheduler and task scheduler settings.
UPDATE: Made some changes to suggested value by daniel for "fairness", these setting really deals with multitasking better
echo "20000000" > /proc/sys/kernel/sched_latency_ns
echo "2000000" > /proc/sys/kernel/sched_wakeup_granularity_ns
echo "1000000" > /proc/sys/kernel/sched_min_granularity_ns
hey fastcx, i copied and pasted your script in the UV scheduler file in init.d but it seems that it's not working as the values don't apply. any ideas why?

[Q] problem creating bootmenu

Hi guys i have a problem creating the bootmenu
I am following this post but when i'm going to 3rd line:
C:/> adb shell
$ su
# cp -R /sdcard/bootmenu /data/bootmenu
# cd /data/bootmenu
# chmod 755 *
# ./install.sh
# rm -R /data/bootmenu
i get the following message: cd: can't cd to /data/bootmenu
could you tell me please what i'm doing wrong???
Post the output of
# ls -l /data/bootmenu
Maybe it does not exist OR it is a file (it will be a file if /sdcard/bootmenu was one)
But in any case: It's much easier to install 2nd-init directly from the android market: The currently included version 0.45 works good enough to install the CM7 port (afterwards you'll have 0.51 anyway as the port includes it's own version)
pabx said:
Post the output of
# ls -l /data/bootmenu
Maybe it does not exist OR it is a file (it will be a file if /sdcard/bootmenu was one)
But in any case: It's much easier to install 2nd-init directly from the android market: The currently included version 0.45 works good enough to install the CM7 port (afterwards you'll have 0.51 anyway as the port includes it's own version)
Click to expand...
Click to collapse
Ok thanks! I saw today new version of this that include 0.5.1

[INFO] OpenVPN (tun.ko) for LG Tmobile Gslate

I just compiled a tun.ko and got OpenVPN working on the Tmobile Gslate! so I thought I would share:
1- Rooted (thanks to Chandon)
http://forum.xda-developers.com/showthread.php?t=1065882
2- Install tun.ko (Attached below)
download and unzip
Code:
adb remount
adb push tun.ko /system/lib/modules
adb shell
chmod 755 /system/lib/modules/tun.ko
Note: This tun module was built for kernel 2.6.36.3+
3- Install BusyBox using BusyBox Installer (from Market)
Install to /system/xbin
4- Install OpenVPN using OpenVPN Installer (from Market)
Install binary to /system/xbin
Install route to /system/xbin/bb
5- Install OpenVPN Settings (from Market)
6- Install OpenVPN static binary:
Download Static openvpn
Un-bz2 the file (7-Zip on Windows | bunzip2 on linux)
Code:
adb remount
adb push openvpn-static /system/xbin/openvpn
adb shell
chmod 555 /system/xbin/openvpn
7- Link Busybox ifconfig and route to /system/xbin/bb
Code:
adb shell
su
mkdir /system/xbin/bb
ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig
ln -s /system/xbin/route /system/xbin/bb/route
8- Setup OpenVPN Settings (from Market)
OpenVPN settings > Advanced > Load tun kernel module <- turn ON
OpenVPN settings > Advanced > TUN module settings
Load module using - insmod
Path to tun module - /system/lib/modules/tun.ko
9- copy your .conf files to /sdcard/openvpn
REBOOT
CONNECT!~
Extra for SMB mounters : Cifs.ko ! - Attached!
Edit: June 5 '11 - Extra for Asian users : nls_utf8.ko - Attached!
Well, I'm able to connect to my OpenVPN server now, but there must be something different in the binary..."client.conf: Connected" keeps spamming the notification area. Are you having this problem?
On a related note - I've got a couple other options, if I can get my cross-compiling tools set up correctly...I could use SonicWALL's NetExtender app, but that needs ppp_async and ppp_synctty built. I also wanted to be able to talk to a Windows-friendly PoPToP VPN server, but I suspect I'd need the ppp_mppe.ko built for that.
I tried compiling the whole kernel with the options I've mentioned, but I don't think I did it right...the make went all the way through, but I was using the gcc 4.4.3 eabi set in the SDK/NDK toolset. Since then, I've been trying to set things up according notes I found at K's Cluttered loft ( at triple-w dot (noob html limitation workaround) ailis.de/~k/archives/19-ARM-cross-compiling-howto dot HyperText Markup Language ) but start encountering problems when I try to build glibc...do you know of any instructions/tutorials which might help to educate this n00b (aye, that be me) in the fine art of ARM cross compiling?
bealesbane said:
Well, I'm able to connect to my OpenVPN server now, but there must be something different in the binary..."client.conf: Connected" keeps spamming the notification area. Are you having this problem?
On a related note - I've got a couple other options, if I can get my cross-compiling tools set up correctly...I could use SonicWALL's NetExtender app, but that needs ppp_async and ppp_synctty built. I also wanted to be able to talk to a Windows-friendly PoPToP VPN server, but I suspect I'd need the ppp_mppe.ko built for that.
I tried compiling the whole kernel with the options I've mentioned, but I don't think I did it right...the make went all the way through, but I was using the gcc 4.4.3 eabi set in the SDK/NDK toolset. Since then, I've been trying to set things up according notes I found at K's Cluttered loft ( at triple-w dot (noob html limitation workaround) ailis.de/~k/archives/19-ARM-cross-compiling-howto dot HyperText Markup Language ) but start encountering problems when I try to build glibc...do you know of any instructions/tutorials which might help to educate this n00b (aye, that be me) in the fine art of ARM cross compiling?
Click to expand...
Click to collapse
Yeah I have that spamming problem too .. always have with the honeycomb tablets.
I used 4.4.0 eabi, and had to hard code the localversion in the setlocalversion file and absolute path to the eabi modules in the makefile to get it to cross compile
I built and attached the ppp_async.ko , ppp_synctty.ko , ppp_mppe.ko for you (I did not test a insmod as I built and tested the cifs and tun on a friends tablet - do let me know if these work!)
That's great! Thanks for putting those together. All of the modules you created insert fine with insmod (this version of busybox still has an issue with modprobe running on this tablet, suspect may be related to self-referring parameter, but hope to experiment more later) with the exception of mppe. That one comes back with "insmod: init_module '/system/lib/modules/ppp_mppe.ko' failed (File exists)".
This, however, may not be due to the module itself, strictly speaking. The other two, which are presented by SonicWALL as a workaround to their proprietary VPN app, inserted fine, but still produce an I/O error when a connection is attempted...closer inspection of the app's log reveals a similar complaint under the hood:
06-01 08:01:36.848 I/NetExtender.ppp( 8207): Nxhelper: start pppd main routine
06-01 08:01:36.858 D/NetExtender.ppp( 8207): using channel 1
06-01 08:01:36.858 E/NetExtender.ppp( 8207): Couldn't create new ppp unit: File exists
06-01 08:01:36.858 I/NetExtender.ppp( 8207): Nxhelper: pppd hung up, notify the service
My off the wall guess, pending further investigation, is that inserting mppe, or trying to initialize the other two, results in an attempt to create a device handle which is not being properly enumerated? ( i.e., attempting to create an instance of /dev/ppp, which already exists, instead of a new handle, say, /dev/ppp0, ppp1, etc.) Again, just theorizing blindly at this point - but you've certainly given me a great deal to work with, and I say thank ya big big.
I'll update you with any progress I make here, but at least for the time being I still have basic connectivity to one of my networks, and I can do much with that. And the cifs module works a treat as well!
In the meantime, a simple script allows me to toggle the VPN on and off without being annoyed by the spamming...then I add a widget to the script using ScriptManager (from the market) and viola! Look ma, no hands!
Code:
#!/system/bin/sh
BB="/system/xbin/busybox"
VPN="/system/xbin/openvpn"
TUNDTL=`$BB ifconfig tun0 2>&1`
RESULT=$?
if [ $((RESULT)) -eq 1 ]; then
$VPN --config /mnt/sdcard/openvpn/client.conf --daemon MYVPN
else
VPNPID=`ps openvpn | grep "^root"`
VPNPID=`echo $VPNPID | cut -d" " -f2`
if [ $((VPNPID)) -gt 99 ]; then
$BB kill -KILL $VPNPID
fi
fi
exit
(Just for anyone who doesn't want to wait until OpenVPN Settings gets a bugfix for Honeycomb. Obviously, adjust locations as needed. Oh, and don't give the script a name that starts with "openvpn"...unless you WANT a kamikaze script. This simple script obviously wouldn't work for multiple tunnels, (if they're even supported), but it does ya fine for the basic config.)
awesome idea for the spamming .. sadly I have 8 openVPN servers I switch between so i have to put up with the spamming.. any idea what the reason of the spamming is? maybe contact the dev?
The source for the app is available at 'code.google.com/p/android-openvpn-settings'. The issue has been reported already by a few people (issue 70), but it looks like there are quite a few other issues reported, so no telling if or when Mr. Schäuffelhut will have a chance to review it. It seems like it would be a good starter project for a would-be contributor...I haven't done any java developing, but it seems like it would be easier to isolate our issue and tweak it than bloat my simple script to allow multiple PIDs to be tracked and toggled...though the latter is certainly possible, and after I get my second OpenVPN server online (Audiogalaxy offline for better part of day yesterday, need to make myself independent of that), if the Java is too daunting I just may do so. So many tempting projects, so little time.
Simple VPN handler script to tide us over until 0.4.8 or more in OpenVPN-Settings
Ok, since you were so kind as to compile those extra modules for me, I figure the least I can do is give you something in return. Here's a simple VPN handler to manage multiple tunnels. Filenames for config files are entered relative to the CFGS folder, and module load/remove is manual rather than auto...and I put in connection sharing, as I'm using it this way...but it'll certainly let you use as many tunnels as the kernel will let you work with.
As always, the standard, 'you take your life into your own hands if you use this code, not responsible for problems up to and including user death' disclaimer applies. It seems to be working for me, though I'm only using 2 VPN's ATM.
Good luck! (Will still let you know if I make any progress in Java Dev)
Code:
[email protected]: /data/local/bin > cat ./vpnhandler
#!/system/bin/sh
export BB="/system/xbin/busybox"
export VPN="/system/xbin/openvpn"
export MODS="/system/lib/modules"
export CFGS="/mnt/sdcard/openvpn"
export SPACES=" "
LOOPBACK=0
while [ $((LOOPBACK)) -eq 0 ]; do
LOOPBACK=1
CIFMOD=`$BB lsmod | grep -c "^cifs"`
if [ $((CIFMOD)) -eq 0 ]; then CIFMOD="Load"; else CIFMOD="Remove"; fi
TUNMOD=`$BB lsmod | grep -c "^tun"`
if [ $((TUNMOD)) -eq 0 ]; then TUNMOD="Load"; else TUNMOD="Remove"; fi
clear
echo "Simple VPN Handler"
echo "=================="
echo
echo "ACT # Tunnel Name Configuration File "
echo "--- --- -------------------- ------------------------------"
while read vpndefs; do
TUNNO=`echo "${vpndefs}" | cut -d"~" -f1`
TUNNAME=`echo "${vpndefs}" | cut -d"~" -f2`
TUNCFG=`echo "${vpndefs}" | cut -d"~" -f3`
TUNSTAT=`$BB ps w | grep openvpn | grep -c "\-\-daemon ${TUNNAME}\$"`
if [ $((TUNSTAT)) -eq 1 ]; then TUNSTAT="*"; else TUNSTAT=" "; fi
DISPLINE=" ${TUNSTAT} ${SPACES:0:$((3-${#TUNNO}))}${TUNNO} ${TUNNAME}${SPACES:0:$((22-${#TUNNAME}))}${TUNCFG}"
echo "${DISPLINE}"
done < "${CFGS}/cfglist"
echo
echo "_______________________________________________________________"
echo
echo " A - Add a new tunnel definition"
echo " D - Delete an existing tunnel "
echo " C - ${CIFMOD} CIFS Module "
echo " T - ${TUNMOD} TUN Module "
echo " S - Share tap0 to eth0 traffic "
echo " X - Break traffic forwarding "
echo " Q - Quit "
echo
echo -n " Select action, or a tunnel number to toggle on or off : "
read actkey
if [ "$actkey" = "C" -o "$actkey" = "c" ]; then
LOOPBACK=0
if [ "$CIFMOD" = "Load" ]; then
LOADMOD=`$BB insmod ${MODS}/cifs.ko 2>&1`
else LOADMOD=`/system/bin/toolbox rmmod cifs.ko 2>&1`
fi
fi
if [ "$actkey" = "T" -o "$actkey" = "t" ]; then
LOOPBACK=0
if [ "$TUNMOD" = "Load" ]; then
LOADMOD=`$BB insmod ${MODS}/tun.ko 2>&1`
else LOADMOD=`/system/bin/toolbox rmmod tun.ko 2>&1`
fi
fi
if [ "$actkey" = "S" -o "$actkey" = "s" ]; then
LOOPBACK=0
iptables -F; iptables -t nat -F; iptables -X; iptables -t nat -X
echo 1 | tee /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
iptables -A FORWARD -i eth0 -j ACCEPT
fi
if [ "$actkey" = "X" -o "$actkey" = "x" ]; then
LOOPBACK=0
iptables -F; iptables -t nat -F; iptables -X; iptables -t nat -X
echo 0 | tee /proc/sys/net/ipv4/ip_forward
fi
if [ "$actkey" = "A" -o "$actkey" = "a" ]; then
LOOPBACK=0
echo; echo -n " Enter tunnel number to assign : "; read TUNNO
TUNCHK=`cat "${CFGS}/cfglist" | grep -c "^${TUNNO}~"`
if [ $((TUNCHK)) -eq 0 ]; then
echo; echo -n " Enter a name for the tunnel : "; read TUNNAME
echo; echo -n " Enter filepath/name for config file (relative to ${CFGS}) : "; read TUNCFG
echo "${TUNNO}~${TUNNAME}~${TUNCFG}" >> "${CFGS}/cfglist"
else echo -n " That number is already in use. "; read TUNNO
fi
fi
if [ "$actkey" = "D" -o "$actkey" = "d" ]; then
LOOPBACK=0
echo; echo -n " Enter tunnel number to delete : "; read TUNNO
TUNCHK=`cat "${CFGS}/cfglist" | grep -c "^${TUNNO}~"`
if [ $((TUNCHK)) -eq 0 ]; then
echo -n " That number is not currently in use. "; read TUNNO
else vpndefs=`cat "${CFGS}/cfglist" | grep "^${TUNNO}~"`
TUNNAME=`echo "${vpndefs}" | cut -d"~" -f2`
TUNSTAT=`$BB ps w | grep openvpn | grep -c "\-\-daemon ${TUNNAME}\$"`
if [ $((TUNSTAT)) -gt 0 ]; then
echo; echo -n " Tunnel is active. Turn off before deleting."; read TUNNO
else RESULT=`cat "${CFGS}/cfglist" | egrep -v "^${TUNNO}~" > "${CFGS}/cfglist.tmp"`
$BB mv -f "${CFGS}/cfglist.tmp" "${CFGS}/cfglist"
fi
fi
fi
if [ "$actkey" = "Q" -o "$actkey" = "q" ]; then LOOPBACK=0; fi
if [ $((LOOPBACK)) -eq 1 ]; then
TUNCHK=`cat "${CFGS}/cfglist" | grep -c "^${actkey}~"`
LOOPBACK=0
if [ $((TUNCHK)) -eq 0 ]; then
echo -n " That number is not currently in use. "; read TUNNO
else TUNNO="${actkey}"
vpndefs=`cat "${CFGS}/cfglist" | grep "^${TUNNO}~"`
TUNNAME=`echo "${vpndefs}" | cut -d"~" -f2`
TUNCFG=`echo "${vpndefs}" | cut -d"~" -f3`
TUNSTAT=`$BB ps w | grep openvpn | grep -c "\-\-daemon ${TUNNAME}\$"`
if [ $((TUNSTAT)) -gt 0 ]; then
VPNPID=`$BB ps w | grep openvpn | grep "\-\-daemon ${TUNNAME}"`
VPNPID=`echo $VPNPID | cut -d" " -f1`
if [ $((VPNPID)) -gt 99 ]; then
RESULT=`$BB kill -KILL $VPNPID`
fi
else RESULT=`$VPN --config "${CFGS}/${TUNCFG}" --daemon "${TUNNAME}"`
fi
fi
fi
if [ "$actkey" = "Q" -o "$actkey" = "q" ]; then LOOPBACK=1; fi
done
exit
Note: It'll throw out some screen errors if you don't have a zero length file in $CFGS/cfglist, but it'll let you add your first tunnel anyway. (Didn't bother to trap for that.)
Oh, and ScriptManager doesn't seem to like digging for scripts in /data/local/bin, but doesn't appear to have a problem executing things in /mnt/sdcard, even though I don't seem to be able to set the execute bit on any file in that fs. There's reference in Google of known glitch in some kernels that cause fs' mounted with the 'default_permissions,allow_other' flags to behave strangely. If they ever fix that, you may need to relocate, that's all.
Note also that the "ACT" column which denotes 'active' tunnels with an '*' only verifies that there is a process running with the designated label name. At this time, actual connectivity is left to you to determine.
it's very helpful, thanks very much!!
but could you compile nls_utf8.ko too? please
You should try and come up with a working recovery!
Sent from my LG-V909 using XDA Premium App
bealesbane said:
Ok, since you were so kind as to compile those extra modules for me, I figure the least I can do is give you something in return. Here's a simple VPN handler to manage multiple tunnels. Filenames for config files are entered relative to the CFGS folder, and module load/remove is manual rather than auto...and I put in connection sharing, as I'm using it this way...but it'll certainly let you use as many tunnels as the kernel will let you work with.
As always, the standard, 'you take your life into your own hands if you use this code, not responsible for problems up to and including user death' disclaimer applies. It seems to be working for me, though I'm only using 2 VPN's ATM.
Good luck! (Will still let you know if I make any progress in Java Dev....
Click to expand...
Click to collapse
Bealsbane way to go man, that is far more code than I could figure out! now i feel like i owe you a beer! haha .. I tried the code but it helps to have a gui currently .. i although do have alot of Java experience and possibly you and I could get a new OpenVPN Settings/Installer for gingerbread/honeycomb based devices!
once again thanks!
aureole999 said:
it's very helpful, thanks very much!!
but could you compile nls_utf8.ko too? please
Click to expand...
Click to collapse
Added to the first Post .. please test it and let me know if it works! good luck!
edit: tested by aureole999 and confirmed working
Excellent work ru1dev. I just added this thread to the G-Slate XDA bit.ly bundle. Would you mind if I posted a link to it over on G-SlateFans?
Bling_Diggity said:
Excellent work ru1dev. I just added this thread to the G-Slate XDA bit.ly bundle. Would you mind if I posted a link to it over on G-SlateFans?
Click to expand...
Click to collapse
Go ahead as long as it is a link back to the OP. Thanks for spreading the knowledge
please dont bash me as i know im a little off topic but hi everyone i have a major issue with my rooted gslate.if anyone can help it would be greatly appreciated. i downloaded cw from the market and when it askes you for compatibility i accedently chose the option (lg optimus 3d) thinking it was for my gslate and now after i turned off the gslate and go to turn it back on its stuck on LG blackscreen and says
[HasValidKernelImage] Magic value mismatch:
[DetectOperatingSystems]kernel image is invalid !!!
Starting Fastboot USB download protocol
Ive looked all over the internet and cant find anything to help me out so please can someone help me.
maybe a way to nvflash the proper kernel back.
tun.ko checksum
Hi guys, can anybody please post the md5sum output of the tun.ko? even though im using the same kernel, i cannot load the module on my g-slate. thanks
jomnoc said:
Hi guys, can anybody please post the md5sum output of the tun.ko? even though im using the same kernel, i cannot load the module on my g-slate. thanks
Click to expand...
Click to collapse
md5 - 3daf2d134dc2ae6c4a40fe3d8ac49344
Thanks! I have 6707fd6a79cc849d13e8dd4016f96028 .... ideas? can you upload your file? Thanks again
jomnoc said:
Thanks! I have 6707fd6a79cc849d13e8dd4016f96028 .... ideas? can you upload your file? Thanks again
Click to expand...
Click to collapse
yes that is the md5 for the tun.ko .. in a rush i gave you the md5 for the zip of the tun.ko previously. are you sure you are running kernel 2.6.36.3+
it has to be exactly that kernel..with the '+' on the end
yes i am. or i was haha.. it was a friend's tablet. but it certainly had that kernel version. thanks for the help. if i get it again i may ask for help

[Scripts] Nexus 4 LTE Build Prop Editor & Tmobile Soundfile Edits

The following scripts are made to ease the life of a flashaholic and LTE. I flash a ton of Cyanogen Nightlies and new Roms of others.
They have been working for me for a while now and I though I should share them.
Soon ill look into adding the APN for Tmobile LTE to the apns-conf.xml and possibly combine into one script.
You Must Have Root! I have run these using the free $cripter but you should be able to use Script Manager as well.
I have also added them as attachments below.
Please test these before blindly running. Just because they work flawless for me doesn't mean it will for everyone in every case. The Tmobile sound edits are the newest one so please watch this one a little more careful and I have not run it as much and mine uses tab and not spaces as the reference post.
If you find any of the scripts useful, feel free to hit the [Thanks] button below
Disclaimer: I am not responsible bricking your phone, voiding your warranty, or any other issue may have as result of using these scripts
Build.prop Editor
Last Updated: 04/13/2013
Version: b01 custom b02 prop edit to possible speed up internet
Description: This will change entries if already in build.prop or add the needed entries at the bottom to enable LTE and also perfered network options in Cyanogenmod. It will make a backup of the file prior to doing this.
Code:
#!/system/bin/sh
# Nexus 4 build.prop Editor to enabled LTE
# created by XDA user: justinaz
# created on 4/13/13
# version: b01
# mounting system as rw
busybox mount -o remount,rw /system
if [ $? != 0 ] ; then exit
fi
# Set the File to Edit
FILE=/system/build.prop
#Make Backup of build.prop
if [ -f $FILE.orig ];
then
cp $FILE $FILE.orig.1
else
cp $FILE $FILE.orig
fi
# Set the Build.prop items below
# line# is the Build Prop you want to change
# lineArg# is the value you want it to be
line1=telephony.lteOnGsmDevice
lineArg1=1
line2=ro.telephony.default_network
lineArg2=9
line3=ro.ril.def.preferred.network
lineArg3=9
# X should end with number of changes above 1 2 3
for X in 1 2 3
do
lineNum=
eval prop=\$line$X
eval arg=\$lineArg$X
echo $prop=$arg
if grep -Fq $prop $FILE ; then
lineNum=`sed -n "/${prop}/=" $FILE`
echo $lineNum
sed -i "${lineNum} c${prop}=${arg}" $FILE
else
echo "$prop does not exist in $FILE"
echo "Adding to end of $FILE"
echo $prop=$arg >> $FILE
fi
done;
# mounting system as ro
busybox mount -o remount,ro /system
Soundfile Editor (Tmobile Fixes)
Last Updated: 04/13/2013
Version: s01
Description: This will change the needed snd_soc_msm_2x_Fusion3 entries for T-Mobile. It will make a backup prior to doing this.
Reference: XDA post: simobile: Fix for no in-call audio/T-Mobile US/4.2.2/.33 radio or lower
Code:
#!/system/bin/sh
# Nexus 4 Sound File Editor to fix enabled LTE Sound Issues
# created by XDA user: justinaz
# created on 4/13/13
# version: s01
# Reference XDA post: simobile http://forum.xda-developers.com/showthread.php?t=2233319
# mounting system as rw
busybox mount -o remount,rw /system
if [ $? != 0 ] ; then exit
fi
# Set the File to Edit
FILE=/system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3
#Make Backup File we ar editing just in case
if [ -f $FILE.orig ];
then
cp $FILE $FILE.orig.1
else
cp $FILE $FILE.orig
fi
# line# is the Line Item you want to change
# lineArg# is the value you want it to be
line1=" ACDBID 81:1"
lineArg1=" ACDBID 7:1"
line2=" ACDBID 91:2"
lineArg2=" ACDBID 6:2"
# X should end with number of changes above 1 2
for X in 1 2
do
lineNum=
eval prop=\$line$X
eval arg=\$lineArg$X
if grep -Fq "$prop" $FILE ; then
lineNum=`sed -n "/${prop}/=" $FILE`
echo "Line number $lineNum found for: $prop"
sed -i "${lineNum} c${arg}" $FILE
echo "$lineNum from: $prop :TO: $arg"
else
echo "$prop does not exist in $FILE"
fi
done;
# mounting system as ro
busybox mount -o remount,ro /system
justinaz said:
The following scripts are made to ease the life of a flashaholic and LTE. I flash a ton of Cyanogen Nightlies and new Roms of others.
They have been working for me for a while now and I though I should share them.
Soon ill look into adding the APN for Tmobile LTE to the apns-conf.xml and possibly combine into one script.
You Must Have Root! I have run these using the free $cripter but you should be able to use Script Manager as well.
I have also added them as attachments below.
Please test these before blindly running. Just because they work flawless for me doesn't mean it will for everyone in every case. The Tmobile sound edits are the newest one so please watch this one a little more careful and I have not run it as much and mine uses tab and not spaces as the reference post.
If you find any of the scripts useful, feel free to hit the [Thanks] button below
Disclaimer: I am not responsible bricking your phone, voiding your warranty, or any other issue may have as result of using these scripts
Build.prop Editor
Last Updated: 04/13/2013
Version: b01
Description: This will change entries if already in build.prop or add the needed entries at the bottom to enable LTE and also perfered network options in Cyanogenmod. It will make a backup of the file prior to doing this.
Code:
#!/system/bin/sh
# Nexus 4 build.prop Editor to enabled LTE
# created by XDA user: justinaz
# created on 4/13/13
# version: b01
# mounting system as rw
busybox mount -o remount,rw /system
if [ $? != 0 ] ; then exit
fi
# Set the File to Edit
FILE=/system/build.prop
#Make Backup of build.prop
if [ -f $FILE.orig ];
then
cp $FILE $FILE.orig.1
else
cp $FILE $FILE.orig
fi
# Set the Build.prop items below
# line# is the Build Prop you want to change
# lineArg# is the value you want it to be
line1=telephony.lteOnGsmDevice
lineArg1=1
line2=ro.telephony.default_network
lineArg2=9
line3=ro.ril.def.preferred.network
lineArg3=9
# X should end with number of changes above 1 2 3
for X in 1 2 3
do
lineNum=
eval prop=\$line$X
eval arg=\$lineArg$X
echo $prop=$arg
if grep -Fq $prop $FILE ; then
lineNum=`sed -n "/${prop}/=" $FILE`
echo $lineNum
sed -i "${lineNum} c${prop}=${arg}" $FILE
else
echo "$prop does not exist in $FILE"
echo "Adding to end of $FILE"
echo $prop=$arg >> $FILE
fi
done;
# mounting system as ro
busybox mount -o remount,ro /system
Soundfile Editor (Tmobile Fixes)
Last Updated: 04/13/2013
Version: s01
Description: This will change the needed snd_soc_msm_2x_Fusion3 entries for T-Mobile. It will make a backup prior to doing this.
Reference: XDA post: simobile: Fix for no in-call audio/T-Mobile US/4.2.2/.33 radio or lower
Code:
#!/system/bin/sh
# Nexus 4 Sound File Editor to fix enabled LTE Sound Issues
# created by XDA user: justinaz
# created on 4/13/13
# version: s01
# Reference XDA post: simobile http://forum.xda-developers.com/showthread.php?t=2233319
# mounting system as rw
busybox mount -o remount,rw /system
if [ $? != 0 ] ; then exit
fi
# Set the File to Edit
FILE=/system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3
#Make Backup File we ar editing just in case
if [ -f $FILE.orig ];
then
cp $FILE $FILE.orig.1
else
cp $FILE $FILE.orig
fi
# line# is the Line Item you want to change
# lineArg# is the value you want it to be
line1=" ACDBID 81:1"
lineArg1=" ACDBID 7:1"
line2=" ACDBID 91:2"
lineArg2=" ACDBID 6:2"
# X should end with number of changes above 1 2
for X in 1 2
do
lineNum=
eval prop=\$line$X
eval arg=\$lineArg$X
if grep -Fq "$prop" $FILE ; then
lineNum=`sed -n "/${prop}/=" $FILE`
echo "Line number $lineNum found for: $prop"
sed -i "${lineNum} c${arg}" $FILE
echo "$lineNum from: $prop :TO: $arg"
else
echo "$prop does not exist in $FILE"
fi
done;
# mounting system as ro
busybox mount -o remount,ro /system
Click to expand...
Click to collapse
I LOVE YOU !!! lol
Will this work with the new radio?
Sent from my Nexus 4
Contivity said:
Will this work with the new radio?
Sent from my Nexus 4
Click to expand...
Click to collapse
No, newest radio can't use lte
I know this is off topic, but was wondering if you can help me with this. Can you please make a script that will add these 4 lines to the build.prop?
ro.ril.hsxpa=2
ro.ril.gprsclass=12
ro.ril.hsdpa.category=24
ro.ril.hsupa.category=7
I got these lines from Simms22 awhile back. It helps with data connection and speeds with T-Mobile. Please! =)
Goog1e Phone said:
I know this is off topic, but was wondering if you can help me with this. Can you please make a script that will add these 4 lines to the build.prop?
ro.ril.hsxpa=2
ro.ril.gprsclass=12
ro.ril.hsdpa.category=24
ro.ril.hsupa.category=7
I got these lines from Simms22 awhile back. It helps with data connection and speeds with T-Mobile. Please! =)
Click to expand...
Click to collapse
Its pretty easy to add additional build prop additions.
THis is the new one.... i tested and appears to work correctly
Code:
#!/system/bin/sh
# Nexus 4 build.prop Editor to enabled LTE
# created by XDA user: justinaz
# created on 4/13/13
# version: b02
# mounting system as rw
busybox mount -o remount,rw /system
if [ $? != 0 ] ; then exit
fi
# Set the File to Edit
FILE=/system/build.prop
#Make Backup of build.prop
if [ -f $FILE.orig ];
then
cp $FILE $FILE.orig.1
else
cp $FILE $FILE.orig
fi
# Set the Build.prop items below
# line# is the Build Prop you want to change
# lineArg# is the value you want it to be
line1=telephony.lteOnGsmDevice
lineArg1=1
line2=ro.telephony.default_network
lineArg2=9
line3=ro.ril.def.preferred.network
lineArg3=9
line4=ro.ril.hsxpa
lineArg4=2
line5=ro.ril.gprsclass
lineArg5=12
line6=ro.ril.hsdpa.category
lineArg6=24
line7=ro.ril.hsupa.category
lineArg7=7
# X should end with number of changes above 1 2 3
for X in 1 2 3 4 5 6 7
do
lineNum=
eval prop=\$line$X
eval arg=\$lineArg$X
echo $prop=$arg
if grep -Fq $prop $FILE ; then
lineNum=`sed -n "/${prop}/=" $FILE`
echo $lineNum
sed -i "${lineNum} c${prop}=${arg}" $FILE
else
echo "$prop does not exist in $FILE"
echo "Adding to end of $FILE"
echo $prop=$arg >> $FILE
fi
done;
# mounting system as ro
busybox mount -o remount,ro /system
justinaz said:
Its pretty easy to add additional build prop additions.
THis is the new one.... i tested and appears to work correctly
Code:
#!/system/bin/sh
# Nexus 4 build.prop Editor to enabled LTE
# created by XDA user:justinaz
# created on 4/13/13
# version:b02
# mounting system as rw
busybox mount -o remount,rw /system
if [ $? != 0 ] ; then exit
fi
# Set the File to Edit
FILE=/system/build.prop
#Make Backup of build.prop
if [ -f $FILE.orig ];
then
cp $FILE $FILE.orig.1
else
cp $FILE $FILE.orig
fi
# Set the Build.prop items below
# line# is the Build Prop you want to change
# lineArg# is the value you want it to be
line1=telephony.lteOnGsmDevice
lineArg1=1
line2=ro.telephony.default_network
lineArg2=9
line3=ro.ril.def.preferred.network
lineArg3=9
line4=ro.ril.hsxpa
lineArg4=2
line5=ro.ril.gprsclass
lineArg5=12
line6=ro.ril.hsdpa.category
lineArg6=24
line7=ro.ril.hsupa.category
lineArg7=7
# X should end with number of changes above 1 2 3
for X in 1 2 3 4 5 6 7
do
lineNum=
eval prop=\$line$X
eval arg=\$lineArg$X
echo $prop=$arg
if grep -Fq $prop $FILE ; then
lineNum=`sed -n "/${prop}/=" $FILE`
echo $lineNum
sed -i "${lineNum} c${prop}=${arg}" $FILE
else
echo "$prop does not exist in $FILE"
echo "Adding to end of $FILE"
echo $prop=$arg >> $FILE
fi
done;
# mounting system as ro
busybox mount -o remount,ro /system
Click to expand...
Click to collapse
You're the man. Thank you for this! I would give you 10 thanks if I could!
Sent from my Nexus 4
Will these need to run on boot or just run once?
Sent from my Nexus 4 using xda app-developers app
n2d551 said:
Will these need to run on boot or just run once?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Just once until you dirty flash a rom
It said I need to mount? How do I that?
Sent from my Nexus 4 using xda premium
Julianmgn said:
It said I need to mount? How do I that?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Can you give the actual error it says and detail about how you are running it? Your description is very vague.
Couple things it could be...... of the top of my head
are you running it as ROOT? (its required)
do you have busybox installed? (its required)
are you trying to run this in recovery/init.d script? (this is a shell script not one of those, you would have to modify it to run like that)
justinaz said:
Can you give the actual error it says and detail about how you are running it? Your description is very vague.
Couple things it could be...... of the top of my head
are you running it as ROOT? (its required)
do you have busybox installed? (its required)
are you trying to run this in recovery/init.d script? (this is a shell script not one of those, you would have to modify it to run like that)
Click to expand...
Click to collapse
I'm rooted and I have busy box installed, I downloaded scripter like the op said and when I try to run it, it give me the error "mount: permission denied are you root?"
Sent from my Nexus 4 using xda premium
Julianmgn said:
I'm rooted and I have busy box installed, I downloaded scripter like the op said and when I try to run it, it give me the error "mount: permission denied are you root?"
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Same thing happened to me, try script manager, it worked for me.
Sent from my Nexus 4 using Tapatalk 2
MidtownHD said:
Same thing happened to me, try script manager, it worked for me.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Tried that also its giving me the same error
Sent from my Nexus 4 using xda premium
Julianmgn said:
Tried that also its giving me the same error
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
well, I would delete app data from root access app and the script app, then uninstall the script app. Reboot phone, check root access with other apps, ex. a file manager, then install preferred script app and try the scripts again. Worst case, do it manually.
Sent from my Nexus 4 using Tapatalk 2
You are making it more complicated than you need to.
You have to run the script as root. If you are using scripter long press the script and edit it. On the top there is a check box for Run as root? Check that and hit save. Then run the script.
Sent from my Nexus 4 using Tapatalk 2
Or just run it in rom toolbox
Sent from my Nexus 4 using xda app-developers app
justinaz said:
You are making it more complicated than you need to.
You have to run the script as root. If you are using scripter long press the script and edit it. On the top there is a check box for Run as root? Check that and hit save. Then run the script.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Maybe the apps are not detecting the root access correctly.
Sent from my Nexus 4 using Tapatalk 2
justinaz said:
You are making it more complicated than you need to.
You have to run the script as root. If you are using scripter long press the script and edit it. On the top there is a check box for Run as root? Check that and hit save. Then run the script.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Yup that did it lol
Sent from my Nexus 4 using xda premium
Julianmgn said:
Yup that did it lol
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
so you never granted root access?
Sent from my Nexus 4 using Tapatalk 2

[VRTHEME][DUALBOOT][SEC_DATA][JB4.1.2]New installtheme.sh for 2nd ROM[NEATROM-AROMA]

Hi All,
You all know my interest to port rom and mod cwm flasher we all find and test in both XDA Galaxy S II Android Developmentand AND Galaxy S II Themes and Apps threads for 2nd rom with Dorimanx kernel v8.xx embedded
so some dualbooters want to use some mods and themes they find and they cant because most (for not sayinf all) are script for 1rst rom usage.
I see a great mod that i can purpose here for your 2nd rom, depends what you have in your 2nd rom, see end of this unique post dedicated to @Jeetu NEATROM-AROMA GREAT MOD
So let's have a see about existensZ
Most MODS are based on VRTHEME script, which original is :
Code:
#!/sbin/sh
# Copyright VillainROM 2011. All Rights Reserved
# cleanup from last time
[ -d /sdcard/vrtheme-backup ] && rm -r /sdcard/vrtheme-backup
# we need to first go through each file in the "app" folder
# and for each one present,
# apply the modified theme to the APK
# let us copy each original APK here first.
[COLOR="Navy"]echo "Processing /preload/symlink/system/app/"
busybox mkdir -p /sdcard/vrtheme-backup/preload/symlink/system/app
busybox mkdir -p /sdcard/vrtheme/apply/preload/symlink/system/app
cd /sdcard/vrtheme/preload/symlink/system/app/
for f in $(ls)
do
echo "Processing $f"
cp /preload/symlink/system/app/$f /sdcard/vrtheme/apply/preload/symlink/system/app/
cp /preload/symlink/system/app/$f /sdcard/vrtheme-backup/preload/symlink/system/app/
done
echo "Backups done for system apps"
# repeat for /system/framework now
[ -d /sdcard/vrtheme/system/framework ] && framework=1 || framework=0
if [ "$framework" -eq "1" ]; then
echo "Processing /system/framework"
busybox mkdir -p /sdcard/vrtheme-backup/system/framework
busybox mkdir -p /sdcard/vrtheme/apply/system/framework
cd /sdcard/vrtheme/system/framework
for f in $(ls)
do
echo "Processing $f"
cp /system/framework/$f /sdcard/vrtheme/apply/system/framework/
cp /system/framework/$f /sdcard/vrtheme-backup/system/framework/
done
echo "Backups done for frameworks"
fi
# repeat for /data/app now
[ -d /sdcard/vrtheme/data ] && dataapps=1 || dataapps=0
if [ "$dataapps" -eq "1" ]; then
echo "Processing /data/app/"
busybox mkdir -p /sdcard/vrtheme-backup/data/app
busybox mkdir -p /sdcard/vrtheme/apply/data/app
cd /sdcard/vrtheme/data/app/
for f in $(ls)
do
echo "Processing $f"
cp /data/app/$f /sdcard/vrtheme/apply/data/app/
cp /data/app/$f /sdcard/vrtheme-backup/data/app/
done
echo "Backups done for data apps"
fi[/COLOR]
[COLOR="DarkGreen"]# for each of the system apps needing processed
cd /sdcard/vrtheme/apply/preload/symlink/system/app/
for f in $(ls)
do
echo "Working on $f"
cd /sdcard/vrtheme/preload/symlink/system/app/$f/
/sdcard/vrtheme/zip -r /sdcard/vrtheme/apply/preload/symlink/system/app/$f *
done
echo "Patched system files"
if [ "$dataapps" -eq "1" ]; then
cd /sdcard/vrtheme/apply/data/app/
for f in $(ls)
do
echo "Working on $f"
cd /sdcard/vrtheme/data/app/$f/
/sdcard/vrtheme/zip -r /sdcard/vrtheme/apply/data/app/$f *
done
echo "Patched data files"
fi
if [ "$framework" -eq "1" ]; then
cd /sdcard/vrtheme/apply/system/framework
for f in $(ls)
do
echo "Working on $f"
cd /sdcard/vrtheme/system/framework/$f/
/sdcard/vrtheme/zip -r /sdcard/vrtheme/apply/system/framework/$f *
done
echo "Patched framework files"
fi[/COLOR]
[COLOR="DarkRed"]# and now time to zipalign
cd /sdcard/vrtheme/apply/preload/symlink/system/app/
busybox mkdir aligned
for f in $(ls)
do
echo "Zipaligning $f"
/sdcard/vrtheme/zipalign -f 4 $f ./aligned/$f
done
if [ "$dataapps" -eq "1" ]; then
cd /sdcard/vrtheme/apply/data/app/
busybox mkdir aligned
for f in $(ls)
do
echo "Zipaligning $f"
/sdcard/vrtheme/zipalign -f 4 $f ./aligned/$f
done
fi
if [ "$framework" -eq "1" ]; then
cd /sdcard/vrtheme/apply/system/framework/
busybox mkdir aligned
for f in $(ls)
do
echo "Zipaligning $f"
/sdcard/vrtheme/zipalign -f 4 $f ./aligned/$f
done
fi[/COLOR]
[COLOR="Indigo"]# time to now move each new app back to its original location
cd /sdcard/vrtheme/apply/preload/symlink/system/app/aligned/
cp * /preload/symlink/system/app/
chmod 644 /preload/symlink/system/app/*
if [ "$dataapps" -eq "1" ]; then
cd /sdcard/vrtheme/apply/data/app/aligned/
cp * /data/app/
chmod 644 /data/app/*
fi
if [ "$framework" -eq "1" ]; then
cd /sdcard/vrtheme/apply/system/framework/aligned/
cp * /system/framework/
chmod 644 /system/framework/*
fi
# Do not remove the credits from this, it's called being a douche
echo "VillainTheme is done"
# we are all done now[/COLOR]
- in this script, there are 4 parts :
1 - making a backup of all original APKs to be modded by flasher (a simple cp command for each APK).
by order : preload/symlink/system/app, system/framework and data/app
2 - moding process with a zip command to merge vrtheme folder copyied before during updater-script execution in original APK (copyied before too) to need to be modded.
by order : preload/symlink/system/app, data/app and system/framework.
3 - zipalign process of the APKs freshly modded.
by order : preload/symlink/system/app, data/app and system/framework.
4 - copy of the news modded APKs in their original folder respectively.
by order : preload/symlink/system/app, data/app and system/framework.
To mod an APK, installtheme uses zip command to merge a folder copyied in sdcard during flash process, in it. ,Fortunaly and we know that, all APKs files are structured like ZIP files .
Its the updater-script that copy each structure APKs folder of all apks to be modded in the rom in the external SDCARD. In the past , i change these few lines in updater-script but now, it's not necessary with this NEW METHOD.
The only line we have to modify in the updater-script from a VRTHEME MOD ZIP file we want to see run in 2nd rom are the lines relative to the destination folder of the copy of real apks that have to been changed or added by DEV on you rom during its flash. As for a flash a modded ZIP ROM for 2nd rom, updater-script from MODs need to be modified to copy /preload/symlink/system/app from ZIP MOD to /data/sec_data/ folder of 2nd rom, that's all. Its the same if the MOD have an AROMA installer embedded (+ vrtheme folder, like last @Jeetu great mods).
So, according you have your good updater-script of your new mod for 2nd rom usage you want, you can replace installtheme.sh in ZIP MOD by those in attachment "new-installtheme_For2ndRomONLY.sh", and for all mod you will find in future and you want to use in your 2nd rom, use this.
the 3 images below show you what i have done :
To make this run in 2nd ROM, we have to make some little changes, exactly 4 lines in the installtheme.sh script, according we know how to mod updater-script in an another thread or as i explain in this post....but it's not the purpose here.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
above, backup of apks to be modded, i correct 2 lines from original, copy (cp) each apk to be merged by zip command adding a folder in it, from /data/sec_data/ instead of /preload/symlink/system/app/ if we were in 1rst rom. 2nd rom uses /data/sec_data/ instead of /preload/ partition folder.
Above,no changes in these two processes in one image : zip command on each apk to be modded and zipalign process for each of them after.
Above again, just 2 lines touched, copy back the new zipalinged apks in original folder of rom, instead of /preload/symlink/system/app , we put them in /data/sec_data/ folder of 2nd rom.
in attachment, FOR TEST, find 3 files for the very great AROMA MOD for NeatROM from @Jeetu.
if you havent NeatROM in 2nd rom you could find one shared here (thanks to @nik60), with kernel @dorimanx v8.xx runing here
Special thanks to @_Sale_ for his great NEATROM.
Donwload "1-For2ndRomONLY-NEATROM_AROMA-updater-script.pdf", rename it "updater-script" and put it in \NEATROM_AROMA\META-INF\com\google\android\ folder of NEATROM-AROMA.ZIP from @Jeetu, here.
Download "2-For2ndRomONLY-NEATROM_AROMA-installtheme.sh.pdf", rename it "installtheme.sh" and put it in \NEATROM_AROMA\vrtheme\ folder of NEATROM-AROMA.ZIP from Jeetu too.
Download "3-For2ndRomONLY-create_preload_symlinks.pdf" , rename it "create_preload_symlinks" and to put in \NEATROM_AROMA.zip\Jeetu\ folder of NEATROM-AROMA.ZIP from Jeetu too.
thanks.
test and report
Thanks i missed here
Once again great work mate!! Thanks a lot
Check your PM
ok I download
"1-For2ndRomONLY-NEATROM_AROMA-updater-script.pdf"
"2-For2ndRomONLY-NEATROM_AROMA-installtheme.sh.pdf"
"3-For2ndRomONLY-create_preload_symlinks.pdf"
rename it as updater-script, installtheme.sh and create_preload_symlinks
then I replace it in zip as you say ,flash and got no statusbar,only Back To Kill and Bootanimation are in my phone from mod
duhhh said:
ok I download
"1-For2ndRomONLY-NEATROM_AROMA-updater-script.pdf"
"2-For2ndRomONLY-NEATROM_AROMA-installtheme.sh.pdf"
"3-For2ndRomONLY-create_preload_symlinks.pdf"
rename it as updater-script, installtheme.sh and create_preload_symlinks
then I replace it in zip as you say ,flash and got no statusbar,only Back To Kill and Bootanimation are in my phone from mod
Click to expand...
Click to collapse
Have you enough space in your external card ? And can you retry with this one? I correct some "/" in some package_extract_dir lines...
thanks
now all mod's works,but again don't have statusbar :crying:
duhhh said:
now all mod's works,but again don't have statusbar :crying:
Click to expand...
Click to collapse
Can you put here the aroma log you can save at end of proces ?
I cry for u too
Sent from my GT-I9100 using Tapatalk 2
status 0
installation aborted
duhhh said:
status 0
installation aborted
Click to expand...
Click to collapse
Did you choose 23 aokp trans ?
Sent from my GT-I9100 using Tapatalk 2
fla**** again and now
status 0
installation finished
no statusbar
yes I choose 23 aokp trans
duhhh said:
fla**** again and now
status 0
installation finished
no statusbar
yes I choose 23 aokp trans
Click to expand...
Click to collapse
Make space on external and choose another systemui because aokp you choose put sysyemui.apk in system/app folder instead of preload/.... /app so I make the same instead of data/sec_data. Choose another systemui and I check that for 23 aokp trans
finaly test this new one in attachments
Sent from my GT-I9100 using Tapatalk 2
all works except 23 aokp trans
duhhh said:
all works except 23 aokp trans
Click to expand...
Click to collapse
can you take and test corrected_II i post .
i put systemui.apk from 23 aokp trans in the good folder.
if 23AOKPTRANS works, i update OP
thanks.
Troubadour666 said:
can you take and test corrected_II i post .
i put systemui.apk from 23 aokp trans in the good folder.
if 23AOKPTRANS works, i update OP
thanks.
Click to expand...
Click to collapse
23AOKPTRANS=no statusbar
sry
i think there is an incompatibility with this 23AOKPtrans and the vrtheme applyied after in updater-script, according choices you make after 23 aokp in Aroma menu display....
i post here a result of test with aroma vivek buildv7 rom from @corruptionfreeindia and 23 aokp trans works but there are some more file added by DEV to make it work, not only systemui.apk and i dont know realy if @Jeetu does the same with vrtheme choice in its aroma after we choose 23 aokp trans. i'm not sure to be understand with my bad english
thanks.
I went to see that there are 2 version of installtheme.sh in XDA for VRTHEME files
one manage /system/app/ folder and we know that in this folder there are the "ln" files from /preload/symlink/system/app/ , dont know if this can be useful to submit this remark
fortunaly, in the two scripts, /preload/symlink/system/app/ is the 1rst folder where APKs are to be themed 1rst , i dont know too if this could have impact on jb sammy 4.1.2 rom.
and fortunaly too, the use of each other depends of managment folder in the flasher, we have the choice to put /xxxxxxxx.apk/ folder to be merge during installtheme process in /vrtheme/preload/...../app/ or /system/app/
image of comparison :
in attachments, the two installtheme.sh scripts i can find.
thanks again.
Is it possible to use dual boot with Gingerbread and jellybean ? I wanna keep GB cause of wifi adhoc support...

Categories

Resources