Marshmallow broke tasker function to toggle mobile data? - Android Q&A, Help & Troubleshooting

On Lollipop I could switch data on or off with Tasker using this command:
svc data enable
svc data disable
On Marshmallow 6.0.1 when the command runs in Tasker it stops and hangs.
The output is:
09.56.45 /Shell runBackground svc data enable root: true
timeout: -1
where on the left of 09.56.45 there is a red dot. The command does not move to the next line.
Same with svc wifi enable, svc wifi disable.
Any suggestions on what my causes the problem? It used to work flawlessly

Well after googling I have found a solution but I'm not good with scripts so I don't know if the code may cause any damage or unexpected function.
The solution is this:
Instead of creating a shell script in tasker as this:
PHP:
svc data enable
or
PHP:
svc data disable
make a script as this:
PHP:
setenforce permissive;
svc data enable;
setenforce enforcing
And change to "disable" for disabling mobile data.
Don't forget to "Use root" option.
I owe the answer to this post
I would appreciate it, if someone with knowledge of scripting could explain the difference on the code above
Thanks

Related

wifi countery code android script error

Dear sir,
I have Sony SL, actually i have a problem with wifi as inserting sim card. I read many topics to find that is a common issue.
Some member has a fix. I fllowed their instruction but to no avail.
As i run the script, this happen :
Error resolving interpreter: /bin/sh does not exist
Using default shell
Exec sh '/sdcard/fix_country_code'
Fix_country_code'
Error: unable to open database "/data/data/com.android.providers.settings/databases/settings.db": unable to open database file
Killed
Killed
Orginally posted by DKTigra:
I wrote a short script (tried to run as init.d - but it has no sense as country code is beeing read from simcard when all init.d scripts are finished), so i used free Script Manager - SManager (https://play.google.com/store/apps/d....scriptmanager) to launch script after boot.
That's script code (just changed wifi_country_code location):
Code:
#!/bin/sh
sleep 10
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO global (name, value) VALUES ('wifi_country_code', 'EU');"
svc wifi disable
sleep 10
svc wifi enable
Also i've added sleep for 10 seconds for ensure that sim data is already read, and added wifi down - sleep - wifi up for reestablish network connection (as i'm using n/g network for old devices, so Nexus is connected in g-mode to my router when script is executed).
Instruction:
1. Download sqlite3 binary from any source (I've got it from xda http://forum.xda-developers.com/show...29&postcount=2) and move it to /system/xbin, set permissions 755 (rwx-rx-rx)
2. Save script to internal SD-card, f.e. as "fix_country_code.sh",
3. Install script-manager, that is able to run scripts on boot, and set to execute script with root rights (like on screenshot if SManager is used). Also it's possible to test script w/o reboot
Please help me
jad.smoke said:
Dear sir,
I have Sony SL, actually i have a problem with wifi as inserting sim card. I read many topics to find that is a common issue.
Some member has a fix. I fllowed their instruction but to no avail.
As i run the script, this happen :
Error resolving interpreter: /bin/sh does not exist
Using default shell
Exec sh '/sdcard/fix_country_code'
Fix_country_code'
Error: unable to open database "/data/data/com.android.providers.settings/databases/settings.db": unable to open database file
Killed
Killed
Orginally posted by DKTigra:
I wrote a short script (tried to run as init.d - but it has no sense as country code is beeing read from simcard when all init.d scripts are finished), so i used free Script Manager - SManager (https://play.google.com/store/apps/d....scriptmanager) to launch script after boot.
That's script code (just changed wifi_country_code location):
Code:
#!/bin/sh
sleep 10
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO global (name, value) VALUES ('wifi_country_code', 'EU');"
svc wifi disable
sleep 10
svc wifi enable
Also i've added sleep for 10 seconds for ensure that sim data is already read, and added wifi down - sleep - wifi up for reestablish network connection (as i'm using n/g network for old devices, so Nexus is connected in g-mode to my router when script is executed).
Instruction:
1. Download sqlite3 binary from any source (I've got it from xda http://forum.xda-developers.com/show...29&postcount=2) and move it to /system/xbin, set permissions 755 (rwx-rx-rx)
2. Save script to internal SD-card, f.e. as "fix_country_code.sh",
3. Install script-manager, that is able to run scripts on boot, and set to execute script with root rights (like on screenshot if SManager is used). Also it's possible to test script w/o reboot
Please help me
Click to expand...
Click to collapse
Helpppp

[Reaver][Hack][Help] Reaver For Android Wifi Hack working but last stage error

Well, i struggled for half a day relentlessly and finally got Reaver Working on my Xiaomi Mi4 android phone with a big help from the below mentioned link , everything is going good and fine, i got the Reaver app working on my Rooted app without bcmon and it worked and i'm ready to hack the network but just as i bypassed "Test Monitor" successfully(by loading a few scripts and debugging) and hit "Start Attack" this thing showed up, below i've written down the issue as it appeared since i'm not allowed to post screenshots & Links untill i make 10 posts(i'm a new user) and the scripts that i used to bypass Test Monitor are attached below, i'm basically a noob but good at technical things, the guide mentioned in the below link isn't as easy as it is told there, there are a few more steps that aren't added in the guide!!
HELP URGENTLY!!!! I waisted a whole day trying to get it working, i'd be so grateful :laugh: if you could help me out with it! PLEASE!! :crying:
Here are those scripts i loaded and put the phone on debug mode
Custom activation script:
#!/bin/bash
svc wifi disable
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
./enable_bcmon
echo “rfasuccess”
exit
Custom Warm-up Script
#!/bin/bash
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
Custom stop Script:
#!/bin/bash
svc wifi enable
echo “rfasuccess”
1. this happened first but i continued anyway.
Stdout:
"rfa success"
StdErr:
Control the Wifi manager
usage: svc wifi [enable[disable] Turn wifi on or off.
svc wifi prefer
set Wifi as the preferred data network
.//srart.shl[4]: sh :not found
.//start.sh[5]: cd: /data/data/com.bcmon.bcmon/files/tools : No Such File or Directory
./start.sh[6]: ./enable_bcmon : not found
2. and then this happened in the processing window
sh: <stdin>[3]: sh: not found
CANNOT LINK EXECUTABLE: could not load library "libcap.so.1" needed by "./reaver"; caused by library "libcap.so.1" not found
3. and finally when i hit stop, this message showed up
Stdout:
?rfasuccess?
StdErr:
Control the Wi-fi manager
usage: svc wifi[enable[disable]
Turn Wi-Fi on or off
svc wifi prefer
Set Wi-Fi as the preferred data network
These are the Steps i followed to get the monitoring mode done.
1.Download bcmon- (link)
2.Save the app on your sdcard but don’t install it.
3.download Reaver apk(RFA) and install it.- (link)
4.Download root explorer by speed speed software and install it.- (link)
6.Install and open bcmon app
keep it open for 5s and then press home.
(This will surely create a com.bcmon.bcmon folder in/Data/data)
7.Open root explorer and browse to the bcmon apk.
8.Select it and press view.
9.Open assets.
10.Copy all the files to /Data/data/com.bcmon.bcmon/files.
#If any file or folder of the same name is found then delete it#
/Now you’ll have to add custom scripts that I have given below(just copy them in a note editor and save with a .sh extension)
Start script-
Start script- mentioned above in custom start script
Warm script- mentioned above in custom warm up script
Stop script- mentioned above in custom stop script
#Now open root explorer
Browse to com.bcmon.bcmon/files/tools/reaver
Long press on it and press permissions and then check the execute boxes(all 3).now click OK.
Now in tools long press enable_bcmon and give it execute rights (all 3).now click OK .
#All set….now open reaver and scan for networks press on one with green color and with a good range.
Go to settings and monitor mode setting and unchek the use bcmon and load all the scripts properly.
#while loading scripts start.sh is the activation script,warm.sh is the warm up script and stop.sh is the stop script. #
Now scroll down and check the debugging mode.
#Go back to the attack screen and press test monitor mode.
Rfasuccess comes then press OK and press start attack.
#All done,now wait until it finds the routers key for you.
#This worked on my I ball slide 6318i,Alcatel ot 918n and redmi note.
goodpeace said:
Well, i struggled for half a day relentlessly and finally got Reaver Working on my Xiaomi Mi4 android phone with a big help from the below mentioned link , everything is going good and fine, i got the Reaver app working on my Rooted app without bcmon and it worked and i'm ready to hack the network but just as i bypassed "Test Monitor" successfully(by loading a few scripts and debugging) and hit "Start Attack" this thing showed up, below i've written down the issue as it appeared since i'm not allowed to post screenshots & Links untill i make 10 posts(i'm a new user) and the scripts that i used to bypass Test Monitor are attached below, i'm basically a noob but good at technical things, the guide mentioned in the below link isn't as easy as it is told there, there are a few more steps that aren't added in the guide!!
HELP URGENTLY!!!! I waisted a whole day trying to get it working, i'd be so grateful :laugh: if you could help me out with it! PLEASE!! :crying:
Here are those scripts i loaded and put the phone on debug mode
Custom activation script:
#!/bin/bash
svc wifi disable
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
./enable_bcmon
echo “rfasuccess”
exit
Custom Warm-up Script
#!/bin/bash
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
Custom stop Script:
#!/bin/bash
svc wifi enable
echo “rfasuccess”
1. this happened first but i continued anyway.
Stdout:
"rfa success"
StdErr:
Control the Wifi manager
usage: svc wifi [enable[disable] Turn wifi on or off.
svc wifi prefer
set Wifi as the preferred data network
.//srart.shl[4]: sh :not found
.//start.sh[5]: cd: /data/data/com.bcmon.bcmon/files/tools : No Such File or Directory
./start.sh[6]: ./enable_bcmon : not found
2. and then this happened in the processing window
sh: <stdin>[3]: sh: not found
CANNOT LINK EXECUTABLE: could not load library "libcap.so.1" needed by "./reaver"; caused by library "libcap.so.1" not found
3. and finally when i hit stop, this message showed up
Stdout:
?rfasuccess?
StdErr:
Control the Wi-fi manager
usage: svc wifi[enable[disable]
Turn Wi-Fi on or off
svc wifi prefer
Set Wi-Fi as the preferred data network
These are the Steps i followed to get the monitoring mode done.
1.Download bcmon- (link)
2.Save the app on your sdcard but don’t install it.
3.download Reaver apk(RFA) and install it.- (link)
4.Download root explorer by speed speed software and install it.- (link)
6.Install and open bcmon app
keep it open for 5s and then press home.
(This will surely create a com.bcmon.bcmon folder in/Data/data)
7.Open root explorer and browse to the bcmon apk.
8.Select it and press view.
9.Open assets.
10.Copy all the files to /Data/data/com.bcmon.bcmon/files.
#If any file or folder of the same name is found then delete it#
/Now you’ll have to add custom scripts that I have given below(just copy them in a note editor and save with a .sh extension)
Start script-
Start script- mentioned above in custom start script
Warm script- mentioned above in custom warm up script
Stop script- mentioned above in custom stop script
#Now open root explorer
Browse to com.bcmon.bcmon/files/tools/reaver
Long press on it and press permissions and then check the execute boxes(all 3).now click OK.
Now in tools long press enable_bcmon and give it execute rights (all 3).now click OK .
#All set….now open reaver and scan for networks press on one with green color and with a good range.
Go to settings and monitor mode setting and unchek the use bcmon and load all the scripts properly.
#while loading scripts start.sh is the activation script,warm.sh is the warm up script and stop.sh is the stop script. #
Now scroll down and check the debugging mode.
#Go back to the attack screen and press test monitor mode.
Rfasuccess comes then press OK and press start attack.
#All done,now wait until it finds the routers key for you.
#This worked on my I ball slide 6318i,Alcatel ot 918n and redmi note.
Click to expand...
Click to collapse
let me know as well if you find any solution.
i get frist error
Start .sh not found plzzz help me bro
Same here pal!
The person who posted this method is my frnd on FB , whenever I tried to connect he ignored my text.
Stucked at the same..
So I was having the same error as the couple people above me, but I was able to get Reaver to recognize where my files were. I moved it off of the SD card to: /data/data/com.bcmon.bcmon
Then I manually typed in the location path of my .sh files:
/data/data/com.bcmon.bcmon/start.sh
/data/data/com.bcmon.bcmon/warm.sh
/data/data/com.bcmon.bcmon/stop.sh
Obviously you'll want to put in whatever you named those files there.
So I've gotten past that hurtle. I am however stuck with this new set of errors now, although it will allow me to progress to "start attack".
I'm new so the site is preventing me from posting these links normally but here are the two errors I'm getting:
Code:
Stdout: rfasuccess
StdErr: Control the Wi-Fi manager
usage: svc wifi [enable|disable]
Turn Wi-Fi on or off
./data/data/com.bcmon.bcmon/start.sh[4]: sh : not found
./data/data/com.bcmon.bcmon/start.sh[5]: cd: /data/data/com.bcmon.bcmon/files/tools : no such file or directory
.data/data/com.bcmon.bcmon/start.sh[6]: ./enable_bcmon : not found
After this I am able to progress and next see:
Code:
tmp-mksh: <stdin>[3]: sh: not found
error: only position independent executables (PIE) are supported.
Any suggestions?
- HTC One M7vzw
PacMan Rom 5.1.1
Stucked at same place
:silly::silly:
Libcap.so.1 error please sort it out soon..
Does anyone managed to solve this?
Your scripts shebang points to /bin/bash you could try changing to #!/system/bin/sh which should hopefully solve the sh not found error. More recent android versions force pie executables as a tool to help lower hack risks, the option there is to try to bypass pie systemwide or get a pie executable. Libcap error is due to the file not being present I'm not sure if your app is supposed to include it but it's not a standard android library.
Hey please help can I use in Micromax canvas nitro A310
Err msg displayed... Plzzz help
:Hi, m a general user of an android phone (without much technical skills). I have tried the method suggested step by step for using Reaver Rfa without bcmon and it enabled monitor mode but after that a popup appeared, which was as followed (unable to attach screenshot)
Stdout:
StdErr:
bmon_wrapper_loaded
K_Shell/10118:1442:<Stdin>[4]:
iwconfig:not found
I am unable to understand it. Please help
goodpeace said:
Well, i struggled for half a day relentlessly and finally got Reaver Working on my Xiaomi Mi4 android phone with a big help from the below mentioned link , everything is going good and fine, i got the Reaver app working on my Rooted app without bcmon and it worked and i'm ready to hack the network but just as i bypassed "Test Monitor" successfully(by loading a few scripts and debugging) and hit "Start Attack" this thing showed up, below i've written down the issue as it appeared since i'm not allowed to post screenshots & Links untill i make 10 posts(i'm a new user) and the scripts that i used to bypass Test Monitor are attached below, i'm basically a noob but good at technical things, the guide mentioned in the below link isn't as easy as it is told there, there are a few more steps that aren't added in the guide!!
HELP URGENTLY!!!! I waisted a whole day trying to get it working, i'd be so grateful :laugh: if you could help me out with it! PLEASE!! :crying:
Here are those scripts i loaded and put the phone on debug mode
Custom activation script:
#!/bin/bash
svc wifi disable
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
./enable_bcmon
echo “rfasuccess”
exit
Custom Warm-up Script
#!/bin/bash
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
Custom stop Script:
#!/bin/bash
svc wifi enable
echo “rfasuccess”
1. this happened first but i continued anyway.
Stdout:
"rfa success"
StdErr:
Control the Wifi manager
usage: svc wifi [enable[disable] Turn wifi on or off.
svc wifi prefer
set Wifi as the preferred data network
.//srart.shl[4]: sh :not found
.//start.sh[5]: cd: /data/data/com.bcmon.bcmon/files/tools : No Such File or Directory
./start.sh[6]: ./enable_bcmon : not found
2. and then this happened in the processing window
sh: <stdin>[3]: sh: not found
CANNOT LINK EXECUTABLE: could not load library "libcap.so.1" needed by "./reaver"; caused by library "libcap.so.1" not found
3. and finally when i hit stop, this message showed up
Stdout:
?rfasuccess?
StdErr:
Control the Wi-fi manager
usage: svc wifi[enable[disable]
Turn Wi-Fi on or off
svc wifi prefer
Set Wi-Fi as the preferred data network
These are the Steps i followed to get the monitoring mode done.
1.Download bcmon- (link)
2.Save the app on your sdcard but don’t install it.
3.download Reaver apk(RFA) and install it.- (link)
4.Download root explorer by speed speed software and install it.- (link)
6.Install and open bcmon app
keep it open for 5s and then press home.
(This will surely create a com.bcmon.bcmon folder in/Data/data)
7.Open root explorer and browse to the bcmon apk.
8.Select it and press view.
9.Open assets.
10.Copy all the files to /Data/data/com.bcmon.bcmon/files.
#If any file or folder of the same name is found then delete it#
/Now you’ll have to add custom scripts that I have given below(just copy them in a note editor and save with a .sh extension)
Start script-
Start script- mentioned above in custom start script
Warm script- mentioned above in custom warm up script
Stop script- mentioned above in custom stop script
#Now open root explorer
Browse to com.bcmon.bcmon/files/tools/reaver
Long press on it and press permissions and then check the execute boxes(all 3).now click OK.
Now in tools long press enable_bcmon and give it execute rights (all 3).now click OK .
#All set….now open reaver and scan for networks press on one with green color and with a good range.
Go to settings and monitor mode setting and unchek the use bcmon and load all the scripts properly.
#while loading scripts start.sh is the activation script,warm.sh is the warm up script and stop.sh is the stop script. #
Now scroll down and check the debugging mode.
#Go back to the attack screen and press test monitor mode.
Rfasuccess comes then press OK and press start attack.
#All done,now wait until it finds the routers key for you.
#This worked on my I ball slide 6318i,Alcatel ot 918n and redmi note.
Click to expand...
Click to collapse
Please explain step by step on how you did this I'm stuck. Thanks.
BiteMyCAPTCHA said:
So I was having the same error as the couple people above me, but I was able to get Reaver to recognize where my files were. I moved it off of the SD card to: /data/data/com.bcmon.bcmon
Then I manually typed in the location path of my .sh files:
/data/data/com.bcmon.bcmon/start.sh
/data/data/com.bcmon.bcmon/warm.sh
/data/data/com.bcmon.bcmon/stop.sh
Obviously you'll want to put in whatever you named those files there.
So I've gotten past that hurtle. I am however stuck with this new set of errors now, although it will allow me to progress to "start attack".
I'm new so the site is preventing me from posting these links normally but here are the two errors I'm getting:
Code:
Stdout: rfasuccess
StdErr: Control the Wi-Fi manager
usage: svc wifi [enable|disable]
Turn Wi-Fi on or off
./data/data/com.bcmon.bcmon/start.sh[4]: sh : not found
./data/data/com.bcmon.bcmon/start.sh[5]: cd: /data/data/com.bcmon.bcmon/files/tools : no such file or directory
.data/data/com.bcmon.bcmon/start.sh[6]: ./enable_bcmon : not found
After this I am able to progress and next see:
Code:
tmp-mksh: <stdin>[3]: sh: not found
error: only position independent executables (PIE) are supported.
Any suggestions?
- HTC One M7vzw
PacMan Rom 5.1.1
Click to expand...
Click to collapse
Dude..
This is the same error that mentioned in the post
---------- Post added at 08:54 AM ---------- Previous post was at 08:53 AM ----------
10258Smoker said:
Libcap.so.1 error please sort it out soon..
Click to expand...
Click to collapse
find out libcap.so.1 from bcmon assets and put it on system/lib
How to copy bcmon files from rootex, there's no copy option, only extract.
goodpeace said:
Well, i struggled for half a day relentlessly and finally got Reaver Working on my Xiaomi Mi4 android phone with a big help from the below mentioned link , everything is going good and fine, i got the Reaver app working on my Rooted app without bcmon and it worked and i'm ready to hack the network but just as i bypassed "Test Monitor" successfully(by loading a few scripts and debugging) and hit "Start Attack" this thing showed up, below i've written down the issue as it appeared since i'm not allowed to post screenshots & Links untill i make 10 posts(i'm a new user) and the scripts that i used to bypass Test Monitor are attached below, i'm basically a noob but good at technical things, the guide mentioned in the below link isn't as easy as it is told there, there are a few more steps that aren't added in the guide!!
HELP URGENTLY!!!! I waisted a whole day trying to get it working, i'd be so grateful :laugh: if you could help me out with it! PLEASE!! :crying:
Here are those scripts i loaded and put the phone on debug mode
Custom activation script:
#!/bin/bash
svc wifi disable
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
./enable_bcmon
echo “rfasuccess”
exit
Custom Warm-up Script
#!/bin/bash
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
Custom stop Script:
#!/bin/bash
svc wifi enable
echo “rfasuccess”
1. this happened first but i continued anyway.
Stdout:
"rfa success"
StdErr:
Control the Wifi manager
usage: svc wifi [enable[disable] Turn wifi on or off.
svc wifi prefer
set Wifi as the preferred data network
.//srart.shl[4]: sh :not found
.//start.sh[5]: cd: /data/data/com.bcmon.bcmon/files/tools : No Such File or Directory
./start.sh[6]: ./enable_bcmon : not found
2. and then this happened in the processing window
sh: <stdin>[3]: sh: not found
CANNOT LINK EXECUTABLE: could not load library "libcap.so.1" needed by "./reaver"; caused by library "libcap.so.1" not found
3. and finally when i hit stop, this message showed up
Stdout:
?rfasuccess?
StdErr:
Control the Wi-fi manager
usage: svc wifi[enable[disable]
Turn Wi-Fi on or off
svc wifi prefer
Set Wi-Fi as the preferred data network
These are the Steps i followed to get the monitoring mode done.
1.Download bcmon- (link)
2.Save the app on your sdcard but don’t install it.
3.download Reaver apk(RFA) and install it.- (link)
4.Download root explorer by speed speed software and install it.- (link)
6.Install and open bcmon app
keep it open for 5s and then press home.
(This will surely create a com.bcmon.bcmon folder in/Data/data)
7.Open root explorer and browse to the bcmon apk.
8.Select it and press view.
9.Open assets.
10.Copy all the files to /Data/data/com.bcmon.bcmon/files.
#If any file or folder of the same name is found then delete it#
/Now you’ll have to add custom scripts that I have given below(just copy them in a note editor and save with a .sh extension)
Start script-
Start script- mentioned above in custom start script
Warm script- mentioned above in custom warm up script
Stop script- mentioned above in custom stop script
#Now open root explorer
Browse to com.bcmon.bcmon/files/tools/reaver
Long press on it and press permissions and then check the execute boxes(all 3).now click OK.
Now in tools long press enable_bcmon and give it execute rights (all 3).now click OK .
#All set….now open reaver and scan for networks press on one with green color and with a good range.
Go to settings and monitor mode setting and unchek the use bcmon and load all the scripts properly.
#while loading scripts start.sh is the activation script,warm.sh is the warm up script and stop.sh is the stop script. #
Now scroll down and check the debugging mode.
#Go back to the attack screen and press test monitor mode.
Rfasuccess comes then press OK and press start attack.
#All done,now wait until it finds the routers key for you.
#This worked on my I ball slide 6318i,Alcatel ot 918n and redmi note.
Click to expand...
Click to collapse
Could anyone tell me how to copy bcmon assets files from sd card to data, because all the options says is extract.
Please help meeee...!
Possible Fix for libcap.so.1 problem
By moving "libcap.so.1", "libsqlite3.so.0" from "/data/data/com.bcmon.bcmon/files/libs" to "/system/lib" and setting the wifi-interface in the "Monitor-Mode settings" to "wlan0". I was able to solve the "libcap.so.1" error.
Straight afterwards, I got the "<stdin>[3] : not found" error.
By changing the "start.sh" script from :
Code:
#!/bin/bash
svc wifi disable
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
./enable_bcmon
echo “rfasuccess”
exit
--to--
Code:
#!/bin/bash
svc wifi enable
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs
LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so sh
cd /data/data/com.bcmon.bcmon/files/tools
./enable_bcmon
echo “rfasuccess”
exit
I was able to pass the "<stdin>[3] : not found" error but now it is stuck on "Waiting for beacon from <Mac Address here>".
I've tried multiple router and waited around 15 minutes on that screen for each router with my phone next to them but it will not get pass that line.
Galaxy s3 i9300 here.
script errors
start.sh, warm.sh and stop.sh are not functioning properly, I am stuck at the same stage as you are and a can't even run the scripts on the terminal emulator.
I have tried granting permissions to the scripts but is is giving errors, if you enable "debug mode", you will see that not even one command is being issued without errors.
BatDroid said:
After this I am able to progress and next see:
Any suggestions?
- HTC One M7vzw
PacMan Rom 5.1.1
Dude..
This is the same error that mentioned in the post
---------- Post added at 08:54 AM ---------- Previous post was at 08:53 AM ----------
find out libcap.so.1 from bcmon assets and put it on system/lib
Click to expand...
Click to collapse
How do I fix the PIE problem? I'm using a Moto E LTE Surnia with CM13.
I cant copy files from extracted folder/asset folder of "bcmon" from any root explorer even from premium root explorer by speedspeed software. Please help me with this. Thank you in advance.
No app in market that can hack wifi password.
Don't waste time.
New wifi routers have WPA 2PSK highest security current time. To crack this type of password may take 2 mintues to many of years depend on which type of character and length have been chosen. All the procedure of cracking password done on linux platform.
In my opinion there are lots of apps on playstore are fake promising to crack wifi password.
Because wifi wpa2psk generate new reandoms keys with 24 or more characters changes with time to time (2-5 sec). And this keys doesn't not save in android in any way. So, how can you say this app hack wifi passwords.
If wifi router has WEP protected security then it can be easily cracked in 2 min any password.

[Q] Activate and disable GPS through adb shell on Marshmallow (Android 6.0)

Hi.
This is not my question (original here - link), but I have the same problem.
It used to be possible to disable location using adb shell prior to Android 6.0 using this line:
adb shell settings put secure location_providers_allowed ' '
And enabling high accuracy mode using this line:
adb shell settings put secure location_providers_allowed gps,wifi,network
Now with Marshmallow, this command does not work anymore
Has anybody figured out the new way to change between Device Only, Battery Saving and High Accurary?
Click to expand...
Click to collapse
I am using AutomateIt app with Shell Plugin (can run shell commands with root). I am setting a trigger - Bluetooth connected. When it connects, I want it to start media playback and enable GPS by these separate shell commands:
adb shell settings put secure location_providers_allowed gps
Click to expand...
Click to collapse
and
input keyevent 126
Click to expand...
Click to collapse
.
On KK and LP it was working without any issues. But I can`t get it working on MM. When I trigger the rule, I can see, that superuser permission has been granted, so that is not the issue. Like MM doesn`t recognise shell commands.
Does anyone know if there has been any changes in commands?
Thank you.
From supersu log
A solution Found on supersu log of power toggles, works on mm:
Enable GPS
Code:
settings put secure location_providers_allowed +gps
Enable network location
Code:
settings put secure location_providers_allowed +network
Disable GPS
Code:
settings put secure location_providers_allowed -gps
Disabling network location
Code:
settings put secure location_providers_allowed -network
droidsctrlhumans said:
a solution found on supersu log of power toggles, works on mm:
Enable gps
Code:
settings put secure location_providers_allowed +gps
enable network location
Code:
settings put secure location_providers_allowed +network
disable gps
Code:
settings put secure location_providers_allowed -gps
disabling network location
Code:
settings put secure location_providers_allowed -network
Click to expand...
Click to collapse
thanks you!!! :good:
DroidsCtrlHumans said:
A solution Found on supersu log of power toggles, works on mm:
Enable GPS
Code:
settings put secure location_providers_allowed +gps
Enable network location
Code:
settings put secure location_providers_allowed +network
Disable GPS
Code:
settings put secure location_providers_allowed -gps
Disabling network location
Code:
settings put secure location_providers_allowed -network
Click to expand...
Click to collapse
This is awesome; I was wondering why my GPS would not turn on/off and realized the network location command was needed.
Latest Waze as of today, Google maps and everything now turns on/off and don't need to confirm anything with my rooted LG G5!
Thank you!
sidehop said:
This is awesome; I was wondering why my GPS would not turn on/off and realized the network location command was needed.
Latest Waze as of today, Google maps and everything now turns on/off and don't need to confirm anything with my rooted LG G5!
Thank you!
Click to expand...
Click to collapse
hello!
I used this shell command on my xiaomi redmi 4x with crdroid rom
At the beginning it worked fine, but I don't know why now I can't turn off gps even if i cliick on the icon or if i go in the settings it instantly turn on by itself. Some help???
I even try to restart and does not work..

[GUIDE] How to connect adb over wifi

Heres how to connect to android wear using adb over wifi, theres still some issues, so ill put it here and if someone has some information please share with us:
On wear:
Go to config -> about -> tap the version umber 7 times (it will enable dev options)
Now go back to config menu
Go to developer options
Enable adb (it will also enable the option adb over bluetooth)
On phone:
Open android wear app
Tap the cog icon
Enable Debug over wifi -> Check that the host will be connected (its the android wear)
Now open cmd (you will need to have adb on your path variable):
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444 // if this gives an error try replacing localhost with 127.0.0.1
adb -s localhost:4444 tcpip 5555 // if this gives an error try replacing localhost with 127.0.0.1
On phone:
Disable adb over bluetooth
Disable bluetooth
On wear:
Go to config -> developer options -> disable the option auto change wifi state
Go to wifi, connect to your wifi
still on wifi, theres an advanced options, there you can get your ip address
on cmd:
adb connect 192.168.1.3:5555 // replace 192.168.1.3 with your android wear ip
THE PROBLEM:
Android wear keeps desconnecting the wifi for a lot of reasons, some that i know:
It detect bluetooth connection (its an automatic power save feature)
But even if you disconnect from bluetooth, sometimes it keep disconnecting.
THE SOLUTION:
I have found a feature under developer options named: Enable wifi state change. This is enabled by default, so disabling it should prevent the wear from disconnecting from wifi, and it does. But sometimes android wear auto enable this feature, even if you turn it off manually. If someone know something about it, or another way to prevent wifi disconnection, please share with us.
On phone:
Open android wear app
Tap the cog icon
Enable Debug over wifi -> Check that the host will be connected (its the android wear)
==============================
Unfortunately doesn't work on my phone, cannot find the "Debug over wifi" option, only Debug over bluetooth available.
The same here!! How did you proceed?
Do you know if there is any way to figure out the port being used?
sagits2016 said:
adb connect localhost:4444 // if this gives an error try replacing localhost with 127.0.0.1
Click to expand...
Click to collapse
Thank you SO MUCH!! I have been trying to connect my watch for days!

How To Guide T-mobile US VoLTE 5G mobile data instability fix with root

I was having problems with mobile data through T-mobile in the US that I was have to disallow 5G or else the carrier connection would drop. Sometimes it would reach 4G+, but it would drop the mobile data connection all the time, especially when moving off wifi. I had never seen the VoLTE icon. After I followed the steps below, the VoLTE icon appeared, 4G calling became a settings option, and the mobile data has been working smoothly. Basically I followed this guide, although I wasn't able to use HomerSp's steps to connect to the qualcomm server, and I just used steps 2.1 and 2.2, which is juanappleseed's directions:
How to enable T-Mobile VoLTE/VoWiFi on ASUS smartphones [Root]
Here's how you can enable T-Mobile VoLTE and VoWiFi support on the ASUS ZenPhone as well as the ASUS ROG Phone lineup with root access.
www.xda-developers.com
[Guide] Easy method to Enable Volte (with root) on Tmobile and maybe other networks on Android 11 and maybe 10
So first you have to root. I used twrp and magisk. There are guides on how to do that you can find by searching around. Then once you do that, follow these directions, What I did was manually entered all of these setprop commands below, on the...
forum.xda-developers.com
Dial *#*#3642623344#*#* through the stock dialer app. Upon typing the last star, the number will disappear and there will be no confirmation.
Connect to the phone to your computer, open up adb cmd prompt, use adb shell and type su to get admin access. Magisk superuser request will appear on phone to grant. Then send these commands in shell:
setprop persist.vendor.dbg.ims_volte_enable 1
setprop persist.vendor.dbg.volte_avail_ovr 1
setprop persist.vendor.dbg.vt_avail_ovr 1
setprop persist.vendor.dbg.wfc_avail_ovr 1
4G Callling should be a new option in the mobile data settings. After mobile data off and on again, VoLTE and 5G should work and be stable all the time.
I think rebooting the phone might undo everything...
svenagain said:
I was having problems with mobile data through T-mobile in the US that I was have to disallow 5G or else the carrier connection would drop. Sometimes it would reach 4G+, but it would drop the mobile data connection all the time, especially when moving off wifi. I had never seen the VoLTE icon. After I followed the steps below, the VoLTE icon appeared, 4G calling became a settings option, and the mobile data has been working smoothly. Basically I followed this guide, although I wasn't able to use HomerSp's steps to connect to the qualcomm server, and I just used steps 2.1 and 2.2, which is juanappleseed's directions:
How to enable T-Mobile VoLTE/VoWiFi on ASUS smartphones [Root]
Here's how you can enable T-Mobile VoLTE and VoWiFi support on the ASUS ZenPhone as well as the ASUS ROG Phone lineup with root access.
www.xda-developers.com
[Guide] Easy method to Enable Volte (with root) on Tmobile and maybe other networks on Android 11 and maybe 10
So first you have to root. I used twrp and magisk. There are guides on how to do that you can find by searching around. Then once you do that, follow these directions, What I did was manually entered all of these setprop commands below, on the...
forum.xda-developers.com
Dial *#*#3642623344#*#* through the stock dialer app. Upon typing the last star, the number will disappear and there will be no confirmation.
Connect to the phone to your computer, open up adb cmd prompt, use adb shell and type su to get admin access. Magisk superuser request will appear on phone to grant. Then send these commands in shell:
setprop persist.vendor.dbg.ims_volte_enable 1
setprop persist.vendor.dbg.volte_avail_ovr 1
setprop persist.vendor.dbg.vt_avail_ovr 1
setprop persist.vendor.dbg.wfc_avail_ovr 1
4G Callling should be a new option in the mobile data settings. After mobile data off and on again, VoLTE and 5G should work and be stable all the time.
I think rebooting the phone might undo everything...
Click to expand...
Click to collapse
That would suck if it becomes undone after a reboot.
Over the past couple days, have you tested that out?
@Veiranx The VoLTE icon and 4G Calling settings option disappear after reboot, however the 5G mobile data stability remains.
Checking those persist properties with getprop show they are still 1.
After redialing the code, 4G Calling option appeared as enabled, but needed to be disabled and re-enabled to make the VoLTE appear again.
I figured out that *#*#3642623344#*#* is *#*#ENHANCED4G#*#*. Just a note that after entering the code it's fastest to long-press the wifi icon, then select SIM1, and turning off 4G Calling and back on again; VoLTE icon appears shortly after that.
I tried these other props but they didn't work:
How do I turn off VoLTE via adb?
The way to turn off VoLTE through the UI is Settings > Cellular Networks > and toggle "Enhanced 4G LTE Mode". How do I do this same action through adb?
stackoverflow.com
adb shell setprop persist.mtk.volte.enable 1
Attempting to Enable VoLTE
UPDATE: A working method has been published here: https://forum.xda-developers.com/rog-phone-2/how-to/guide-enabling-volte-vowifi-t4023529 ==================================================================================================== Hi...
forum.xda-developers.com
setprop persist.radio.rat_on combine
setprop persist.vendor.radio.rat_on combine
setprop persist.radio.data_ltd_sys_ind 1
setprop persist.vendor.radio.data_ltd_sys_ind 1
setprop persist.radio.data_con_rprt 1
setprop persist.vendor.radio.data_con_rprt 1
setprop persist.radio.calls.on.ims 1
setprop persist.vendor.radio.calls.on.ims 1
setprop persist.radio.volte.dan_support true
setprop persist.vendor.radio.volte.dan_support true
setprop persist.sys.cust.lte_config true
setprop persist.ims.disable 0
setprop persist.ims.reg true
setprop persist.ims.volte true
setprop persist.ims.vt true
setprop persist.ims_support 1
setprop persist.vendor.data.iwlan.enable true
setprop persist.vendor.data.mode concurrent
setprop ril.ims.reg lte
I've been in contact with ASUS customer service, but they don't help. Any ideas how to make 4G Calling setting persistent or how to find the prop associated with that menu item?
i would like to thank you for posting this amazing post. i have also read a relevant article on sms-man it was also helping. Keep up the good work thank you.
svenagain said:
I figured out that *#*#3642623344#*#* is *#*#ENHANCED4G#*#*. Just a note that after entering the code it's fastest to long-press the wifi icon, then select SIM1, and turning off 4G Calling and back on again; VoLTE icon appears shortly after that.
I tried these other props but they didn't work:
How do I turn off VoLTE via adb?
The way to turn off VoLTE through the UI is Settings > Cellular Networks > and toggle "Enhanced 4G LTE Mode". How do I do this same action through adb?
stackoverflow.com
adb shell setprop persist.mtk.volte.enable 1
Attempting to Enable VoLTE
UPDATE: A working method has been published here: https://forum.xda-developers.com/rog-phone-2/how-to/guide-enabling-volte-vowifi-t4023529 ==================================================================================================== Hi...
forum.xda-developers.com
setprop persist.radio.rat_on combine
setprop persist.vendor.radio.rat_on combine
setprop persist.radio.data_ltd_sys_ind 1
setprop persist.vendor.radio.data_ltd_sys_ind 1
setprop persist.radio.data_con_rprt 1
setprop persist.vendor.radio.data_con_rprt 1
setprop persist.radio.calls.on.ims 1
setprop persist.vendor.radio.calls.on.ims 1
setprop persist.radio.volte.dan_support true
setprop persist.vendor.radio.volte.dan_support true
setprop persist.sys.cust.lte_config true
setprop persist.ims.disable 0
setprop persist.ims.reg true
setprop persist.ims.volte true
setprop persist.ims.vt true
setprop persist.ims_support 1
setprop persist.vendor.data.iwlan.enable true
setprop persist.vendor.data.mode concurrent
setprop ril.ims.reg lte
I've been in contact with ASUS customer service, but they don't help. Any ideas how to make 4G Calling setting persistent or how to find the prop associated with that menu item?
Click to expand...
Click to collapse
I have been using the app vozapp from the play store, and I not have problems using VoLTE on my Zenfone 9
Customer service has this response: "ASUS unlocked carrier ZenFone devices sold in the USA do not support VoLTE (Voice over LTE) as this feature is currently not supported. We suggest purchasing the Smartphone for Snapdragon insiders if you wish to utilize VoLTE."

Categories

Resources