yashsingh1/xdaforums huggingface dataset:
[Mi 3 Q&A, Help & Troubleshooting] junwuu:
Hi there

I've been with my Mi3 from China for 6 months and am really happy with it. However, Google Maps doesnt work in China, though it works outside China. And Google location history does not work at all. None of my locations are being tracked. Is there any solution to this?
[Mi 3 Q&A, Help & Troubleshooting] zelendel:
Not until China and Google come to an agreement and stop fighting each other.
[Mi 3 Q&A, Help & Troubleshooting] se0067:
I experienced the same issue in Shanghai and the Jiangsu province. To get it to work you need WiFi access and either a VPN-connection or the app Psiphon. Both unfortunately do not get stable connections on the mobile network (I used China Mobile. I can't tell about Unicom). Surprising side note: 3 weeks ago in Shenzhen I had no issues at all to access all Google services. The only problem - like everywhere in China - Google maps and satellite pictures are not in sync. The tricky solution here: Use a browser together with the address ditu.google.com instead of maps.google.com. Everything will be in Chinese, there are less options available but maps and sat-pix are perfectly in sync.
[HTC One X+] Xyzven:
First, If this has been posted before, please provide the reference as I apparently type too generic a search criteria and time out the server. LOL

Second, don't troll or flame because I am trying to figure this out and after much searching, I could not find my answer which is why I'm asking the community

Third, don't highjack this thread UNLESS your symptoms are very similar to mine and the solutions provided by others do not work.

Specifics:

HTC One X+ Canadian LTE version.

Bootloader: Unlocked

EVITARE_UL PVT SHIP S-ON RL

HBOOT: 1.40.0000

CPLD-None

MICROP-None

RADIO-SSD: 2.14.55.11

eMMC-bootmode: disabled

CPU-bootmode: disabled

HW secure boot: enable

MODEM TYPE: MDM9215M

Dec 28 2012, 22:18:14

Variables:

I got this phone from a person that tried to do a custom rom install and failed. He thought it was a USB port issue (the phone is in bad shape). He's got TWRP 2.6 on it and managed to clear out all copied files from the sdcard. I do not know which ROM he tried, I do not know what method he used, and he's very... eager to distance himself from the whole ordeal (he went out and got another phone post haste). I have got the phone and would like to resurrect it.

Symptoms:

I use ubuntu 14.4 LTS specifically because I don't like windows drivers and ish.

I've put the phone into recovery mode with TWRP and cannot be recognised by LSUSB. Mounting the sdcard gives me nothing.

I've put the phone into HBOOT aka bootloader mode and cannot be recognised by lsusb

I've put the phone into fastboot mode (and the mode changes to fastboot usb when connected) and cannot be recognised by lsusb

fastboot does not find it and neither does adb. I cannot sideload since adb doesn't see it.

There is no ROM to play around with because apparently the prior owner decided to try and rewipe everything and it ends up just showing the HTC logo screen and power button press gets the back/home keys flashing.

ISSUE:

No matter what I do, I cannot get the computer to see the phone. USB port works as I can charge the battery, and the fastboot mode does change to fastboot usb when plugged (unless one of the pins is not functioning). I've changed computers (all running ubuntu 14.4) and cables too to insure it's not the hardware. Only items left are:

a) the usb port is bad

b) a trace or two on the mobo has been damaged (no signs of tampering)

c) water damage?? (no signs but could be a reason why)

d) the phone is physically fine, the software maybe jinxed somehow?

Any help would be appreciated. I've tried to even use htc's latest drivers on windows (ugh) and even a signed ruu to see if I could brick this thing somemore and then bring it to life.
[HTC One X+] Lloir:
Sounds like a)

though have you tried sudo fastboot blah blah

Also try a different USB cable... Only thing I can think of right now, I use Arch and my X+ show's up straight away
[HTC One X+] Xyzven:
For sure I've sudo... I use "sudo -i" so that I don't have to sudo every command (in case I forget). Also wrote that I tried various computers and cables. Ubunut has never failed any phone detection so I'm pretty sure it's not linux. my HTC One X shows up fine.
[HTC One X+] Xyzven:
Okay, here's an update. I took apart the phone, connected it to a USB cable, and tested each pin on the mobo to the end of the usb cable (the HTC cable that came with it) to check for continuity. This would insure that my micro-usb port is working correctly on the phone. It's not a physical disconnect so what else could it be? Obviously the phone sees that it's being connected to a computer when the "FASTBOOT" status changes to "FASTBOOT USB" on the screen.

