yashsingh1/xdaforums huggingface dataset:
[Verizon HTC One (M7)] NotATreoFan:
What about fastboot?
[Verizon HTC One (M7)] factor00:
Yes fastboot is working. I can see the phone info still. You said I can just RUU. I didn't realize I could do that. That's fine with me I have no issue with that.

I just re-lock the boot loader and then run the RUU from windows? Would this be the appropriate file? RUU Zip M7 WL JB 50 VZW 1.10.605.10 Decrypted from HTC1 Guru.com (I can't post the actual link do to the forum rules.) The CID and model id match what my phone says.

Thanks for all your help!
[Verizon HTC One (M7)] NotATreoFan:
I haven't done anything RUU in a while, so I don't want to steer you wrong. But I believe you can use decrypted to get everything up and running. Check the general forum for a guide on returning to stock.
[Verizon HTC One (M7)] sk842018:
Just remember to keep s-off while running the ruu
[Java for Android App Development] KrauseDroid:
I'm trying to write a file (FlappyBird2.xml in this example) into the data directory of another app (/data/data/com.dotgears.flappybird/shared_prefs.xml in this example). But the code does literally nothing. It writes the file in the own private area, but doesn't move it. Superuser works perfectly. Here's my code:

Button btncheat = (Button) findViewById(R.id.button1);
btncheat.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String path = "/data/data/com.dotgears.flappybird/shared_prefs/";
String filename = "FlappyBird2.xml";
String string = "test";
FileOutputStream outputStream;

try {
outputStream = openFileOutput(filename, Context.MODE_PRIVATE);
outputStream.write(string.getBytes());
outputStream.close();

} catch (Exception e) {
e.printStackTrace();
}

final Runtime runtime = Runtime.getRuntime();
try {
runtime.exec("su");
runtime.exec("mv " + Environment.getDataDirectory().toString() + filename + " " + path);
} catch (Exception e) {
e.printStackTrace();
}
}
});

Can anybody explain me why?
[Java for Android App Development] Masrepus:
/data needs to be remounted as rw before doing that, it is mounted as ro by default

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Java for Android App Development] CNexus:
That's incorrect, /data is always mounted as rw.
[Java for Android App Development] Masrepus:
So what is then the error within his code if just toggling su enables you to modify /data, as you suggest

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Java for Android App Development] arpitkh96:
An app is not allowed to edit other apps data unless it is working as root
[Java for Android App Development] Masrepus:
That is right, of course, but if you have a closer look at the commands he executes, you will see the 'su' command being made before everything else ;)

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Java for Android App Development] sak-venom1997:
an alternative solution :

use the chmod from busybox to change the permissions of the file to world writeable and then write to the file using standard java functions.
[Java for Android App Development] Archer:
This may or may not help - I'm very new to Java and the whole Linux side of things (25 years Windows development means I know a LOT about that, but not much outside it).

runtime.exec(new string[] {"su", "mv " + Environment.getDataDirectory().toString() + filename + " " + path});

If I'm correct then you can't execute su and then make subsequent calls as superuser. If the above doesn't change that then make a shell script and run that instead so you only have one exec call.
[Java for Android App Development] Masrepus:
Mh probably only one exec is really the thing that is needed in order to execute the following commands as su

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Java for Android App Development] Archer:
My thoughts exactly, since I expect each exec to run as a separate process, therefore granting SU rights with one will not mean you have them for the 2nd one. I'm not sure if the approach of passing an array of commands will work. I think creating a shell script and running that is probably the best method, but like I said, I'm no Java developer.
[Java for Android App Development] Masrepus:
Ah i think i have read about executing an array of commands somewhere, so i guess this will work

Ya probably that is a more elegant solution

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Java for Android App Development] arpitkh96:
I use this class to execute su commands(extracted from aokp rom control).

