[ROM] HTC Radar 7.8 Sianto Edition AL - HTC Radar

Hi, this is the first custom Windows Phone 7.8 rom for HTC Radar / Omega
Requirements:
HSPL
It features:
-Nokia Counters, Nokia Drive, Nokia Music Camera extras (NOKIA MARKETPLACE)
-USB Video out
-DFT Bluetooth transfer
-Windows Phone 8 startscreen
ISSUES/SOLUTIONS
Picturetile: if you make it small you can't make it full big again
xbox and music and video don't change accent (make tap the little icon a few times (everytime))
Marketplace icon sometimes has windows logo, sometimes not
if you pin a site and make it really small its grey, and you can only pin one thing to start
HTC Radar / Omega Link:
v1.4
http://www.mediafire.com/?cea81o3o862i4w1,pjd6ddpjwy1upvj
v1.5
http://www.mediafire.com/?r5k9b7ij5wvqb0b,i5uc3bg2angaal2,e3m2ucobmjj512w
-A really dark blue start screen color
-Nokia Music
-Registery Editor (in Settings)
-Digital Power (in Settings)
-Search Key Remapper (in Settings)
-Devstore8
-wphTweaks
-under the hood fixes
v1.6
http://htcfanboys.com/download/sianto1997/?action=view&file=13910
v1.6.1
http://htcfanboys.com/download/sianto1997/?action=view&file=13920
v2.0 RECOMMENDED
http://htcfanboys.com/download/sianto1997/?action=view&file=14422
With thanks to WPV & Ultrashot! & dotcompt (Deepshining)
Pic of proof:

Yeah! it is working great! the marketplace icon - the bag doesnt have any logo. dont you think that the icons (xbox logo, the phone) are smaller? anything seems to work just fine!

File_Submit said:
Yeah! it is working great! the marketplace icon - the bag doesnt have any logo. dont you think that the icons (xbox logo, the phone) are smaller? anything seems to work just fine!
Click to expand...
Click to collapse
Games hub is normal,
The marketplace is an bug:
sometimes logo does show up