Any ideas android gurus or have I really stumped everyone?

regards,

X
[JASJAR, XDA Exec, MDA Pro General] gamermad:
I know that there is java for linux, and I think linux is out for universal so has anyone tried the java yet

unless its version is pocket linux
[Galaxy S 4 Q&A, Help & Troubleshooting] icefun:
Hello,

I am facing weird problem, I am not able to install custom recovery, I have tried almost everything.. nothing helped.

I am still getting stock recovery..I have tried to flash it via Odin, via some apps, unfortunatelly nothing worked.

My Samsung Galaxy S4 i9505 is running KK 4.4.2.

Any idea?

Thank you.
[Galaxy S 4 Q&A, Help & Troubleshooting] FPSUsername:
I had this problem too. keep flashing cwm recovery through the app (needs root I think). and reboot into recovery, once you get cwm you can flash a custom rom or another recovery like twpr or philz.
[Galaxy S 4 Q&A, Help & Troubleshooting] Bodzi:
s4 i9505 stock KK

I have that problem too. I have stock KK 4.4.2 XXUGNG8 updatet ota. When i try to flash flashable zip file cwm of philz or twpr i get some error like:

E:footer bad

Mds check

Something like that and cant flash it. I tryed with odin but no luck. Does anyone have same problem?
[Galaxy S 4 Q&A, Help & Troubleshooting] Xehk:
I had this problem to

I fixed it by checking te root options.

If u use a root app, make sure it gives always root acces.

After this, install a custom recovery rom

After that you'll have no problem installing a custom ROM

Good luck.
[Galaxy S 4 Q&A, Help & Troubleshooting] Bodzi:
But my phone is not rooted, its new, with stock recovery, knox 0x0 still....

Have any idea?
[Galaxy S 4 Q&A, Help & Troubleshooting] icefun:
Ok, but what if my phone is not rooted, how am I supposed to root it? When I tried CF-Auto-Root my phone started to reboot randomly during the phone call.
[Galaxy S 4 Q&A, Help & Troubleshooting] icefun:
I have found one solution, but I am not sure if it works, it says that if you are flashing custom recovery via odin, you have to take out the battery after the flash is done so you won't allow your phone to restart and rewrite the recovery back to stock. Have anyone heard about it?
[Galaxy S 4 Q&A, Help & Troubleshooting] Xehk:
No, no idea.

Thats crappy.

Only know how I fixed it
[Galaxy S 4 Q&A, Help & Troubleshooting] Lennyz1988:
Just uncheck auto-reboot before you flash the recovery. That will fix your problem.
[Galaxy S 4 Q&A, Help & Troubleshooting] icefun:
I have tried it, but it didn't help :( still looking for solution, is there any way how to RENAME RECOVERY RESTORE FILES so I can finally flash custom recovery? (non-rooted phone)

OK, so the solution that worked was simple and I have already mentioned it, you have to take out you battery on samsung galaxy s4 logo, before it reboots.
[Galaxy S 4 Q&A, Help & Troubleshooting] Dark Blitz:
My solution

Hi I had the same problem too,

I solved it this way: (My phone was rooted)

Download the .zip file from the recovery you want (I used CWM 6.0.4.7)

Next download 'SGS4 flasher' from the playstore.

SGS4 flasher needs root (I think) andyou can flash your recovery through that app.

Next boot into the recovery and you should probably end up in your custom revovery every time now.

If you don't end up in your custom recovery, download ROM manager and then choose the option boot into recovery.

This worked for me at least :laugh:
[General Topics] vaibhmun:
Hi folks! I am a new to Android Development!! I just want to know, how can i create custom ROM for my Sony Xperia C C2305?? I have a locked bootloader as Xperia C's bootloader cannot be unlocked. I want to learn the basics of the Android development... I want to start the basics by creating a flashable zip stock ROM for my Xperia C...! Please help guys!! Thanks in Advance!
[Wear OS Software and Hacking General] joschi70:
Having a LG G Watch for a while I thought that it would be interesting to run code directly on the watch without having to create an APK. Sometimes I just wanted to run some code snippets on the watch and view the result instantly.

Creating a complete project, compiling and deploying the APK on the Wear device is quite time consuming and somewhat annoying.

I tried to write an app to execute BeanShell code directly on the Wear device. This is all experimental and the possibilities are quite limited compared to an regular app, but for an execution of some code snippets that seemed to be a good idea.

