Help with Tasker command/script - Android Q&A, Help & Troubleshooting

How can I create a tasker script to automate the amendment of a file in an app?
Basically I wish to add a line of text to a file in the Freedompop app to disable android dialer integration.
I would have to amend the file located at /data/data/com.freedompop.phone/shared_prefs/com.freedompop.phone_preferences.xml
and add this line <boolean name="integrate_with_native_dialer" value="false" />
just before </map>
I have already done this manually with root explorer but its tedious after every app update and I have to do this again manually

Related

Weather Bug - got it working

I installed Weather Bug today and to my dismay I could not get it working using location services. It worked fine if I removed the location services check boxes during setup and manually entered the location.
I was not happy with having to use a manual entry for my current location and every time I went into settings and turned on location services the app would force close. I figured it was the lack of location services.
adb remount
adb pull /data/data/com.aws.android/shared_prefs/com.aws.android_preferences.xml
change the line using notepad++ to:
<boolean name="prefs_use_gps" value="true" />
to
<boolean name="prefs_use_gps" value="false" />
push the file back:
adb push com.aws.android_preferences.xml /data/data/com.aws.android/shared_prefs/com.aws.android_preferences.xml
now you can enter settings and enable location services. Just do not enable GPS,
I attached a already modified file. Just rename the txt to xml.
Thanks. Any idea how to get the elite version to work? I added the string from your file, <boolean name="prefs_use_gps" value="false" />, and it did prevent the force close with Location enabled; however, it couldn't find my location. Attached is my com.aws.android.elite_preferences file
I just enable the TetherGPS client when running such apps which crash when trying to access GPS.
richard98 said:
Thanks. Any idea how to get the elite version to work? I added the string from your file, <boolean name="prefs_use_gps" value="false" />, and it did prevent the force close with Location enabled; however, it couldn't find my location. Attached is my com.aws.android.elite_preferences file
Click to expand...
Click to collapse
This is the line that tells it to use the network location. I did not see this line in your file, so I do not know if it will work in your version.
<boolean name="prefs_use_network" value="true" />

[Q] Need advice on creating script

I need help on creating an app which requires root access.
Purpose of this app
1) Able to access a file in root/data/data/*APP XYZ*/*THIS FILE*
2) Generate a random string of number
3) Replace the specific string in *THIS FILE* with the randomly generated number
4) Saves *This File*
Right now I can do it manually but it is rather tedious. Was thinking if it would be possible to create an app to do this automatically with one click.
__________________________________________________________________________
After typing the above, I was thinking that maybe a shell script would do just fine.
Yeah a script would simply be more than enough !
#!/system/bin/sh
set number=$RANDOM
echo "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
*random unimportant stuff*
<string name="uuid">302$number-abcdefghijk</string>
</map>
" > /data/data/com.app/shared_prefs/app.xml
For some reason this script fails to run.
I want to change the uuid string but it doesnt seem to want to run.

[GUIDE] How To Make Auto Download Option In Whatsapp setting

If you have problem with auto download in whatsapp this trick can disable it
1. Open solid explorer or root explorer
2. Open data/data/com.whatsapp/shared_prefs/com.whatsapp_preferences.xml
3. Open with text editor
4. add <boolean name="autodownload_images" value="false" /> place it above <boolean name="conversation_sound" value="true" />
5. Save and exit
6. Look in whatsapp>setting>chat settings
and walaaaaaaa :good:
i hope this can help you
does the root explorer must be paid ?
linkinpark_46 said:
If you have problem with auto download in whatsapp this trick can disable it
1. Open solid explorer or root explorer
2. Open data/data/com.whatsapp/shared_prefs/com.whatsapp_preferences.xml
3. Open with text editor
4. add <boolean name="autodownload_images" value="false" /> place it above <boolean name="conversation_sound" value="true" />
5. Save and exit
6. Look in whatsapp>setting>chat settings
and walaaaaaaa :good:
i hope this can help you
Click to expand...
Click to collapse
-----------------------------------------------------------------
i cant reach the data/data .......... its always empty or have no permission to enter (NO ROOT ACCESS AVAILABLE) .. so it must be the app root explorer paid ?
paulantoun said:
-----------------------------------------------------------------
i cant reach the data/data .......... its always empty or have no permission to enter (NO ROOT ACCESS AVAILABLE) .. so it must be the app root explorer paid ?
Click to expand...
Click to collapse
have you rooted your phone?
awesome guide
thanks very much for share this
not working ...
since whatsapp automatically replace it ...
ps: have it work ...
before you edit the file ... make sure to kill whatsapp first (running and cache process) through setting
Sent from my LT18a using Tapatalk 2
Or you can download whatsapp plus, and enjoy tons of other features including this one
Sent from my Xperia Ray using Tapatalk 2
great guide thanks

