I'm trying to make a script. I have never tried before in my life, and have no idea what I'm doing whatsoever. But when I execute this script from Root Explorer, nothing happens. I made it in Notepad++ and saved it as an .sh. Then I renamed it without the .sh, and then added it back later. Here is the script. (Again, this may make sense as I have no idea what I'm doing
Code:
#!/system/bin/sh
busybox mount -o remount,rw /system
cd /system/app
mv LatinIME.apk /system/media
wait 2
cd /system/media/ect/
mv LatinIME.apk /system/app
wait 5
cd /system/app
chmod 644 /system/app/LatinIME.apk
wait 5
cd /system/media
mv LatinIME.apk /system/media/ect
wait 5
cd /system/lib
mv libjni_latinime.so /system/media/ect
cd /system/media/ect/lib
mv libjni_latinime.so /system/lib
wait 2
cd /system/media/ect
mv libjni_latinime.so /system/media/ect/lib
busybox killall system_server
What is wrong in this? Or is it all wrong. I just briefly searched the internet on making sh. So I cant really tell myself.
Lol I don't even know if I'm using the right commands.
Sent from my Iced Jellybean Kindle
OK. So I ended up getting the script to run, but it didn't work. It's just completely uninstall LatinIME.apk
Sent from my Iced Jellybean Kindle
Never mind. I had the folder named etc instead of ect. All is good.
Sent from my Iced Jellybean Kindle
Related
As per my script i am working on, I have updated build.prop and a few other files, namely init.rc and am wondering how i can effectively replace this file with my modified one
Ive been at it for a few hours now, trying to get it to happen, but no dice
So does anyone else have any suggestions?
Nutterpc said:
As per my script i am working on, I have updated build.prop and a few other files, namely init.rc and am wondering how i can effectively replace this file with my modified one
Ive been at it for a few hours now, trying to get it to happen, but no dice
So does anyone else have any suggestions?
Click to expand...
Click to collapse
Try something like:
@echo Pulling files from device.
@adb shell chmod 4777 /init.rc
@adb pull /init.rc
@adb shell chmod 4777 /system/build.prop
@adb pull /system/build.prop
@echo Pausing while files are edited......
pause
@echo Push edited files to device
@adb push init.rc /init.rc
@adb shell chmod 0755 /init.rc
@adb push build.prop /system/build.prop
@adb shell chmod 0755 /system/build.prop
@echo Done.
You can run that in a directory. It will pull the init.rc and build.prop files, pause while you edit, then push them back.
Afte it pulls and pauses you can simply replace them on your PC with your edited copies then press any key in the script to replace.
Hope it helps.
PS: I tested on my device, no issues.
Nutterpc said:
As per my script i am working on, I have updated build.prop and a few other files, namely init.rc and am wondering how i can effectively replace this file with my modified one
Ive been at it for a few hours now, trying to get it to happen, but no dice
So does anyone else have any suggestions?
Click to expand...
Click to collapse
Yu can follow the following thread
http://forum.xda-developers.com/showthread.php?t=824711
Once in su mode at adb shell, 2 commands to pull to sdcard, edit on card with notepad++, one command to put it back then reboot (need busybox).
Unfortunately, that won't work. As init.rc is stored on the ramdisk, you'll need to replace it every boot. Check out how it's done on the 2.2 ROM.
i have wildfire S-OFF and root, using CM7 stable,i installed super manager, gave it superuser permissions,set busybox path to system/xbin,gave R/W acces to system, and tried to copy bootanimation.zip to both data/local and system/media... but when i paste super manager always says not enough free space... but i doubt thats the issue cause the animation is just a few kbs...after it says not enough free space it the sign goes away and the bootanimation.zip appears in the directory as it was copied there but when i reboot i dont have the animation just blank screen.. i tried everything and i dont really have a clue whats wrong
can anyone help me please?
you need to copy the file as root, which means your file manager should have asked for permission. if you cant get it to work you can just fire up a terminal on your phone and run the following commands
su
cp <path to bootanimation you want to use> /system/media/bootanimation.zip
Or via ADB
(Place the bootanimation.zip to where you have adb)
Open up command prompt
cd (location of your adb)
adb shell
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3
# chmod 777 /system
exit
adb push bootanimation.zip data/local
thank you both for your help it works now
Thank you very much.
It works correctly
Okay, we discovered that having the Webtop over HDMI breaks the OTA update.
So to update you're going to have to undo that mod, and possibly any others.
If you backed up your original files great, go restore them, clear the dalvik-cache and you're fine.
Otherwise, use the attached files and these steps to recover:
Credit: _unknown for the original posted instructions I'm using as a template
Please let me know if there are any adjustments that need to be made to the code, as I'm pulling this from memory and had stored the backups on my phone and was restoring from there.
Requirements:
Be rooted
Be able to work with adb
First, unpack the attached zip-file.
Go into the correct directory for your version.
Now run (in a terminal)
Code:
# I use /data/tmp as the storage location, you can also use /sdcard/
adb push DockService.apk /data/tmp
adb push PortalApp.apk /data/tmp
adb push DockService.odex /data/tmp
adb push PortalApp.odex /data/tmp
adb shell
# you are now in the phone shell
su
mount -o rw,remount /dev/block/mmcblk0p12 /system
# you could mv these files to backups if you intend on doing the mod
# again after the update
rm /system/app/DockService.*
rm /system/app/PortalApp.*
rm /data/dalvik-cache/*DockService* /data/dalvik-cache/*PortalApp*
# move the files from /data/tmp to /system/app
mv /data/tmp/DockService.* /system/app/
mv /data/tmp/PortalApp.* /system/app/
reboot
NOTE: This zip will not in any way help you to obtain root! You must be rooted prior to attempting to apply this patch, or it will not work!
pksublime said:
Okay, we discovered that having the Webtop over HDMI breaks the OTA update.
So to update you're going to have to undo that mod, and possibly any others.
If you backed up your original files great, go restore them, clear the dalvik-cache and you're fine.
Otherwise, use the attached files and these steps to recover:
Credit: _unknown for the original posted instructions I'm using as a template
Please let me know if there are any adjustments that need to be made to the code, as I'm pulling this from memory and had stored the backups on my phone and was restoring from there.
Requirements:
Be rooted
Be able to work with adb
First, unpack the attached zip-file.
Go into the correct directory for your version.
Now run (in a terminal)
Code:
# I use /data/tmp as the storage location, you can also use /sdcard/
adb push DockService.apk /data/tmp
adb push PortalApp.apk /data/tmp
adb push DockService.odex /data/tmp
adb push PortalApp.odex /data/tmp
adb shell
# you are now in the phone shell
su
mount -o rw,remount /dev/block/mmcblk0p12 /system
# you could mv these files to backups if you intend on doing the mod
# again after the update
rm /system/app/DockService.*
rm /system/app/PortalApp.*
rm /data/dalvik-cache/*DockService* /data/dalvik-cache/*PortalApp*
# move the files from /data/tmp to /system/app
mv /data/tmp/DockService.* /system/app/
mv /data/tmp/PortalApp.* /system/app/
reboot
NOTE: This zip will not in any way help you to obtain root! You must be rooted prior to attempting to apply this patch, or it will not work!
Click to expand...
Click to collapse
mv /data/tmp/PortalApp.* /system/app/
# mv /data/tmp/DockService.* /system/app/
mv /data/tmp/DockService.* /system/app/
failed on '/data/tmp/DockService.apk' - Cross-device lin
# mv /data/tmp/PortalApp.* /system/app/
mv /data/tmp/PortalApp.* /system/app/
failed on '/data/tmp/PortalApp.apk' - Cross-device link
Okay working on it...
try using cp instead of mv
Thank you. Will do this tonight
cp worked instead of mv
was able to update, thankyou.
lcpl said:
cp worked instead of mv
Click to expand...
Click to collapse
thanks, i updated the instructions
at least the important part was getting the files up for people, most can figure it out from there
Has anyone that has updated to the newer OTA version been able to re-hack the Webtop / HDMI output using the original method?
Thanks!
alohajeff said:
Has anyone that has updated to the newer OTA version been able to re-hack the Webtop / HDMI output using the original method?
Thanks!
Click to expand...
Click to collapse
You rave to re-root after the update, but yeah, it's the same thing.
Haven't got that far yet, I'm just starting.
Give me a bit and I'll tell you how it went.
Update 1:
Installed the update with out a hitch, save for a line of code
"rm /data/dalvik-cache/*DockService* /data/dalvik-cache/*PortalApp*"
I had to change to
"rm /data/dalvik-cache/*.*"
The dalvik chache is rebuilt at the next reboot, so there isn't much harm wiping the whole thing.
And Yeah, i had to change that the "mv" to"cp"
Update 2:
Rooted just fine using :/showthread.php?t=1217416
Update 3:
Followed : /showthread.php?t=1199443
But as of again, I changed
"rm /data/dalvik-cache/*DockService* /data/dalvik-cache/*PortalApp*"
to
"rm /data/dalvik-cache/*.*"
and
"mv" to"cp"
Works just as well as before. Even with 9/12's update
I had some trouble before, but It looks like I just had to re apply the hack one again. It's all good now. Dockless webtop on the latest OTA.
It's not working for me for the 10/12 update. Any ideas? Do the odex files have to be renamed to .bak?
Airwolf79 said:
It's not working for me for the 10/12 update. Any ideas? Do the odex files have to be renamed to .bak?
Click to expand...
Click to collapse
Yes.
Sent from my MB855 using Tapatalk
John Kotches said:
Yes.
Sent from my MB855 using Tapatalk
Click to expand...
Click to collapse
So what is the easiest way to go about this? Do I have to rename them before I push, or once they're installed?
Okie doke so lets saying you are happily trying too root your tab executing this http://forum.xda-developers.com/showthread.php?t=1887447 script.
everything goes as planned until you reboot and try to start the terminal and nothing appears. One method is to inject a VpnFaker you have signed using Zipsigner2 if that doesn't work you can rollback using this code
adb shell
cd /data
mv system system3
mv system- system
mv app app3
mv app- app
If nothing works then here is a way I found to fix it. once you get to code TZ=0 under it will say rw-rw-rw which means the VpnFaker will disappear once you reboot.
type in /data/app/VpnFaker.apk it will say permission denied that means it is indeed there. so to fix it we type:
chmod 644 /data/app
this worked for me on ICS no revision when trying to root!! hope it does for you if you are on ICS with revision do
chmod 644 /data/app/VpnFaker.apk
otherwise you will have to reupdate because doing it the other way will cause you to lose adb.
For all Dev's,
After days of searching for a way to deodex my stock XMP stock ics to flash the nice MOD's
didn't find any way easyer and better than this one aimd to galaxy samsungs
so i've download the attached file and checked it and found nothing says its for galaxy only so i ask the great Dev's here to take alook at it and find or even
test it so if it worked for us would be an easy pr to do this long lines and commands for us new users
and in the tut its like this
"For ICS Roms, the process is quite easy. (Thanks and Credits to jaydvn.)
Download the attached zip file.
Extract it on your windows PC.
Copy your /system/app to _app folder
Copy your /system/framework to _framework folder.
Run AutoDEOToolMain.bat
Follow the instructions.
deodexed jars and apks will be found in deodexed_APK and deodexed_JAR.
Push deodexed app and framework to device:
Connect your device to PC in USB debugging mode.
Copy deodexed_APK and deodexed_JAR folders to root of sdcard (/sdcard).
Open Windows command prompt and type the below commands.
Code:
adb shell
su
stop
mount -o remount,rw /dev/block/mmcblk0p9 /system
rm /system/app/*.odex
rm /system/framework/*.odex
busybox cp /sdcard/deodexed_APK/* /system/app/
busybox cp /sdcard/deodexed_JAR/* /system/framework/
chmod 644 /system/app/*
chmod 644 /system/framework/*
mount -o remount,ro /dev/block/mmcblk0p9 /system
sync
reboot recovery
In Recovery, Wipe Cache and Wipe Data/Factory reset.
Reboot.
Done. "
endof"ing.
caution
: the above tut, is for some galaxy it might not work on our devices
and took from the fowloing linked thread by: superatmos thanks for Him
http://forum.xda-developers.com/showthread.php?t=1587482
again our dev's PLZ make it work for us
and I'm willing to try it my self on my phone
just waiting for the green light
big thanks in advance for all of you.
and the credit goes to the creater of this great MOD.
Forgive my lame inglish and be easy on me this is my 1st real thread.
and if the post doesn't look good that is because I'm blind and using a screen reader and can't realy look at it..
chears.
dark4m said:
and I'm willing to try it my self on my phone
Click to expand...
Click to collapse
Great, let us know how you get on. deodex stock rom
dark4m said:
For all Dev's,
After days of searching for a way to deodex my stock XMP stock ics to flash the nice MOD's
didn't find any way easyer and better than this one aimd to galaxy samsungs
so i've download the attached file and checked it and found nothing says its for galaxy only so i ask the great Dev's here to take alook at it and find or even
test it so if it worked for us would be an easy pr to do this long lines and commands for us new users
and in the tut its like this
"For ICS Roms, the process is quite easy. (Thanks and Credits to jaydvn.)
Download the attached zip file.
Extract it on your windows PC.
Copy your /system/app to _app folder
Copy your /system/framework to _framework folder.
Run AutoDEOToolMain.bat
Follow the instructions.
deodexed jars and apks will be found in deodexed_APK and deodexed_JAR.
Push deodexed app and framework to device:
Connect your device to PC in USB debugging mode.
Copy deodexed_APK and deodexed_JAR folders to root of sdcard (/sdcard).
Open Windows command prompt and type the below commands.
Code:
adb shell
su
stop
mount -o remount,rw /dev/block/mmcblk0p9 /system
rm /system/app/*.odex
rm /system/framework/*.odex
busybox cp /sdcard/deodexed_APK/* /system/app/
busybox cp /sdcard/deodexed_JAR/* /system/framework/
chmod 644 /system/app/*
chmod 644 /system/framework/*
mount -o remount,ro /dev/block/mmcblk0p9 /system
sync
reboot recovery
In Recovery, Wipe Cache and Wipe Data/Factory reset.
Reboot.
Done. "
endof"ing.
caution
: the above tut, is for some galaxy it might not work on our devices
and took from the fowloing linked thread by: superatmos thanks for Him
http://forum.xda-developers.com/showthread.php?t=1587482
again our dev's PLZ make it work for us
and I'm willing to try it my self on my phone
just waiting for the green light
big thanks in advance for all of you.
and the credit goes to the creater of this great MOD.
Forgive my lame inglish and be easy on me this is my 1st real thread.
and if the post doesn't look good that is because I'm blind and using a screen reader and can't realy look at it..
chears.
Click to expand...
Click to collapse
This is actually not that bad looking a post. Well done!
Wouldn't you still need to delete the odex files from your rom?
Sent from my SK17i using xda premium
1st,
Thanks alot for replying
& yes I'll see how to delete them odex files in other tut or thread or if did'nt find it will ask how to
but the way the galaxy devs did it looks good and easy to use for me
since it needs sited help and i like to do such things my self if possible.