The result is Wear Shell, an app that consists of a mobile and a Wear part. The mobile part moves the code for execution to the smart watch, collects the result and passes it to the calling application.

So I hope owners of an Android Wear smart watch have fun with the app and find it as interesting as I did to explore things from the perspective of a watch.

The complete blog post can be found here: Wear Shell - Exploring Android Wear

Now also available on Google Play.

Current Version

0.5.0

Download

WearShell APK

Extensions

Additional BeanShell Commands

Screenshot

[IMG="WearShell Web Interface with Wear System Info"]https://lh3.googleusercontent.com/ndQSIzZfh3D__HkN2mDlkUZJRE-LGyUtAiMFZuUdQRPV75Q5VKGt_qfO69GAfJxI_Z3y=h700[/IMG]
[Wear OS Software and Hacking General] itsJohnuno:
Does this run java code only?

I had an idea of displaying web view info...like some nfl scores and stats think that be pretty sweet

After reading I think I found my answers, still pretty cool
[Wear OS Software and Hacking General] abuttino:
Thank you so much. You don't understand what a pain in the ass it is to have to get on my laptop every time I want to execute a simple command in the watch.
[Wear OS Software and Hacking General] qingtest:
I just realized how great this project was, yet so long time it has raised not much attention... The barrier for most readers may be the complicated JAVA source codes, where a lot of people may choose easier Python when using sl4a.

well, I just started as a newbie. My little suggestion is to add some notification push examples (main function of watch isn't it?) to attract more people.

For example I wrote a toast

import android.widget.Toast;

Toast.makeText(context, "message", Toast.LENGTH_SHORT).show();

I am also wondering if it is possible to popup or send a image to watch..

I need some time to understand the intent. But honestly I will appreciate if anyone can tell me how to call it through "am" or "tasker intent".

Besides, is there an option to hide the running popup?
[Wear OS Software and Hacking General] qingtest:
After half day of trying, I found it hard to go on. The main reason is there lacks a tutorial explaining what commands and libraries are available and what are not.

For example, the desktop version I can use

classBrowser()

but no longer available in wear (apparent for a window, but what about others..).

For example, I can

import android.widget.Toas

t but cannot import

android.support.v4.app.NotificationCompat.WearableExtender

; Besides, the error output is no so user-friendly that error only shows when later calling.

As a beginner should not use such an ineffective way that I try every command/library to see if there is an error.

Any resources for helping?
[Wear OS Software and Hacking General] joschi70:
Androd Wear supports almost the complete Android API.

Here are the exceptions:

android.webkit

android.print

android.app.backup

android.appwidget

android.hardware.usb

The Wear app does not include any support library, so android.support.v4 classes are not available.

Nevertheless you should be able to use notifications the same way you do on a normal Android device.

Here is an example:

import android.app.Notification;
import android.content.Context;

noti = new Notification.Builder(context)
.setContentTitle("Title")
.setContentText("Text")
.setSmallIcon(com.android.internal.R.drawable.emo_im_cool)
.build();
​
notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(3, noti);​
[Wear OS Software and Hacking General] matejdro:
I can't get exec intent to work. I tried Tasker, am and custom app and none seem to work.

Intent intent = new Intent("de.fun2code.android.wear.shell.EXEC");
intent.putExtra("bsh", "source(\"/sdcard/alwaysoff.bsh\");");
sendBroadcast(intent);

(File is there, if I execute same exact code via web interface it works.)

Any ideas?
[Wear OS Software and Hacking General] letsgoflyers81:
I've noticed that WearShell only works when my phone's screen is on and unlocked. Thanks to qingtest and matejdro I have Tasker toggle theater mode in certain conditions, but it doesn't work if my phone's screen is off or it's locked. Secure Settings can allow Tasker to turn on the screen, but I haven't found anything to swipe at the lock screen to unlock it. That being the case, it'd be nice if WearShell could send the command while the phone is locked.
[Wear OS Software and Hacking General] Alahdal:
[MENTION=2829111]joschi70[/MENTION] I followed the instructions in this topic http://xdaforums.com/showthread.php?t=3098425 and I am using Tasker to send an intent. However, I noticed that sometimes the command is not sent to the watch if the phone is off and when I open the phone I find a message "Communicating with Wear Device".

View attachment 3460848

Posted via Tapatalk
[Wear OS Software and Hacking General] joschi70:
The Result Intent requires the phone to be unlocked.

I'm currently working on a new version that supports Broadcasts which should hopefully solve this issue.

The new version will support background service, an option to start the service on boot and an enhanced web interface.

Hope I can finish the new version in a couple of weeks.
[Wear OS Software and Hacking General] joschi70:
WearShell 0.4 is available for download.
[Wear OS Software and Hacking General] Alahdal:
Where can I find the change log. Is the intent result still needs the phone to be unlocked.

Posted via Tapatalk
[Wear OS Software and Hacking General] joschi70:
The new version supports broadcasts, so the phone does not need to be unlocked.

The below info is also available inside the web interface.

Sending a Broadcast

Request

Action: de.fun2code.android.wear.shell.EXEC

Request String Extra: bsh

RequestCode Integer Extra: requestCode (optional)

Response

Intent Filter: de.fun2code.android.wear.shell.EXEC_RESULT

RequestCode Integer Extra: requestCode

Response String Extra: result

Hope this is working as expected.
[Wear OS Software and Hacking General] Alahdal:
Thanks a lot. It is working fine and serve my purpose.
[Wear OS Software and Hacking General] ShadowEO:
I can't seem to receive the result intent inside of Tasker. I have tasker sending a piece of inline beanshell to the watch, but I can't seem to get any response. That said, my beanshell script doesn't return anything, could that be the reason? Or should I still be receiving something as a result? I have attempted to clone the %result variable that the userguide says should be created to %RESULT (global) but it's empty when I check.

EDIT: My apologies, I answered my own question and got the result to appear in a test task.

By the way, great app! You solved my problem with not being able to automate theater mode.
[Wear OS Software and Hacking General] vingar:
hello, is possibile send file smartphone to smartwatch?

or play sound file of smartphone in to smartwatch?

thanks

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Wear OS Software and Hacking General] Flagers:
Cool! I will try this sometime.
[Wear OS Software and Hacking General] pablo71:
How Do You Send A Browser Intent To Wearshell From Tasker?

