Hi Everyone!
I want to make a .sh file which I am going to flash by CWM. I need your help in that.
1) In updater-script, when I extract it to /tmp, what permissions should I give to .sh file by set_perm?
2) I want it to execute "tar" command ("su" command that is root is not required) to operate on file from sdcard (/sdcard).
Can anyone tell me what should be the contents of .sh file.
I don't know much but I created this, and gave (0,0,0777) permissions but I am not getting required result. Please correct my script.
Code:
#!/sbin/sh
#Script to Odinize boot.img by [email protected] 2014
cd sdcard
tar -cf boot-sgy.tar boot.img
Above command works when I type it from terminal emulator, but does not work when flashed.
Please help me, I don't know anything about .sh but I have good knowledge of terminal commands & edify commands.
Related
Error executing ". / Unyaffs system.img" someone can help me I can not extract system.img
I'm sorry my english
put unyaffs.exe in same dir as system.img than create shortcut from unyaffs.exe click on shortcut Propities and in first field (target) add space than system.img
it should looks: "DIR:\blablabla...\unyaffs.exe" system.img. Finally execute shortcut.
thanks! and linux ubuntu? How Do I?
Put in same folder than in Command line put adress for unyaffs than put one space than write system.img like in windows shortcut than execute
Thanks!
YES I DO, BUT APPEARS Unable to execute binary file!
I am adding some mod files and tweaks to an android 2.3.3 image. It is a Livesuit flashable image for the Alpha 2 Skypad. I use unimg.exe to extract the files then fileaddsum and unimg to repack the file under Windows.
I mount the extracted image in Linux Mint then make my changes. I have tried different tricks people have suggested to set the permissions of the file, but whenever I umount and repack the img, it will install, but I have to go into adb and chmod the files. I have written a simple command file so it only take a second, but being new to Linux I am not finding any way to set the permission when I copy over the files to the mounted image.
Any suggestions/ Thanks in advance.
bump..........................................
re-bump .............................................
Not sure if this will help, but in unix permissions are set with chmod. so to ad the exicutable permission you enter:
Code:
su
chmod a+x filename
exit
However if youve had suggestions on setting permissions, you must already know this?
matts95 said:
Not sure if this will help, but in unix permissions are set with chmod. so to ad the exicutable permission you enter:
Code:
su
chmod a+x filename
exit
However if youve had suggestions on setting permissions, you must already know this?
Click to expand...
Click to collapse
That wasn't working for me. But I found a cheat, I guess you could say. Once the image was open I would pull the files from the emulator or a pad directly to the image+folder. Not elegant but it worked.
Hey, i have recently been working on my own theming system, im not that good with .apk files yet, i know XML and am learning smali, but i am clueless with building..
so basically this is how my theming system works, i have a directory called /system/etc/SPRtools containing an ORS(openrecoveryscript) and a flashable .zip file called theme.zip, at the moment to start the theming system i have made a bin file that executes the following
#!/system/bin/sh
cp /system/etc/ORS /cache/recovery/openrecoveryscript
cp /system/etc/theme.zip /sdcard/
reboot recovery
now how would i go about making a .apk file that you click on and does this?
or even give me a hand on integrating it in SecSettings.apk??
oh and i also have an init.d script that deletes the copied theme.zip for the sdcard!
thanks guys!!
hi guys, easy question for you hope you can help
I have a flashable zip that deletes some files from /system, and to do that in updater-script I have for example:
Code:
delete_recursive(
"/system/app/BasicDreams"
);
....now, instead of deleting them I would like to move them somewhere else in /system, for example a backup directory ( /system/__Backup ), but don't know what would I need to add in updater-script file to actually:
1. create the "__Backup" folder in /system
2. move "BasicDreams" folder to that directory
I know the unix commands I should run for that ( `mkdir /system/__Backup` and then `mv -rf /system/app/BasicDreams /system/__Backup` ) but don't know what is the correct syntax for these commands to be correctly executed in updater-script
can someone please help me? :fingers-crossed:
thanks in advance bye!
EDIT: seems I found out another way with runprogram busybox etcetc
Hi,
I dont want to enter commands on each boot again, so I have created my own script. To execute the sh file I open terminal emulator and enter following command:
# sh filename.sh
This command works only when the file is placed in the main folder (root). But after reboot its not here anymore. I can put the file on my sd card but I dont want to enter the path. Can someone help me?