yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] Prodeje79:
Yes, is that where I went wrong?

I did the manual "method 2" with all of the stock files hammerhead-krt16m_4.4 and also tried hammerhead-ktu84p_4.4.4:
[Nexus 5 Q&A, Help & Troubleshooting] beekay201:
Nope, actually, downgrading both bootloader and radio is the right thing to do.

Did you try to use HSDPA, instead of LTE?
[Nexus 5 Q&A, Help & Troubleshooting] Prodeje79:
I did not as I figured those auto settings have always worked for me and should continue to do so. :(
[G1 Q&A, Help & Troubleshooting] QA Bot:
Q&A for Basic adb/shell commands for noobs

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for Basic adb/shell commands for noobs. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)
[AT&T Samsung Galaxy S 5] anothernewb:
hey guys,

I have g900a with 4.4.2 and i'm looking to update it to 4.4..4. i don't want to use odin or anything, so i'm just looking for the stock firmware.

i tried looking for it myself but couldn't find working links. thanks in advance!

p.s: if someone happens to have lolipop stock(!) unrooted firmware it might come to aid at a later stage. currently i just want to update to 4.4.4.

thanks in advance!
[LG G2 Mini] oneichal:
Good job mastah... :D
[Android One (First-Generation) Cross-Device Genera] arnz:
I am using mmx canvas A1 and I have cm 12.1 . I have updated my rom on 21 june from the official website. Now I need Xposed framework for my rom. Please somebody help me. I gave a screenshot of my build number below. Thanks in advance.:D:good:
[Android One (First-Generation) Cross-Device Genera] ARAVIND_PAVAN:
check this http://xdaforums.com/crossdevice-de...d-lollipop-t3147704/post61641876#post61641876

.............SENT FROM MY PIECE OF GLOWING.............

..............GLASS MADE BY MICROMAX........................

.....................AN KUNALKENE1797 FAN..................

..............................PAC ROM USER.........................

......................... BLACK BOX USER......................

HIT THANKS IF I HELPED OR REPLIED :p
[Android One (First-Generation) Cross-Device Genera] arnz:
Sorry bro but it is not working in my phone.I can't even flash that zip.:(
[Android Studio] Grimspiller:
I want to write a text file. But I am not sure how writing down works in Android. Here is my code:

EditText textbox1 = (EditText) findViewById(R.id.editText);
EditText textbox2 = (EditText) findViewById(R.id.editText2);
EditText textbox3 = (EditText) findViewById(R.id.editText3);

public void writeToPhonebook(View v) {
Button button=(Button) v;

try {
File fajl = new File("phonebook.txt");
Writer writer;
writer= new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fajl, true), "UTF-8"));
writer.append(textbox1.getText() + "\t" + textbox2.getText() + "\t" + textbox3.getText());
writer.write("\r\n");
writer.close();
textbox1.setText("");
textbox2.setText("");
textbox3.setText("");
textbox1.requestFocus();
}
catch (IOException ex) {
Logger.getLogger(MainActivity.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
}
}

can I just leave phonebook.txt or need to put something else? Because with this code apk can't even start on emulator.
[Android Studio] Grimspiller:
OK I done this previus. I now need to load data from text file into table (table layout with 3 columns). Is it possible for application to determine number of needed rows without me adding certain number. Because that data will be changed.
[Android Studio] OldCode:
You need permissions to write a file, you set them in the AndroidManifest xml (Every Android Studio project has their own manifest, set it in your project)

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

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

Then you need to open a file for input/output... You do this in whatever.java

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

import android.util.Log;