First off this app has so much potential and it's so cool. I admit I don't have much skill with Java or scripting, and I've looked all over the Internet for a tutorial on how to do this but I can't find one. All I want to know is how to send a browser intent to wear shell from Tasker. I put UC mini browser on my Huawei watch and it is working, and I can run Google searches from a tasker APK that I put on the watch, but that's a little slow and consumes a lot of battery. If I knew how to send an intent from Tasker to wearshell I think that would be faster and save battery. I have AutoVoice set up perfectly to intercept Google Now commands on my Galaxy Note 3, but the ability to backfeed commands to wearshell would be so awesome. I also think it is so cool that this app will allow commands to be sent to my watch without debugging being enabled.
[Wear OS Software and Hacking General] joschi70:
The BeanShell code for opening an URL should look like this:

import android.content.Intent;
import android.net.Uri;

uri = "http://xda-developers.com";

intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
[Wear OS Software and Hacking General] pablo71:
I appreciate the help. I input this into the "data" section of tasker's 'send intent' action, as well as the 'extra' section. it did open the wearshell app on my phone showing the server is running though. thanks for helping someone with no coding knowledge. I'll keep trying variations of this.

EDIT: got it working by just putting a "bsh:" in the beginning of that code in the 'Extra' section.. this is awesome and so fast and uc mini so fast over bluetooth .. wow my projects hardly ever exceed my expectations, thanks Wearshell !
[Wear OS Software and Hacking General] pablo71:
Wearshell Tasker Recipe To Set Brightness

Modified post of ShadowEO by pablo71 for brightness

I wanted to share an easy tasker WearShell recipe with you guys for brightness

In the task, add a Send Intent action with these parameters: for FULL BRIGHTNESS setting 5 (the number 254 in following tasker intent sets it)

Action: de.fun2code.android.wear.shell.EXEC

Extra: bsh: Runtime.getRuntime().exec("su -c settings put system screen_brightness 254 ");

Brightness Setting 4 = 204

Brightness Setting 3 = 153

Brightness Setting 2 = 128

Brightness Setting 1 = 106

Lower Settings are possible, which is why the app Swapp True Dark is so good, BUT DON'T SET BRIGHTNESS SO LOW YOU CAN'T USE YOUR WATCH

I set my brightness with an autovoice command filter creatively titled "brightness," so my intent looks this:

Action: de.fun2code.android.wear.shell.EXEC

