Custom app/wgt backup : Dev work - Samsung Galaxy Gear

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

Related

Default system permissions list?

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

[Q] Flashing a entire rom under linux/ubuntu ?

Hello everybody,
I am a linux user, and there dœs not seem to be any tutorial on the exact procedure to follow in order to flash a razr i. Dœs anybody know of that ?*Could anyone help ?*As for now, I first unlocked my phone in following Matt tools there :*http://174.132.194.66/~batakang/ftp/?dir=RAZRi/RootUtility in order to get my unlocking number and get the key from motorola, as described there :*http://forum.xda-developers.com/showthread.php?t=1928551 I also rooted the device thanks to the scripts included by Matt in his package.
Now, I would like to know exactly what orders in a command line I should use, once the phone connected via usb and on in fastboot mode or fully started, in order to flash not only a different boot but also an entire new rom. It seems to be easy for Windows user thanks to motorola tools, but I cannot find an equivalent for linux.
Could someone explain me that, step by step, if possible ?*I would also really like to know, even if it a second subject, what are the best roms available for this phone ?*Even ubuntu or firefox roms, I don't care
Ok, so basically, the .bat included in the windows fastboots files that you can find here and there describe the whole processes. I copy-past one, and i hope linux user will understand what to do most of the time just by reading the file :
Code:
@echo off
color 0e
echo.
echo. Because it's the utility Gotham deserves, but not the one it needs right now.
echo. So, we'll hunt it, because it can take it. Because it's not our hero.
echo. It's a silent guardian. A watchful protector. A Dark Knight.
echo BATMAN BATMAN BATMAN
echo N BATM N BATM N ATMAN ATMAN BAT AN BAT
echo ATMAN AN BATMAN ATMAN BAT TMAN
echo AN B MAN BATMAN ATMAN BATM BATM
echo TMA MAN BATMA TMAN BATM MAN
echo BAT AN BATM MAN BAT AN B
echo N BA *********************************************** BA
echo N B * Unlocked RAZR i Firmware Flasher * BAT
echo AN B * Created by mattlgroff * BAT
echo N B * Visit us at Batakang.com! * BA
echo N BA *********************************************** N BA
echo BAT AN BAT ATMAN TMAN MAN BATM MAN
echo ATMA AN BATMA BATMAN B BATMAN B TMAN BAT TMA
echo MAN B N BATMAN BATMAN BA N BATMAN BATMAN BA N BAT
echo BATMA BATMAN BATMAN BAT AN BATMAN BATMAN ATMAN
echo AN BATMAN BATMAN BAT AN BATMAN BATMAN BA
echo N BATMAN BATMAN BATMAN B
adb kill-server > nul
adb start-server > nul
ping 1.1.1.1 -n 1 -w 500 > nul
cls
echo. "Have drivers installed, phone connected, and USB Debugging enabled in Developer Options."
echo. "Also make sure to have a lot of battery power or a factory-style adapter before attempt."
pause
adb wait-for-device reboot bootloader
ping 1.1.1.1 -n 1 -w 1000 > nul
fastboot flash system system.img.ext4
ping 1.1.1.1 -n 1 -w 1000 > nul
fastboot flash boot razr_i_boot_insecured.img
fastboot reboot
echo. "Rebooting and working..."
adb wait-for-device remount
adb push su /system/bin/
adb push busybox /system/xbin/
adb push Superuser.apk /system/app/
adb shell "chmod 755 /system/xbin/busybox"
adb shell "chmod 6755 /system/bin/su"
adb reboot bootloader
echo. "Rebooting and working..."
ping 1.1.1.1 -n 1 -w 1000 > nul
fastboot flash boot boot.img
fastboot reboot
echo. "Done. If you bootloop go to Recovery and wipe data. "
pause
You can flash SBF with sbf_flash.
http://blog.opticaldelusion.org/2011/04/universal-binaries-running-same.html
For fastboot you can use the terminal with the Android SDK.

What replaces stagefright?

