yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Theworld2020:
Sorry

Sorry bro,

First we planned to develop for unrooted device, Then we developed only for rooted devices. For Unrooted device is still in Kichcen, I'll update once finished cooking...

Please forgive me for post a wrong info.. :rolleyes:

Thanks.
[Android Apps and Games] revanthina:
Not work on n7000 sir

Open your app and have notice busybox not installed

My device already root and have busybox
[Android Apps and Games] Theworld2020:
Update

Just update the Busybox through Play store and try.
[Android Apps and Games] whyalwaysme:
How to revert back to normal?

Is it safe just to uninstall it?
[Android Apps and Games] Anubhav Agrawal:
Hello.!

Just saw ur app, description looks great, wish i cud try it out ..

waiting for non-rooted version.!

:)
[Android Apps and Games] Theworld2020:
Thanks

Thanks for your appreciation, We'll cook non-rooted version ASAP.
[Android Apps and Games] tariq2kn:
This app is a visually modified version of 3G/4G Speed Optimizer Pro 1.3.0 developed by Vista@NexusRoi.

Don't steal someone's work & take credit.
[Android Apps and Games] Anubhav Agrawal:
Hi there!

Dnt go on accusing people's work ... if u have some problem, first talk to developers, then moderators, before spamming thread with such comments.!

Thanks in advance ...
[Android Apps and Games] jacksparao:
Even I saw, it may be modified version of 3G/4G still I don't find anything wrong.... 90% developers use the used source (GIT, XDA, CodeINS)... No one got time to develop frm starting to end..

If something is good we must support the dev.....
[G2 Q&A, Help & Troubleshooting] met3b87:
hello everyone, i have been a long time reader of this amazing site. i really appreciate what everyone does here and the contribution they make. :good:

i have always found solutions for every problem i have ever had with any device, which is amazing and again, thank you very much!

now i come to you with a problem i have encountered after buying my lg g2 from hong kong, and shipping it over to my country, after setting it up and doing all the nice stuff after you get a new device i started noticing a weird issue.

the mobile data seems to be working fine (it says H next to the signal bars) and web browsing is working as well. now when i try to connect my vpn on the device to listen to pandora it doesn't connect, when i try to tether wifi to my friends or to my laptop it doesn't work, even downloading simple mp3 files from various sources doesn't work. BUT downloading apps through the app store is working. although extremely slowly. now all of this happens when i try it on the mobile data, once on wifi everything is lovey dovey and i am a happy camper.

i went to the hidden menu and activated the lte/gsm/wcdma/ auto, and got a new sim card. tried different vpns and tried downloading from different sites, nothing works. i have searched for my particular problem or any variation of it on the threads here and on other site and nothing comes up.

everything is stock.

the devices info are as follows:

model number: LG-D802. android version: 4.2.2 baseband:m897A-AAAANAZM-1.0.190036

kernel version: 3.4.0

build number:JDQ39B software version: D80210b-HKG-XX

please help, i really like this phone and i don't want to have to change. i love it!!
[G2 Q&A, Help & Troubleshooting] PizzaMaChe:
Hello,

Do you find an issue ? I have almost the same problem. I think the problem is un baseband problem but i amn't sure !!!!
[G2 Q&A, Help & Troubleshooting] MuzakaTheBeast:
which country are you from? I think its got something to do with the firmware version or perhaps the frequency of GSM/LTE is different from where you bought it and where you're actually using it now.
[G2 Q&A, Help & Troubleshooting] ensiva2012:
Data connection not working after Kitkat update