Extra: bsh: Runtime.getRuntime().exec("su -c settings put system screen_brightness %avcommnofilter ");
[Wear OS Software and Hacking General] pablo71:
How To Input Keyevent With Wearshell or Return To Homescreen

appreciate the help I've gotten so far.

anyone have idea how to send a tasker intent to wearshell to get back to the watchface/homescreen? maybe a code snippet to input keyevent 3, or 4, or 26 or something?

I've tried many variations of "bsh: input keyevent X" and "bsh:su input keyevent X" and "bsh:su input swipe 50. 200 350 200" .. I'm pretty sure I'm missing something basic .. thanks again

EDIT: figured it out, in 'Extra' put:

bsh: Runtime.getRuntime().exec("su -c input keyevent 26");
[Wear OS Software and Hacking General] vingar:
I search a solution for play sound or tts text speaker(smartwatch)

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Wear OS Software and Hacking General] Pkt_Lnt:
looks like I was mistaken
[Wear OS Software and Hacking General] vingar:
????

With intent beanshell not possible?
[Wear OS Software and Hacking General] joschi70:
Intents do work. It is a also possible to use the MediaPlayer API for playback.
[Wear OS Software and Hacking General] pablo71:
I'll find a wearshell+tasker+intent solution to play notifications through speaker using tts .. if someone could point me in the direction to start looking that would be awesome .. I know the app Smart Wear Notifications does this already, but it doesn't work on my Huawei Watch and a wearshell+tasker solution feels better for me since I could have more control over it
[Wear OS Software and Hacking General] joschi70:
TTS is possible, but I would suggest to wait for the next WearShell release. The new release should make it simpler. The new WearShell version will be out quite soon (one or two weeks).

I can then post a TTS script.
[Wear OS Software and Hacking General] pablo71:
joschi70 you are awesome! ... this sounds incredibly cool ... I've been combing through tutorials and android references all day but haven't been able to make anything work ... thank you big-time
[Wear OS Software and Hacking General] vingar:
Wonderful joschi70!

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Wear OS Software and Hacking General] pablo71:
wearshell is becoming my main method of operating my watch hands free and eyes free (I drive for a living) ... if there is a method to ensure the app on the phone and watch are always running I'd love to know it ... the apps are quite solid already and I've only experienced two times where I've had to restart the server, but if there is a way tasker can restart it if it stops I'd love to know it ...thanks again for this app
[Wear OS Software and Hacking General] joschi70:
Actually the server is only needed if you use the web API or the web interface itself.

If you use broadcasts to send commands it should work without having to start the WearShell server on the phone.
[Wear OS Software and Hacking General] pablo71:
that's cool .. the two times my commands from the phone stopped working I got them working again by starting and stopping the server on the phone app, but maybe that was just because I reopened the phone app which started IT up again .. and THAT is something I can have tasker keep an eye on .. thanks for the info

EDIT: ok, I think I see ... the phone app doesn't even need to run, it's called by the system with intents .. I just need to keep the wear app running somehow ... think I got it
[Wear OS Software and Hacking General] pablo71:
I posted a solution to get this working for text messages here, it could easily be modified for notifications, or clipboard events.

http://xdaforums.com/android-wear/d...-wearshell-t3367531/post66580329#post66580329

It's an ugly solution but it's working 'good enough' for me until the better solution arrives and I can scrap it.
[Wear OS Software and Hacking General] pablo71:
Convert Tasker Tasks or Tasker ApkApps to Java Code that can run on Wearshell

I don't know how to write code that can run on Wearshell, but I've read that apk's can be decompiled to get the java code by using dex2jar or something ... I'd like to try this, since it'd be nice to write an app in tasker then have it become a small script Wearshell can run really fast, but if anyone already knows a better way, or if this is unworkable let me know before I get too deep trying haha ... thank you
[Wear OS Software and Hacking General] joschi70:
WearShell version 0.5.0 has just been released.

I also put together some BeanShell commands for download:

https://goo.gl/2mA1uU

These commands are included:

brightness

filepull

filepush

killws

mediaplayer

openuri

tts

unzip

vibrate

volume

A short documentation of each command is available at the download location.

Hope the commands are useful ...
[Wear OS Software and Hacking General] vingar:
I have gear 2 with porting of android wear.

I have a problem,

I copy in the watch the folder bsh with new command files.

Example: open setting work.

New command tts, vibrate no!

Why? Any suggest?

Thanks