I found a script that adds boot audio. In it there is a line calling stagefright, stagefright either doesn't exist on my ROM and I have no clue as to add it. Here is the script in question which I don't know the original author however lithid from http://forum.cyanogenmod.org did some work on it and was close to creating a updater-script. Please Help Me as I know some scripting but not a lot
PS I was advised to ask this question to the devs by a cyanogenmod.org mod named bassmadrigal
Code:
#!/system/bin/sh
#I just made this into a script this was from a post on XDA by spiicytuna
#http://forum.xda-developers.com/showpost.php?p=8274824&postcount=2
#Please give the credit to him not me.
echo "preparing system..."
#Setting up the system for read/write access
mount -o remount,rw /system
#linking busybox mkdir (broken in rc2)
rm /system/bin/mkdir
ln -s /system/xbin/mkdir /system/bin/mkdir
mkdir -p /data/local/boot
echo "checking for previous bootsound installation..."
if [ -e /system/bin/bootsound ];
then
echo "bootsound already enabled, exiting.."
mount -o remount,ro /system
exit
fi
if [ "`ls /sbin|grep -q recovery;echo $?`" = "0" ];
then
mount -a > /dev/null
recoverymode=y
else
mount -o rw,remount /system
recoverymode=n
fi
echo "preparing startup scripts..."
#This is to create the needed scripts in init.local.rc
echo '' >> /system/etc/init.local.rc
echo '' >> /system/etc/init.local.rc
echo '###Bootsound - Safe to Delete: Start ###' >> /system/etc/init.local.rc
echo "" >> /system/etc/init.local.rc
echo 'service bootsound /system/bin/bootsound' >> /system/etc/init.local.rc
echo ' user media' >> /system/etc/init.local.rc
echo ' group audio' >> /system/etc/init.local.rc
echo ' disabled' >> /system/etc/init.local.rc
echo ' oneshot' >> /system/etc/init.local.rc
echo '' >> /system/etc/init.local.rc
echo 'on property:init.svc.bootanim=running # to correct timin' >> /system/etc/init.local.rc
echo ' start bootsound' >> /system/etc/init.local.rc
echo '' >> /system/etc/init.local.rc
echo 'on property:dev.bootcomplete=1' >> /system/etc/init.local.rc
echo ' stop bootsound' >> /system/etc/init.local.rc
echo '### Bootsound - Safe to Delete: End ###' >> /system/etc/init.local.rc
echo "creating script for bootsound in /system/bin..."
echo '#Now creating the bootsound script'
touch /system/bin/bootsound
echo '#!/system/bin/sh' >> /system/bin/bootsound
echo '' >> /system/bin/bootsound
echo 'bprop=/system/build.prop' >> /system/bin/bootsound
echo '' >> /system/bin/bootsound
echo 'play=$(cat $bprop | egrep -c -i -o ro.config.play.bootsound=1)' >> /system/bin/bootsound
echo 'if [ "$play" = "1" ]; then' >> /system/bin/bootsound
echo ' stagefright -a -o /system/media/android_audio.mp3' >> /system/bin/bootsound #this is the line that breaks the code
echo 'fi' >> /system/bin/bootsound
echo 'exit 0' >> /system/bin/bootsound
#Changing some permissions
chmod 777 /system/bin/bootsound
chown root:shell /system/bin/bootsound
echo '' >> /system/build.pro
echo 'ro.config.play.bootsound=1' >> /system/build.prop
echo 'media.stagefright.enable-player=true' >> /system/build.prop
echo 'media.stagefright.enable-meta=true' >> /system/build.prop
echo 'media.stagefright.enable-scan=true' >> /system/build.prop
echo 'media.stagefright.enable-http=true' >> /system/build.prop
#removed self-destruct, script checks for previous install
sleep 1
mount -o ro,remount /system
echo "done."
exit
ethan_hines said:
I found a script that adds boot audio. In it there is a line calling stagefright, stagefright either doesn't exist on my ROM and I have no clue as to add it. Here is the script in question which I don't know the original author however lithid from http://forum.cyanogenmod.org did some work on it and was close to creating a updater-script. Please Help Me as I know some scripting but not a lot
PS I was advised to ask this question to the devs by a cyanogenmod.org mod named bassmadrigal
Click to expand...
Click to collapse
Not sure if this works , but I will eventually try it , but not now , on my free time.
stagefright indeed is not included , my phone too doesn't have stagefright , if you go to youtube and search for android developement tutorials by "thenewboston" . you'll find 200 videos series , just watch the first 20 ones and you'll learn to use Media which replaces stagefright...I didn't try it yet.
It includes
Our_Player and Media Player and the directory of the song....check it out and give us heads ups!
thethiny said:
Not sure if this works , but I will eventually try it , but not now , on my free time.
stagefright indeed is not included , my phone too doesn't have stagefright , if you go to youtube and search for android developement tutorials by "thenewboston" . you'll find 200 videos series , just watch the first 20 ones and you'll learn to use Media which replaces stagefright...I didn't try it yet.
It includes
Our_Player and Media Player and the directory of the song....check it out and give us heads ups!
Click to expand...
Click to collapse
I appreciate the info, I took a look at his tutorials esp the ones involving animation, he really knows his stuff. I am not a Java programmer by any means and to be honest I find it quite tedious, it's like trying to teach a baby (this case the Dalvik VM) to do basic stuff like draw a green ball took like 20 lines of code!
What I need to know essentially is, do I have to use JAVA to get this to work now? In the past ie ICS and lower, there wasn't a problem with Custom Boot Audio, now with JB it seems it has disappeared from the radar.
I know the binary /system/bin/bootanimation (is this written in JAVA?, is there a source code for this bin?) is called at boot time by init.rc in the following manner:
Code:
service bootanim /system/bin/bootanimation
class main
user graphics
group graphics
disabled
oneshot
/system/bin/bootanimation (at least from what I gather) looks in /system/media for bootanimation.zip (zipped in store mode) decompresses it , looks at desc.txt for the code and displays the animation png by png.
In some desc.txt there is an s line, example:
Code:
# mobility
p 1 0 SOUND
s transdroid.mp3
which is SUPPOSED TO call a custom boot audio from /system/media (.mp3?) at the same time. This appears not to work. So logicaly I think the binary needs some tweaking. Can you offer any suggestions?
As you can see I have spent ALLOT of time mulling over why this,one would think, simple task: display a series of images and play audio at boot time I mean how hard can that be?
I am not trying to be a pest I just need to know WHY this doesn't work in JB (CM10.1)

dev work for aio tizen mod script

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

dev work for aio tizen mod script

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

Categories

Resources