yashsingh1/xdaforums huggingface dataset:
[Acer Iconia A500] erica_renee:
Alot of the information above has changed. The stock Leak is still the same. you will have to downgrade to get back to 3.2.1 as it over writes recovery.

There are many cwm modded versions by rom developers in the DEV SECTION. They can be flashed with CWM/RA recovery . Do nand back up. of your 3.2.1 . then follow the instructions from the Dev where you d/loaded the rom. Flash in Recovery. If you do not like the rom you can easily Restore your Backup.

The ics roms are much improvement over honeycomb but there are some bugs . for me its some slight screen tearing and artifacts mostly in browser with more then one tab open .

Good Luck Following rom makers instructions will Give you a very happy experience. Do not forget to think the DEVELOPER
[Acer Iconia A500] alexmd182:
I can do this process. I just want to know if I can flash with recovery already have it factory or do I have to use a recovery customize, and if the camera is working perfectly?
[Acer Iconia A500] erica_renee:
If you are on the full stock leaked rom YOU MUST Follow this thread to downgrade . then you can flash the other roms thru cwm /RA . recovery .

http://xdaforums.com/showthread.php?t=1516012
[Acer Iconia A500] castafiore:
Yes, the camera works better on ICS than on Honeycomb.

Yes, you can flash it from your recovery...

BUT