what does mean
Languages can be added (Messaging and Phone app don't work anymore then)
Click to expand...
Click to collapse
and how can i change my OEM marketplace (the reg edit)

File_Submit said:
how do i copy the font? when i try to copy to Computer\HTC X310E Titan\\\Windows it says i dont have the permision?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1899822
This is how it should work

is this rom unlocked so i can install backup sms app?

yes

tboy2000 said:
is this rom unlocked so i can install backup sms app?
Click to expand...
Click to collapse
Sure it is, after flashing go to wp-bazaar.com and download bazaar, then search for smsbackup
PS go into root maneger to trust bazaar (or all apps (root tools for example))

thank you

File_Submit said:
what does mean
and how can i change my OEM marketplace (the reg edit)
Click to expand...
Click to collapse
you can download cabs, plus cab sender. then you run it (admin) and you need to change a little value
the bold one to the location, then run, and press S
Hope that helps...
@ECHO off
TITLE WP7 Update Cab Sender
GOTO Menu
REM #######################################################################
:Menu
REM #######################################################################
CLS
ECHO ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
ECHO º WP7 Update Cab Sender xboxmod-Yuki 2011 º
ECHO ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
ECHO þ
ECHO ÌÍÍÍÍÍͯ S ú(S)end Cabs to device
ECHO þ
ECHO ÌÍÍÍÍÍͯ B úSend Cabs to device with (B)ackup
ECHO þ
ECHO ÌÍÍÍÍÍͯ R ú(R)estore device backup
ECHO þ
ECHO ÌÍÍÍÍÍͯ L úRead last Update (L)ogs from device
ECHO þ
CHOICE /C:SBRL /N /M "ÈÍÍ> Your choice:"
IF errorlevel 4 GOTO Readlogs
IF errorlevel 3 GOTO Restoredevice
IF errorlevel 2 GOTO Backupdevice
IF errorlevel 1 GOTO Sendcab
GOTO Menu
REM #######################################################################
:Sendcab
REM #######################################################################
ECHO.
ECHO ÉÍÍÍÍÍͯ Creating list of cabs
ECHO þ
SETLOCAL enabledelayedexpansion
SET cablist=
FOR %%x in ("Location\*.cab") DO (
SET cablist=!cablist! "%%x"
)
SETLOCAL disabledelayedexpansion
ECHO þ
ECHO ÌÍÍÍÍÍͯ Updating device
ECHO þ
CD tools
IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" ( CD x86 ) ELSE ( CD "x64" )
UpdateWP /iu %cablist%
CD ../..
ECHO þ
ECHO ÈÍÍÍÍÍͯ Done
PAUSE
GOTO Menu
REM #######################################################################
:Backupdevice
REM #######################################################################
ECHO.
ECHO ÉÍÍÍÍÍͯ Creating list of cabs
ECHO þ
SETLOCAL enabledelayedexpansion
SET cablist=
FOR %%x in ("%cd%\*.cab") DO (
SET cablist=!cablist! "%%x"
)
SETLOCAL disabledelayedexpansion
ECHO þ
ECHO ÌÍÍÍÍÍͯ Backup and updating device
ECHO þ
CD tools
IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" ( CD x86 ) ELSE ( CD "x64" )
UpdateWP /iu /enablebackup %cablist%
CD ../..
ECHO þ
ECHO ÈÍÍÍÍÍͯ Done
PAUSE
GOTO Menu
REM #######################################################################
:Restoredevice
REM #######################################################################
ECHO.
ECHO ÉÍÍÍÍÍͯ Restoring device
ECHO þ
CD tools
IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" ( CD x86 ) ELSE ( CD "x64" )
UpdateWP /restore
CD ../..
ECHO þ
ECHO ÈÍÍÍÍÍͯ Done
PAUSE
GOTO Menu
REM #######################################################################
:Readlogs
REM #######################################################################
ECHO.
ECHO ÉÍÍÍÍÍͯ Collecting logs from device
ECHO þ
CD tools
IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" ( CD x86 ) ELSE ( CD "x64" )
UpdateWP /getdevicelog
ECHO þ
ECHO ÌÍÍÍÍÍͯ Moving files to logs directory
ECHO þ
ATTRIB -R -S -H /S /D
FOR /D %%x in ("%cd%\DeviceUpdateLog\*") DO (
MOVE /Y "%%x" "%cd%\..\..\logs"
)
ECHO þ
ECHO ÌÍÍÍÍÍͯ Cleaning useless files
ECHO þ
DEL /F Updatewp.log
RMDIR /S /Q DeviceUpdateLog
CD ../..
ECHO þ
ECHO ÈÍÍÍÍÍͯ Done
PAUSE
GOTO Menu

thank you! but whats that in the bracket - (Messaging and Phone app don't work anymore then)

You have to download all the cabs, place them in an folder, read the last post on the first page, run cab sender, and then you have your language, without any bugs, as far as I can tell

version 1.4 coming up
This version is far better then 1.2

how long? was literally going to install another 7.8 rom

tboy2000 said:
how long? was literally going to install another 7.8 rom
Click to expand...
Click to collapse
Within the next 12 hours (UPLOADING as I speak)
This is what it features (for now):
USB Video out in English + DFT Bluetooth File transfer in English + WMDC in English
Nokia Music + Nokia Drive
Fontfix
WP7 Root tools 0.11
Version 1.5 is also coming up soon

sianto1997 said:
Within the next 12 hours (UPLOADING as I speak)
This is what it features (for now):
USB Video out in English + DFT Bluetooth File transfer in English + WMDC in English
Nokia Music + Nokia Drive
Fontfix
WP7 Root tools 0.11
Version 1.5 is also coming up soon
Click to expand...
Click to collapse
ok i installed the other rom to play, will look at yours when its out. can you remove language files other than english? this saves about 200mb of storage. i did this on the rom i uploaded here.

tboy2000 said:
ok i installed the other rom to play, will look at yours when its out. can you remove language files other than english? this saves about 200mb of storage. i did this on the rom i uploaded here.
Click to expand...
Click to collapse
please try and fix the small pinned web sites/grey box issue. That is a big problem!

tboy2000 said:
please try and fix the small pinned web sites/grey box issue. That is a big problem!
Click to expand...
Click to collapse
Working on it in 1.5.
Can you tell me how 1.4 is?
--------------------------------------------
Enlish is the only language in ver 1.4, so thats good for you... remember, you can always add your own language

tboy2000 said:
ok i installed the other rom to play, will look at yours when its out. can you remove language files other than english? this saves about 200mb of storage. i did this on the rom i uploaded here.
Click to expand...
Click to collapse
English is the only language in 1.4, happy?

Version 1.5 is coming out really soon!!!
Give me a comment if you like this?? Features:
-A really good languagepack! (with guide)
-A really dark blue start screen color
-Nokia Music
-Registery Editor (in Settings)
-Digital Power (in Settings)
-Search Key Remapper (in Settings)
-Devstore8
-wphTweaks
-under the hood fixes
STATUS: ONLINE

Related

Kernel Optimizations

If anyone is compiling a kernel, please unset CONFIG_UEVENT_HELPER_PATH.
It is currently set to /sbin/hotplug, which does not exist.
You might also set
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
somewhere in the initramfs.
What does these settings do?
lynx2k50 said:
What does these settings do?
Click to expand...
Click to collapse
if CONFIG_UEVENT_HELPER_PATH is set, then the kernel tries to execute that helper tool every time a hotplug event occurs. Unsetting it would save a lot of forks at boot time.
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
These settings delay the disk writeback, so the disk device has to wake up less often (given it goes into sleep mode ).
Ah okay so i can expect better battery life (more sleep time) and a faster booting.
Well done, thanks.
I hope some devs are going to integreate it.
OK good point to try.
Added now on my Cognition 1.07
Code:
bash-4.1# cat /etc/init.d/90laptop.sh
#!/system/bin/sh
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
Code:
diff --git a/arch/arm/configs/c1_rev02_defconfig b/arch/arm/configs/c1_rev02_defconfig
index a7992c0..ccd06df 100644
--- a/arch/arm/configs/c1_rev02_defconfig
+++ b/arch/arm/configs/c1_rev02_defconfig
@@ -917,7 +917,7 @@ CONFIG_RFKILL_INPUT=y
#
# Generic Driver Options
#
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_UEVENT_HELPER_PATH=""
# CONFIG_DEVTMPFS is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
Can someone pls create a update.zip or else for the cognition rom?
Or a shirt instruction.
Sry for my englisch
from my SGS running MIUI 2.3.4
If you have the CF-Root kernel installed, you can just place this in /data/local/customboot.sh
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo -e '\000\000\000' > /proc/sys/kernel/hotplug
saturn_de said:
If you have the CF-Root kernel installed, you can just place this in /data/local/customboot.sh
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo -e '\000\000\000' > /proc/sys/kernel/hotplug
Click to expand...
Click to collapse
the first two might help. (does Solid State internal storage need "sleep" mode?)
but depending on when the custom script is run the last line may be useless here..
Does it only work with a CF-Kernel, i've tagraks kernel, and cant find any file in data/locel .
Greetz
saturn_de said:
These settings delay the disk writeback, so the disk device has to wake up less often (given it goes into sleep mode ).
Click to expand...
Click to collapse
It doesn't go into sleep mode since it's not a spinning disk.
(Or you could look at it as always being in sleep mode when not in use - there's no spindown/spinup phase.)
So you're not gonna see any battery benefits from that.
Added into my installation on my handset. No way to test it whether it will increase stabilty nor speed, but it does tidy thinngs up.

[DISCUSSION]PerfectPeso by trettet!

Ok,this is weird.Why his topic was closed?
http://forum.xda-developers.com/showthread.php?t=1382033
I noticed that his website was blocked by SOPA.Why?The download links were mediafire links,no MU.Also Android is open source,and in his ROM it wasn't any paid app by default(i mean in system/app).What's going on?Is mediafire gonna be taken down?I noticed that it barely works.But why topic closed?
The reason is, maybe link was associate with megaupload...
Sent from my Galaxy Nexus using Tapatalk
he used mediafire links...
Marius Cristian said:
Ok,this is weird.Why his topic was closed?
http://forum.xda-developers.com/showthread.php?t=1382033
I noticed that his website was blocked by SOPA.Why?The download links were mediafire links,no MU.Also Android is open source,and in his ROM it wasn't any paid app by default(i mean in system/app).What's going on?Is mediafire gonna be taken down?I noticed that it barely works.But why topic closed?
Click to expand...
Click to collapse
i tot SOPA was shelved for the moment?
Sorry if this is OT.
But I would like to share some bugs I found while using 1.1A as I didn't upgrade to 1.4 as the links were down. Can you verify whether these are faced by any of you !
1. It takes time to wake up from the lock screen. ie even after a hard key press the screen wakes up after say 3-4 secs.
2. Data connection works with flaws. 2G/3G data seems to be buggy.
3. The notification power widget and power widget doesnt work properly. ie, even if i disable/enable Data/Orientation Lock the effect is not applied. I cant even change it in settings. Only solution is a reboot.
4. Incoming call button issues. (Solved in later versions)
Other than these, the rom is pretty stable.
umm I didn't had any of those bugs in v1.1a.actually it was one of the best version because of kernel, except few graphical bugs.anyway,look on last page/page before that of the rom,pm rosuvladut and ask him to upload rom v1.4 to 4shared or another.if he doesn't have it anymore send me a pm and I will upload v1.3 for you when I get home.i personally am lazy to upgrade to v1.4 because the changes are too insignificant.you can upgrade rom manager by yourself, instead of root browser use root explorer.about super charger I don't use it so for me v1.3=v1.4
anyone knows more about why his topic was closed? we could add other download links and that's it.
Sent from my LG-P500 using Tapatalk
I checked back in dev thread to see if any of the down links where updated. Was surprised to see no post by trettet about site being down, then noticed thread was locked. Hope all is well.
tread closed? why!
Anyone know why the notifications won't stop making noise until I view them...the sound is very annoying when it doesn't stop? I only want the notification sound once. Awesome ROM btw.
Sent from my LG-P500 using Tapatalk
i was about to flash 1.4 in my phone and then... closed thread, site down... =/
i have the link for pp1.4 posted by soberspine at mediafire:
http://www.mediafire.com/?udbvyy0j1oan0gv
but i don't have the fix (phone.apk) and gapps... can someone upload it?
also, where is trettet? do you think the thread was closed by him? or a forum admin closed it?
betoqm said:
i was about to flash 1.4 in my phone and then... closed thread, site down... =/
i have the link for pp1.4 posted by soberspine at mediafire:
http://www.mediafire.com/?udbvyy0j1oan0gv
but i don't have the fix (phone.apk) and gapps... can someone upload it?
also, where is trettet? do you think the thread was closed by him? or a forum admin closed it?
Click to expand...
Click to collapse
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
EDIt:
anyways I'm tired of bug reports and fixing it and everything anyway
trettet said:
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
Click to expand...
Click to collapse
talking about him!
does it mean you will not work on perfectpeso anymore?
i know have your work copied can be frustrating! but common, if i was you, i wouldn't give a sh*t... if there are modders copying your work, it means you have done a awesome job and we all recognize it!
again, we are all waiting for the next releases of perfectpeso!
betoqm said:
talking about him!
does it mean you will not work on perfectpeso anymore?
i know have your work copied can be frustrating! but common, if i was you, i wouldn't give a sh*t... if there are modders copying your work, it means you have done a awesome job and we all recognize it!
again, we are all waiting for the next releases of perfectpeso!
Click to expand...
Click to collapse
I will work on perfectpeso but won't be release on public, until Official CM7 Stable is out xD
@trettet could u please atleast give the links for the latest gapps :/
PHONEFIX.ZIP (v1.3 [ not sure ] and v1.4 [works perfectly]
Latest Gapps [works with all versions]
Aspee's Fix (works with v1.3 and v1.4)
As for the people who steal his work...you can all go to hell.
Trettet if you want I'll remove the files.I thought is nice for the people to enjoy your work.
trettet said:
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
EDIt:
anyways I'm tired of bug reports and fixing it and everything anyway
Click to expand...
Click to collapse
NightlyfourE?
Sent from my LG-P500 using Tapatalk
manuvarghese said:
Sorry if this is OT.
But I would like to share some bugs I found while using 1.1A as I didn't upgrade to 1.4 as the links were down. Can you verify whether these are faced by any of you !
1. It takes time to wake up from the lock screen. ie even after a hard key press the screen wakes up after say 3-4 secs.
2. Data connection works with flaws. 2G/3G data seems to be buggy.
3. The notification power widget and power widget doesnt work properly. ie, even if i disable/enable Data/Orientation Lock the effect is not applied. I cant even change it in settings. Only solution is a reboot.
4. Incoming call button issues. (Solved in later versions)
Other than these, the rom is pretty stable.
Click to expand...
Click to collapse
Did you flash over without full wipe? Or changed patches now and then? I had these problem long ago bcos of one of above said reasons....a clean wipe has none of the above mentioned bugs .. I'm pretty sure of what I'm saying!
Sent from my LG-P500 using Tapatalk
androidusero1p500 said:
NightlyfourE?
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
Why NightlyFourE I only use two tweak gov ( maxiumtweak and he removed it )+ remount in init.d
This
#!/system/bin/sh
# Governor Tweaks for Ondemand, Conservative, SmartassV2
# Ondemand
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
fi;
# Conservative
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
if [ -e /sys/devices/system/cpu/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
# SmartassV2
if [ -e /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq ]; then
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
if [ "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`" -eq 200000 ]; then
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
else
echo "100000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
fi;
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq;
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "80" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "0" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
fi;
Click to expand...
Click to collapse
And
#!/system/bin/sh
for k in $(busybox mount | grep relatime | cut -d " " -f3)
do
sync
busybox mount -o remount,noatime,nodiratime $k
done
for k in $(busybox mount | grep barrier | cut -d " " -f3)
do
sync
busybox mount -o remount,barrier=0 $k
done
Click to expand...
Click to collapse
And I have credit to trettet
If you think i coppy I will remove two this script
@eee I just asked cos there are no other roms except yours based on official cm.7. 2 with ics looks..
Sent from my LG-P500 using Tapatalk
androidusero1p500 said:
@eee I just asked cos there are no other roms except yours based on official cm.7. 2 with ics looks..
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
I don't understand what you say

help for a script

hi all
i have an galaxy SIII
i am using script manager.
i want to write a script and i have 2 questions
- how to write a script who open an url with the web browser
- is there an function to send a ping to see if an local adress avalaible (192.168.1.X) if not avalaible is there an return error ?
(sorry to seem stupid but i am coming from windows and i am a bit lost for the moment )
thank u for giving me a your time
no suggestion ?
or advise
Google something like "android open browser from shell". You can do it using intents.
Also:
Code:
ping --help
this work in an script u put
am start -a android.intent.action.VIEW -n com.android.browser/.BrowserActivity http://www.google.fr
for chrome i find this
am start -a android.intent.action.VIEW -n com.android.chrome/.Main -d http://xxxxxxxx
but i not find for opera if someone have it
finally
opera =
am start -a android.intent.action.VIEW -n com.opera.browser/com.opera.Opera -d http://www.google.xxxx
hope this help someone
lol now i really need help coz i found nothing
i want to know which ip is reachable from 192.168.1.(1 to 9)
in a script to automate that and give me wish is reachable for use it in a command to browser.
(i know ping from terminal emulator but it's not what i am looking for)
forgive my english i hope you understand what i want ant hope too u help me with this
kondronaute said:
i want to know which ip is reachable from 192.168.1.(1 to 9)
in a script to automate that and give me wish is reachable for use it in a command to browser...
Click to expand...
Click to collapse
That's easy, check:
Code:
for var in {1..9}
do
echo "Looking for 192.168.1.$var..." #optional... jejeje
if ping 192.168.1.$var -c 1 > /dev/null
then
#Reachable, put here your command
else
#Unreachable, you can show an error here
fi
done
RoberGalarga said:
That's easy, check:
Code:
for var in {1..9}
do
echo "Looking for 192.168.1.$var..." #optional... jejeje
if ping 192.168.1.$var -c 1 > /dev/null
then
#Reachable, put here your command
else
#Unreachable, you can show an error here
fi
done
Click to expand...
Click to collapse
but ping command is not reconized by script manager i can only do it with terminal emulator ....
Really? I didn't know that (weird, BTW). Check if you need to use another command with Script Manager, or if you need to add something.
I dunno another way to achieve your goal... only using ping
lol i have a headeach with this and find nothing
RoberGalarga said:
Really? I didn't know that (weird, BTW). Check if you need to use another command with Script Manager, or if you need to add something.
I dunno another way to achieve your goal... only using ping
Click to expand...
Click to collapse
finally i have possibility to run ping you must just in option of script manager chek "override $PATH"
after 2 or 3 aspirin this work for me
#!/system/bin/sh
for i in $(seq 2 10);
do
host="192.168.1.$i"
ping -c 1 -W 1 $host > /dev/null &&
am start -a android.intent.action.VIEW -n com.android.browser/.BrowserActivity http://$host ;
done
i dont know why i have error with else and if with android shell ????
i thank u again for your help and hope the masters here help us a bit to understand, it's difficult coz there are differences with simple linux and this for french using windows :laugh:
Try if this help.
i have this kind of probleme http://forum.xda-developers.com/showthread.php?t=1045006
but i am usin the script manager editor on my phone !!!!!
i have not Windows EOL formatting
please if u are guru of busybox your help is needed to use if else and fi in a script.
must i download another version of busybox or add a command ????
i am fully rooted the path in script manager is good
edit = after trying and googleing
after if you must put [[your code without space before and after]] and after then (yourcode) :laugh:
hope i find the rest...
kondronaute said:
i have not Windows EOL formatting
Click to expand...
Click to collapse
Are you sure? Because if you have created the script in windows, you have that EOL formatting (whatever that means :silly. Try this:
Open Terminal Emulator, and type
Code:
echo "hello there" > /sdcard/newScript.sh
This will create a new and clean script in your SD Card.
Then, go to Script Manager, and edit that script. You can start deleting the text ("hello there") and adding this:
Code:
testvar=1
if [ "$testvar" = "1" ] ; then
echo "All is right"
fi
Ok, run the script. If you can see the text "All is right", that's it, problem solved
RoberGalarga said:
Are you sure? Because if you have created the script in windows, you have that EOL formatting (whatever that means :silly. Try this:
Open Terminal Emulator, and type
Code:
echo "hello there" > /sdcard/newScript.sh
This will create a new and clean script in your SD Card.
Then, go to Script Manager, and edit that script. You can start deleting the text ("hello there") and adding this:
Code:
testvar=1
if [ "$testvar" = "1" ] ; then
echo "All is right"
fi
Ok, run the script. If you can see the text "All is right", that's it, problem solved
Click to expand...
Click to collapse
you save my last neuron
thanks
edit =
my fault is i create a text file under windows (easier and can copy and past easily) after i put the file on my phone and copy past the code in a new script.
i not think that when i just copy past i past the EOL formatting ( i dont know what is that but its a bad thing )
that's mean i must abandon windows and migrate totally to linux
anyway that make me crazy and i am happy to sort it.
you are very helpfull many thanks again
new edit = i understand now why they say notepad++ is necessary

[Script]GIT Conflict Fixer

GIT CONFLICT FIXER​
I made this little script called Git Conflict Fixer, the name says all I guess. The script does not have a brain that can solve REAL issues in the code, what it does is the following:
- Search in current dir for merge derps inside the files (usually happens after merging a branch or maybe just 1 commit)
- Edits the derped files by the standard procedure:
<<<<<<< HEAD
OLDCONTENT GETS REMOVED
UNTIL THIS LINE
=======
NEW CONTENT WILL BE USED
UNTIL THIS LINE
>>>>>>>
Click to expand...
Click to collapse
- Commits if wanted
In 90% of the cases this easy way is the right way to fix it (luckily). so the 10% that's left is up to yourself to fix
This is not a wonder tool from outer space that will fix all your problems, but it will definitely help you when doing merges. So don't blame me if your code is not working
Github Repository:
https://github.com/broodplank/GitConflictResolver
The main script
Code:
#!/bin/bash
#Auto fix git merge/cherry-pick conflicts in files
#Revision 1
#Startup check
if [[ -e /tmp/conflicts ]]; then
rm -f /tmp/conflicts
fi;
#HEADER
echo "--- GIT Conflict Resolver v1.0"
echo "-- Created by broodplank"
echo "- broodplank.net"
echo
echo "-> Checking for .git folder"
echo -n "Result: "
#Check for .git folder for behavior
if [[ -d ${PWD}/.git ]]; then
echo "found, using git diff"
echo
echo "-> Finding conflicts..."
git diff --name-only --diff-filter=U > /tmp/conflicts
else
echo "not found, using native tools"
echo
echo "-> Finding conflicts..."
grep -l -H -r '<<<<<<< HEAD' ${PWD}/* | awk '!a[$0]++' > /tmp/conflicts
fi;
#Check if conflicts exist
if [[ `cat /tmp/conflicts` != "" ]]; then
echo
echo "-> Conflicts found in files:"
while read F ; do
echo '- '$F
done </tmp/conflicts
else
echo "STOP, No conflicts found!"
exit
fi;
#Start executing standard conflict resolve strategy
echo
echo "-> Fixing conflicts..."
echo
while read G ; do
echo "--> Working on file: $G"
echo "Removing text between HEAD and middle"
sed -i -s '/<<<<<<< HEAD/,/=======/d' $G
echo "Removing conflict footer"
sed -i -s '/>>>>>>>/d' $G
echo
done </tmp/conflicts
#Assume conflicts are actually solved
echo "--> Conflicts have been automatically fixed!"
echo
echo "Please note:"
echo "Although most of the conflicts can be resolved this way, It does not count for all conflicts."
echo "If you experience errors on compiling please review the changes made"
echo
#Stage commit?
if [[ -d ${PWD}/.git ]]; then
echo "Would you like to stage the commit? () [Y/n]"
echo -n ": "
read choice
if [[ $choice != "n" ]]; then
git add .
git commit
fi
fi;
echo
echo "All done!"
Example output:​
Merging AOSP master in frameworks/av:
[email protected] ~/repos/platform_frameworks_av $ fixmerge
--- GIT Conflict Resolver v1.0
-- Created by broodplank
- broodplank.net
-> Checking for .git folder
Result: found, using git diff
-> Finding conflicts...
-> Conflicts found in files:
- cmds/screenrecord/screenrecord.cpp
- media/libmedia/AudioTrack.cpp
- media/libmediaplayerservice/Android.mk
- media/libstagefright/AwesomePlayer.cpp
- media/libstagefright/MPEG4Extractor.cpp
- media/libstagefright/TimedEventQueue.cpp
- media/libstagefright/Utils.cpp
- media/libstagefright/httplive/LiveSession.cpp
- media/libstagefright/wifi-display/source/TSPacketizer.cpp
- services/audioflinger/Threads.cpp
-> Fixing conflicts...
--> Working on file: cmds/screenrecord/screenrecord.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: media/libmedia/AudioTrack.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: media/libmediaplayerservice/Android.mk
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: media/libstagefright/AwesomePlayer.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: media/libstagefright/MPEG4Extractor.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: media/libstagefright/TimedEventQueue.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: media/libstagefright/Utils.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: media/libstagefright/httplive/LiveSession.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: media/libstagefright/wifi-display/source/TSPacketizer.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Working on file: services/audioflinger/Threads.cpp
Removing text between HEAD and middle
Removing conflict footer
--> Conflicts have been automatically fixed!
Please note:
Although most of the conflicts can be resolved this way, It does not count for all conflicts.
If you experience errors on compiling please review the changes made
Would you like to stage the commit? () [Y/n]
:
[kk-4.4 6ffce17] Merge remote-tracking branch 'a/master' into kk-4.4
All done!
Click to expand...
Click to collapse
his sir, is there a way to use that tool for kernel instead git?
i mean to merge all from old kernel to new virgen kernel?
desalesouche said:
his sir, is there a way to use that tool for kernel instead git?
i mean to merge all from old kernel to new virgen kernel?
Click to expand...
Click to collapse
Well it just "fixes" all conflict merges that are made by the way git marks it (<<<<<< ,=====, >>>>)
So the title says git but that just means it's only fixes that kind of conflicts. if you merge the old kernel to new kernel (with git I assume, what else, copy paste is not an option). and you remove the .git folder afterwards it will also works, it's just a matter of conflict types.
so basically:
in new kernel folder
Code:
git remote add old https://github.com/desalesouche/yourrepo
git fetch old
git merge old/branchname (now you will get the errors)
fixmerge (choose not to commit it)
Now try to compile the rom, if it works you can commit it, if not you will have to do some fixing yourself, since it just do basic replacing, in 90% of the cases this enough and will fix the problem but it's not guaranteed!
OMG. You offer blind-fix for problems? Good it's not Nuclear plant firmware
Never ever do this if you want quality software. Everything which can be automatically solved is already solved by git. Everything else should be manually examined before commit.
Git is more strict than patch app while cherry-picking, so it may produce such false-conflicts. In this case i suggest to make format-patch and then apply it through patch app. This way is also "automatic" conflict fixer, but in more proper (read: more success chances) way. This will eliminate false-conflicts and will adjust patch lines where possible, although you won't be able to use 3-way mergetool option (which you won't use anyway according to OP).
sorg said:
OMG. You offer blind-fix for problems? Good it's not Nuclear plant firmware
Never ever do this if you want quality software. Everything which can be automatically solved is already solved by git. Everything else should be manually examined before commit.
Git is more strict than patch app while cherry-picking, so it may produce such false-conflicts. In this case i suggest to make format-patch and then apply it through patch app. This way is also "automatic" conflict fixer, but in more proper (read: more success chances) way. This will eliminate false-conflicts and will adjust patch lines where possible, although you won't be able to use 3-way mergetool option (which you won't use anyway according to OP).
Click to expand...
Click to collapse
I do not offer a real fix, just a replacement, the script has no brain as described and only does basic replacement. I know this is not a real problem solver, but when I look at my history of merge conflicts when doing mass merges I can say that 99% of the case it was just the standard replacement procedure that was the solution. Only in some rare cases (in my experience) the default replacement does not fix the code but break it instead.
The actual reason why I post shell scripts in this section, because mostly I've just found out how some function works in shell script (in this case it was reading ranges), and then I write an script that is related to android. I have a lot of little scraps like these floating around on my pc and I usually share them once in a while.
And thanks explanation on the "real" conflict solving way, I will take a look in it sometimes whether it allows automation

[TOOL][Windows][Script]Get & Install Latest Official ADB & Fastboot Drivers

Most ADB-FASTBOOT installers are provided in UPXed .EXE-file format hence it's not transparent what they are internally doing unless you decompile it.
So I decided to write the whole thing as a Windows CMD script thus everyone should can read and understand the coding:
{
"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"
}
Code:
@echo off & setlocal ENABLEDELAYEDEXPANSION
title Latest-ADB-FASTBOOT-Drivers-Installer
set "params=%*"
cd /d "%~dp0" && ( if exist "%TEMP%\getadmin.vbs" del /f /q "%TEMP%\getadmin.vbs" ) && fsutil dirty query %SYSTEMDRIVE% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%TEMP%\getadmin.vbs" && "%TEMP%\getadmin.vbs" && exit /B )
echo Downloading ...
%CD%\wget-x86 -q "https://dl.google.com/android/repository/platform-tools-latest-windows.zip" -O %TEMP%\platform-tools-latest-windows.zip
if NOT exist "%TEMP%\platform-tools-latest-windows.zip" ( echo FAILED & goto :end )
mkdir "%TEMP%\platform-tools-latest-windows" 2>nul >nul
echo Extracting ...
%CD%\7za-x86 x "%TEMP%\platform-tools-latest-windows.zip" -o"%TEMP%\platform-tools-latest-windows" >nul
set "src_path=%TEMP%\platform-tools-latest-windows\platform-tools"
if NOT exist "!src_path!\" ( echo FAILED & goto :end )
if NOT exist "!src_path!\adb.exe" ( echo FAILED & goto :end )
if NOT exist "!src_path!\AdbWinApi.dll" ( echo FAILED & goto :end )
if NOT exist "!src_path!\AdbWinUsbApi.dll" ( echo FAILED & goto :end )
if NOT exist "!src_path!\fastboot.exe" ( echo FAILED & goto :end )
echo Copying ...
set "tgt_path=%WINDIR%\ADB-FASTBOOT"
if NOT exist "!tgt_path!\" ( mkdir "!tgt_path!" )
copy /Y "!src_path!\adb.exe" "!tgt_path!\adb.exe" >nul
if NOT exist "!tgt_path!\adb.exe" ( echo FAILED & goto :end )
copy /Y "!src_path!\AdbWinApi.dll" "!tgt_path!\AdbWinApi.dll" >nul
if NOT exist "!tgt_path!\AdbWinApi.dll" ( echo FAILED & goto :end )
copy /Y "!src_path!\AdbWinUsbApi.dll" "!tgt_path!\AdbWinUsbApi.dll" >nul
if NOT exist "!tgt_path!\AdbWinUsbApi.dll" ( echo FAILED & goto :end )
copy /Y "!src_path!\fastboot.exe" "!tgt_path!\fastboot.exe" >nul
if NOT exist "!tgt_path!\fastboot.exe" ( echo FAILED & goto :end )
echo Adjusting PATH variable ...
echo %PATH% | findstr /C:"!tgt_path!" >nul
if !errorlevel! NEQ 0 ( setx /M PATH "%PATH%;!tgt_path!" )
:end
echo Housekeeping ...
if exist "%TEMP%\platform-tools-latest-windows.zip" ( del /F /Q "%TEMP%\platform-tools-latest-windows.zip" )
if exist "%TEMP%\platform-tools-latest-windows\" ( rmdir /S /Q "%TEMP%\platform-tools-latest-windows" )
echo Done
timeout /t 5 /nobreak >nul
endlocal & echo on
exit
Remark:
The big difference to others is that ADB & Fastboot drivers are updated in real time when this tool is used.
Important:
This tool doesn't install any Android USB driver because almost all OEMs have their own customized Android USB driver.
Requirement: Stable Internet connection.
Take note that with this script the mentioned drivers get installed in %WINDIR%\ADB-FASTBOOT what typically is C:\Windows\ADB-FASTBOOT hence they are reachable by everyone.
If you are interested in this script and in the required necessary executables then I let you know that all got packed into a .ZIP-file what is attached, wich you simply download and extract it to any location of your Windows computer, then in extracted folder run the Windows CMD housed therein. If installation was successful, please restart the Windows computer for changes to take effect.
.
:good:
This is what I have always been looking for
[TOOL][Windows][Script]Get & Install Latest Official ADB & Fastboot Drivers
Click to expand...
Click to collapse
Drivers? Programs my friend, programs...
My adbupdate does the same but isn't so readily readable...
CXZa said:
Drivers? Programs my friend, programs...
Click to expand...
Click to collapse
For example here they are called "driver", as that's also the case multiple times in Internet. Also SAMSUNG and other OEMs/Carriers call them "driver"
So why troll me?
jwoegerbauer said:
For example here they are called "driver", as that's also the case multiple times in Internet. Also SAMSUNG and other OEMs/Carriers call them "driver"
So why troll me?
Click to expand...
Click to collapse
Troll? Just trying to be helpful. You are mixing the drivers and the binaries.
https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads/
Google's driver for example:
https://dl.google.com/android/repository/usb_driver_r13-windows.zip
adb & fastboot programs/tools/binaries, what your bat is downloading:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Thank you for this tool!
Glad to see you're still active, my good old friend
I hope you're doing well.
Recent updates changes everything.
Nice job.
Thank you very much
Hey,
I'm don't know much about computers in general but does this script install/update to the new drivers and help in improving laptop performance?
If yes, do I just need to copy paste the script in CMD or do I need to make any changes on mt end?
isaquebylde said:
Hey,
I'm don't know much about computers in general but does this script install/update to the new drivers and help in improving laptop performance?
If yes, do I just need to copy paste the script in CMD or do I need to make any changes on mt end?
Click to expand...
Click to collapse
This installer fetches the most accurate ADB & Fastboot drivers from Google's provided location,
These drivers in NO WAY improve a computer's / laptop's performance.
isaquebylde said:
Hey,
I'm don't know much about computers in general but does this script install/update to the new drivers and help in improving laptop performance?
If yes, do I just need to copy paste the script in CMD or do I need to make any changes on mt end?
Click to expand...
Click to collapse
Softwares can improve softwares performances.
For hardwares performances, you need hardware changes.
Hi, I have a device from Etisalat Company, model 259s How should I root and install the new Android, please help, thank you
mk5024 said:
Hi, I have a device from Etisalat Company, model 259s How should I root and install the new Android, please help, thank you
Click to expand...
Click to collapse
Absolutely OFF-TOPIC
Hint: Start a new thread
Hey there ! how can I use this tool, I did install it but now I am lost
CXZa said:
Troll? Just trying to be helpful. You are mixing the drivers and the binaries.
https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads/
Google's driver for example:
https://dl.google.com/android/repository/usb_driver_r13-windows.zip
adb & fastboot programs/tools/binaries, what your bat is downloading:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Click to expand...
Click to collapse
^
i agree with this guy
also you provably don't need my feedback but ...
this tool is not user friendly. You did not mention what is the name of executable that needed to be open to "Install" ADB & Fastboot on the thread. The zip provided as download contains 3 files ...
ineedroot69 said:
^
i agree with this guy
also you provably don't need my feedback but ...
this tool is not user friendly. You did not mention what is the name of executable that needed to be open to "Install" ADB & Fastboot on the thread. The zip provided as download contains 3 files ...
Click to expand...
Click to collapse
It looks to me you are struck with blindness: Carefullly re-read 1st post here.
omarlh12 said:
Hey there ! how can I use this tool, I did install it but now I am lost
Click to expand...
Click to collapse
Look inside here:
How to Use ADB and Fastboot on Android (and Why You Should)
You need to master ADB and Fastboot to root your Android phone, uninstall bloatware, and perform many more advanced mods.
www.makeuseof.com
ineedroot69 said:
^
i agree with this guy
also you provably don't need my feedback but ...
this tool is not user friendly. You did not mention what is the name of executable that needed to be open to "Install" ADB & Fastboot on the thread. The zip provided as download contains 3 files ...
Click to expand...
Click to collapse
That script written by @jwoegerbauer is specific to low-experience users.
jwoegerbauer said:
Look inside here:
How to Use ADB and Fastboot on Android (and Why You Should)
You need to master ADB and Fastboot to root your Android phone, uninstall bloatware, and perform many more advanced mods.
www.makeuseof.com
Click to expand...
Click to collapse
you never mention the main executable is "ADB-FASTBOOT-Installer.bat" most ill-informed user would run 7za-x86.exe or either wget-x86.exe and just see a cmd window closing as fast as possible ....
i like the idea of open source and auto-update via wget directly downloading the ADB & Fastboot via Google provided site so don't get me wrong here i guess every user/person have the right to reproach ... either way great job on making this tool and idea of using .bat and .vbs to accomplish everything is just incredible
also i recommend doing
" TASKKILL /F /IM adb.exe /T "
before the
" copy /Y "!src_path!\adb.exe" "!tgt_path!\adb.exe" >nul " command
because when adb.exe is still running you can't overwrite it ...

Categories

Resources