public class FileOperations {
public FileOperations() {

}

public Boolean write(String fname, String fcontent){
try {

String fpath = "/sdcard/"+fname+".txt";

File file = new File(fpath);

// If file does not exists, then create it
if (!file.exists()) {
file.createNewFile();
}

FileWriter fw = new FileWriter(file.getAbsoluteFile());
BufferedWriter bw = new BufferedWriter(fw);
bw.write(fcontent);
bw.close();

Log.d("Suceess","Sucess");
return true;

} catch (IOException e) {
e.printStackTrace();
return false;
}

}

public String read(String fname){

BufferedReader br = null;
String response = null;

try {

StringBuffer output = new StringBuffer();
String fpath = "/sdcard/"+fname+".txt";

br = new BufferedReader(new FileReader(fpath));
String line = "";
while ((line = br.readLine()) != null) {
output.append(line +"n");
}
response = output.toString();

} catch (IOException e) {
e.printStackTrace();
return null;

}
return response;

}
}
[Android Studio] Grimspiller:
What is easier to display data from text file in: TableLayout or ViewList? If not sure total number of rows? Is there something for scrooling through it if can't fit the screen?
[Android Studio] satyampv:
Scrollview

1) Yes. Android provide scrollview to scroll on your query.

A. Horizontal scrollview

B. Vertical Scrollview.

Also you can you onTextwatcher() to check if the field size increase , onAfterTextchanged() method you can resize the box is.

private final TextWatcher passwordWatcher = new TextWatcher() {

public void beforeTextChanged(CharSequence s, int start, int count, int after) {

}

public void onTextChanged(CharSequence s, int start, int before, int count) {

textView.setVisibility(View.VISIBLE);

}

public void afterTextChanged(Editable s) {

if (s.length() == 0) {

textView.setVisibility(View.GONE);

} else{

textView.setText("You have entered : " + passwordEditText.getText());

}

}

};
[Android Studio] Grimspiller:
I found this tutorial for multicolumn ListView on techlovejump.com ,but data for it is hardcoded. I am not sure is it suitable for dynamic data adding from text file.
[Android Studio] satyampv:
Dynamic Data

hey, As you see on after afterTextChanged(Editable s)

You can again call your table structure code to design it as per size.

I think you should try it once.

Share some amount of code if you find it difficult. I will help you afterTextChanged(Editable s).
[Android Studio] Grimspiller:
I don't need to write text but to read it. Can you look at this code and tell me what is the problem? It can't find the file.

void showData(){
File fajl = new File("phonebook.txt");
try {
BufferedReader br = new BufferedReader(new FileReader(fajl));
String line;
try {
while ((line = br.readLine()) != null) {
TableRow tr = new TableRow(this);
tr.setLayoutParams(new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.FILL_PARENT,
RelativeLayout.LayoutParams.WRAP_CONTENT));
TextView im = new TextView(this);
im.setText(line);
im.setTextColor(Color.BLACK);
im.setLayoutParams(new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.FILL_PARENT,
RelativeLayout.LayoutParams.WRAP_CONTENT));
tr.addView(im);

tablel.addView(tr, new TableLayout.LayoutParams(
RelativeLayout.LayoutParams.FILL_PARENT,
RelativeLayout.LayoutParams.WRAP_CONTENT));
}
} catch (IOException e) {
e.printStackTrace();
}

} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
button2.setOnClickListener(new View.OnClickListener() {
[MENTION=439709]override[/MENTION]
public void onClick(View v) {
showData();
}
});

I have added to xml TableLayout and one row as header.

I use this for writing to text file:

