yashsingh1/xdaforums huggingface dataset:
[Galaxy Camera Q&A, Help & Troubleshooting] QA Bot:
Q&A for UnBrickable SD necromancy- Totally restore your device.

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 UnBrickable SD necromancy- Totally restore your device.. 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! :)
[Galaxy Camera Q&A, Help & Troubleshooting] alexlofredo:
Hi Adam... I wanted to know if the project continues or was abandoned... works for my i9300? please answer me!
[Android Q&A, Help & Troubleshooting] QA Bot:
Q&A for Need help Lollipop Root

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 Need help Lollipop Root. 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! :)
[Android Q&A, Help & Troubleshooting] vijayvimal:
Are you having trouble while updating or while bootting after update ??
[One (M8) Q&A, Help & Troubleshooting] mushtafa:
Hi all, my speakers have blown. They crackle and distort. I've contacted HTC for warranty, but it sounds like a major ball ache. It'll take them 7-10 working days, and if they see any reason to reject the warranty, they'll charge me.

I've unlocked the boot loader from HTCDev, so I assume they would know that I've voided the warranty.

Has anyone replaced the speakers themselves? Where would I even look for parts?

Cheers
[One (M8) Q&A, Help & Troubleshooting] timbohobbs:
I returned mine to HTC (a UK repair place ) with unlocked bootloader for a cracked camera lens. No issues at all and returned to me within 5 working days free of charge. It's possible to relock the boot loader and return to complete stock but I just flashed a stock rom with stock recovery and left boot loader and s-off.

Up to you but they're meant to contact you before they proceed with any work that's not under warranty.

I'd try this before taking it apart
[One (M8) Q&A, Help & Troubleshooting] mushtafa:
Did you go through HTC, or directly to the repair compnay?

HTC have said they will also update the software to the latest stuff for diagnostic reasons. I'm sure I read somewhere that Sunshine doesn't work with the latest handsets?
[One (M8) Q&A, Help & Troubleshooting] timbohobbs:
Through HTC. Sunshine worked for me on lollipop, phone is 4 months old. For hardware issues you shouldn't have a problem with modified software but I felt better for flashing the stock rom zip and stock recovery. They always say that unlocking bootloader MAY void warranty, but there is always the UK sale of goods act that they need to comply with too. Worst case is they charge you for return of phone but unlikely if you challenge them . You can ruu back to complete stock also but I never bothered. If you open your phone up yourself you're more likely imo to lose warranty and you never know when you may need it again
[One (M8) Q&A, Help & Troubleshooting] xymay:
I recommand this guy's tutorial video https://www.youtube.com/watch?v=kDsZLl_JzwA the speaker disassembly starts at 7:22, and for the part, I recommand this: http://www.etradesupply.com/htc-one-m8-loud-speaker-assembly.html
[Upgrading, Modifying and Unlocking] Lannig:
Hello folks,

Been hacking firmwares for Allwinner SOC-based tablets for a while. The key to "porting" firmwares bertween similar tablets used to be the script.bin / script0.bin files found in the bootloader (nanda) FAT partition.

However since Kitkat things have changed and these files are no more. The data still is somewhere though, and probably in the same format.

When a stock flashable image is available, imgRePacker or DragonFace allows for extracting the binary (config.fex) file and corresponding source (sys_config.fex). However I'm wondering how to get this from a tablet for which no such Livesuit/Phonenixsuit image is available.