I give you the advice to use the Amon-RA recovery (you can flash the recovery Amom-RA from CWM recovery if it's the one you use at the moment)

AND

choose the "

original version

" of the Leak, not the other ones.
[Acer Iconia A500] alexmd182:
okay, thanks! I'll test when I get home, and I'll tell you the result
[Galaxy S II Q&A, Help & Troubleshooting] reking:
I have a few questions, I'll put them up right away so the impatient may avoid reading my boring story. Beneath the questions are my explanation.

1. It seems to me the flash counter only goes up when I flash non-original firmware. I've flashed twice; once to root, then once again to go back to stock. My counter says 1. Am I correct in assuming this, then?

2. My phone came with astrange and, I think, not widely used firmware called XWKG1. Can I upgrade to ICS using any method, ie. will any ICS-ROM work with my phone?

3. Then I can root, and use Triangleaway to reset flash-counter, right?

And if the answer to question #1 is "yes", I could flash back to stock and have no warranty problems?

Backstory:

I - like many others - downloaded some ROM to get root on my phone. That's all I wanted, just root, no custom UI or anything, so I just downloaded something called CF I think? I'm not very knowledgable about all this, so bear with me.

Now the USB connector and battery is starting to get real weird. In short; my phone thinks USB cable is connected all the time; my phone won't start (says battery is too hot) unless I have a charger plugged in; strange driver issues when trying to connect the phone to a PC, the device is not recognized about 80% of the time; battery drains SUPER quickly. And more probably.

Now this sounds like a hardware issue to me, and should be covered by the warranty no matter if I choose to root my phone or not. But I'm worried Samsung may not share my opinion there. I've flashed back to stock firmware I got with my phone (XWKG1 - I bought my phone from a French company operating in Norway called Pixmania, which gave me this strange version), and the yellow triangle is gone. But flash counter says 1. This could be a problem.
[Galaxy S II Q&A, Help & Troubleshooting] B3311:
I'd send it back to pixmania straight away. I'm in Norway, I've used pixmania abefore, they're quick and helpful, and I'd guess they'll replace it straight away.

To be honest, I can't remember if stock flashing increases the counter or not. Buy a jig anyway, they're cheap and useful.

Don't think your firmware's that strange, pretty sure I had XWKG1 at some point. Old yes, strange no.
[Galaxy S II Q&A, Help & Troubleshooting] reking:
Thanks for the answer. So Pixmania won't just send it to Samsung who will reject it? Have you tried sending rooted phones to them? My phone doesn't have any external damage, but it is currently not covered under Samsungs warranty!

Also, don't know if an USB jig would work since the phone's USB-port is so broken.
[Galaxy S II Q&A, Help & Troubleshooting] B3311:
Yep, rooted my brother-in-law's SGS last year. He returned it to pixmania because his home button wasn't working, got a replacement within a week. He'd forgotten it was rooted, but pixmania either didn't notice or didn't care.

Assuming you flashed via a USB/PC connection before , it's probably worth the risk to try 2 and 3. Or if you don't want to risk your USB port, try Mobile Odin.
[Galaxy Ace S5830 General] sunnyfok:
Will the sd car partition be erased after flashing a Rom?:confused:
[Galaxy Ace S5830 General] prateek_gemini:
no
[Galaxy Ace S5830 General] mohitsharma44:
Yes & No!

NO:

If u are just flashing Rom after normal Factory reset, Cache & Dalvik cache wipe..Nothing will harm ur partition i.e the Partition in which U store ur songs, images etc

Yes:

but definetly ext2,3,4 partition which IF u have created for using a2sd script or link2sd will be erased.

Press Thanks If I Helped :p
[Android Software Development] regaw_leinad:
Description:

AndroidLib is a .NET assembly written in C# (C-Sharp) that easily handles communication between a connected Android device and your program. Currently, there is a large amount of automated controls, eliminating thousands of lines of code the programmer has to write themselves. The class AndroidController is a semi-wrapper of the ADB (Android Debug Bridge) binary. The other class you will be working with the most is the Device class. This class contains useful information about the device (for example: software/hardware info, memory info, battery stats, mount points for partitions, root status, busybox information, and much more), as well as exposes many instance methods to control your phone such as Rebooting, Mounting Filesystems, Push/Pull/Install Files, and much more to come. AndroidLib contains all of the Android binaries necessary to work properly. AndroidLib also assumes that the phone's USB drivers are already installed correctly on the target machine, or that your program will take care of it on it's own.

This is perfect for any developer who would like to create, for example, an auto-rooter or any other application that needs to connect with Android devices through a .NET application. AndroidLib provides all the methods needed to communicate with the Android device. This will cut back on the code you have to come up with and write yourself by a HUGE amount!

What it does:

Provides easy-to-use code for communicating with Android devices in .NET

Provides easy access to information about the connected Android devices

Has a large list (and growing...!) of methods that control connected Android devices

Please credit the work here by me in your own projects; not only to give thanks to me and the many hours I am putting in to this project, but so others know where to find it if they need to!

Usage:

Add a reference to AndroidLib.dll in your .NET project and begin using this great API. Please refer to the "Getting Started.txt" guide and full documentation included in the zip.

Requirements:

.NET 3.5 or Higher

Changelog

(Only most recent version displayed, full Changelog in download)

Version 1.5.1.0 | 01.21.13

Fixed Device.InstallApk() bug

Download Latest Release

GitHub

Online Documentation

Sample Solutions Using AndroidLib:

C# (C Sharp)

Visual Basic (VB)
[Android Software Development] regaw_leinad:
AndroidLib Featured Projects by XDA Users:

RegawMOD Evo 4G LTE Rooter - XDA

RegawMOD CDMA Hero Rooter - XDA

RegawMOD Rebooter - XDA

Droid Manager by DeepUnknown - XDA - Google

Android SMS - XDA - Home Page

Quick ADB Pusher by Goatshocker - XDA
[Android Software Development] regaw_leinad:
reserved just in case ;)
[Android Software Development] TearsDontFalls:
It's very useful, thank you very much, im planning to code a Filemanager like qtadb, because qtadb is sucking too often
[Android Software Development] regaw_leinad:
In the process of completely redesigning the library (due to coding stupidity), basically from the base class up. I should have a beta1 out by this weekend for testing. All that are interested in beta testing this library for their Android .NET projects, post here and I'll add you to the list of testers!
[Android Software Development] Mrc527:
It would be great!

Can you add something like adb forward? So we can connect to an android service without using ADB, that as we all know sucks!:D
[Android Software Development] regaw_leinad:
Yeah, I'll throw in a method to create a port forward. What I have now uses the bridge, which is included in the assembly, but handles all of it silently and very well. I should have a build out soon (most likely this weekend). As long as you don't dispose the AndroidController object, that port forward will be good, so you can use your own Socket code
[Android Software Development] Mrc527:
Great work! really, great idea!:D
[Android Software Development] SimranSingh:
You can change the .NET to 3.5? I too code in .NET, and I try to keep the .NEt version as low as possible!
[Android Software Development] regaw_leinad:
Yeah, I actually did that a few days ago, forgot to update the OP.
[Android Software Development] Mrc527:
Where is it possible to download? :D:D:D
[Android Software Development] regaw_leinad:
I'm just writing the documentation for this. I'm pretty sure I'll have it done today.
[Android Software Development] Mrc527:
Yeah! Just a joke. When finished I'm sure will be a success!