button.setOnClickListener(new View.OnClickListener() {
[MENTION=439709]override[/MENTION]
public void onClick(View v) {
try {
FileOutputStream fos = openFileOutput("phonebook.txt", Context.MODE_WORLD_READABLE);
OutputStreamWriter osw = new OutputStreamWriter(fos);
osw.append(textbox1.getText().toString() + "\t" + textbox2.getText().toString() + "\t" + textbox3.getText().toString());
osw.write("\r\n");
osw.close();
textbox1.setText("");
textbox2.setText("");
textbox3.setText("");
textbox1.requestFocus();
} catch (IOException ex) {
Logger.getLogger(MainActivity.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
}
}
});

Debbuger says it's writting file and lines just fine. But why I can't read it?
[Android Studio] Grimspiller:
It creates "files" folder inside my app folder. And inside files it is phonebook.txt.
[XDA Assist] sunny.su:
A/I UsbThread1 : usbServerSocket : Waiting for the host to connect

W/I waiting android server connection ... 1

W/I Waiting for connection

W/I Sending busybox21

A/E UsbThread1.run() loop error. firstByte : 39 : WTOA_copyFile

A/E UsbThread1.run() loop error. lastCommand : 32 : WTOA_setGlobalVar

A/E UsbThread1.run() loop error. Exception type : class java.io.FileNotFoundException

A/E UsbThread1.run() loop error. Exception message : /storage/emulated/0/busybox21: open failed: EACCES (Permission denied)

A/E UsbThread1.run() loop error. Exception cause : libcore.io.ErrnoException: open failed: EACCES (Permission denied)

A/E UsbThread1.run() loop error. Exception string : java.io.FileNotFoundException: /storage/emulated/0/busybox21: open failed: EACCES (Permission denied)

A/E libcore.io.IoBridge.open(IoBridge.java:409)

Plz gv the solution on these
[XDA Assist] jd1639:
Hi, thank you for using XDA Assist. Can you explain what you are trying to do and what device you have?
[Android Themes] J.E.abhishek kumar:
Description

This theme works with all roms having latest theme engine..!! if you don't have a rom with theme engine support then this theme is no need for you.!!:D

This is a Cyanogenmod 12 theme based on vivid colors which suites on each device and match with every one's taste

Features:

- Beautiful icons and concept of theme

- Well themed apps with suitable colours

- Regular updates

- Quick response from developer

Whats themed:

*Framework

*System UI

*Calculator

*Contacts

*Dialer

*Messenger

*Setting

*CM-Updater

*Play Store

*Music-App

*File manager

*Google plus

*Whatsapp

*CM-Manager

*Check out screenshots for a visual experience of this awesome theme :)

DOWNLOAD LINK:​

PAID DOWNLOAD:https://play.google.com/store/apps/details?id=com.abhishek.popuptheme

FREE DOWNLOAD:http://www.mediafire.com/download/9lm2u3lmm431ej4/popup_12.1.apk

SOME SCREEN SHOOTS​

If you have any issues, suggestions, improvements, if you want to interact with other users head over to our Community in Google Plus

https://plus.google.com/communities/117099665533858522277

Note :-

- Any custom ROM which supports theme engine can be used for applying and using this amazing theme

- Please update your custom ROM to the most recent build to enjoy this theme better

- Please contact me if you find any bug before rating this theme bad

Special thanks to:

Monish

tung91

Cristiano Spada
[Android Themes] LironImaN:
I like it very much, but let me suggest some changes:

1. Whatsapp color is too bright, I think you should make it darker. Can I suggest a new color? (click here)

2. I'm using RTL language, so the Wi-Fi icon on status bar looks weird (click here). There is anyway to switch the icon direction?
[Android Themes] J.E.abhishek kumar:
Buddy wifi icon direction can't be changed because more then 95% dont use RTL :o and please see whats app ss on play store dont know why this color comming in you case
[Android Themes] nagorimayank:
Awesome theme there mate!!! Using as a daily! Few bugs to report:

1. Settings -> Google gives System FC

2. Dialer Fc sometimes

3. Email notifications: Black on dark issue

Awesome theme!
[Android Themes] J.E.abhishek kumar:
For me their is only setting issue and that will be solved in next update i haven't got any dialer or email issue you must update your rom and reboot your device
[Android Themes] LironImaN:
That blue is not the color I get from your theme, I suggested a color for you because your green is too bright.
[Android Themes] J.E.abhishek kumar:
Buddy if u see ss of whats app on play store u can see the color you are getting is totally diffrent i used a diffrent color but don't know why you getting this color :confused:
[Android Themes] tibaland:
hello, i liked you theme and a want to know if paid version is the same to the free version.
[Android Themes] J.E.abhishek kumar:
Paid versions are always better u get better exepriance in few $ have quick updates quick bugg solved more things themed in better way :)
[Android Themes] ThunderSky7:
Your Theme is too Good.