public class CMDProcessor {

private final String TAG = getClass().getSimpleName();
private static final boolean DEBUG = false;
private Boolean can_su;
public SH sh;
public SH su;

public CMDProcessor()
{ sh = new SH("sh"); su = new SH("su"); }

public SH suOrSH() { return canSU() ? su : sh; }

public boolean canSU() { return canSU(false); }

public class CommandResult { private final String resultTag = TAG + '.' + getClass().getSimpleName(); public final String stdout; public final String stderr; public final Integer exit_value;

CommandResult(final Integer exit_value_in) { this(exit_value_in, null, null); }

CommandResult(final Integer exit_value_in, final String stdout_in, final String stderr_in) { exit_value = exit_value_in; stdout = stdout_in; stderr = stderr_in; if (DEBUG) Log.d(TAG, resultTag + "( exit_value=" + exit_value + ", stdout=" + stdout + ", stderr=" + stderr + " )"); }

public boolean success() { return exit_value != null && exit_value == 0; }

}

public class SH { private String SHELL = "sh";

public SH(final String SHELL_in) { SHELL = SHELL_in; }

private String getStreamLines(final InputStream is) { String out = null; StringBuffer buffer = null; final DataInputStream dis = new DataInputStream(is); try { if (dis.available() > 0) { buffer = new StringBuffer(dis.readLine()); while (dis.available() > 0) { buffer.append("\n").append(dis.readLine()); } } dis.close(); } catch (final Exception ex) { Log.e(TAG, ex.getMessage()); } if (buffer != null) { out = buffer.toString(); } return out; }

public Process run(final String s) { Process process = null; try { process = Runtime.getRuntime().exec(SHELL); final DataOutputStream toProcess = new DataOutputStream( process.getOutputStream()); toProcess.writeBytes("exec " + s + "\n"); toProcess.flush(); } catch (final Exception e) { Log.e(TAG, "Exception while trying to run: '" + s + "' " + e.getMessage()); process = null; } return process; }

public CommandResult runWaitFor(final String s) { if (DEBUG) Log.d(TAG, "runWaitFor( " + s + " )"); final Process process = run(s); Integer exit_value = null; String stdout = null; String stderr = null; if (process != null) { try { exit_value = process.waitFor(); stdout = getStreamLines(process.getInputStream()); stderr = getStreamLines(process.getErrorStream()); } catch (final InterruptedException e) { Log.e(TAG, "runWaitFor " + e.toString()); } catch (final NullPointerException e) { Log.e(TAG, "runWaitFor " + e.toString()); } } return new CommandResult(exit_value, stdout, stderr); } }

public boolean canSU(final boolean force_check) { if (can_su == null || force_check) { final CommandResult r = su.runWaitFor("id"); final StringBuilder out = new StringBuilder(); if (r.stdout != null) { out.append(r.stdout).append(" ; "); } if (r.stderr != null) { out.append(r.stderr); } Log.d(TAG, "canSU() su[" + r.exit_value + "]: " + out); can_su = r.success(); } return can_su; }}
[Java for Android App Development] KrauseDroid:
I managed to solve it already. I'm using this class now:

