ok, so ive spent all day making this script
now most of it works except installing the bluetooth stack, and busybox
they do however work when this text is copied directly into sdb.exe
sdb shell
mount -o remount rw /
cd /home
rpm -ivh busybox-1.17.1-2.3.armv7l.rpm --nodeps --force busybox-1.17.1-2.3.armv7l.rpm
mount -o remount rw /
cd /home
rpm -ivh wrt-plugins-tizen.rpm --nodeps --force wrt-plugins-tizen.rpm
but, when i copy that same text into my script, it sticks at sdb shell, ive tried alsorts, for hours and its really doing my head in,
this is the script as a .bat
this is the code of my script in text
Code:
@ECHO OFF
ECHO WELCOME THE AIO FOR FLASHING ON TIZEN MOD
ECHO.
ECHO CREATED BY Gav83Collins
ECHO.
ECHO BEFORE WE START WE NEED TO CREATE SOME FOLDERS ONTO YOUR GEAR
ECHO.
PAUSE
ECHO IL NOW SET UP THOSE FOLDERS
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell setup-folder.sh
ECHO.
ECHO OK, DONE !!!
ECHO.
ECHO TO CLEAR THE SCREEN AND CONTINUE
PAUSE
CLS
:START
ECHO NOW TO CONTINUE FLASHING FONTS, THEMES, SOUNDS, MODS AND EXTENDED CAMERA
ECHO.
ECHO JUST
PAUSE
ECHO option 1 will flash sounds, theme, fonts only
ECHO option 2 will flash sounds, theme, fonts and mods. and camera
ECHO option 3 will flash mods only
ECHO option 4 will flash camera only
CHOICE /N /C:1234 /M "PICK A NUMBER (1, 2, 3 or 4)"%1
IF ERRORLEVEL ==4 GOTO FOUR
IF ERRORLEVEL ==3 GOTO THREE
IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE
:FOUR
ECHO YOU HAVE PRESSED FOUR
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb install "Camera1hour.wgt
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:THREE
ECHO YOU HAVE PRESSED THREE
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb push busybox-1.17.1-2.3.armv7l.rpm /home
sdb push wrt-plugins-tizen.rpm /home
CLS
ECHO PUSHED NOW INSTALL
PAUSE
GOTO INSTALL
:INSTALL
sdb shell
mount -o remount rw /
cd /home
rpm -ivh busybox-1.17.1-2.3.armv7l.rpm --nodeps --force busybox-1.17.1-2.3.armv7l.rpm
mount -o remount rw /
cd /home
rpm -ivh wrt-plugins-tizen.rpm --nodeps --force wrt-plugins-tizen.rpm
PAUSE
mount -o remount ro /
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:TWO
ECHO YOU HAVE PRESSED TWO
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell install-theme.sh
sdb push Alarm_Ticktac.ogg /opt/share/settings/Alarms/Ticktac.ogg
sdb shell install-alarms.sh
sdb push MyTone.ogg /opt/share/settings/Ringtones/
sdb push "MyAlert" /opt/share/settings/Alerts/
sdb push "C:UsersGavDownloadstizensdbbt_disconnect.ogg" /usr/share/feedback/sound/operation/bt_disconnect.ogg
sdb push "C:UsersGavDownloadstizensdbbt_connect.ogg" /usr/share/feedback/sound/operation/bt_connect.ogg
sdb install "Camera1hour.wgt
sdb shell mount -o remount rw /
sdb push busybox-1.17.1-2.3.armv7l.rpm /home
sdb push wrt-plugins-tizen.rpm /home [user=279333]@ECHO[/user] OFF
CLS
ECHO PUSHED NOW INSTALL
PAUSE
GOTO INSTALL
:INSTALL
sdb shell
mount -o remount rw /
cd /home
rpm -ivh busybox-1.17.1-2.3.armv7l.rpm --nodeps --force busybox-1.17.1-2.3.armv7l.rpm
mount -o remount rw /
cd /home
rpm -ivh wrt-plugins-tizen.rpm --nodeps --force wrt-plugins-tizen.rpm
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:eek:NE
ECHO YOU HAVE PRESSED ONE
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell install-theme.sh
sdb push Alarm_Ticktac.ogg /opt/share/settings/Alarms/Ticktac.ogg
sdb shell install-alarms.sh
sdb push MyTone.ogg /opt/share/settings/Ringtones/
sdb push "MyAlert" /opt/share/settings/Alerts/
sdb push "C:UsersGavDownloadstizensdbbt_disconnect.ogg" /usr/share/feedback/sound/operation/bt_disconnect.ogg
sdb push "C:UsersGavDownloadstizensdbbt_connect.ogg" /usr/share/feedback/sound/operation/bt_connect.ogg
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:END
PAUSE
ECHO.
ECHO Thanks for using, and enjoy
ECHO.
ECHO To reboot Watch
PAUSE
sdb shell reboot watch
exit
can anyone see where im going wrong
XDA:DevDB Information
aio tizen mod script, Tool/Utility for the Samsung Galaxy Gear
Contributors
gav83collins,
Version Information
Status: Testing
Created 2014-10-06
Last Updated 2014-10-06
ive figured it out
i create a .txt file contaning this
Code:
sdb root on
sdb shell mount -o remount rw /
sdb shell
cd /home
rpm -ivh wrt-plugins-tizen.rpm --nodeps --force wrt-plugins-tizen.rpm
mount -o remount rw /
cd /home
rpm -ivh busybox-1.17.1-2.3.armv7l.rpm --nodeps --force busybox-1.17.1-2.3.armv7l.rpm
exit
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
and place it in the sdb folder, and then in my script i tell it to open cammands from that txt file, and problem is solved
heres the finished code
Code:
@ECHO OFF
ECHO WELCOME TO THE AIO FOR FLASHING ON TIZEN MOD
ECHO.
ECHO CREATED BY Gav83Collins
ECHO.
ECHO BEFORE WE START WE NEED TO CREATE SOME FOLDERS ONTO YOUR GEAR
ECHO.
PAUSE
ECHO IL NOW SET UP THOSE FOLDERS
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell setup-folder.sh
ECHO.
ECHO OK, DONE !!!
ECHO.
ECHO TO CLEAR THE SCREEN AND CONTINUE
PAUSE
CLS
:START
ECHO NOW TO CONTINUE FLASHING FONTS, THEMES, SOUNDS, MODS AND EXTENDED CAMERA
ECHO.
ECHO JUST
PAUSE
ECHO option 1 will flash sounds, theme, fonts only
ECHO option 2 will flash sounds, theme, fonts and mods. and camera
ECHO option 3 will flash mods only
ECHO option 4 will flash camera only
CHOICE /N /C:1234 /M "PICK A NUMBER (1, 2, 3 or 4)"%1
IF ERRORLEVEL ==4 GOTO FOUR
IF ERRORLEVEL ==3 GOTO THREE
IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE
:FOUR
ECHO YOU HAVE PRESSED FOUR
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb install "Camera1hour.wgt
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:THREE
ECHO YOU HAVE PRESSED THREE
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb push busybox-1.17.1-2.3.armv7l.rpm /home
sdb push wrt-plugins-tizen.rpm /home
@ECHO OFF
CLS
ECHO PUSHED NOW INSTALL
PAUSE
GOTO INSTALL
:INSTALL
cd "C:\sdb"
sdb shell < commands.txt
PAUSE
mount -o remount ro /
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:TWO
ECHO YOU HAVE PRESSED TWO
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell install-theme.sh
sdb push Alarm_Ticktac.ogg /opt/share/settings/Alarms/Ticktac.ogg
sdb shell install-alarms.sh
sdb push MyTone.ogg /opt/share/settings/Ringtones/
sdb push "MyAlert" /opt/share/settings/Alerts/
sdb push "C:\Users\Gav\Downloads\tizen\sdb\bt_disconnect.ogg" /usr/share/feedback/sound/operation/bt_disconnect.ogg
sdb push "C:\Users\Gav\Downloads\tizen\sdb\bt_connect.ogg" /usr/share/feedback/sound/operation/bt_connect.ogg
sdb install "Camera1hour.wgt
cd "C:\sdb"
sdb shell < commands.txt
@ECHO OFF
CLS
ECHO PUSHED NOW INSTALL
PAUSE
GOTO INSTALL
:INSTALL
cd "C:\sdb"
sdb shell < commands.txt
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:eek:NE
ECHO YOU HAVE PRESSED ONE
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell install-theme.sh
sdb push Alarm_Ticktac.ogg /opt/share/settings/Alarms/Ticktac.ogg
sdb shell install-alarms.sh
sdb push MyTone.ogg /opt/share/settings/Ringtones/
sdb push "MyAlert" /opt/share/settings/Alerts/
sdb push "C:\Users\Gav\Downloads\tizen\sdb\bt_disconnect.ogg" /usr/share/feedback/sound/operation/bt_disconnect.ogg
sdb push "C:\Users\Gav\Downloads\tizen\sdb\bt_connect.ogg" /usr/share/feedback/sound/operation/bt_connect.ogg
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:END
PAUSE
ECHO.
ECHO Thanks for using, and enjoy
ECHO.
ECHO To reboot Watch
PAUSE
sdb shell reboot watch
exit
heres the batch file
and heres the .txt remember to place this in C:/sdb
then run the batch file
Related
Hi I built a little script to mount my SDcard @ startup of the phone and install some apps.
here it is:
Code:
sleep 2
busybox mount > /data/mount.txt
busybox ls /dev/block/vold >> /data/mount.txt
busybox mount -t vfat -o rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,shortname=mixed,utf8 /dev/block/vold/179:1 /sdcard >> /data/mount.txt
busybox mount >> /data/mount.txt
sleep 3
echo "APPS installation"
if [ -e /sdcard/Apps-install/install.txt ];
then
echo "found file" > /sdcard/Apps-install/install.txt
cd /sdcard/Apps-install
ls *.apk > ./apps.txt
for line in $(cat apps.txt); do install -c -D /sdcard/Apps-install/"$line" /data/app >> /sdcard/Apps-install/install.txt; done
echo "ok" >> /sdcard/Apps-install/install.txt
else
echo "file not found" > /sdcard/Apps-install/install.txt
fi;
sleep 2
echo "Finish"
if [ -e /data/firstboot.sh ];
then
busybox rm -f /data/firstboot.sh;
busybox rm -f /sdcard/Apps-install/apps.txt;
fi;
echo "Restart"
sleep 1
reboot
I'm sure that the code is well executed (as is have data in /data/mount.txt) but the mount of the SD and so every work related to the SD
What is strange is that script work if i execute it after the phone has completely started.
Can someone help please.
Bye
Herc.8)
A Little up for a little help
Hi,
I still need help,
thx by advance
Bye
Herc. 8)
Ok finally found bye myself.
I changed the device: /dev/block/vold/179:1 for /dev/block/mmcblk0p1
That's all.
Bye
Herc. 8)
I'm making this ADB based permissions fix patch which does more then only set permissions to system/app. for example to run just before you release a rom where the permissions have to be perfect. I was wondering, is there a list of all default permissions of the system files? (since looking it up file for file would take ages) I've already made a start.
Code:
@echo off
title Permissions patch (CHMOD)
cd /d %~dp0
adb root
echo.
echo Please connect your phone to continue...
adb wait-for-device
echo.
adb remount
cls
echo.
echo Mounting...
adb -d shell mount -o remount rw /system
adb -d shell mount -o remount rw /data
echo.
echo Fixing permissions...
echo.
echo Fixing system app permissions...
adb -d shell find /system/app/ -type f -name '*.apk' -exec chmod 644 {} \;
echo.
echo Fixing framework permissions...
adb -d shell find /system/framework/ -type f -name '*.apk' -exec chmod 644 {} \;
adb -d shell find /system/framework/ -type f -name '*.jar' -exec chmod 644 {} \;
echo.
echo Fixing bootanimation permissions...
adb -d shell chmod 644 "/system/media/sanim.zip"
echo.
echo Fixing init.d scripts permissions...
adb -d shell find /system/etc/init.d/ -type f -name '*.*' -exec chmod 777 {} \;
echo.
echo Fixing library permissions...
adb -d shell find /system/lib/ -type f -name '*.so*' -exec chmod 644 {} \;
echo.
echo Fixing GPS config file permissions...
adb -d shell chmod 644 "/system/etc/gps.conf"
adb -d shell chmod 644 "/data/gps/secgps.conf"
echo.
echo Fixing APN config file permissions...
adb -d shell chmod 644 "/system/etc/apns-conf.xml"
echo.
echo Fixing boot sound permissions...
adb -d shell chmod 644 "/system/etc/PowerOn.wav"
echo.
echo Fixing hosts file permissions...
adb -d shell chmod 644 "/system/etc/hosts"
echo.
echo Done!.
pause
Anyone? I don't like bumping my topic at all but since there is no reply at all it will disappear from users sight in no time.
My main question is if there is a standard chmod for system/lib/* because most of them have different permissions. I might have to leave that part out since it's impossible to make it if all files have different permissions in there.
I can make a permission fix for 90% of the system files tho
please help !!!
broodplank1337 said:
I'm making this ADB based permissions fix patch which does more then only set permissions to system/app. for example to run just before you release a rom where the permissions have to be perfect. I was wondering, is there a list of all default permissions of the system files? (since looking it up file for file would take ages) I've already made a start.
Code:
@echo off
title Permissions patch (CHMOD)
cd /d %~dp0
adb root
echo.
echo Please connect your phone to continue...
adb wait-for-device
echo.
adb remount
cls
echo.
echo Mounting...
adb -d shell mount -o remount rw /system
adb -d shell mount -o remount rw /data
echo.
echo Fixing permissions...
echo.
echo Fixing system app permissions...
adb -d shell find /system/app/ -type f -name '*.apk' -exec chmod 644 {} \;
echo.
echo Fixing framework permissions...
adb -d shell find /system/framework/ -type f -name '*.apk' -exec chmod 644 {} \;
adb -d shell find /system/framework/ -type f -name '*.jar' -exec chmod 644 {} \;
echo.
echo Fixing bootanimation permissions...
adb -d shell chmod 644 "/system/media/sanim.zip"
echo.
echo Fixing init.d scripts permissions...
adb -d shell find /system/etc/init.d/ -type f -name '*.*' -exec chmod 777 {} \;
echo.
echo Fixing library permissions...
adb -d shell find /system/lib/ -type f -name '*.so*' -exec chmod 644 {} \;
echo.
echo Fixing GPS config file permissions...
adb -d shell chmod 644 "/system/etc/gps.conf"
adb -d shell chmod 644 "/data/gps/secgps.conf"
echo.
echo Fixing APN config file permissions...
adb -d shell chmod 644 "/system/etc/apns-conf.xml"
echo.
echo Fixing boot sound permissions...
adb -d shell chmod 644 "/system/etc/PowerOn.wav"
echo.
echo Fixing hosts file permissions...
adb -d shell chmod 644 "/system/etc/hosts"
echo.
echo Done!.
pause
Click to expand...
Click to collapse
i'm new in android mobiles and i can't use my internal and external sd coz i uninstall One Click Lag Fix from my Galaxy S2 after that when i restart my phone i go to my memorey but i can't enter it and said there is no sd card
so can i use this permissions list on my Galaxy S2 ???
and can you learn me how please
many thanks
broodplank1337 said:
Anyone? I don't like bumping my topic at all but since there is no reply at all it will disappear from users sight in no time.
My main question is if there is a standard chmod for system/lib/* because most of them have different permissions. I might have to leave that part out since it's impossible to make it if all files have different permissions in there.
I can make a permission fix for 90% of the system files tho
Click to expand...
Click to collapse
Very useful, thank you.!!!!!!!!
Broodplank1337 SOS GROSO SABELO.!!!
The default permission for /system/app is:
(0, 0, 0644)
Mine says connect device and it is connected?
this app may help to verify permissions and it category
https://play.google.com/store/apps/details?id=com.osp.pmanagerinfo
ok, so ive spent all day making this script
now most of it works except installing the bluetooth stack, and busybox
they do however work when this text is copied directly into sdb.exe
sdb shell
mount -o remount rw /
cd /home
rpm -ivh busybox-1.17.1-2.3.armv7l.rpm --nodeps --force busybox-1.17.1-2.3.armv7l.rpm
mount -o remount rw /
cd /home
rpm -ivh wrt-plugins-tizen.rpm --nodeps --force wrt-plugins-tizen.rpm
but, when i copy that same text into my script, it sticks at sdb shell, ive tried alsorts, for hours and its really doing my head in,
this is the script as a .bat
this is the code of my script in text
Code:
@ECHO OFF
ECHO WELCOME THE AIO FOR FLASHING ON TIZEN MOD
ECHO.
ECHO CREATED BY Gav83Collins
ECHO.
ECHO BEFORE WE START WE NEED TO CREATE SOME FOLDERS ONTO YOUR GEAR
ECHO.
PAUSE
ECHO IL NOW SET UP THOSE FOLDERS
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell setup-folder.sh
ECHO.
ECHO OK, DONE !!!
ECHO.
ECHO TO CLEAR THE SCREEN AND CONTINUE
PAUSE
CLS
:START
ECHO NOW TO CONTINUE FLASHING FONTS, THEMES, SOUNDS, MODS AND EXTENDED CAMERA
ECHO.
ECHO JUST
PAUSE
ECHO option 1 will flash sounds, theme, fonts only
ECHO option 2 will flash sounds, theme, fonts and mods. and camera
ECHO option 3 will flash mods only
ECHO option 4 will flash camera only
CHOICE /N /C:1234 /M "PICK A NUMBER (1, 2, 3 or 4)"%1
IF ERRORLEVEL ==4 GOTO FOUR
IF ERRORLEVEL ==3 GOTO THREE
IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE
:FOUR
ECHO YOU HAVE PRESSED FOUR
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb install "Camera1hour.wgt
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:THREE
ECHO YOU HAVE PRESSED THREE
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb push busybox-1.17.1-2.3.armv7l.rpm /home
sdb push wrt-plugins-tizen.rpm /home
CLS
ECHO PUSHED NOW INSTALL
PAUSE
GOTO INSTALL
:INSTALL
sdb shell
mount -o remount rw /
cd /home
rpm -ivh busybox-1.17.1-2.3.armv7l.rpm --nodeps --force busybox-1.17.1-2.3.armv7l.rpm
mount -o remount rw /
cd /home
rpm -ivh wrt-plugins-tizen.rpm --nodeps --force wrt-plugins-tizen.rpm
PAUSE
mount -o remount ro /
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:TWO
ECHO YOU HAVE PRESSED TWO
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell install-theme.sh
sdb push Alarm_Ticktac.ogg /opt/share/settings/Alarms/Ticktac.ogg
sdb shell install-alarms.sh
sdb push MyTone.ogg /opt/share/settings/Ringtones/
sdb push "MyAlert" /opt/share/settings/Alerts/
sdb push "C:UsersGavDownloadstizensdbbt_disconnect.ogg" /usr/share/feedback/sound/operation/bt_disconnect.ogg
sdb push "C:UsersGavDownloadstizensdbbt_connect.ogg" /usr/share/feedback/sound/operation/bt_connect.ogg
sdb install "Camera1hour.wgt
sdb shell mount -o remount rw /
sdb push busybox-1.17.1-2.3.armv7l.rpm /home
sdb push wrt-plugins-tizen.rpm /home [user=279333]@ECHO[/user] OFF
CLS
ECHO PUSHED NOW INSTALL
PAUSE
GOTO INSTALL
:INSTALL
sdb shell
mount -o remount rw /
cd /home
rpm -ivh busybox-1.17.1-2.3.armv7l.rpm --nodeps --force busybox-1.17.1-2.3.armv7l.rpm
mount -o remount rw /
cd /home
rpm -ivh wrt-plugins-tizen.rpm --nodeps --force wrt-plugins-tizen.rpm
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:eek:NE
ECHO YOU HAVE PRESSED ONE
PAUSE
cd "C:sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell install-theme.sh
sdb push Alarm_Ticktac.ogg /opt/share/settings/Alarms/Ticktac.ogg
sdb shell install-alarms.sh
sdb push MyTone.ogg /opt/share/settings/Ringtones/
sdb push "MyAlert" /opt/share/settings/Alerts/
sdb push "C:UsersGavDownloadstizensdbbt_disconnect.ogg" /usr/share/feedback/sound/operation/bt_disconnect.ogg
sdb push "C:UsersGavDownloadstizensdbbt_connect.ogg" /usr/share/feedback/sound/operation/bt_connect.ogg
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:END
PAUSE
ECHO.
ECHO Thanks for using, and enjoy
ECHO.
ECHO To reboot Watch
PAUSE
sdb shell reboot watch
exit
can anyone see where im going wrong
XDA:DevDB Information
aio tizen mod script, Tool/Utility for the Samsung Gear 2 Neo
Contributors
gav83collins
Version Information
Status: Testing
Created 2014-10-06
Last Updated 2014-10-06
ive figured it out
i create a .txt file contaning this
Code:
sdb root on
sdb shell mount -o remount rw /
sdb shell
cd /home
rpm -ivh wrt-plugins-tizen.rpm --nodeps --force wrt-plugins-tizen.rpm
mount -o remount rw /
cd /home
rpm -ivh busybox-1.17.1-2.3.armv7l.rpm --nodeps --force busybox-1.17.1-2.3.armv7l.rpm
exit
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
and place it in the sdb folder, and then in my script i tell it to open cammands from that txt file, and problem is solved
heres the finished code
Code:
@ECHO OFF
ECHO WELCOME TO THE AIO FOR FLASHING ON TIZEN MOD
ECHO.
ECHO CREATED BY Gav83Collins
ECHO.
ECHO BEFORE WE START WE NEED TO CREATE SOME FOLDERS ONTO YOUR GEAR
ECHO.
PAUSE
ECHO IL NOW SET UP THOSE FOLDERS
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell setup-folder.sh
ECHO.
ECHO OK, DONE !!!
ECHO.
ECHO TO CLEAR THE SCREEN AND CONTINUE
PAUSE
CLS
:START
ECHO NOW TO CONTINUE FLASHING FONTS, THEMES, SOUNDS, MODS AND EXTENDED CAMERA
ECHO.
ECHO JUST
PAUSE
ECHO option 1 will flash sounds, theme, fonts only
ECHO option 2 will flash sounds, theme, fonts and mods. and camera
ECHO option 3 will flash mods only
ECHO option 4 will flash camera only
CHOICE /N /C:1234 /M "PICK A NUMBER (1, 2, 3 or 4)"%1
IF ERRORLEVEL ==4 GOTO FOUR
IF ERRORLEVEL ==3 GOTO THREE
IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE
:FOUR
ECHO YOU HAVE PRESSED FOUR
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb install "Camera1hour.wgt
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:THREE
ECHO YOU HAVE PRESSED THREE
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb push busybox-1.17.1-2.3.armv7l.rpm /home
sdb push wrt-plugins-tizen.rpm /home
@ECHO OFF
CLS
ECHO PUSHED NOW INSTALL
PAUSE
GOTO INSTALL
:INSTALL
cd "C:\sdb"
sdb shell < commands.txt
PAUSE
mount -o remount ro /
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:TWO
ECHO YOU HAVE PRESSED TWO
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell install-theme.sh
sdb push Alarm_Ticktac.ogg /opt/share/settings/Alarms/Ticktac.ogg
sdb shell install-alarms.sh
sdb push MyTone.ogg /opt/share/settings/Ringtones/
sdb push "MyAlert" /opt/share/settings/Alerts/
sdb push "C:\Users\Gav\Downloads\tizen\sdb\bt_disconnect.ogg" /usr/share/feedback/sound/operation/bt_disconnect.ogg
sdb push "C:\Users\Gav\Downloads\tizen\sdb\bt_connect.ogg" /usr/share/feedback/sound/operation/bt_connect.ogg
sdb install "Camera1hour.wgt
cd "C:\sdb"
sdb shell < commands.txt
@ECHO OFF
CLS
ECHO PUSHED NOW INSTALL
PAUSE
GOTO INSTALL
:INSTALL
cd "C:\sdb"
sdb shell < commands.txt
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:eek:NE
ECHO YOU HAVE PRESSED ONE
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb shell install-theme.sh
sdb push Alarm_Ticktac.ogg /opt/share/settings/Alarms/Ticktac.ogg
sdb shell install-alarms.sh
sdb push MyTone.ogg /opt/share/settings/Ringtones/
sdb push "MyAlert" /opt/share/settings/Alerts/
sdb push "C:\Users\Gav\Downloads\tizen\sdb\bt_disconnect.ogg" /usr/share/feedback/sound/operation/bt_disconnect.ogg
sdb push "C:\Users\Gav\Downloads\tizen\sdb\bt_connect.ogg" /usr/share/feedback/sound/operation/bt_connect.ogg
ECHO.
ECHO OK, DONE !!!
ECHO.
CLS
ECHO option 1 GO BACK TO THE BEGINNING
ECHO option 2 REBOOT WATCH
CHOICE /N /C:12 /M "PICK A NUMBER (1 or 2)"%1
IF ERRORLEVEL ==2 GOTO END
IF ERRORLEVEL ==1 GOTO START
:END
PAUSE
ECHO.
ECHO Thanks for using, and enjoy
ECHO.
ECHO To reboot Watch
PAUSE
sdb shell reboot watch
exit
heres the batch file
and heres the .txt remember to place this in C:/sdb
then run the batch file
CUSTOM APP/WGT BACKUP : DEV WORK
REMEMBER THIS IS A WIP
This thread is for the development , help, contributions and testing of a script to back up the custom apps and wgt's of our tizen powered
gear , gear 2, gear 2 neo
heres what ive got so far to pull
Code:
@ECHO OFF
ECHO THIS GEAR PULL .BAT WAS CREATED BY GAV83COLLINS
ECHO.
ECHO ITS DESIGNED FOR TIZEN POWERED SAMSUNG GEARS
ECHO AND WILL NOT EFFECT YOUR GEAR IN ANYWAY
ECHO.
ECHO TO START, FIRST WE NEED TO CREATE THE DIRECTORIES NEEDED TO PULL TO
ECHO.
PAUSE
md "C:\sdb\optshareapplications"
md "C:\sdb\optusrapps"
md "C:\sdb\optsharepackages"
md "C:\sdb\usrsharepackages"
md "C:\sdb\usr/apps"
ECHO OK THATS DONE!!!!
ECHO.
ECHO NOW TO CONTINUE RIPPING FOLDERS
ECHO.
ECHO /opt/share/applications
ECHO /usr/apps
ECHO /opt/usr/apps
ECHO /opt/share/packages
ECHO /usr/share/applications
ECHO /usr/share/packages
ECHO.
ECHO TO CONTINUE
ECHO.
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb pull /opt/share/applications "C:\sdb\optshareapplications"
sdb pull /usr/apps "C:\sdb\usrapps"
sdb pull /opt/usr/apps "C:\sdb\optusrapps"
sdb pull /opt/share/packages "C:\sdb\optsharepackages"
sdb pull /usr/share/applications "C:\sdb\usrsharepackages"
ECHO.
ECHO OK THATS DONE!!!!
ECHO.
ECHO TO REBOOT WATCH
ECHO.
PAUSE
sdb shell reboot watch
HERES THE SCRIPT
SEE POST TWO FOR PUSHING BACK
XDA:DevDB Information
CUSTOM APP/WGT BACKUP : DEV WORK, Tool/Utility for the Samsung Gear 2
Contributors
gav83collins
Version Information
Status: Testing
Created 2014-10-10
Last Updated 2014-10-09
XDA:DevDB Information
Custom app/wgt backup, Tool/Utility for the Samsung Galaxy Gear
Contributors
gav83collins
Version Information
Status: Testing
Created 2014-10-10
Last Updated 2014-10-10
DO NOT USE
YET
UNLESS YOUR PREPARED TO RE FLASH TIZENMOD
all or some system apps need removing (i think) before pushing back
im still working this out, thats why i need your help and why this isnt deemed as stable and a wip
heres what i have so far
Code:
@ECHO OFF
ECHO THIS GEAR PUSH .BAT WAS CREATED BY GAV83COLLINS
ECHO.
ECHO ITS DESIGNED FOR TIZEN POWERED SAMSUNG GEARS
ECHO.
ECHO SO YOUVE PULLED THE FOLDERS, AND NOW YOU WANT TO PUSH THEM BACK
ECHO.
ECHO !!!! CAUTION !!!! ? !!!! CAUTION !!!! ? !!!! CAUTION !!!!
ECHO THIS CAN CAUSE BOOT FAILURE IF STEPS NOT FOLLOWED CORRECTLY
ECHO BUT DONT WORRY IF IT DOES A REFLASH OF TIZENMOD WILL FIX THIS
ECHO IM STILL WORKING OUT THE KINKS
ECHO.
ECHO TO CONTINUE PUSHING BACK TO DEVICE
ECHO.
ECHO /opt/share/applications
ECHO /usr/apps
ECHO /opt/usr/apps
ECHO /opt/share/packages
ECHO /usr/share/applications
ECHO /usr/share/packages
ECHO.
ECHO TO CONTINUE
PAUSE
cd "C:\sdb"
sdb.exe
sdb root on
sdb shell mount -o remount rw /
sdb push C:\sdb\optshareapplications "/opt/share/applications"
sdb push C:\sdb\optusrapps "/opt/usr/apps"
sdb push C:\sdb\optsharepackages "/opt/share/packages"
sdb push C:\sdb\usrsharepackages "/usr/share/packages"
sdb push C:\sdb\usr/apps "/usr/apps"
ECHO.
ECHO OK THATS DONE!!!!
ECHO.
sdb shell reboot watch
HERES THE SCRIPT
how to open 9008 port on Note9 (N960U)?
i found a script for note8, but not working for note9 after i flash combination firmwares
Code:
@echo off
chcp 936 >nul
pushd %~dp0
adb --version >nul 2>&1
if %errorlevel% equ 0 goto reboot
pushd %~dp0adb
:reboot
@echo on
pause
adb reboot edl
@echo off
if %errorlevel% neq 0 goto error
adb kill-server >nul 2>&1
goto end
:error
adb kill-server >nul 2>&1
echo.
echo.
pause
:end