Hi! I got a new LG G2 from Dubai through my friend. I am in India. It came with Jelly bean initially and i have updated it to kitkat 2 days before. Till the update the data connection was working fine. But after update it is not working. The data selection is on, but it is not showing any indicator in the notification bar at the top. And also no internet. I tried Airplane mode on and off, reset to factory default, restarting the phone. But nothing works. Can you please give me a solution to get this data connection work? That is the only reason why i bought this smartphone. Now that itself is not working :(.. Can anybody please help? I have given all the information about my phone below. Thanks! :(

Phone Model: LG G802

In the Hidden Menu it shows as;

Factory Version: LGD802AT00-V20c-AME-XX-JUN-10_2014

AP App Version: D80220c.1402404754

Software Version Info: D80220c

Firmware Version: 4.4.2

Kernel Version: 3.4.0-perf-gd7db3f1

Baseband Version: M8974A-AAAANAZM-1.0.190084
[Xperia Tablet Z Q&A, Help & Troubleshooting] movilstore:
is it posible with any rom to make calls?
[Xperia Tablet Z Q&A, Help & Troubleshooting] worf_1977:
Althought it has the right hardware to run as a phone, the answer is a big NO
[Nexus 5 Q&A, Help & Troubleshooting] The Transporter:
Hi all,

I just got my nexus 5, two days ago and I'm enjoying it.

I've installed Beergang on it with Bricked kernel.

I'm using Bricked kernel from showp-1984 because I remember having good battery life using a Galaxy Note a couple of years ago.

Now, I cannot really say anything yet on the battery, I'm waiting a bit of charging cycles before.

Now, there are others kernels, here they are:

Franco

Trinity

Faux123

n3ocort3x

flar2

Now, the question is, which kernel is best to have a best battery life?

I'm not an heavy user of games, I don't play, I just use it for emails and hangouts mainly.

Also, I see that with some of these kernels, you can buy an app from the developer to control the kernel settings. I don't care about buying the application, it's not the problem.

I'm just wondering which kernel is best for the battery life of my phone.

I'm not a developer and I asking to the community a couple of advice for our beloved Nexus 5.

Thanks !
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
You'll have to try them all for yourself. Whats good for you may not be good for me.

http://xdaforums.com/showthread.php?t=2477889
[Nexus 5 Q&A, Help & Troubleshooting] P.Mobile:
rootSU is rite wat works great for me may not work good for u... but for me franco kernel gives me GREAT battery life... i would say try out franco kernel if your not happy with it try a diff one:good:
[Nexus 5 Q&A, Help & Troubleshooting] zephiK:
Just try each kernel for a couple days and see what happens. I'd recommend Franco or faux. Trinity is also nice as well.

Out of them all, Franco and faux are my favorites to use.
[Nexus 5 Q&A, Help & Troubleshooting] wedgess:
There is no "best" ROM/Kernel, head over to the development section and see which "best" suits your needs.

Thread closed
[General Questions and Answers] Vishal27_:
i've cwm installed on my phone. do i need cwm app to take backup or recovery alone is enough?
[General Questions and Answers] 666misanthrop666:
You don't need an app. Just reboot into recovery mode, there you can choose to backup, restore, install zips and so on...
[General Questions and Answers] zipperX:
Take to your recovery mode, than you can use your cwm
[Java for Android App Development] gh0stslayer:
Hello there,

I know this is a noob question but I am unable to implement libsuperuser by chainfire for my app, I can't understand the Asyncactivity he creates in his example project. I have tried that way for a simple Root Checker app, but i am unable to do it, beacuse my app doesn't ask for superuser permissions

So, could anyone please point me to any sample program using his libs, which is simple enough for a beginner to understand .

Thanks in Advance.
[Java for Android App Development] nerroSS:
RootTools

Why don't you try roottools library? It's really simple, and intuitive. Lots of documentations also available!

Here is a link for you : http://code.google.com/p/roottools/

For su request on start, you must have:

<uses-permission android:name="android.permission.ACCESS_SUPERUSER"/>

in your manifest.

To check for su :

if(RootTools.isRootAvailable())
Log.e("YourTag","We have root!");
else Log.e("YourTag","No root access :( !");
[Java for Android App Development] gh0stslayer:
Thanks for your reply. I tried adding the permission but it didn't work with libsuperuser. It must be something I wrote in the program.

I am now trying with roottools -

so if I have to copy a file from data/app to sdcard, how will I pass the shell command using RootTools ?
[Java for Android App Development] nerroSS:
CommandCapture command1 = new CommandCapture(0,"echo 1 > /sdcard/mycommandouput");
try {
RootTools.getShell(true).add(command1).waitForFinish();
} catch (InterruptedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (TimeoutException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}

Or for multi-command

CommandCapture command1 = new CommandCapture(0,"first command","second command here");
try {
RootTools.getShell(true).add(command1).waitForFinish();
} catch (InterruptedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (TimeoutException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}

Keep in mind that commands are as super-user, so no need to "su -c" / "su"..
[Java for Android App Development] gh0stslayer:
How do I get past this error -

The method waitForFinish() is undefined for the type Command

Sorry for so many stupid questions, i am trying to learn :eek:
[Java for Android App Development] nerroSS:
I didn't close try{}, sorry! Put a "}" at the end of my code and it should work!

If you have any questions, feel free to pm me.

Edit 3: I have corrected my post. Copy paste the code above and should work now.
[Java for Android App Development] nikwen:
Here's a great RootTools tutorial: http://xdaforums.com/showthread.php?t=2226664 ;)
[Java for Android App Development] gh0stslayer:
Thanks for your replies gentlemen. I finally settled for CMDProcessor and succeeded in making my command to work.

Now the command takes a long time to finish as it involves copying quite a few files and as it froze the main UI thread I used ASyncTask to take the heavy work to background thread.

Now I can't find a way to show a progress bar for the activities going on in the background thread. Can you please shed some light on how I could set some kind of progress update ... Thanks In Advance.:o

Edit : Should I use something other than ASyncActivity as the file copy opeartion takes several minutes and android developer website suggests to use executor or futuretask for tasks that require too long to complete
[Java for Android App Development] nikwen:
If it really takes that much time, I would use a remote service (a remote service runs in another process).

Using a remote service, closing the app using the recent apps menu won't stop that. The same applies for UI crashes. The copy operation won't stop if the UI crashes for whatever reason. You won't have to worry about orientation changes as well.
[Java for Android App Development] gh0stslayer:
Thanks for your reply again, I was trying to find a way to visualize the progress with a progress bar or something. Although I could not make a progress bar to work I was able to implement a spinner . . . Although a progressbar still would have been better, but for now, it serves the purpose of creating a sense of the activity happening in the background . ;)

I will try to understand and implement the remote service that you linked, lets hope it isn't too much work . :D

Edit : The advantages you stated for remote service are all here too, even when I killed tha app from recents menu, the file copying operation still went on in the background :D .

Edit 2 : Orientation change only removes the spinner dialog, but the file copy operation proceeds until it's complete. The only thing that seems to stop the operation is when i uninstall the app from my device, while its still being executed. So I would say this baby is rock solid, just an addition of a progress bar would serve it well. :victory:
[Java for Android App Development] nikwen:
Well, you could try to do it like this:

Copy the files one by one or copy 5 at once. And afterwards set the progress to a higher value. That would, however, be more time consuming as the IPC (InterProcessCommunication) takes much time.

You could also do the copying using a script and "echo" some output after every 5 copied files. Then you would need to constantly listen for output and if you receive any, increase the progress value.

I would go with the spinner for performance though. ;)
[Java for Android App Development] gh0stslayer:
Hmmm, interesting idea. I am using a shell command , which one would be better, guess I could echo some output to a dialog box.

On the contrary it would slow down the performance of app, so like you said spinner would be better for performance.

Still I would try to make some sort of progress bar work, please suggest which method should i use. I am using a shell command

"cp -r /data/app/ /sdcard/backup/apps" , to copy a whole directory to sdcard .
[Java for Android App Development] nikwen:
This one would be slower but would give you an output after every copied file:

find /data/app -exec cp {} /sdcard/backup/apps \; -exec echo copy \;

It doesn't work properly with subdirectories though. However, that won't be important for you as /data/app doesn't contain subdirectories. :)

---------- Post added at 11:06 PM ---------- Previous post was at 10:58 PM ----------

Use this to get the total number of files in /data/app/:

ls /data/app/ | wc -l

---------- Post added at 11:09 PM ---------- Previous post was at 11:06 PM ----------

Using

ls -f /data/app | wc -l

will make it even faster because the list (whose lines are counted) won't be sorted. ;)
[Java for Android App Development] gh0stslayer:
I was using this to get the no of files in the directory

find /data/app -type f -print| wc -l

But i couldn't figure out how to monitor the no of files copied to the sdcard to make a progressbar out of it.

And for this find /data/app -exec cp {} /sdcard/backup/apps \; -exec echo copy \ i assume the output will have to be shown in a dialog box.

On another note, thanks a lot for helping a nobody like me out. I am trying to learn app development and people like you are making it easier for me, means a lot to me. Keep up your awesome work and keep spreading your knowledge. :good:
[Java for Android App Development] nikwen:
The new and faster version I posted above (ls -f /data/app | wc -l) should be the best (i.e. fastest) way to get the number of files.

Then you would need to constantly check the output of the java.lang.Process which runs your command. Change the progress value of the ProgressBar after every line of output. ;)

I'll look into that tomorrow if you post a link to your CMDProcessor version in the meantime. Got to get some sleep now. ;)

Thank you very much for the compliments... and welcome. :)
[Java for Android App Development] gh0stslayer:
Yeah man, I should get some sleep too. Been at this since 6 PM and its 4 AM now.