Inviato dal mio Galaxy Nexus usando Tapatalk
[Android Software Development] regaw_leinad:
Making some last minute changes to the Device class, then I'm going to finish the documentation and release it. Just keeping you updated.
[Android Software Development] regaw_leinad:
Ok everyone, the new documentation is up (Online) (Offline). For the beginning of this product, I would like developers to pm me, or reply here in the thread if they would like to try the library out for their project, and I'll send it to them. It's still under development, and there will be updates coming out regularly. Shoot me a pm or post here and I'll send you a link right away.
[Android Software Development] Mrc527:
Meeeeeeeeeeeeeeeeeeeeee!!:D
[Android Software Development] Strict:
Hi,

I'm C# developer and i would like to try your lib, can you send it please?

Thanks in advance, and great work.
[Android Software Development] regaw_leinad:
Hey guys, check the first post to download the library. It is in a zip which includes the dll, "Getting Started.txt" and the documentation. Please read the getting started guide before diving into it! And please give me feedback on it. That would be much appreciated in order for me to deliver a better product.

Dan
[Android Software Development] Mrc527:
Great work!

It works without any problem to me!
[Android Software Development] regaw_leinad:
Next update will have these features internally implemented:

Package Manager (inside the phone's shell)

Ability to install/uninstall apks

Ability to freeze/unfreeze apks

Ability to backup/restore apks

A class that will handle signing of update zips

More internal information about connected device (cpu, environment, etc)

Possible wrapper of AAPT

That seems like a good amount for the next update. Please post anything you wish to share about the library after using it for these few days.
[Android Software Development] Beatsleigher:
Nope. I checked my build.prop to get the values, so they're there.

I got the source, I just didn't know it was newer. I'll add the source to my solution and I'll build the entire thing. (Let's hope VS can compile both VB and C# at the same time...)
[Android Software Development] regaw_leinad:
Yeah, just import the AndroidLib project into your solution and it should work alright.

Just in case I'm misunderstanding, don't just copy the source code into your app's project, that won't work. Keep it as it's own project, with it's own resources and just reference the compiled assembly from your project.
[Android Software Development] Beatsleigher:
No, no. I know how to import projects to my solution ;)

I didn't start coding yesterday ;)

But... maybe that advice would be useful to a newb, so thanks anyway :)
[Android Software Development] Beatsleigher:
Ok. I added AndroidLib sources to my solution, added reference and built. MOst things work now, for example SU Version and Busybox version, but I still can't get the build props.

See screenshot: (By the way, thanks for making UAT live again!)

And just in case I did something wrong on my side, here's the code for getting all the data:

http://pastebin.com/bnZaF8T8

Any help is much appreciated.
[Android Software Development] regaw_leinad:
Wasn't implying that. Some libraries have great structure to them, facilitating the use of it internally in a project. AndroidLib would work like that too, just a few config changes would have to take place regarding the embedded resources, and I didn't have time to put them in my post.

Have you tried running

adb getprop > C:\whatever\directory\getprop.txt

through an adb terminal with your device connected, comparing that output to how the library is parsing the data? I added the BuildProp class in late 2011, and I'm not sure if the getprop standard out has changed since then.
[Android Software Development] Beatsleigher:
Hm. Maybe, when I have some time, I'll translate the lib to Visual Basic and see what I can do from there and maybe add some other cool stuff :)

But thanks for your help. I'll let you know if I find something out ;)

EDIT:

adb getprop > C:\BUILD.PROP\prop.txt does nothing. Apparently it doesn't exist anymore?
[Android Software Development] regaw_leinad:
Ok, well give me that dump and I'll check for you. The parsing code is in BuildProp.cs starting on line 139 in case you want to look at it.

