[TUTORIAL] This method can make sound in ubuntu on android. - Android Q&A, Help & Troubleshooting

this method can make sound in ubuntu on android.
this is a demo.a friend told me about this method.my device is new nexus 7(2013)
I will make a tutorial on xda-developers.
make a audio server on android.and ubuntu send the voice to android.the audio server play the voice.
this method is not real time,have delay.when play music,parse the music,it didn't parse immediately ,go on play about 10 seconds,and when resume ,the music is played from later seconds.
1.unzip the android file.7z, on android install the IRB.apk file.
run IRB,then sdcard have a directory jruby, audioserver.12.rb put here.
go to IRB,find scripts,select audioserver.12.rb,and execute
2.in ubuntu: install socat and perl,use "apt-get install socat " and "apt-get install perl"
3.unzip asoundrc.7z ,put .asoundrc into /root,
In .asoundrc uncomment this line:
pcm.!default "myfifo"
4.unzip audiofifoloop.1.tar,put audiofifoloop somewhere, To allow multiple ALSA applications, can configure
audiofifoloop. Find these two lines at the beginning:
$multi = 0;
$sleep = 1;
Set $multi to 1 and $sleep to 0.
make it executeable,and run it
then you can "aplay *.wav" in terminal,check is ok?
and can install smplayer to play music ,make sure the audio driver select alsa.
can play video in youtube but only html5.I played some but didn't smooth.
View attachment 2214234
View attachment audiofifoloop.1.tar
View attachment asoundrc.7z
I have a very simple method:
1.you can play musice use some player in android,at the same time in ubuntu termianl to do "alsactl store" to save the soundcard parameter.
2.close the player.and in ubuntu terminal do "alsactl restore" to resume the soundcard parameter.
3.then you can use "aplay *.wav" to play .
but this method does have more effect.I don't know.this only some point.
{ in android stock player or google player maybe couldn't ,you shoud find some other player,i used is chinese app 天天动听 } this method only sound in output like headphone,no sound in speaker.

reserve

Hello, i'm trying to get this to work.
I would like to know what image from sourceforge.net/projects/linuxonandroid/files/Ubuntu/ you used when testing this.
I have two problems, first when executing the audio server script it seems like i'm getting an error that I can't see that you get in your video when you execute it (but it's hard to tell in the video cause it's only visible for a second so i'm not sure) imgur.com/PckDNyC.png
and then when i execute aplay a.wav i get
shm_open() failed: Function not implemented
So i don't know where to start to fix this, need someone with understanding of how this works to help me out.

I followed the method and it worked fine... Does anyone know who to quit the audioserver when i am finished. i found nothing that would do it.. and had to restart phone.. any help would be appreciated.

Related

Setup Nook for nfs stream on local wlan

Okay so I didnt really come across alot of central material on how to do this with Nook or if it even could. Since storage capacity is an issue most HD content is probably not going to be getting stored on most users tablets. I would guess that alot of users already have lots of content on their personal computers. If you have a decent wireless router configured correctly it shouldnt be a problem to be able to stream this content to the nook. The nook tablet has a decent amount of ram and the cortex a9 is more than sufficient to stream, so i was bored and figured id give it go.
What you will need to do this
Rooted Nook Tablet 8gb or 16gb shouldnt matter - for documentations sake im running aokp milestone
Personal Computer with somewhat organized media structure
Hanewin NFS Server Easy to setup in windows
BusyBox Installer Latest version of BusyBox - BusyBox Installer is what we used
MX Player seems to be the best android video player ive come across
Neon Codec is compatible with our processor and is necessary for decoding files with dts audio
Its important to organize your movies into a single folder if possible to decrease on mountpoints. If you must use different folders, try and name them movies1 movies2 movies3, etc
After organizing download and install hanewin. Make sure UPnP is enabled on your router it saves you from having to fwd ports later on.
Open Hanewin in the general tab uncheck UDP and check version 2 and 3, and check TCP.
On the server tab, Check "allow mount of remote devices", check "Reset innode table", check "convert windows drive letters", and check "utf-8 charset"
On Exports Tab, click on edit exports file. You need to setup like this:
Code:
my\path\towindows\folder -name:movies
my\path\to\someother\windows\folder -name:movies2
once you have entered all of your shares, save the file as exports.
now click restart server button on the right hand side.
you should see your mounts show up in the box.
Now download and install busyboxinstaller on your nook
type in mount script in busybox installer on the scripts tab by clicking the plus sign in the top right
name the script whatever you want
then in the command section type the following: You do not have to put the extra /sdcard/movies2 or so on if you are only mounting 1 folder
Code:
mkdir -p /sdcard/movies /sdcard/movies2 /sdcard/movies3 /sdcard/movies4
busybox mount -o nolock,tcp,hard,intr my.pc.ip.address:/myfoldermnt /sdcard/movies
the -p option on mkdir will check to see if the directory exists, if not it will create it
the mount command must be formatted exactly the same swapping out mypcipaddress for your local lan ip, and myfoldermnt for whatever you called your nfs share in your exports file, then mounting on the directory /sdcard/movies
once finished save the script and run it, then use root explorer to check and make sure /sdcard/movies exists and has your nfs content inside
you can set this script to run at boot also, if you are not at home no worries it will just error out and continue booting without you noticing
Setting up the Nook
Download Neon Codec
extract the neon folder to the root of either your internal or external sdcard
Download and install MX Player
Once installed configure it. Your movies may show up in the folder, dont attempt to play them yet.
click on settings and goto decoder
Make sure "Use h/w+ decoder" "h/w decoder local" "correct aspect ratio" are checked and nothing else
Now scroll to the bottom and you should see "custom codec" click it
navigate to the sdcard where neon folder is located. click on neon then click ok once the folder contents are displayed
MX Player is now setup, completely exit out of it
This next step is important because without it the h/w decoder buggers out and you are stuck with software decoder
navigate to main settings for tablet, enable developer options
scroll almost to the bottom and check "disable hw overlays"
now would be a good time to set your custom mount script in busybox installer to run at boot
now restart your nook
Open MX Player and you might not see your content, click the refresh symbol at top right and it should appear
select your movie of choice and go
enjoy full hd movies on your tablet!!!

[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.

[Updated: JUN 15] Easier XMir Setup (Now with Libertine!)

EDIT: I bring you the new OFFICIAL way of installing X11 applications, I've been neglecting this thread way too much and need to give it some love.
The old instructions (OLD METHOD) are no longer needed as of April on the rc and rc-proposed channels, this should work on all channels however (tested up to latest devel-proposed image)
NOTE: You still need a writable image for the first parts of this, after you install the tools, it can go back to read-only.
1) Open Terminal
2) Install the following packages: libertine libertine-tools python3-libertine-chroot
3) Open the Ubuntu Store and install the scope: libertine-scope
4) Open the Libertine application that's now available in your launcher and follow instructions, it will set up a Ubuntu Vivid chroot in your home directory, install the components needed, and drop you at the package management screen. From here, you can update and add PPAs to the container via the Settings Icon -> Manage Container, Install packages via the plus icon, etc.
5) Favorite the Libertine XApps scope by swiping up on the home screen and hitting the star, then open the scope and you'll see any applications you installed there.
If you cannot install your container via the Libertine application (I know that it didn't have support for chroot until recently, not sure if that version has landed yet), you can install your container via the teminal, so open your terminal but DO NOT sudo su. All Libertine-container-manager commands MUST be done as phablet.
To create a container (this line will likely change when Xenial drops as Libertine will be switching to LXC on Xenial):
Code:
libertine-container-manager --create -i <container id> -n <friendly name (this shows up in the Libertine app)> -t chroot
Using this command, the system will build the new libertine container, wait until it's finished and then you can continue by using the installed Libertine application.
Onscreen Keyboard in Libertine Applications
THIS CAN FINALLY BE DONE! The only con to it, is that it is mostly unusable in applications that open dialog boxes along the bottom of the screen, the XMir window does not scroll up like native applications do to give a better viewing window. (I have been told that this will change in OTA-12 when the keyboard support drops for Libertine/Puritine apps)
To install on-screen keyboard:
Open Libertine and add ppa:brandontschaefer/maliit to your container. Then hit update in Manage Containers. Once done, install the following, maliit-inputcontext-gtk2, maliit-inputcontext-gtk3, maliit-framework. After that, setup is complete in your container, now we need to do some extra work outside the container to make it pass the GTK_IM_MODULE variable we need over to Libertine. To do this, add this line to your .bashrc or if you have a writable image, you can add this to the systemwide profile (not sure if this will be replaced on OTA though):
Code:
export GTK_IM_MODULE=maliitphablet
Restart the tablet OS, Open an application such as Libreoffice Writer and BEHOLD!
Notes
You can also manage your container via the terminal with libertine-container-manager. To get a root shell without installing mate terminal (You can't get a root shell via this method (installing a term), Proot acts like fakeroot all over your container's rootfs), you can use the following:
- l-c-m exec -c bash (This command does not mount any user directories (/home/phablet will not exist) and is best used for making changes to the container's rootfs)
or if you only need a user shell:
- DISPLAY= libertine-launch <containerid (default is vivid)> bash (This mounts user directories, but is no different than if you installed something like mate-terminal and ran it. The reason we are passing an empty DISPLAY variable is because libertine-launch will refuse to start if DISPLAY isn't set, even it if doesn't exist.)
- DPI Hacks: To change the DPI of applications in Libertine, you need a new way to make the .Xdefaults file as only the XDG User directories get mounted inside the libertine container, not your entire Home. To do this, install your favorite editor inside of the libertine container (I find nano to be the easiest for new users), and open Terminal, then follow these instructions:
1) Open your editor to ~/.local/share/libertine-container/user-data/[my container id, default = vivid]/.Xdefaults and fill it with the following:
Code:
Xft.dpi: 175
or what your preferred DPI is. On the Nexus 7 flo the comfortable DPI is 175 with an application font size of 14 (I use Liberation Sans which comes from Libreoffice).
- You can make your applications look great still, you don't have to be stuck with the default Raleigh GTK style. Download and install LXAppearance in your container and add ppa:noobslab/themes then start installing themes. Enjoy! The Ubuntu Touch Themes are wonderful and FlatPlat works well with the system UI as well.
Some cons to this:
- It requires at least 3GBs available in your internal storage (wherever your home folder resides) to store a full, non-touch Ubuntu Vivid container.
Pros:
- It survives OTAs, the only thing able to break this would be a change to XMir, PRoot, or Libertine. Which is landing in the images shortly by default so there's not much of a chance to break this.
- Nothing you do will break your UTouch system. Unlike the old method, this only installs the items needed to run the container, which are to become standard inside the images very soon.
OLD METHOD
--------------------
EDIT: I have not tested this in stable, rc, rc-proposed yet. Only the dev-proposed channel.
So there is some questioning I see going on about how to run things like Firefox efficiently and well. So I figured I'd write up a little something for it.
First you'll want to set your DPI in ~/.Xdefaults, as I have a Nexus 7, mine looks similar to this:
Xft.dpi: 240
Note that you may need to do some additional tweaking.
Now that you have Xdefaults made, install the ubuntu-pocket-desktop and matchbox-window-manager packages (along with the program you wish to use, for this tutorial, I'll use libreoffice).
Create a file in /bin called wm-wrapper.sh (or whatever you choose here, just remember the name), fill it with:
Code:
#!/bin/bash
matchbox-window-manager -use_titlebar no -use_dialog_mode const-horiz &
exec [email protected]
and save it, then chmod a+x it.
EDIT: For this next part, I recommend copying the .desktop to ~/.local/share/applications to avoid them being overwritten on package updates.
Now, navigate to /usr/share/applications/ and open the .desktop file for the application you are wanting to run. Add the following lines under [Desktop]:
Code:
X-Ubuntu-Touch=true
X-Ubuntu-XMir-Enable=true
Change the Exec line so that your wrapper (in my case wm-wrapper.sh) is in front of the executable, such that the line becomes (or similar):
Code:
Exec=/bin/wm-wrapper.sh libreoffice %U
Save it, then search for your application in the Unity Scopes. Open it up and you should see your application running as an XMir app easy. For future applications, you will simply need to do the changes to it's .desktop file.
EDIT: A helpful redditor gave me this tip to enable sending touch events over to Xmir. Setting the GTK_TEST_TOUCHSCREEN environment variable to 1 will apparently remove hover events and the like (events that are not normally sent with a touch screen, but with a mouse). I have not had time to take a look at this yet however so YMMV.
Thanks man, gonna try this on my n4 later today. ?
thumbzzzz said:
Thanks man, gonna try this on my n4 later today.
Click to expand...
Click to collapse
No problem, Like I said, not sure if it works on other channels, but it works great on the dev-proposed channel. You will also want to close applications using their menu items as closing the Xmir root window will cause the application to terminate without asking to save anything. Libreoffice can get around this via Document Recovery though.
I had been working on this for a good solid week testing applications and different ways to get X11 applications working so I could make it a full workstation, so I figured why not post my findings since the Ubuntu forum doesn't seem to get much love.
Thanks for the matchbox tip! It works quite nicely, especially, it brings a nice onscreen keyboard with it. I use the following setup now:
~/.local/share/applications/gedit-mb.desktop
Code:
[Desktop Entry]
Name=GEdit in Matchbox
Type=Application
Terminal=false
Icon=/usr/share/gedit/logo/gedit-logo.png
X-Ubuntu-Touch=true
#X-Ubuntu-XMir-Enable=true
Exec=/home/phablet/bin/matchbox-wrapper.sh gedit
~/bin/matchbox-wrapper.sh
Code:
#!/bin/bash
export DISPLAY=:1
Xmir $DISPLAY &
sleep 1
# xlogo
# xeyes
# x11vnc -forever -nopw -quiet -display $DISPLAY &
matchbox-window-manager &
sleep 1
matchbox-keyboard &
[email protected]
~/.matchbox/kbdconfig
Code:
# http://unix.stackexchange.com/questions/223110/what-are-the-keyboard-shortcuts-for-matchbox-window-manager
<ctrl><alt>p=prev
<ctrl><alt>n=next
<ctrl><alt>d=!matchbox-desktop
<ctrl><alt>x=!xterm
<ctrl><alt>f=!firefox
Together with the Xft.dpi setting (I use 220) this gives me a quite usable editor. If you have any other tips ShadowEO, I'd love to hear them!
One thing I'd like to figure out is how to modify the DPI for the Mir GDK Backend. Currently GTK3 applications started with the backend are way to small.
ShadowEO said:
One thing I'd like to figure out is how to modify the DPI for the Mir GDK Backend. Currently GTK3 applications started with the backend are way to small.
Click to expand...
Click to collapse
Do you have a specific example? Which application are you looking at?
doniks said:
Do you have a specific example? Which application are you looking at?
Click to expand...
Click to collapse
Sorry, for some reason I wasn't subscribed to this post (weird.)
Anyway the specific application I was looking at was gedit, when started with the native GDK Mir backend, it is almost unusable with touch as the elements are so small. GDK_SCALE doesn't work and neither does any of the GTK dconf settings for scaling.
Also, I have switched to using rc-proposed, so any more changes I do will likely be able to be installed without worrying about the snapshot channel.
Also messing with some touch-screen specific .gtk2.0-rc entries seem to help, but since I reformatted, I don't quite have those offhand at the moment. I'll have to look them up again.
Hi!
Thanks a lot for all these useful explanations! Finally I was able to run Firefox on my bq E4.5 (rc-proposed)! But I have a few questions:
1) I don't have any on-screen keyboard
2) it works like with a mouse (no touch scrolling for instance)
Is there something I can do about that?
takri said:
Hi!
Thanks a lot for all these useful explanations! Finally I was able to run Firefox on my bq E4.5 (rc-proposed)! But I have a few questions:
1) I don't have any on-screen keyboard
2) it works like with a mouse (no touch scrolling for instance)
Is there something I can do about that?
Click to expand...
Click to collapse
You could try the touchegg package for multi touch gestures, I haven't gotten around to testing it yet. As for keyboard, you can use onboard for most applications or if the application is a QT application, it will pop up the system keyboard (behavior was exhibited by calibre)
ShadowEO said:
You could try the touchegg package for multi touch gestures, I haven't gotten around to testing it yet. As for keyboard, you can use onboard for most applications or if the application is a QT application, it will pop up the system keyboard (behavior was exhibited by calibre)
Click to expand...
Click to collapse
Thanks a lot for your answer. Sorry I don't know much yet about all this so my questions might be silly!
1) I installed touchegg but I don't know how to make it work
2) I have no keyboard in any app I installed (caja, gedit, firefox, ...)
Another question: I have a bq E4.5 and although I have 3.5G of free space on my internal memory the space available for apt-get-ed apps is much smaller (I have 50M left after installing just those few apps above). So no way to try libreoffice or other heavier app. Do you know if there is a solution for that?
Thank you very much!
takri said:
2) I have no keyboard in any app I installed (caja, gedit, firefox, ...)
Click to expand...
Click to collapse
If you use the matchbox setup I described above then you should have a keyboard.
Another question: I have a bq E4.5 and although I have 3.5G of free space on my internal memory the space available for apt-get-ed apps is much smaller (I have 50M left after installing just those few apps above). So no way to try libreoffice or other heavier app. Do you know if there is a solution for that?
Click to expand...
Click to collapse
This website describes a tweak to put the apt cache on an external SD card. It's in German, but the command lines should be clear enough. Let us know how it goes.
https://wiki.ubuntuusers.de/Ubuntu_Touch/Terminal/#Freien-Speicher-beobachten
You would need to run touchegg in the wrapper. Sadly wth keyboard, the only applications that will get the system keyboard are QT based applications. GTK+ and other applications will require onboard to be installed. I messed around with trying to install maliit-context-gtk2 to get the system keyboard to show in all apps, but that broke the keyboard completely.
Remember XMir is better used with a physical keyboard since it doesn't trigger the Ubuntu keyboard for everything.
You can also make the system img bigger if using MultiROM: you simply run e2fsck -fp /path/to/Ubuntu.IMG and resize2fs <target size> /path/to/Ubuntu.IMG.
ShadowEO said:
You would need to run touchegg in the wrapper.
Click to expand...
Click to collapse
I've played around with this a bit, but I can't get touchegg to work. I start an xmir application, then log in via ssh from my desktop. After setting the DISPLAY variable, I can start more X applications ok. After starting touchegg I see an output like this:
Code:
Reading config from "/home/phablet/.config/touchegg/touchegg.conf"
Try to make a multitouch gesture. If everything goes well the information about the gesture must appear
[+] Avaliable gesture:
Name -> Flick
[+] Avaliable gesture:
Name -> Drag
[+] Avaliable gesture:
Name -> Pinch
[+] Avaliable gesture:
Name -> Rotate
[+] Avaliable gesture:
Name -> Tap
[+] Avaliable gesture:
Name -> Touch
I assume that I am supposed to see some more output when a touch gesture is recognised by touchegg, but nothing ever shows up.
I can see touch events with either xinput or evtest
Code:
$ xinput test "xmir-fake-touch-pointer:0"
motion a[0]=36317 a[1]=42290
button press 1
motion a[0]=36590 a[1]=41730
motion a[0]=36645 a[1]=41275
motion a[0]=36536 a[1]=40469
motion a[0]=36263 a[1]=39524
motion a[0]=35935 a[1]=39034
motion a[0]=34897 a[1]=38019
motion a[0]=33532 a[1]=36934
motion a[0]=32713 a[1]=36303
motion a[0]=31839 a[1]=35778
motion a[0]=31293 a[1]=35533
motion a[0]=30856 a[1]=35323
motion a[0]=30638 a[1]=35253
motion a[0]=30419 a[1]=35148
motion a[0]=30255 a[1]=35078
motion a[0]=29928 a[1]=34903
motion a[0]=29873 a[1]=34868
motion a[0]=29873 a[1]=34868
motion a[0]=29873 a[1]=34868
button release 1
Code:
$ evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "elan-touchscreen"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event type 3 (EV_ABS)
Event code 47 (ABS_MT_SLOT)
Value 0
Min 0
Max 9
Event code 48 (ABS_MT_TOUCH_MAJOR)
Value 0
Min 0
Max 31
Event code 53 (ABS_MT_POSITION_X)
Value 0
Min 0
Max 1343
Event code 54 (ABS_MT_POSITION_Y)
Value 0
Min 0
Max 2239
Event code 57 (ABS_MT_TRACKING_ID)
Value 0
Min 0
Max 65535
Event code 58 (ABS_MT_PRESSURE)
Value 0
Min 0
Max 255
Properties:
Property type 1 (INPUT_PROP_DIRECT)
Testing ... (interrupt to exit)
Event: time 9936.473027, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 1159
Event: time 9936.473088, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 12
Event: time 9936.473088, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 27
Event: time 9936.473118, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 338
Event: time 9936.473118, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 1059
Event: time 9936.473149, -------------- SYN_REPORT ------------
Event: time 9936.509709, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 11
Event: time 9936.509709, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 43
Event: time 9936.509709, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 351
Event: time 9936.509739, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 1061
Event: time 9936.509739, -------------- SYN_REPORT ------------
Event: time 9936.512791, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 46
Event: time 9936.512791, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 357
Event: time 9936.512791, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 1063
Some websites point to synclient for the configuration of touchegg, but that doesn't seem to work in Xmir:
Code:
$ synclient
Couldn't find synaptics properties. No synaptics driver loaded?
Does anyone else have more luck with touchegg?
While researching it, I stumbled over references to xSwipe, but I haven't looked into that any further.
ShadowEO said:
You would need to run touchegg in the wrapper. Sadly wth keyboard, the only applications that will get the system keyboard are QT based applications. GTK+ and other applications will require onboard to be installed. I messed around with trying to install maliit-context-gtk2 to get the system keyboard to show in all apps, but that broke the keyboard completely.
Click to expand...
Click to collapse
Just to reiterate, the matchbox-keyboard works fine for me!
Oh, and one thing I wanted to share: The firefox extension Grab and Drag allows a more natural touch screen style drag-to-scroll.
I completely forgot the matchbox keyboard while writing that reply, I'm not sure what's going on with touchegg as I haven't had a chance to play with it on Ubuntu touch. It could be that XMir isn't actually passing that much information about touch events.
matchbox-window-manager struggle
I am on the new Aquarius m10 Ubuntu tablet.
Tried to run tome applications and realized the X11 and Mir problem.
Came across your solution! Thank you for sharring!
Well, I dont seem to be able to install matchbox-window-manager
It shows a lot of missing dependencies and I am not abble to install them manually either..
The following packages have unmet dependencies:
matchbox-window-manager : Depends: libmatchbox1 (>= 1.7-1) but it is not going to be installed
Depends: libstartup-notification0 (>= 0.2) but it is not going to be installed
Depends: libxsettings-client0 but it is not going to be installed
Any light?? Thank you very much
eskizon said:
I am on the new Aquarius m10 Ubuntu tablet.
Tried to run tome applications and realized the X11 and Mir problem.
Came across your solution! Thank you for sharring!
Well, I dont seem to be able to install matchbox-window-manager
It shows a lot of missing dependencies and I am not abble to install them manually either..
The following packages have unmet dependencies:
matchbox-window-manager : Depends: libmatchbox1 (>= 1.7-1) but it is not going to be installed
Depends: libstartup-notification0 (>= 0.2) but it is not going to be installed
Depends: libxsettings-client0 but it is not going to be installed
Any light?? Thank you very much
Click to expand...
Click to collapse
Mhm, not sure. You do have set it to read-write and you did an apt update, right?
doniks said:
Mhm, not sure. You do have set it to read-write and you did an apt update, right?
Click to expand...
Click to collapse
Thanks for sharing this info! I also own the M10 ubuntu tablet and try to run some X11 apps.
I am able to apt-get matchbox-window-manager. But it won't start and says it can't find the display.
Running either:
Code:
matchbox-window-manager
matchbox-window-manager -d :0
as a normal user or root always returns: "can't open display! check your DISPLAY variable.".
ubuntu-pocket-desktop is up to date and I also set the DPI in ~/.Xdefaults.
What could be the reason it can't find the display? What could I try?
Tazard4 said:
What could be the reason it can't find the display?
Click to expand...
Click to collapse
You don't have an X server running. At least not at :0.
What could I try?
Click to expand...
Click to collapse
Follow the instructions in the original post or in my post #4.
Bumping this thread as I've edited the OP with the official instructions for running Legacy X Applications on Ubuntu Touch. As well as information about getting the system maliit-based OSK showing in X Applications (It's not that great though, you still may have better luck with matchbox-keyboard/on-board, but not sure how you'd even start those in Libertine.)