[GUIDE][GB]How to add jellybean like WiFi-BT switch in title bar

Add jellybean like Wi-Fi & Bluetooth ON/OFF switch in title_bar.
This is a cool guide to add Wi-Fi or Bluetooth switch in titlebar as you can see in jellybean.
This mod work will on any gingerbread running phone.
Things you need:-
Apktool/Apk-Multitool
Notepad++
Basic knowledge about compiling & decompiling.
Basic knowledge about xml editing & modding.
Settings.apk from your rom
Click to expand...
Click to collapse
Lets start:-
Step-1
First of all decompile your settings.apk
Step-2
Now download this
and extract it.
Open & copy the "res" and paste it in your decompiled "settings" folder
Step-3
Now goto settings/res/xml and open wifi_settings.xml
Here you will see a line like that:
Code:
<CheckBoxPreference android:persistent="false" android:title="@string/wifi_quick_toggle_title" android:key="enable_wifi" android:summary="@string/wifi_quick_toggle_summary" />
Step-4
Add this android:layout="@layout/sachin_wifi_switch" Now it will look like this:
Code:
<CheckBoxPreference android:persistent="false" [COLOR="red"]android:layout="@layout/sachin_wifi_switch"[/COLOR] android:title="@string/wifi_quick_toggle_title" android:key="enable_wifi" android:summary="@string/wifi_quick_toggle_summary" />
now save and close it.
Step-5
Now open bluetooth_settings.xml
and find this:
Code:
<CheckBoxPreference android:title="@string/bluetooth" android:key="bt_checkbox" android:summary="@string/bluetooth_quick_toggle_summary" />
Step-6
Here add this android:layout="@layout/sachin_bt_switch"
and now it will look like this:
Code:
<CheckBoxPreference [COLOR="red"]android:layout="@layout/sachin_bt_switch"[/COLOR] android:title="@string/bluetooth" android:key="bt_checkbox" android:summary="@string/bluetooth_quick_toggle_summary" />
save and close it.
Step-7
Now open AndroidManifest.xml in "Settings" folder.
Here find this:
Code:
<activity android:label="@string/wifi_settings" android:icon="@drawable/mainmenu_icon_wifi_settings" android:name=".wifi.WifiSettings" android:clearTaskOnLaunch="true" android:configChanges="keyboardHidden|orientation">
Step-8
After "activity" add this android:theme="@android:style/Theme.NoTitleBar"
like this:
Code:
<activity [COLOR="red"]android:theme="@android:style/Theme.NoTitleBar"[/COLOR] android:label="@string/wifi_settings" android:icon="@drawable/mainmenu_icon_wifi_settings" android:name=".wifi.WifiSettings" android:clearTaskOnLaunch="true" android:configChanges="keyboardHidden|orientation">
now find this:
Code:
<activity android:label="@string/bluetooth_settings_title" android:icon="@drawable/mainmenu_icon_bluetooth_settings" android:name=".bluetooth.BluetoothSettings" android:clearTaskOnLaunch="true" android:configChanges="keyboardHidden|orientation">
similarly do here, add android:theme="@android:style/Theme.NoTitleBar" after "activity".
like this:
Code:
<activity android:theme="@android:style/Theme.NoTitleBar" android:label="@string/bluetooth_settings_title" android:icon="@drawable/mainmenu_icon_bluetooth_settings" android:name=".bluetooth.BluetoothSettings" android:clearTaskOnLaunch="true" android:configChanges="keyboardHidden|orientation">
save and close it.
and you are done with modding.
Now compile & Sign the new Settings.apk
and push it to system/app and change the permission to rw-r-r
Enjoy! Press THANKS if you like it
HIT HARD
HIT OFTEN
#Roman Empire​
Regards:- Sachin Kumar53

Web browser without uses-permission INTERNET ???

I have an app that opens a web browser and searches Google for a keyword. In the AndroidManifest.xml file, I forgot to add <uses-permission ... INTERNET/> but the app still works. I realize that INTERNET isn't a dangerous permission so the user doesn't need to allow it. But all the documentation that I can find says that the uses-permission element must appear in the AndroidManifest.xml file. What am I missing?

Categories

Resources