Also, if you plan on doing more hardcore development in other areas, consider learning a language like C#. If you're great at that, moving to other languages like Java and C++ can be quite easy for some.
[Android Software Development] Beatsleigher:
Yeah. I'm currently learning Java and C++. But I'm going to be honest. I'm not touching C#. It's so weird. Lol. It's a complicated version of Visual Basic :D
[Android Software Development] regaw_leinad:
Ah, well when you start to learn Java and take a look at C#, you'll see how similar they are. C# is basically just another syntax to access the .NET framework, and is very similar to Java.
[Android Software Development] Rapscallion16:
Hey regaw! I've been able to implement a lot of AndroidLib in my toolkits, and will be out to almost thirty different phones soon! I'm having a couple issues though. Will you be releasing a new compiled version soon? The most current one doesn't support 4.2+, and I need that support before I can release it. At the very least, what are the instructions to compile it myself? I'm new to GitHub and am not quite sure how to do it correctly. My other issue is getting the forms to stop freezing. As you can see in the picture below, I have an informational page, but this is all done with a background worker, which prevents freezing in that case. I'd love to use AndroidLib for ADB commands as well, but they still cause freezing, and I can't use background workers for each command, as that's pretty inefficient. Do you know of the best way to implement it without freezing or using many background workers? Sorry to bombard you. I'm just really eager to learn and implement this. Thanks for your help! :fingers-crossed:

Edit: I've figured out how to compile it myself. 4.2+ support is looking good! :D
[Android Software Development] Beatsleigher:
If you're using .Net 4.5 in your applications, then I recommend using Async Subs or Functions. BackgroundWorkers are outdated and only recommended if you plan on staying below framework 4.5, like me, for example.

And why do you say you're new to GitHub. You've pulled a lot of my sources :p

Anyhows, if you use the Async subs then your forms won't freeze when accessing AndroidLib. But so far I haven't had any problems with Universal Android Toolkit and AndroidLib, to be honest. It's all working like a charm (Except getprop, but I have found my own solution to that)

Which programming language are you using? Maybe I can help a bit, if you're coding in Visual Basic
[Android Software Development] Rapscallion16:
Thanks for replying to me! I've only been on GitHub for a few days, but I pulled a few program sources that looked like they could help me out some, and some of yours look really good. :good: I'm still fairly new to all of this though, so I'm not totally sure what you mean with Async Subs or Functions. I've only been using Background Workers because they're the only things that fitted what I needed to do in the Toolbox. :p Also, I'm coding in C#, so I'm not sure how much you can help me out, but any help would be appreciated. :)
[Android Software Development] Beatsleigher:
Async Subs work like background workers, only better in some ways. For example, you don't have to invoke any classes to change values, etc.

VB can be translated to C# and vice versa, so I guess I can help you out a bit. Send me a PM with what you need and links to your sources and I'll see what I can do
[Android Software Development] crazykiddo:
Is there a way to stop a device.PushFile ?

Im transferring files and when pressing cancel it does not stop pushing the file.
[Android Software Development] regaw_leinad:
No way to cancel it in the library without writing your own code to stop that specific process. You say you press cancel... what code did you write for your cancel button?
[Android Software Development] crazykiddo:
I am looping a list view with files and transferring them one by one.

I exit the loop and function but have to wait for the current file to finish.
[Android Software Development] regaw_leinad:
Ah, I see. Yeah, you'll have to wait for the last file to transfer.

Or you can start the file transfers outside of AndroidLib using your own instance of the Process class, and maintain the reference to it so you can either kill it or send ctrl-c to StandardInput. Hope that makes some sense.
[Android Software Development] crazykiddo:
Yes it does, and thought so :D

Thanx for the feedback and androidlib is the best !!
[Android Software Development] Trak-X:
Hey Guys.

Is the project still alive?

I am new in C# programming and so, but i want to learn, as i need to automate some processes.

Mainly, i need my app to show device manufacturer and model number, battery level and to look for a file on the device. If it finds the file, to change a label to a specific text.

I have 2 devices to test with: a Galaxy Tab 2.3.5 and Galaxy S4 4.2.2.

I was able to implement and run commands from the dll but they are not working properly, as the battery shows -1 all the time, and i can not get anything through device.BuildProp.GetProp.

Instead of getting the strings i need, it just shows a blank line.

As for file actions, i just need to push 4 files to the phone and then use adb commands to move them through the phone.

At first i thought it has to do with the fact that i am to "noob" at C# and i do not run the commands properly, and tried to do device.Reboot to see if the devices reboots at least, but this does not work also, neither crashing.

Sorry for my dumb explanation :D but i am very frustrated as i spent almost 10 hours to get this working :(
[Android Software Development] syahazu:
Wohooo, nice.. now i have something to do with my C# knowledge..
[Android Software Development] Trak-X:
If you can get it to work, maybe you can share an advice :))
[Android Software Development] regaw_leinad:
The latest source code is at the linked Github page for this project. If you download and compile that, you'll have the latest version.