public void RunAsRoot(String[] cmds){
Process p = null;
try {
p = Runtime.getRuntime().exec("su");
} catch (IOException e) {
e.printStackTrace();
}
DataOutputStream os = new DataOutputStream(p.getOutputStream());
for (String tmpCmd : cmds) {
try {
os.writeBytes(tmpCmd+"\n");
} catch (IOException e) {
e.printStackTrace();
}
}
try {
os.writeBytes("exit\n");
} catch (IOException e) {
e.printStackTrace();
}
try {
os.flush();
} catch (IOException e) {
e.printStackTrace();
}

Then simply call it via

String[] commands = {"command1", "command2", "command3", ...};
RunAsRoot(commands);

Thanks anyways!
[Java for Android App Development] Masrepus:
Oh okay that looks really nice :good:

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[One (M7) Q&A, Help & Troubleshooting] thekalby:
I'm looking to sell my phone, and want to return it to stock. I currently have S-Off, GPE bootloader, custom recovery, and rom.

How do I go about returning it to stock? I know I have to flash an RUU, but which one. I have super cid, so I feel flashing the Dev edition ruu would be best so there's no bloatware. Where do I find that RUU? I cant tell the difference between the RUUs in the thread.

Additionally can I run the Dev RUU even though I have the GPE bootloader. Will it replace the bootloader with the Stock HTC one?

Any other steps I have to take to return the phone to stock?
[One (M7) Q&A, Help & Troubleshooting] clsA:
here's all the steps you need and then some

http://xdaforums.com/showthread.php?t=2541082
[Nexus 5 Q&A, Help & Troubleshooting] GreenNGX:
Hi everybody, i just bought a n5 and before n5 i use evo 3d and its keyboard awesome i think im very usual to it. can anybody port htc ime for nexus 5 pls thank you now (sorry for bad english)
[Nexus 5 Q&A, Help & Troubleshooting] ArisenDrake:
This will be pretty difficult because as far as I know the HTC Keyboard relies on some Libaries from HTC Sense which is not open source. So you would have to port these Libs to Stock Android which is difficult without the source code. I had an Evo 3D too and I hated that Keyboard. Try some other Play Store Keyboards (I am using Swiftkey for example). There is a Sense 6 Rom in Development right now (NexSense), but it is a very early alpha with many functions not working.

I think there are some HTC like Keyboards in the playstore too.

EDIT: You can try this port if you want (don't know if it works): http://xdaforums.com/showthread.php?t=1844512
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Yeah that's right. On the desire, the HTC ime required nothing but from around the time of the sensation, it became framework dependant. I missed the HTC ime so much on my S3, I tried every keyboard on play to find one close to it. Smart keyboard was the closest I found and used it on my n5 too up to about a week ago. The prediction isn't great and it wore me down after about a year but it's worth a try
[Nexus 5 Q&A, Help & Troubleshooting] GreenNGX:
Thanks man its working not hd but cool
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] Lithium1986:
Hi All,

Since this is my first post, my name is Robin and my hobbies are house music, playing the guitar and video games. nice to meet you!

I require some help with flashing a custom rom to my Samsung Galaxy S Advance (GT-I9070).

My goal is to have custom Rom working. The reason to change from stock 2.3.6. to a custom Rom is that is has become too slow and unresponsive to work with. I have changed to CM11 and then to Carbon Rom, and really like it, but both have a problem with reception. This is why i post it here, i don't think it is related to just a single Rom but to my phone in general.

I tried the following:

1. Gain root access through Odin. (baseband was originally I9700XXLK2, Dutch, carrier Tele2, which uses T-mobile network. not sure if the telephone was locked to this carrier).

2. flash TWRP using Odin.

3. download CM11 and google apps and flash it using TWRP.

4. no signal and com.phone.android stopped working every minute, as well as slow response when pressing power button.

5. flashed carbon rom, same problems.

6. went to xda-devs on irc for help, a nice guy explained to me that the problem likely resides in baseband.

7. downloaded the newest stock firmware for T-mobile in the netherlands from sammobile, extracted the modem.bin,md5 (after backing up efs and modem by help of the xda-dev on irc) and flashed it through odin as PDA after creating a tar file out of mode.bin.md5 ( by command tar -H ustar -c modem.img > modem2.tar)

8. Now the problems are gone except for the fact that i still have no reception! and baseband under settings --> phone is "smallband: unknown"!

Does anyone know of a solution to my problem? I wish to get reception. Did i not flash t he new modem image right?
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] shut_down:
You must flash stock JB to get its baseband to be able to use 4.1+ ROMs. If you have I9070, beware not to install I9070P firmware, because that will hardbrick your phone.

You can get firmware from samsung-updates.com or sammobile.com and look in general section for rest of guides, you have one thread with most needed stuff.
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] Lithium1986:
Thanks! That did the trick.

So, for anyone reading this later: in order to flash a custom 4.4.2 ROM to your GT-I9070 stock 2.3.6. phone, first flash jellybean! A nice guide is here:

http://xdaforums.com/showthread.php?t=2198341
[Theme Screenshots and ZIPs] lebidou:
Hi,

This is my first ever theme, Morning, based on iOS Morning app look and feel.

link : http://mycolorscreen.com/2014/04/20/morning-8/

or : https://drive.google.com/file/d/0BzZJX2cnoNlqb244YXJaclB6Mjg/edit?usp=sharing