After many hours of hacking, I've eventually found a way to extract it from a live, booted (and rooted) tablet because the data is mapped into the SOC's virtual address space (details will come in a later post if there's interest).

I have yet to find a way to dump it from the tablet's NAND flash memory. AFAIK this data is *not* in a section of the NAND flash memory that's accessible through the /dev/block/nandX partition devices.

I've made some progress by using the Phoenixcard tool and make it generate a bootable SD card with a full Android firmware aboard (as opposed to the minimal system used for an upgrade). The binary "script.bin" data can be found in a section of the SD card formatted in what looks like a proprietary, very rudimentary filesystem (well, more like subpartitions with a name really). Reverse-engineeering this doesn't look very difficult, it's basically a table of contents with a name and a logical block number. However I have found no way yet to reach this area of the tablet's internal NAND flash memory.

Not sure that studying the publicly released A23 SDK v1.0 code will lead to a solution because AFAIK it seems to be for Jellybean (4.2) firmwares, which still used the old script.bin in bootloader partition scheme.

I've spent much time Googling for this and haven't found any public information on this, so I'm opening this thread with the hope that it will catch the right people's eyes.
[Upgrading, Modifying and Unlocking] jawbonegroove:
just picked up a generic a83 tablet and i'm anticipating this sort of thing. my hardware info is at your disposal. i'll be digging in myself in the next few days to dump the nand and see what i can and can't to with the stock rom.

cpuinfo is reporting sun8i, i thought the a83 was sun9i, so i need to clarify that. stock rom is KK 4.4.4 no su. let me know if you want to collaborate.
[Upgrading, Modifying and Unlocking] lolet:
Maybe not perfect but the fastest way is use /sys/class/script/dump, you only need to know the section names

root@shady:/sys/class/script # echo lcd0_para > dump
echo lcd0_para > dump
root@shady:/sys/class/script # cat dump
cat dump
++++++++++++++++++++++++++__sysfs_dump_mainkey++++++++++++++++++++++++++
name: lcd0_para
sub_key: name type value
lcd_bl_en gpio (gpio: 25, mul: 1, pull 0, drv -1, data 1)
lcd_power gpio (gpio: 204, mul: 1, pull 0, drv -1, data 1)
lcd_pwm gpio (gpio: 161, mul: 2, pull 0, drv 2, data 1)
lcd_gpio_0 gpio (gpio: 158, mul: 1, pull 0, drv 2, data 1)
lcd_gpio_1 gpio (gpio: 159, mul: 1, pull 0, drv 2, data 1)
lcd_gpio_2 gpio (gpio: 23, mul: 1, pull 0, drv 2, data 0)
lcd_gpio_3 gpio (gpio: 157, mul: 1, pull 0, drv 2, data 1)
lcd_gpio_4 gpio (gpio: 26, mul: 1, pull 0, drv 2, data 1)
lcdd2 gpio (gpio: 72, mul: 2, pull 0, drv 2, data -1)
lcdd3 gpio (gpio: 73, mul: 2, pull 0, drv 2, data -1)
lcdd4 gpio (gpio: 74, mul: 2, pull 0, drv 2, data -1)
lcdd5 gpio (gpio: 75, mul: 2, pull 0, drv 2, data -1)
lcdd6 gpio (gpio: 76, mul: 2, pull 0, drv 2, data -1)
lcdd7 gpio (gpio: 77, mul: 2, pull 0, drv 2, data -1)
lcdd10 gpio (gpio: 80, mul: 2, pull 0, drv 2, data -1)
lcdd11 gpio (gpio: 81, mul: 2, pull 0, drv 2, data -1)
lcdd12 gpio (gpio: 82, mul: 2, pull 0, drv 2, data -1)
lcdd13 gpio (gpio: 83, mul: 2, pull 0, drv 2, data -1)
lcdd14 gpio (gpio: 84, mul: 2, pull 0, drv 2, data -1)
lcdd15 gpio (gpio: 85, mul: 2, pull 0, drv 2, data -1)
lcdd18 gpio (gpio: 88, mul: 2, pull 0, drv 2, data -1)
lcdd19 gpio (gpio: 89, mul: 2, pull 0, drv 2, data -1)
lcdd20 gpio (gpio: 90, mul: 2, pull 0, drv 2, data -1)
lcdd21 gpio (gpio: 91, mul: 2, pull 0, drv 2, data -1)
lcdd22 gpio (gpio: 92, mul: 2, pull 0, drv 2, data -1)
lcdd23 gpio (gpio: 93, mul: 2, pull 0, drv 2, data -1)
lcdclk gpio (gpio: 94, mul: 2, pull 0, drv 3, data -1)
lcdde gpio (gpio: 95, mul: 2, pull 0, drv 2, data -1)
lcdhsync gpio (gpio: 96, mul: 2, pull 0, drv 2, data -1)
lcdvsync gpio (gpio: 97, mul: 2, pull 0, drv 2, data -1)
deu_mode int 0
lcdgamma4iep int 22
smart_color int 90
lcd_used int 1
lcd_if int 6
lcd_driver_namestring "b079xan01"
lcd_x int 768
lcd_y int 1024
lcd_width int 0
lcd_height int 0
lcd_dclk_freq int 66
lcd_pwm_freq int 50000
lcd_pwm_pol int 1
lcd_bl_0_percentint 2
lcd_bl 5_percentint 5
lcd_bl_10_percentint 15
lcd_bl_25_percentint 20
lcd_bl_50_percentint 37
lcd_bl_75_percentint 58
lcd_bl_100_percentint 73
lcd_hbp int 120
lcd_ht int 948
lcd_hspw int 64
lcd_vbp int 80
lcd_vt int 1140
lcd_vspw int 50
lcd_hv_if int 0
--------------------------__sysfs_dump_mainkey--------------------------
[Upgrading, Modifying and Unlocking] Lannig:
[MENTION=3723243]lolet[/MENTION]: thanks for the tip. I was already aware of this. It's a handy way to grab the textual contents of a particular section but there are drawbacks: you can't request too long of a section or the complete data, on my A23 tablet it causes a kernel panic. Probably an unhandled buffer overflow.

I've found another way to get the full, binary (compiled) data by running the following script on the tablet:

#!/system/bin/sh

SYS_CONFIG_MEMBASE="0x43000000"
SYS_CONFIG_MEMSIZE="0x10000"
CHUNK="0x200"
OUTFILE=/mnt/sdcard/sysconfig_dump.txt

rm $OUTFILE
let address=$SYS_CONFIG_MEMBASE
let "end=(SYS_CONFIG_MEMBASE+SYS_CONFIG_MEMSIZE)"
while [ $address -lt $end ]; do
let "last=(address+CHUNK-1)"
busybox printf "%04x,%04x\n" $address $last
busybox printf "%04x,%04x\n" $address $last > /sys/class/sunxi_dump/dump
cat /sys/class/sunxi_dump/dump >> $OUTFILE
let "address=(address+CHUNK)"
done

This produces a file going like:

0x43000000: 0x00000045 0x00000000 0x00000001 0x00000002

The next Perl script will put back the data in the correct byte order and convert it to raw binary data:

#!/usr/bin/perl

while(<>) {
chomp;
@words = split;
shift @words;
foreach $w (@words) {
$w =~ s/^0x//;
$w = reverse(pack('H*', $w));
print $w;
}
}

(reads hex dump on stdin, produces binary data on stdout)

The resultant binary file has passed the "fexc -I bin -O fex binfile fexfile" test successfully and checking a sample of sections against the data returned by the method you have mentioned has shown the data as consistent.

However, neither of this provides an answer to my main question: where is the bloody data in the NAND flash of the tablet when it's no longer in the script.bin/script0.bin files from the bootloader partition?
[Upgrading, Modifying and Unlocking] jawbonegroove:
lanning: is uboot even using script.bin? I've just started poking around, and the uboot output over serial during startup includes this peculiar line:

mount part name bootloader
cant open script.bin, maybe it is not exist

looks like maybe my tablet is asking your question too...?
[Upgrading, Modifying and Unlocking] Lannig:
[MENTION=5250555]jawbonegroove[/MENTION]: well, I haven't got as far as hooking a serial interface to my Allwinner tablets yet, because I need to buy a converter first. It's in my todo list.

So I haven't seen this message.

I presume that uboot does use sysconfig data, but it might be able to get it from the legacy location (script.bin file in bootloader FAT partition) and the new one (somewhere well hidden on the NAND flash). Not finding it in the legacy location might cause this message to be sent out, don't know.

What I know for sure is that the kernel does find and use sysconfig data, wherever it is, because it's mapped to the kernel VM and kernel modules use this data to configure themselves.

And by the way, it's "Lannig", no "n" before the "g", thanks :D
[Upgrading, Modifying and Unlocking] jawbonegroove:
lanniG: (sorry) I also haven't done much with serial yet, mainly just logged a normal boot. It does also show this nand layout...

--------fastboot partitions--------
-total partitions:10-
-name- -start- -size-
bootloader : 1000000 1000000
env : 2000000 1000000
boot : 3000000 1000000
system : 4000000 30000000
misc : 34000000 1000000
recovery : 35000000 2000000
cache : 37000000 30000000
metadata : 67000000 1000000
private : 68000000 1000000
UDISK : 69000000 0
-----------------------------------
[Upgrading, Modifying and Unlocking] Lannig:
[MENTION=5250555]jawbonegroove[/MENTION] (now I'm trying not to misspell it ;)): you said you got this chinglish message "cant open script.bin, maybe it is not exist". From what log did you get it? It comes from u-boot, I'm fairly sure of this. The dmesg command doesn't show messages coming from that early in the boot process, only kernel messages.

The partitioning: nothing out of the usual here. These can be addressed through the /dev/block/nandX (X=a,b,...) and /dev/block/by-name/* device files.

AFAIK from my searches, the binary configuration data formely contained in script.bin is nowhere to be found in any of these partitions. So my guess is that it's outside of the NAND flash memory addressable through these devices files. Possibly in between the MBR and the nanda partition.
[Upgrading, Modifying and Unlocking] jawbonegroove:
yeah, that was uboot over the serial console. i just used serial again to root it last night so i've got nand images to play with now. in regards to the op:

root@octopus-ibt:/ # mount -t vfat /dev/block/nanda /data/nanda
root@octopus-ibt:/ # cd /data/nanda/
root@octopus-ibt:/data/nanda # find .
.
./font24.sft
./bat
./bat/low_pwr.bmp
./bat/bat0.bmp
./bat/bat1.bmp
./bat/bat3.bmp
./bat/bat9.bmp
./bat/bat8.bmp
./bat/bat2.bmp
./bat/bootlogo.bmp
./bat/bat4.bmp
./bat/bempty.bmp
./bat/bat5.bmp
./bat/bat7.bmp
./bat/bat6.bmp
./bat/battery.bmp
./bat/battery_charge.bmp
./bat/low_pwr_bak.bmp
./bat/bat10.bmp
./bootlogo.bmp
./font32.sft
./magic.bin
./data.notfirstrun

i don't have a script.bin, but i've got a magic.bin. (and, it does try and boot from an sdcard partitioned for uboot. i'll probably try to put together a bootable sd image sooner than later.)

what do your nanda and kernel cmdline look like?

[edit] also, have you used meminfo?
[Upgrading, Modifying and Unlocking] Lannig:
I've had a few A23 tablets in my hands, most KK-based and one JB (4.2).

Some don't have any script0.bin/script.bin file in the bootloader partition, but a magic.bin file just as you mention. However if you open this file you'll see that it has most likely nothing to do with h/w configuration. It's just a few hex strings looking like filesystem UUIDs.

Some of them do have a script0.bin file only (no script.bin) which I'm almost sure is completely ignored (I've tried modifying it with no visible effect). Checking its contents against the config data extracted from the live tablet as explained above (kernel memory dump through the /sys interface) shows that it does not even match 100%. I suspect it's a leftover.

Besides this, bootloader partition's contents looks exactly like what you've listed.

Command line: nothing unusual:

console=ttyS0,115200 rw init=/init loglevel=4

Have you actually managed to make a fully bootable SD yet for an A23 tablet? I'm not sure I get what you wrote. If you did, please tell us more. That's something I've done in the A10 times but it was using a special version of u-boot I don't know where to find for the A23.
[Upgrading, Modifying and Unlocking] jawbonegroove:
hm, good to know. i haven't found many resources for sunxi hardware...linux-sunxi has some good info but its scattered and they seem kind of militant about joining their cause before they'll help you...

ill keep digging.
[Upgrading, Modifying and Unlocking] jawbonegroove:
didn't see that last sentence before. no, this a83 is my first allwinner...i say it tried to boot because when i put in an sd card with uboot mbr and friends (semi-random device fs image), it powered on but with no visible response -- it didn't just continue with a nand boot until i pulled the card and hard reset it. maybe all that tells me is that i don't need to muck about with button sequences or whatnot to boot from sd.
[Upgrading, Modifying and Unlocking] Lannig:
Oh well, no need to try this actually.

Allwinner devices do have the SD card

before

the internal NAND in the boot sequence. So they will try booting from the SD if they find an uboot structure there. This is true since the A10 days (and still is).
[General Questions and Answers] M.E.10:
how to backup google translate offline dictionaries ?

to be able to restore them after installing roms or updating firmware
[General Questions and Answers] xazakasrizava:
Use TitaniumBackup® to backup and restore apps just make sure the backed up files don't get deleted!
[General Questions and Answers] M.E.10:
i will try it now and tell you about the result :)
[General Questions and Answers] CarameloPT:
I'm changing my phone's rom but I dont want to lose the saves i have on MyBoy. If I transfer them to PC and then tranfer again to myboy will they work?
[Zooper Widget General] Leandro.DR:
Hello friends!

It's been almost two years that do not use the Zooper Widget, I was with a Windows Phone and returned to Android two weeks ago. Then wanted a help to remember how to do some things I really do not remember. Following is the list:

1. How to hide coverart and replace it with another image when no music is playing. How to do this with texts as well?

2. Displaying the total time of a song and the elapsed time?

3. How to make a circle go a stretch as progress bar while the music plays? Like the PC players who usually has a circle that runs the progress bar.

For now that's what I do not remember. I appreciate any help. And sorry for my bad english.
[JAMin, XDA Neo, S200 General] peakerin:
hi..i installed wm6 in my neo from wm5..but there was a problem in my phone...i cannot retrive my contacts.....is everyone having same problem in wm6....i am asking beacuse my friend also had same problem...i felt the rom i downloaded has that defect....can u comment on it....and when my friend installed vista also same problem araised....if any one have idea please help me....

thanks in advance...
[JAMin, XDA Neo, S200 General] hargibi:
Did you do a Hard reset after u installed wm6?

That helped me to get it to work :)
[X 2014 Q&A, Help & Troubleshooting] rohithksaj:
My XT1092 is getting over heated while charging..... Am experiencing this for the past one month....Any ideas?? :rolleyes:

I played with the bootloader and stuff and realized that stock is the best.... And now am having unlocked bootloader and stock system..... :)
[X 2014 Q&A, Help & Troubleshooting] Obeyryan:
My battery was getting as hot as 110 degrees when just using it. Their support staff told me to boot into recovery and clear the partition. This worked for me. It still gets hot, but hardly reached over 100 degrees now.
[X 2014 Q&A, Help & Troubleshooting] rohithksaj:
My phone gets hot while playing games also... Y this?? What's the solution for this??.. :confused:
[X 2014 Q&A, Help & Troubleshooting] Obeyryan:
I forgot the actual steps..but turn off phone, turn on by holding the power button and volume down key for a few seconds > boot into recover > hold power key and volume up for a bit > look for the option to clear partition. That worked for me.
[X 2014 Q&A, Help & Troubleshooting] rohithksaj:
OK.. Thanks... Let me check it out :)
[HTC Butterfly] solimantec:
my butterfly x920e stopped through update

I was update it by htc sync at 50 percent program gave unsuccesfull update so my htc doesn't open it gives the word htc and vibrates then give red triangle . computer cant see it .

it also gives the word ***Locked***

plz can anyone help me to solve this problem
[Sprint Samsung Galaxy S III] ejaf:
Hi all...

Trying to find definitive answer, and new to S3s. I have cobbled together an L710 from parts, and now want to install CM10 or CM12. I originally started the project with an i535 from Verizon, and got one with a version that was "knoxed", so could not go to CM.

Is MK3 knoxed? if it is, can I assume (like on the i535) that tryng to install another bootloader will trip and brick?

I have done some searching, but don't see a similar thread that has big warning about Knox, like on the Verizon forum. If anyone knows where that is, please do point me, so I can RTFM.

Thanks in advance...Eric
[Sprint Samsung Galaxy S III] ejaf:
OK...been reading through the noob thread, and if I am reading correctly, even though 4.3 and later are knox'd, it does matter, since it can be disabled.

Big difference than the SCH-I535 Verizon model, huh?

Am I reading correctly?

Eric
[Sprint Samsung Galaxy S III] ejaf:
ty
[G4 Q&A, Help & Troubleshooting] magoo1275:
Hi friends how are you doing?

I just got my LG G4 last Friday.

My only complaint is the touch screen response time and sensitivity compared to my old Galaxy S4.

Right know I hope you guys can help me with to phone issues:

1. Anyone manage to use SwiftX keyboard?

I am trying to use it without success. After Swiftkey X instalation it tries to add the keyboard under Settings/Input and Language, but I can’t select the Swiftkey X square checkbox.

2. Many third part apps are not allowed to write in the SD Card.

Some apps as MX player and Solid Explorer opened a screen and ask to select SDCard root to add a write permission on SD Card. But not all apps do that, for example Ttorrent.

Is there a way to add SD Card write permission in this case?
[G4 Q&A, Help & Troubleshooting] Apkbuccsfan:
I have the same issue with both. In Poweramp it does give me the option to approve the permissions but after I do approve it by selecting external sd I still have the same problem. Also like you said, some apps don't even give me the option. I am used to Samsung phones so I don't know if there is some kind hidden setting or something for this but it is really annoying to me. Hopefully someone answers this...
[G4 Q&A, Help & Troubleshooting] magoo1275:
Hey guys, anyone manage to use swiftkey with LG G4 ?

Actually I cant select any keyboard other than LG keyboard. Tried with Google keyboard and had the same problem.
[G4 Q&A, Help & Troubleshooting] Metalero9389:
I've been able to select Swiftkey as my main keyboard with no issues. H811
[Android Software/Hacking General [Developers Only]] FossaFX:
Hi all,

Few days ago I'v repaired HTC Desire Z with Russian keyboard and installed CM10.2 onto it. And of course I want to have working Russian keyboard layout.

Unfortunately only official firmware support it, and problem cannot be solved by editing layout tables because for some buttons there is two Cyrillic letters on one button. There is ruKeyboard application to fix it, but it closed source, so it doesn't acceptable for me.

So, I'm going to develop my application for it (open source, of course) and want to ask some questions... I have a lot of development experience (especially low level, e.g. drivers, MCU's firmware and so on), but never programmed for Android (however I know Java to some degree).

Of course, I can patch android kernel/sources to get my task done, but I suppose that it's a bad idea, because I'll need to port changes to new versions and so on. So, I want to process keyboard events from userspace.

My question: Is it possible to hook all hardware keyboard events (i.e. scancodes, not characters) from userspace, remove them from message queue, and produce new events? I know that producing new events is possible, but what about hooking it (like MS Windows event hooks?). Can you give me a hint (maybe link to example or API, suitable for it)?

Thank you in advance.
[Android Software/Hacking General [Developers Only]] daniel_m:
I am not a programmer, but I would be interested in an app that could substitute key press events (on my Motorola Droid 4).

Have you heard of the Xposed framework? Maybe this would be a possibility to achieve your goal and Xposed might make things much easier for you.