Also, regarding the GetProp, the Samsung devices might be reporting the prop differently in the console than the library is parsing it, so the coded might need to be updated to parse it correctly on select devices.
[Android Software Development] Trak-X:
Awesome,

I downloaded the sources and built another dll. Seems better now but still have to check the code, as it doesn't show the correct info on all devices.

Later:

If you can please help me, i can not get the adb to move files from a folder to another. Pushing files is ok, but moving them, it's another story.

Can you please assist with an example code?

Thanks

private void installbtn_Click_1(object sender, EventArgs e)

{

device.PushFile("bin/x.apk", "/data/local/tmp/");

device.PushFile("bin/y.apk", "/data/local/tmp/");

device.PushFile("bin/z", "/data/local/tmp/");

device.PushFile("bin/w", "/data/local/tmp/");

AdbCommand adbCmd = Adb.FormAdbCommand(device, true, "mount", "-o remount, rw /system");

//AdbCommand adbCmd = Adb.FormAdbCommand(device, "shell", "su -c mount -o remount, rw /system");

AdbCommand adbCmd1 = Adb.FormAdbCommand(device, true, "cat", "/data/local/tmp/x.apk > /system/app/x.apk");

//AdbCommand adbCmd2 = Adb.FormAdbCommand(device, "shell", "su -c cat /data/local/tmp/y.apk > /system/app/y.apk");

}
[Android Software Development] Rain_Saeid:
Hi

Tnx For share

But i Can't Download AndroidLib!!

Server not found!!

Pls check Download Link..
[Android Software Development] regaw_leinad:
Must be your internet connection, try again! No downtime from my server today! You can also get the source from my GitHub!
[Android Software Development] Rain_Saeid:
yes

How to Use AndroidLib.dll in VB.net?

your vb.net Example was Error..

Error Message :

Warning	1	The referenced component 'AndroidLib' could not be found.

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

TNX.. Download zip File (AndroidLib.zip) From github

How to Use AndroidLib.dll in VB.net?

your vb.net Example was Error..

Error Message :

Warning	1	The referenced component 'AndroidLib' could not be found.

Can you help me please?
[Android Software Development] regaw_leinad:
You need to add a reference to the dll. It's not included in the sample solution because that's just the sample code. Add the reference to the dll and it will work fine.
[Android Software Development] Rain_Saeid:
I'm Sorry

I Can't Found AndroidLib.dll For Add Refrence to VB.net

You can attach this file for me?

Please
[Android Software Development] regaw_leinad:
You build the source from the zip you downloaded from github, then reference that dll.
[Android Software Development] regaw_leinad:
I don't believe your mount command's arguments are correct to mount /system as rw
[Android Software Development] Trak-X:
Thanks.

You were right, but not completely, command must be different too:

Adb.ExecuteAdbCommandNoReturn(Adb.FormAdbCommand("shell", "su -c 'mount -o remount, rw /system'"));

This is how to command should be, and the only thing i need to change to move files across the phone is "su -c 'mount -o remount, rw /system'")
[Android Software Development] regaw_leinad:
Doesn't the mount command require more arguments? Such as which block you want to mount as /system, and the filesystem type?

mount -o remount,rw -t ext4 /dev/block/YOURBLOCKHERE /system

Also, be sure to use the Adb.FormAdbShellCommand method, not the Adb.FormAdbCommand as you are using now.

public static AdbCommand FormAdbShellCommand(
Device device,
bool rootShell,
string executable,
params Object[] args
)

If you're unsure you can find my documentation HERE
[Android Software Development] Rapscallion16:
I am trying to capture the output of a Fastboot command, but am not sure of the correct way to do it.

I have a button with this:

label1.Text = "oem";
label2.Text = "get_identifier_token > token.txt";
backgroundWorker.RunWorkerAsync();

And a background worker with this:

AndroidController android = AndroidController.Instance;
Device device;
device = android.GetConnectedDevice(android.ConnectedDevices[0]);
Fastboot.ExecuteFastbootCommand(Fastboot.FormFastbootCommand(device, label1.Text, label2.Text));

This doesn't seem to do anything, and I feel like their is a better way to obtain the output than sending it to a text file. Thanks in advance for any help.