I hope you enjoy it !
[Theme Screenshots and ZIPs] alldroid:
looks good m8
[Theme Screenshots and ZIPs] lebidou:
Thanks !
[Windows Phone 7] Synide496:
Hello guys , I am a android user and im using the galaxy y .. which has a small screen and low specs.. I wanted to upgrade to a smartphone which will be reliable for basic tasks: Fb / Wikipedia browsing , Whatsapp , Music and Videos.. So i saw the nokia lumia510 and i loved its display.. dispite people saying its specs r slow.. I still wanna knw frm expert windows users, Is it really bad or is the performance decent enuf to run whatsapp and videos? :)
[Windows Phone 7] Morderen:
You can't compare windows phone like android phones by specs.

Windows phone will work more smooth and fluid on any available configuration compared to android because it is much more optimized.

But better try to get Lumia520 which runs WP8 if the price difference isn't too big because Lumia510 really is very old and it won't get any updates in the future and although the OS would run fine, unoptimized apps would lag.
[Windows Phone 7] Synide496:
Hey thanks for your suggestion, I did buy the lumia510 since 520 was not fitting in my budget but well i must say lumia510 is a pretty smooth phone compared to other low end androids so im pretty happy with my lumia510..love d display :laugh:
[Windows Phone 7] Crichton333:
You cant have WP8 on a 510 or any of the x10 models, too bad you didnt go for the 520, I have it for developing apps and its awesome. Got it for free from T-Mobile in my country, im on a $10 a month plan, it was like the cheapest one I just wanted the free phone :)
[Windows Phone 7] zeropopular:
Windows Phones vs Android Phones (customize ability)

I have never used a windows phone and am curious as to the creative aspects.. as in are they customizable with something similar to roms, and can you unlock/root them or some sort of equivalent... I saw a lumia 710 for 30 bucks on craigslist I was thinking of picking up for training purposes however I think it runs 7 not 8 so I dunno I have to post more on here so this is as good a question as any thanks ahead of time

zero
[Windows Phone 7] great2c4me:
Bump... Talking about devices...

Are there any foreseeable limitations on the up-and-coming latest and greatest devices? When I bought my galaxy S5, I hadn't anticipated it ever being a developer non friendly device as it is today... Or am I missing something. I'm in at&t network with it... It's expected glitchy and I wanted root & custom Rom, but I guess developers gave up on it...

So now, what are the best options for a promising device?
[Windows Phone 7] pankaj554:
Nokia Lumia 510

Nokia Lumia 510 is very simple smartphones with unique features. It comes with 800MHz Qualcomm Snapdragon processor and 256 MB RAM. It runs on the runs Windows Phone 7.5. On this smartphones you can do various kids of activities such as Facebook, music,net surfing,what apps. It really a good smartphones. Nokia Lumia 510 is amazing smartphones with very comfortable price.
[Windows Phone 7] nguyenanhthuoc:
2 different operating systems can not compare my friends , I also want to help you but i cant
[Windows Phone 7] erickpinto6005:
no Windows phone

Of course Android. I would never go for Windows phone ever again
[Windows Phone 7] Mohammed.Diki:
Lumia520 reboot always can't flash help me
[T-Mobile Samsung Galaxy S 5] adrockr:
Is it possible to have the download booster active for ALL downloads with root? Including play store downloads and downloads under the 30MB threshold?

If not, this would be a great feature on a custom ROM.

Sometimes I hit patchy WIFI spots around campus, and it it would be nice to just use both all the time, this way the phone would simply max out on both paths resulting in fast downloads all the time.

Of course, I understand why TMO would not be into this, and I get why they have the feature fettered the way they do. But with root, is it possible?
[8125, K-JAM, P4300, MDA Vario General] miked:
i have all my contacts stored in the international format (+44). In order for Smart dialer to work correctly i need to dial +44 before it lists my contacts i used to be able to enter the number straight with the internation code for smart dialer to start working before i upgraded to Mr Clean Rom.

Any ideas?
[General Questions and Answers] WeandDroid:
Whatsapp is a very good messaging service. It can be very useful for sending images, videos, contacts and group messaging, etc. As with every app, whatsapp could also go for some improvements. But one of the most important, I feel, is a desktop client paired with multi-device sync. Hangouts, by Google, and Facebook Messenger, by Facebook already provide these services to their users. What multi-device sync means is you will get all your messages to all the devices and desktop you are signed in to with your same whatsapp number.

