Jump to content

I am trying to write a script that will connect


dajaz27

Recommended Posts

To a smartphone and run this script from the server.

 

 

@echo off

Echo Pushing temproot files...

adb wait-for-device

adb push Common/psneuter /data/local

adb push Common/sqlite3 /data/local

adb push Shift/hboot_eng.nb0 /data/local

adb push Common/busybox /data/local

adb shell chmod 755 /data/local/busybox

adb shell chmod 755 /data/local/psneuter

adb shell chmod 755 /data/local/sqlite3

Echo Executing temproot...

adb shell /data/local/psneuter

ping -n 3 127.0.0.1 >NUL

Echo Setting S-OFF...

adb shell /data/local/busybox dd if=/data/local/hboot_eng.nb0 of=/dev/block/mmcblk0p18

adb shell /data/local/busybox dd if=/dev/block/mmcblk0p18 of=/data/local/hboot_check.nb0

Echo Check that MD5 sums match...

Echo 60ec1006e6ec2e8acb370d6aad35b17e

adb shell /data/local/busybox md5sum /data/local/hboot_check.nb0

pause

Echo Modifying filesystem for Boost Mobile...

adb push Shift/com.android.phone_preferences_boost.xml /data/data/com.android.phone/shared_prefs/com.android.phone_preferences.xml

adb shell chmod 660 /data/data/com.android.phone/shared_prefs/com.android.phone_preferences.xml

adb shell chown radio.radio /data/data/com.android.phone/shared_prefs/com.android.phone_preferences.xml

adb shell /data/local/sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db "UPDATE carriers SET mmsc='http://mm.myboostmobile.com' WHERE name='Production';"

adb push Shift/http_proxy /data/data/com.google.android.epst

adb push Shift/rtsp_proxy /data/data/com.google.android.epst

adb shell chmod 644 /data/data/com.google.android.epst/http_proxy

adb shell chmod 644 /data/data/com.google.android.epst/rtsp_proxy

adb shell chown app_54.app_54 /data/data/com.google.android.epst/http_proxy

adb shell chown app_54.app_54 /data/data/com.google.android.epst/rtsp_proxy

adb shell pm disable com.coremobility.app.vnotes

adb install apks/voicemailnotifier.apk

adb shell rm /data/local/psneuter

adb shell rm /data/local/sqlite3

adb shell rm /data/local/busybox

adb shell rm /data/local/hboot_eng.nb0

adb shell rm /data/local/hboot_check.nb0

Echo Talking to Radio...

adb shell stop ril-daemon

adb shell "echo -e 'AT\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C8290100\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C841746477616F70\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C827550030303030303000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C8050D17F60101E0000000\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C805391DF60101E0000000\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C80545E05E0101E0000000\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C8052AE05E010200000000\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C805321DF6010200000000\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C80508E05E010200000000\r' > /dev/smd0"

adb shell "echo -e 'AT+HTC_DM=C80552E05E010401200000\r' > /dev/smd0"

Echo Done, ready for programming...

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.