But

1. Dialer FC Sometimes.

2. cm file manager Folder icon, colour overlapping. (Screenshot Attached).

{On Latest CyanogenMod 12.1}
[Android Themes] J.E.abhishek kumar:
Will be solved in next update :D
[Android Themes] Ryanroyale:
Weather Widget

Hi there.

This design is amazing!! Great work!

Just wanted to know what weather/clock widget are you using here?

Really like the material look of it.

Is it a skin for Zooper?
[Android Themes] J.E.abhishek kumar:
Buddy widget is x widget to enjot the sexy clock go grab theme theme from play store and u will get the deskclock like in ss :)
[Android Themes] shadowstep:
Love the theme mate! Great job! Btw, I am using Euphoria-OS, and there is an unthemed icon there, for the Buttons setting menu. Would it be possible for you to get that themed as well? A lot many people use this ROM, and it'll be truly appreciated! :)
[Android Themes] J.E.abhishek kumar:
Ya i will theme it buddy :)
[Android Themes] alemones:
Justa install the apk and set in THEME options?
[Android Themes] J.E.abhishek kumar:
Buddy apply it normally like you apply other theme :good:
[Android Themes] hassan_1000:
Amazing theme!!! Absolutely loving the font.

Could I ask what the font name is please?
[Android Themes] J.E.abhishek kumar:
Thanks buddy and font is boriol:fingers-crossed:
[Android Themes] J.E.abhishek kumar:
Can u send me log cat of dialer..?
[Android Themes] ThunderSky7:
Logs attached.

CM bug report also attached.
[Android Themes] J.E.abhishek kumar:
thanks buddy i will try to fix it as soon as possible :):good:
[Android Themes] J.E.abhishek kumar:
themed it will be solved in next update:laugh:
[Android Themes] J.E.abhishek kumar:
Theme updated to v1.1
[Android Themes] J.E.abhishek kumar:
Thanks u all guyz..!! 3k + downloads on theme :fingers-crossed:
[Android Themes] J.E.abhishek kumar:
Which rom do you use..?
[Android Themes] LironImaN:
This one

http://xdaforums.com/galaxy-s4/i9500-orig-develop/5-0-cyanogenmod-12-beta-t2944968
[Android Themes] J.E.abhishek kumar:
i suggest you to use official rom
[Android Themes] zGabi123:
Theme will work on any rom with cm12 theme engine...

Sent from my LG-D802
[Android Themes] LironImaN:
Why?
[Android Themes] J.E.abhishek kumar:
to get better experience of the theme :):)
[Android Themes] LironImaN:
But this theme compatible with CM12 theme engine. Stock ROM does not support themes.
[Android Themes] vbtechx:
Loving this theme! Icons look especially good. May I ask which clock widget is being used in the screenshot above?
[Android Themes] J.E.abhishek kumar:
the clock widget is the stock clock i themed it :)
[Android Themes] J.E.abhishek kumar:
ya any rom with cm theme engine :)
[Android Themes] Alex03n91:
cool

Very cool theme !!!!!
[Android Themes] J.E.abhishek kumar:
thanks for giving it a try:laugh:
[Android Themes] J.E.abhishek kumar:
ya but i add few things which support new updates also and they are very cool ;)
[Android Themes] J.E.abhishek kumar:
Theme updated to v2.4
[Android Themes] alemones:
Great theme..petfect

Enviado de meu LG-D855 usando Tapatalk
[Android Themes] OmarQuintero:
Nice theme.