Copying english voice prompt files to WOS 2.0 ?

I really want to switch to WOS 2.0, but the one thing preventing me from doing so is that the voice prompt (when running with bluetooth headphones), would be in chinese.
I know that pacefied has english voice prompts (or had, as I believe it's not working in the most recent versions)
So my question is: is it a simple case of copying over some english voice files to the watch?
Could I install WOS 2.0 and then after installation copy the english files ?
I did replace the chinese voiceprompts with the english ones in the NewWearSport.apk, installed the rooted spanished version from here:
https://www.htcmania.com/showthread.php?t=1412777
and replaced the NewWearSport.apk via adb.
Everything installed well and is working well but I don't hear any voiceprompts. Since I don't have that much outdoor activities now due to an injury I couldn't check, why the voiceprompts are not working. I guess it is better to wait for Saratoga79 to have it done.
nhedgehog said:
I did replace the chinese voiceprompts with the english ones in the NewWearSport.apk, installed the rooted spanished version from here:
https://www.htcmania.com/showthread.php?t=1412777
and replaced the NewWearSport.apk via adb.
Everything installed well and is working well but I don't hear any voiceprompts. Since I don't have that much outdoor activities now due to an injury I couldn't check, why the voiceprompts are not working. I guess it is better to wait for Saratoga79 to have it done.
Click to expand...
Click to collapse
You mean you couldn't hear the voice prompts when your bluetooth headphones were connected? Could you hear chinese voice prompts instead?
I realise that Saratoga could probably solve this problem fairly easily (that guy really seems to know what he's doing), but I don't want to keep asking him cos I realise he's busy.
I feel like it must be just a case of replacing files in the file system. Or is it not that simple?
Voiceprompts are in the NewWearSport.apk integrated. I replaced the Chinese ones with the English ones. I didn't check the Chinese ones before. You have to open the apk files to do so. For this you can use several tools. Since my manipulated apk did install properly I guess it is save to assume, that I did it allright.
nhedgehog said:
Voiceprompts are in the NewWearSport.apk integrated. I replaced the Chinese ones with the English ones. I didn't check the Chinese ones before. You have to open the apk files to do so. For this you can use several tools. Since my manipulated apk did install properly I guess it is save to assume, that I did it allright.
Click to expand...
Click to collapse
I see. My assumption was as follows:
When you install an apk, the files are unzipped to the android file system somewhere (e.g. a newwearsport/voiceprompt folder or something). I thought that (without installing a new apk) you could just copy english files directly to the folder. Perhaps there is some technical reason why this isn't possible. I know very little about this stuff.
The version of the voice files in EN is missing some phrases in the new sport app, but the version in Spanish seems to be complete. I will do some tests today, trying to use ES+EN, so no words in CN...
le_lutin said:
When you install an apk, the files are unzipped to the android file system somewhere (e.g. a newwearsport/voiceprompt folder or something). I thought that (without installing a new apk) you could just copy english files directly to the folder.
Click to expand...
Click to collapse
I just had a look on the watch to be on the safe side.
This quoted assumption is wrong. The only trace of the NewWearSport.apk I found was under:
\system\app\NewWearSport\NewWearSport.apk.
Where is a Subfolder mips which contains the actual code as odex file which I didn't touch.
We have some traces in the data folder :
\data\data\com.huami.watch.newsport
but not the voicefiles. So in my opinion the only way to get to this files is via replacing them in the NewWearSport.apk and installing the new version of this apk.
.
nhedgehog said:
I just had a look on the watch to be on the safe side.
This quoted assumption is wrong. The only trace of the NewWearSport.apk I found was under:
\system\app\NewWearSport\NewWearSport.apk.
Where is a Subfolder mips which contains the actual code as odex file which I didn't touch.
We have some traces in the data folder :
\data\data\com.huami.watch.newsport
but not the voicefiles. So in my opinion the only way to get to this files is via replacing them in the NewWearSport.apk and installing the new version of this apk.
.
Click to expand...
Click to collapse
Thanks man - you know this stuff better than I do!
lfom said:
The version of the voice files in EN is missing some phrases in the new sport app, but the version in Spanish seems to be complete. I will do some tests today, trying to use ES+EN, so no words in CN...
Click to expand...
Click to collapse
Sounds good!
I just did a quick and dirty replace of the voices with ES + EN, still a few phrases in CN but I think that all of them are used only for VO2max which is deactivated on Pace.
DISCLAIMER
** Although I have tested the procedure, if you do it then you do on your own risk. I am not responsible for any errors or damaged caused. **
Requires: WOS 2.0.6.12 set to "en" + adb + root, code is for macOS/Linux, probably on Windows it will work if you use "adb.exe" instead of "adb" (untested), apk file must be in current directory.
Code:
adb root
adb remount
adb shell mv /system/app/NewWearSport/NewWearSport.apk /system/app/NewWearSport/NewWearSport.apk_OLD
adb push NewWearSport.apk /system/app/NewWearSport/
adb shell chmod 0644 /system/app/NewWearSport/NewWearSport.apk
adb remount
adb reboot
To revert:
Code:
adb root
adb remount
adb shell rm /system/app/NewWearSport/NewWearSport.apk
adb shell mv /system/app/NewWearSport/NewWearSport.apk_OLD /system/app/NewWearSport/NewWearSport.apk
adb remount
adb reboot
EDIT: attached file removed, please see other post in this thread with all EN version and scripts to install/uninstall.
lfom said:
I just did a quick and dirty replace of the voices with ES + EN, still a few phrases in CN but I think that all of them are used only for VO2max which is deactivated on Pace.
DISCLAIMER
** Although I have tested the procedure, if you do it then you do on your own risk. I am not responsible for any errors or damaged caused. **
Requires: WOS 2.0.6.12 set to "en" + adb + root, code is for macOS/Linux, probably on Windows it will work if you use "adb.exe" instead of "adb" (untested), apk file must be in current directory.
Code:
adb root
adb remount
adb shell mv /system/app/NewWearSport/NewWearSport.apk /system/app/NewWearSport/NewWearSport.apk_OLD
adb push NewWearSport.apk /system/app/NewWearSport/
adb shell chmod 0644 /system/app/NewWearSport/NewWearSport.apk
adb remount
adb reboot
To revert:
Code:
adb root
adb remount
adb shell rm /system/app/NewWearSport/NewWearSport.apk
adb shell mv /system/app/NewWearSport/NewWearSport.apk_OLD /system/app/NewWearSport/NewWearSport.apk
adb remount
adb reboot
Click to expand...
Click to collapse
You're a legend! Will try this out as soon as I get a chance.
Thanks!
le_lutin said:
You're a legend! Will try this out as soon as I get a chance.
Thanks!
Click to expand...
Click to collapse
Please test the attached file, all voices in EN high quality, with scripts to install/remove for macOS, Linux and Win. I haven't tested the BAT scripts, if someone test them, please report back. Thanks.
DISCLAIMER
** Although I have tested the procedure, if you do it then you do on your own risk. I am not responsible for any errors or damaged caused. **
Requires: WOS 2.0.6.12 set to "en" + adb + root (permanent or use temporary)
- Unpack file
- Open command line and change directory to the contents of the file
- To install run "sh install_en_voices.sh" for macOS/Linux or "install_en_voices.bat" for Windows
- To uninstall run "sh remove_en_voices.sh" for macOS/Linux or "remove_en_voices.bat" for Windows
When reboot, watch will re-optimise all app, it's normal, simply wait. No data will be affected.
lfom said:
Please test the attached file, all voices in EN high quality, with scripts to install/remove for macOS, Linux and Win. I haven't tested the BAT scripts, if someone test them, please report back. Thanks.
DISCLAIMER
** Although I have tested the procedure, if you do it then you do on your own risk. I am not responsible for any errors or damaged caused. **
Requires: WOS 2.0.6.12 set to "en" + adb + root (permanent or use temporary)
- Unpack file
- Open command line and change directory to the contents of the file
- To install run "sh install_en_voices.sh" for macOS/Linux or "install_en_voices.bat" for Windows
- To uninstall run "sh remove_en_voices.sh" for macOS/Linux or "remove_en_voices.bat" for Windows
When reboot, watch will re-optimise all app, it's normal, simply wait. No data will be affected.
Click to expand...
Click to collapse
Nice work, will add this to next WOS ROM.
Btw, note that I had some problems with voices using different bitrate, frecuency or channel number comparing to stock CN voices. I face several Bluetooth issues due to this, even bluetooth disconnections, so be advised.
Saratoga79 said:
Nice work, will add this to next WOS ROM.
Btw, note that I had some problems with voices using different bitrate, frecuency or channel number comparing to stock CN voices. I face several Bluetooth issues due to this, even bluetooth disconnections, so be advised.
Click to expand...
Click to collapse
Thanks. And thank you for all the work you've done for the Amazfit community as well. No problems with my testings yesterday, I did a walk and also indoor running for testing. But this was the initial version, a quick build for testing purposes. Many of phrases can be improved, maybe it's better to wait until it's finished.
Regards
I tried it today while running. I got no voicealerts.
Settings:
Bluetooth headset connected but no musicplayer started (music playing is working with bluetooth headset [verified]).
Run - Settings - Training target (not set)
- Alerts - Lap Alert - on
- HR Alert - above 170
- HR Zone - off
- Auto Lap Alert - on
- Pace Alert - off
more settings - Voice prompt - on
- Auto Pause - off
- Auto Lap - off
- Realtime Stats - Heartrate
- Data Screen - 6fields
- 3D Data - on
- BG Color - white
nhedgehog said:
I tried it today while running. I got no voicealerts.
Click to expand...
Click to collapse
I have tested with walk and indoor run and it worked with me, enabled most voice alerts and I could hear warning on pace, heartrate and distance. If you don't connect the headphones in the Accessories part of the activity settings, then try to start playing a music before you start the activity and then pause it using the headset to make sure it's activated.
nhedgehog said:
I tried it today while running. I got no voicealerts.
Settings:
Bluetooth headset connected but no musicplayer started (music playing is working with bluetooth headset [verified]).
Run - Settings - Training target (not set)
- Alerts - Lap Alert - on
- HR Alert - above 170
- HR Zone - off
- Auto Lap Alert - on
- Pace Alert - off
more settings - Voice prompt - on
- Auto Pause - off
- Auto Lap - off
- Realtime Stats - Heartrate
- Data Screen - 6fields
- 3D Data - on
- BG Color - white
Click to expand...
Click to collapse
Try with music, if there is a problem with voice files music will stop playing
Thanks for the support.
Headphones were connected and playing music fine before.
I think I have an idea whats wrong.
1) I run with airplane mode on but bluetooth activated. (PaceON)
2) I did not use the settings accessories to connect with the headphones but did it before with music.
3) Auto Lap - off
Have test this theorie further.
Saratoga79 said:
Nice work, will add this to next WOS ROM.
Btw, note that I had some problems with voices using different bitrate, frecuency or channel number comparing to stock CN voices. I face several Bluetooth issues due to this, even bluetooth disconnections, so be advised.
Click to expand...
Click to collapse
NewWearSport concatenates all the mp3 files needed to form the phrase in a temporary mp3 file.... these means that all mp3 files need to be same bitrate and with no headers (xing, id3, VBRI or another tags at the start or end of the file)