BTW here is the link for CMDProcessor I used

http://xdaforums.com/showpost.php?p=40579474&postcount=23
[Java for Android App Development] nikwen:
My idea would be to add another run method to the SH class:

public CommandResult runWaitForWithProgress(final String s) {
s += "; echo This is the end of the command";
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 {
final DataInputStream dis = new DataInputStream(process.getInputStream());
while (true) {
if (dis.available() > 0) {
if (dis.readLine().equals("This is the end of the command")) {
break;
} else {
//TODO: Increase progress here
}
}
try {
Thread.sleep(200);
} catch (Exception e) {
e.printStackTrace();
}
}

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);
}

I've written this in a text editor and haven't tested it. So no guarantee that it will work. You'll probably have to fix some errors. But it should explain my idea. ;)
[Java for Android App Development] gh0stslayer:
Is there a way to assign the output given by

ls /data/app/ | wc -l

to a variable ???
[Java for Android App Development] nikwen:
In a script or in Java?
[Java for Android App Development] gh0stslayer:
In Java :silly:

I m trying to write the output of the command to a text file in sdcard

cmd.su.runWaitFor("ls /data/app/ | wc -l > /sdcard/bck.txt");

My aim is to use it to store the no of apps from the text file to a variable , and then use it for the progressbar .