Why-

Whenever a user gets a notification of a message on whatsapp he has to turn to his mobile device to look read the message. That can be painful if you are sitting on your desktop/laptop and your mobile is away. This might seem like a small thing but it always diverts you from your desktop. It is more difficult to manage for the people with more than one phone. They are limited to having whatsapp with one number to one phone. So, if anything happens to the phone with whatsapp all their messages are gone.

How-

One of the best ways to do it is, is to integrate with facebook. Not with facebook messenger but with every user's facebook id. Whatsapp can offer every user a choice, if they want to have whatsapp on desktop and other phone with the same number, they can sign in with their facebook id and then that facebook id can be linked to their number. Now once you sign in to any other whatsapp with your facebook id, it finds out the number linked with the id and verifies it and then all your contacts and messages will appear on the client. But this shouldn't mean that all the people with their facebook id or their facebook id linked with whatsapp should directly come to your whatsapp favorites. Whatsapp should still depend on phone contacts for favorites. Facebook id should only be used for the sync.

There are other ways to achieve this too. One of them is integrating with facebook messenger but I don't think that will go well with everyone. From the time whatsapp is owned by facebook we have been expecting some changes. And this could be a great one for both whatsapp and facebook.

What are your thoughts on this?
[General Questions and Answers] bibhu60:
Try this

First of all download oracle VM virtual box and then download this android 4.4 iso image Here

Then follow this guide to setup Android 4.4 on your pc Here

Then download whatsapp on your android 4.4 tablet from play store or anywhere register and done..

An alternative is bluestacks but it gives me errors sometimes and it's sdk is also old

Here

Hit thanks if i helped...​
[General Questions and Answers] WeandDroid:
then it only works on 1 desktop. all other connected device are disconnected
[General Questions and Answers] rodrick11:
nic

An alternative is bluestacks but it gives me errors sometimes and it's sdk is also old

[/FONT]

Hit thanks if i helped...[/CENTER][/QUOTE]

Thanxx

It worked..
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] SpacePotato:
How do I unlock the phone? I currently have Cm11 on it.

I want to ditch rogers (terrible service) so what do I need to do to unlock it?

side note, when I got the phone it was via future-shop warranty and they gave me a fido version and put my rogers sim in it, did they unlock it then?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Larry2999:
Since Fido is really owned by Rogers, your Rogers SIM may work in the phone if it was originally locked to Fido. To check whether it's unlocked or not, try putting in a non-compatible SIM (like Bell or Telus) and see whether it prompts you for an unlock code. If it does, you would need to purchase a code online or request one from the carrier. If it wasn't on Android 4.3 prior to the CM11 installation, you may be able to install stock Android 4.1.1 and free unlock. Either way, whether you are free unlocking or using an unlock code, you have to be on a stock ROM for it work. You can check your phone's settings and see what baseband and bootloader versions you have. This will tell us know whether you should flash stock 4.1.1 or 4.3
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] SpacePotato:
Baseband is I747MVLUEMK5 bootloader I have no idea, I just used odin to flash CWM.

I'm open to flashing 4.1 to get a free unlock then going back to CM11
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Larry2999:
I747MVLUEMK5 is ver. 4.3 and you almost certainly have the 4.3 bootloader as well. With this, unfortunately, you can't downgrade to 4.1.1 where the free unlock option is available as any attempt to do this could brick your phone. You would need to request an unlock code from the carrier, if eligible, or purchase one online. There have been reports also that the unlock codes don't work when you are on a custom ROM so if you buy one online and it doesn't work, you will have to flash stock 4.3.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] SpacePotato:
ok, which carrier would I have to talk to, it was a fido phone as mentioned previously. Also is their a possibility I could downgrade to 4.1, or is it a guaranteed brick?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Larry2999:
You would need to contact Fido since it was originally on their network. I'm afraid nobody has yet posted a method to allow you successfully downgrade to 4.1.1 and still preserve the free unlock functionality. You could follow some instructions posted in this forum to downgrade to 4.1.1. However, this wouldn't allow you downgrade the bootloader/modem which is required for the unlock.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] SpacePotato:
ok thanks.