Question how to use perfetto (or any equivalent known to mankind) offline ON ANDROID to READ a system trace

so I have been searching everything I could think of on the internet trying to figure out how to read a system trace natively made by Android 13 on my Pixel 6 on the phone itself because I'm not with my computer and can't use it and it doesn't seem to be possible. now there's a web page application but it requires that you be connected to the internet and requires that your system traces be minuscule tiny or that you learn how to use an Android phone without a graphic user interface because I'm sorry My bad I'm not a programmer I don't really want to be and they want me to code something into my browser on my phone I don't even know how to do that just so that I can open a file as large as the trace I made I just want to figure out why my phone is doing something that it shouldn't be doing(several somethings actually randomly failing to allow internet connection to my Xbox beta app randomly shutting down screen recordings in the middle and booting my screen black and kicking me out of Android so that I have to log back in randomly running a work profile I didn't install the list goes on) so I can stop it from doing that please if anyone out there knows anyway at all on this Earth to open and read a file who's extension is perfetto-Trace without plugging into a computer just like you know on my phone I swear to God I'll do anything I'm begging you please help a ***** out cuz this girl is on her last ragged edged nerve over all this it's too much for one girl to figure out
perfetto is an open source tool provided by google. you can download the binaries they already provided for android. you can download your device specific binaries
Release Perfetto v35.0 · google/perfetto
v35.0 - 2023-06-07: Tracing service and probes: * Compression has been moved from perfetto_cmd to traced. Now compression is supported even with write_into_file. The `compress_from_cli`...
github.com
you need to install a terminal emulator , I suggest the Termux from fdroid.
then setup and initialize everything in Termux (I can't explain now, you can google it)
the from the extracted zip file of perfetto binaries, copy them to termux
``cp -r [directory path of the extracted] .``
``cd [directory name of the extracted] ``
The supported output formats are:
text - protobuf text format: a text based representation of protos
json - Chrome JSON format: the format used by chrome://tracing systrace: the ftrace text format used by Android systrace
Converting to systrace text format
./traceconv systrace [input proto file] [output systrace file]
example, systrace format are more human readable and easier
./traceconv systrace sample-trace.perfetto-trace sample-trace.systrace
Same way,
Converting to Chrome Tracing JSON format which is so familiar
./traceconv json [input proto file] [output json file]
is this way it will give a human readable output. now you can view output with a text editor
although reading a big file of 50-100MB May not be possible because of chunk issue. but Mostly it will show otherwise no hope. there's very limited tools out there
You can inbox me if you need assistance.
[Its my first answer on XDA]

Categories

Resources