Dumping flash from HTC Desire 510

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spork Schivago
    Badcaps Legend
    • Mar 2012
    • 4734
    • United States of America

    #121
    Re: Dumping flash from HTC Desire 510

    I think it's important, when looking at the code that I upload, to remember it's designed for the phone to reboot. I believe a normal phone doesn't do this and the MicroSD card stuff could be completely removed, if you just wanted to plug it in and let it run. I think we could modify the code a bit. It's not what I would consider great code. It does it's job, but in a messy way, if you know what I mean. It could be cleaned up a bit and improved upon. I'm sure there's a few parts where we could write a function to do stuff, rather than just writing the same code 4 or 5 times in a row. Essentially, we could optimize it a bit.

    We could also set it up for maybe a push button, and configure the push button to stop the program from running. That way, instead of thrashing the MicroSD card, maybe just read the pin on startup, and then write the pin when the push button is pushed.

    Also, it expects a pin_num.txt to have the starting pin inside of it. This could be improved a bit too. Maybe check if the file exists, if it doesn't, then create the file. Finally, the library I'm using only supports FAT16 and FAT32. I believe there's experimental FAT12 support, but there's no ExFAT support, no ext1, ext2, ext3, ext4 support. Maybe we could find a better library or write code to support multiple filesystems? Just in case anyone wants to work on improving it I mean.

    I want to also see what happens through the USBSerial port stuff. I want to see if we can read the info to tell exactly when the phone reaches the login screen. And I want to monitor the data while I'm typing a pin. If it displays messages, such as incorrect pin entered, or successful pin entered, we can stop the program once it successfully logs in. There's gotta be some sort of way to do this I'd think. Then we don't have to sit there and watch the attempts.


    I just found out my neighbor, the one that says I'm his best friend, who's been coming over almost every day....he got busted for child porn on his computer. He kept on offering to babysit my daughter, but I got this weird feeling. I was changing her once and he came in and was watching me change her. He was talking to her, but I thought that was a bit odd. I mean, when I see someone changing a baby, I look a way! He gave me a book, said it was his absolute favourite book. Needful things by Stephen King. It's a good book, don't get me wrong, but in the book they talk about a 12 year old boy getting a hand job, in a bit graphical detail, which is definitely disgusting!!!

    What the fuck is up with people being into little kids like that??? Two people I know now, both who were in the Marine Corps (my neighbor and the guy who owned this cell phone) are into little kids! My wife's sister's husband, fuck-face, he's into little kids as well. He went to prison for 4 or 5 years for raping his 9 year old niece.
    -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

    Comment

    • stj
      Great Sage 齊天大聖
      • Dec 2009
      • 30937
      • Albion

      #122
      Re: Dumping flash from HTC Desire 510

      about filesystems.
      the sourcecode for the HDloader on the wii has support for Fat32,and EXT2/3

      Comment

      • Spork Schivago
        Badcaps Legend
        • Mar 2012
        • 4734
        • United States of America

        #123
        Re: Dumping flash from HTC Desire 510

        Okay. I have support for the FAT32 filesystem, but to my knowledge, no EXT2/3/4. I had to update the code for the SD library. I downloaded it from github. The one that comes with the Arduino, even though it says it's the same version, it doesn't support the same stuff. The one on github (same developer, same library, newer version) had more function calls and I was able to do what I wanted. Here's a link to the github page: https://github.com/greiman/SdFat

        It says Arduino 1.6x or higher is required, so I don't think I can use this library if I wanted to just use the arm GNU c compiler to cross-compile the code.

        I think another thing, I should modify the firmware to A) check to see if the pin file exists, if it doesn't, create it with 0000 in it, but also, check for a file like priopriatary_pins.txt or something, and if that exists, try those pins first. Then, people could download some list like the 100 most common pin numbers and the Teensy would check that first and try those. We'd need some config file to mark that they had been checked though.
        Last edited by Spork Schivago; 07-11-2017, 08:43 PM.
        -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

        Comment

        • Spork Schivago
          Badcaps Legend
          • Mar 2012
          • 4734
          • United States of America

          #124
          Re: Dumping flash from HTC Desire 510

          I guess I can only upload zip files and not tar.gz or tar.bz2 or tar.xz or .7z files here.

          But here's the source. If you hook it to a USB TTL to serial converter, in Linux, this is how I see the output:

          Code:
          screen /dev/ttyUSB0 19200
          Obviously, you'd replace ttyUSB0 with whatever your device node is. It's important that you pass the 19200 baud rate to screen or you'll get garbly gook, unless you edit the source code and change the baud rate to 9600. Then screen will read it without needing the baud rate, but on my PC, 9600 seemed a bit slow. 19200 is much faster.
          Attached Files
          -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

          Comment

          • Spork Schivago
            Badcaps Legend
            • Mar 2012
            • 4734
            • United States of America

            #125
            Re: Dumping flash from HTC Desire 510

            I bought the 6W/mk stuff. I hope that's going to be good enough. I almost went for the 14W/mk but that's really expensive. I'm also not sure what thickness I need, so I went for three, 0.5mm, 1.0mm, and 1.5mm. It came to a total of around 22$. If I went for the 14W/mk stuff, just the 1.5mm was 48$!

            https://www.newegg.com/Product/Produ...5179-_-Product

            I figure for a cell phone, the chips are small and might not need the 14W/mk stuff, and hopefully, the 6W/mk stuff will be just fine.
            -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

            Comment

            • Spork Schivago
              Badcaps Legend
              • Mar 2012
              • 4734
              • United States of America

              #126
              Re: Dumping flash from HTC Desire 510

              What do you guys think of the source code I uploaded? Once you unzip it, if you don't have Arduino installed, you can just open it in your favourite text editor. It's just a text file with an Arduino extension. Windows users might have some issues because of Windows files usually have a CR and LF for a new line, whereas Linux and other Unix like operating systems tend to use LF for a new line. For Windows users, usually opening the file in Wordpad instead of Notepad will make the file appear properly.

              Any suggestions on improvements? I was thinking of uploading it to Github so people could commit improvements.
              -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

              Comment

              Related Topics

              Collapse

              • SluggerB
                Help with trying to fix phone that is not charging (Pics inside)
                by SluggerB
                I have two TCL A30 phones.

                Old Phone: This phone worked fine for years, then stopped charging If you plugged a charger into it, the phone would make the charging sound, the phone would tell you it is charging, but the battery icon would not have the charging symbol in it and the battery would not charge.I tried new battery, same behavior.

                New Phone: Works fine, bought as a donor board to try and repair Old Phone

                My interest here is to repair Old Phone, using components parts off New Phone if needed. I am not interested in replacing Old Phone with New Phone....
                08-12-2024, 08:11 AM
              • ekozeko333
                [Help] Lenovo Yoga Slim 7-14ARE05 (DA0LS3MBAF0) – 25Q80DVN1G Flash Is All FF, USB-C PD Stuck at 5V
                by ekozeko333
                Hi all,
                I’m trying to recover a Lenovo Yoga Slim 7-14ARE05 with board DA0LS3MBAF0 Rev:F. I’ve run into an unusual issue where USB-C PD is stuck at 4.7–5V and the system won’t boot (keyboard lights flash briefly, then nothing).
                🔥 The Problem Started After Suspected ESD/PD Fault
                I experienced a power issue or ESD event through a USB-C charger
                After that, the NX20P5090 power switch was visibly burned and was replaced
                Now the PD controller always negotiates 5V @ 2A, even with known-good chargers
                🧠 What I’ve Done So Far
                Flashed...
                06-21-2025, 02:48 AM
              • corrize
                Nikon D800 camera - flash don’t work and capacitor don’t charge
                by corrize
                Hello, I'm stuck in troubleshooting…
                The flash system works like that : when the (mechanic) flash button is pressed, the flash mecanically pop up, and a circuit buck boost elevate 7v (batt) to 200-300v (?) for charging the big capacitor. And when the photo shoot button is pressed, the capacitor is discharged in the xeon light.

                In the D800, there is a first « power board » close to the battery. 2 wires (batt 7v) goes to another little « flash board ». I measured 7v, so ok.
                When I press the flash button, it's detected by the system, flash icon appear on LDC display....
                10-01-2022, 10:02 AM
              • keeney123
                new OS on a Sonim XP5s phone
                by keeney123
                To you programmers out there I want to know if it is possible to put a new OS on the Sonim XP5s phone? I only need this phone to make calls, receive calls, have a list of contacts and be able to call voice mail.
                I bought this phone new Sep.2021 as an unlock phone from a third-party seller. The phone worked fine until Jan 2022. I then had intermittent problems with the sound setting resetting itself. One of the settings, outdoor, would go to silent all by itself. When in silent mode it does not indicate a call has come in. I missed very important phone calls. All the other setting in sound...
                05-13-2022, 07:19 PM
              • abajor
                Canon VIXIA HF S10 A read data from inernal flash memory.
                by abajor
                Hello I've had somebody bring in one of these charming little cameras to attempt retrieving data from the internal 32GB flash.
                Something is damaged inside the cameras lens assembly I can hear it clunking around and it has probably dislodged the sensor, powering up the camera gives a blank screen and the focus motor sounds like it's having a fit.
                The camera will not connect to a computer via USB in this state, I have no options no navigation, just power up and focus/zoom motor noises.

                I think my best shot is to figure out a way to read the internal flash memory outside...
                07-20-2024, 12:04 AM
              • Loading...
              • No more items.
              Working...