Thanks.
[Android Themes] J.E.abhishek kumar:
Glad to know that you enjoyed the theme :)
[Android Themes] franq36:
nice thx :good:
[Android Themes] J.E.abhishek kumar:
welcome.!!
[Android Themes] peddarson:
Nice theme.

But sometimes i cannot read the notification text because it is too dark.
[Android Themes] J.E.abhishek kumar:
Can u provide me some. SS it will make my work easy to solve the issue :)
[Android Themes] J.E.abhishek kumar:
Thanks for trying it :o
[Android Themes] cracker12:
Hi, great theme! If I may i wanna give a opinion and ask some question.

Are status bar icon resized to hdpi resolution? network icon and wifi icon for example are a bit big. :(

in quick setting painel in option to select and change button are weird or in white and battery mode toggle are wrong... Icon don't match with power saver, perfomance and the other one

Can you adpat icon of pac setting of pac rom?

and finally in status bar the vibration and alarm icon animations don't make to spend more battery?

good work :D
[Android Themes] peddarson:
Found another little thing in your theme:

Compare the colour of the navigation bar. If the keyboard comescomes up the colour gets a lot darker.

Also the left icon changes to stock again
[Android Themes] J.E.abhishek kumar:
Glad you like the theme:fingers-crossed:
[Android Themes] J.E.abhishek kumar:
Ya this will be fixed
[Android Themes] greg285:
Hi,

Just discovered your theme ...looks nice and clean

Is it possible to theme specials icons in notification bar (notifications, heads up, play, sound panel and custom search which came from sliroms qs panels) ?

Attached is a screenshot..i can provide files if needed :)

Thanks

edit : can we know which font is used in the theme ?
[Android Themes] J.E.abhishek kumar:
i will theme it but you need to send me setting.apk of the rom
[Android Themes] greg285:
Great thanks !

What do u need exactly ? System.apk or more ?

Envoyé de mon A0001 avec XDA Forums

edit : oh ok did not see you mentionned settings.apk...can you let me know where to find it ?
[Android Themes] J.E.abhishek kumar:
yea send me system.ui
[Android Themes] greg285:
Here it is :)

As said if you could theme those 4 non themed icons that would be awesome :good:
[Android Themes] J.E.abhishek kumar:
ok i will add them :good:
[Android Themes] J.E.abhishek kumar:
theme got updated :)
[Android Themes] greg285:
Great :)

I checked on playstore and did not see a new version ....Is it version 3.3 or still 3.2 ?
[Android Themes] J.E.abhishek kumar:
3.2 not got time to post on xda after updating the theme ..!! so i was lil late to post here :D
[Android Themes] greg285:
Oh ok i have 3.2 but did not see the changes on those 4 icons ...am i missing something ?
[Android Themes] J.E.abhishek kumar:
will try to add them in next update

:good:
[Android Themes] ikbenben201:
Very nice theme. Thx :good:
[Android Themes] Anomalchik:
Nice theme
[Android Themes] J.E.abhishek kumar:
Glad u like it :)
[Android Themes] J.E.abhishek kumar:
Theme now support cm13 te
[Android Themes] J.E.abhishek kumar:
THANKS EVERY ONE POP UP REACHED 7.5k+ DOWNLOADS
[Android Themes] Rizali:
Awesome theme..
[P3300, MDA Compact III  upgrading etc.] ylatsj:
Dears,

wdata command can write data to P3300. It is possible to use this command to upgrade ROM and get around the CID lock?

If so we can make a RUU program to flash anything into ROM.

Is this pssible?
[P3300, MDA Compact III  upgrading etc.] Tamagochi:
Of course its a good idea but I think the process is much more complicated. The update proccess depends not only on ROMUpdateUtility but also depends on the Bootloaders security. If the bootloader does not open the port for entering data, no data can be entered so no ROM update can be done. Bootloader opens the port only when the CID in the ROM file maches with the device's CID and the Signature is intact. Thats why we need USPL that does not check CID and Signature.
[P3300, MDA Compact III  upgrading etc.] ylatsj:
I thought IPL won't check CID lock for wdata command. So I guess we can use wdata to flush anything into ROM (a clean,pure WM without any headers)