Although It writes a text file with the no of apps as its content, i am unable to assign it to a variable in java

FileInputStream is = null;
BufferedInputStream bis = null;
try {
is = new FileInputStream(new File("sdcard/backovery/bck.txt"));
bis = new BufferedInputStream(is);
nFiles = bis.read();
}catch (IOException e) {
e.printStackTrace();

tv.setText(""+nFiles);

It works but shows the value for nFiles in textview as 0 .

But it will be less messy if I could just store the shell command's output to a variable instead of storing it on a text file .
[Java for Android App Development] nikwen:
I would do it like this:

The runWaitFor() method returns a CommandResult object. Get the ouput using the stdout field of the CommandResult object. ;)

That wouldn't require a file. :)

---------- Post added at 07:02 PM ---------- Previous post was at 06:53 PM ----------

If you still want to use the file, I recommend using the FileReader class instead. ;)
[Java for Android App Development] gh0stslayer:
My command

cmd.su.runWaitFor("ls /data/app/ | wc -l ");

is already using runWaitFor() method,

so can you tell me what should I add after that command. Is this accurate ??

String[] cmd = new String[]{"su", "-c", "/system/bin/sh"};
console = Runtime.getRuntime().exec(cmd);
BufferedWriter stdin = new BufferedWriter(new OutputStreamWriter(console.getOutputStream()));
stdin.write(""ls /data/app/ | wc -l "");
BufferedReader stdout = new BufferedReader(new InputStreamReader(console.getInputStream()));
String read;
data1 = new String();
while((read=stdout.readLine())!=null){
data1+=read + "\n";
}
[Java for Android App Development] nikwen:
What do you need this for?

Try this to get the file count:

CommandResult result = cmd.su.runWaitFor("ls /data/app/ | wc -l ");
int count = Integer.parseInt(result.stdout.trim());
[Java for Android App Development] gh0stslayer:
Finally got something like this . . .

will work further into this tomorrow :fingers-crossed:
[Java for Android App Development] gh0stslayer:
One more question :silly:,

the command for counting the no of files in a directory returns the output followed by a new line

String output = CMDProcessor.runSuCommand("ls /data/app/ | wc -l ").getStdout().toString();

i.e. Ex - 43 and then one more line

I am trying to convert the string output to int using

int x = Integer.parseInt(my_string);

but as it has whitespace after the number it returns an exception.

So is there any way to read just the first word of output string, so that I can convert it to Int . :confused:

Nevermind Got It. ;)
[Android Q&A, Help & Troubleshooting] FleaKitty:
I have a Samsung Galaxy S3, I tried to put a custom ROM on the phone but It messed my phone up even if I switch to other ROMs including stock.

I can text, go on the internet, pretty much everything. The only thing I cannot do is make phone calls.

My MEID is: 0

My IMEI is: 0

Android Version: 4.3.1

Current ROM is: OSE

Again I can do everything but make phone calls. If you need anymore information let me know.
[Android Q&A, Help & Troubleshooting] gohel.vishal:
try

download cyanogenmod the best custom rom for your device...

Google it .... my friend
[Android Q&A, Help & Troubleshooting] FleaKitty:
Tried it. Same thing. No IMEI, MEID No phone calls. Everything else is ok...
[Android Q&A, Help & Troubleshooting] Cruz3rLP:
Did you checked Modem-Version and backed up EFS?

Games are a part of Life but Life is not a part of a game!
[Galaxy Note II Q&A, Help & Troubleshooting] Nuntius:
Hello everyone,

Sorry if it's been asked but I can't find the answer.

I've read here and there that official 4.3 was out. Nothing since last week, I'm still on 4.1.2 and no update available yet in Belgium (Proximus).

Is it coming or not? Does anybody got the update "already" in Belgium?

Thank you, have a nice day.
[Galaxy Note II Q&A, Help & Troubleshooting] n0my:
Looking at sammobile, its only out for China and India.
[Galaxy Note II Q&A, Help & Troubleshooting] akp.ajinkya:
You can download firmware for india/china and flash it via odin till the update becomes available in your region.

Gud luck.
[Micromax A110] tonykenvicwins:
i can file the source Kitkat 4.4 for the nexus 4,5 and hope some pro can make the rom for ma110 when kitkat can run on the 512MB Ram device as ma110.

:)
[Micromax A110] revanth22:
this is not the place for posting requests bro, please read rules before posting

[MENTION=3367108]justmpm[/MENTION] bro pls move this thread :)
[Micromax A110] tonykenvicwins:
Sorry but It's been moved. :D
[8125, K-JAM, P4300, MDA Vario General] s_hesh:
Hey

Has anyone installed either Pocket Informant or Agenda Fusion onto their k-jam or MDA - if so, were there any problems associated with the downloads?

Thanks...
[8125, K-JAM, P4300, MDA Vario General] mjohns:
Pocket Informant on K-Jam: no problem. -Michael.
[8125, K-JAM, P4300, MDA Vario General] manfredell:
Have tried both; AF is SLLLOOOOOOOOWWWWW.

Stick with PI you won't be disappointed
[8125, K-JAM, P4300, MDA Vario General] cBorisa:
I use PI 2005. Works perfect.
[8125, K-JAM, P4300, MDA Vario General] marka2k:
I had opposite results PI was slow and AF works much better. Infact just purchased AF after testing the trial version. Why not get both and try before you buy?
[8125, K-JAM, P4300, MDA Vario General] harleyxlc:
Frankly, I find them both almost identical in most respects. I found them both a bit slower than I like since moving to WM5, but not much difference. I own both, but I liked the contacts entry better in PI. And it took up less memory than AF.

Both have a trial and you won't go wrong with either one.
[8125, K-JAM, P4300, MDA Vario General] s_hesh:
Thanks guys - I'll kick off with PI to test and see how I go...
[Micromax A110] Vishal27_:
hey guys, am new to this forum. any miui related rom for mmx a110?
[Micromax A110] mrtaim3:
Yes search for it. U will get it
[TouchPad Q&A, Help & Troubleshooting] vinukondamahesh:
my hp touchpad is getting reboted every few min previously i used cm 10.2 and i cleaned everything and install fresh webos with webos docter but no use

plz any one help meeeeeee
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
Please read the rules no multiple posts and do not post a question in development .
[Galaxy S III Q&A, Help & Troubleshooting] Endr1:
Sorry.

My bad.

Sorry again... Coas with desktop pc
[Galaxy S III Q&A, Help & Troubleshooting] Faiz Malkani:
Copy of this: http://xdaforums.com/showthread.php?t=2542198

Also, OP, please refrain from creating question threads in the Development subfora