And we don't use ROMUpdateUtility but write an application to directly deal with the USB port on bootloder.

The purpose is to save hundreds of bricked phones. The current SuperCID program doesn't work with bootloader mode!!!

Anyone can tell me what address the Artemis OS begins with so that I can make the USB applicaiton to try to flush OS to the ROM address?
[P3300, MDA Compact III  upgrading etc.] saudi-brazil:
great!!

I think POF can help you

He is active in Hermes treads
[P3300, MDA Compact III  upgrading etc.] Tamagochi:
I dont think so, the SPL is like a bodyguard. To be able to write to the flashROM, some ports should be opened (enable write mode). Only the SPL can enable write mode, and it is very stubborn. Every time an application tries to write to the DOC, it asks for the CID and Signature. If these info do not match with the ones inside the DOC, it will refuse to enable write mode. You can fool it with CID but you cannot fool it with Signature unless you can imitate the signature and use it to sign the ROM file.

So the problem is how to imitate the signature or to extract it from a signed one.
[P3300, MDA Compact III  upgrading etc.] gamefreaks:
First, sorry for q on first post and no introduction.

Basically, im male, so didn't rtfm until I got stuck...CID Locked device...botched WM6 upgrade...blah blah...bootscreen...blah...you know the score.

This thread has piqued my interest though. I am a programmer with quite a bit of experience of embedded devices. I figured that there is some way to do something like this...but not really sure how as documentation is a bit thin on the ground!

What does the wdata command actually do? My understanding is that it copies arbitary data into the devices address space...but where from? We have a dst and len, but what is the src?

wdata [Len [StartAddr]]

I assume that the flash-rom is simply mapped into linear address space.
[P3300, MDA Compact III  upgrading etc.] ylatsj:
This is what I thought as well that the flash-rom is simply mapped into linear address space. But I don't know where it sits and which segment is for IPL,SPL,OS,EXTROM. etc...

And I am not sure if the IPL will secure the ROM write when it execute the "WDATA" command.

Here is the introduction for WDATA command

wdata [StartAddr Len]

Write data to memory(if write to ROM, need erase first).

StartAddr : Start address of memory.

Len : How many bytes will be written.

Length must not more than 0x10000 bytes(buffer limitation).

Write to RAM: 4 bytes(CRC checksum limitation).

1 byte(in user mode).

Write to ROM: 4 bytes(CRC checksum limitation).

2(16-bit)/4(32-bit) bytes(in user mode).

Write to ROM(16-bit data bus): 32 bytes(writebuffer mode).

Write to ROM(32-bit data bus): 64 bytes(writebuffer mode).

Length must be 4 bytes boundary(CRC checksum) if not in user mode.

After command execute, then send out the data to terminal.

Data format: HTCS(4 bytes)+DATA+checksum(4 bytes, if not in user mode)+HTCE(4 bytes).

Also please check this URL

http://xdaforums.com/archive/index.php/t-285112.html

Pay atttention on this

Write data to memory(if write to ROM, need erase first).

"If write to ROM" This means the ROM is for sure being mapped into the memory space. And what important is that WDATA doesn't talk to the IPL on any CID information. This possibly means that IPL won't stop a write to ROM.

So it is worth to give a try here. The information we need before make the USB application is:

1) Where does the ROM start inside the memory address space

2) Where does the OS start and end

3) How to erase the ROM before WDATA (Another USB command but what is it)

Actually, if we know where the IPL starts we could even directly flush the IPL to Pof's superCID. But this is a little dangerous becasue it is possible to crash the IPL ROM so that the Artemis even can't start bootloader. So better not do it but to flush the OS only and make the birck start first. Then use Pof's baby to flush the SuperCID.

OK, long post. Hope we can have more experts in this thread. Thank you folks for your attention on my topic.