4 ms·
Reverse engineering Android from binary to source
- mfincham 11y agoWhat I'm interested in is running Debian and X on the watch... any pointers?
- joshumax 11y ago0x3A28213A, 0x6339392C, 0x7363682E... But in all seriousness, getting Debian/X on this probably wouldn't be that hard after dmitry's work, probably just getting a basic working framebuffer driver, packing a modified Debian ramdisk and the kernel blob in an aboot image, and having the ramdisk bootstrap the rootfs on the NAND, start X with fbdev, and load MicroWM or something. That was basically what I did a while back trying to get Angstrom on a Chinese camera that ran Android and it worked okay...
- voltagex_ 11y agoIf you do get this running (or even get started) I'd be interested - I've had a project for a long time to get Debian running on the Nexus 4.
- dmitrygr 11y agoIt already has a linux kernel with WiFi support. Android build tools will happily package your ramdisk together with the kernel into an android boot image. The "system" image you provide to the unbricking tool will be written unmodified unto the system partition. That is to say that the work is all done for you. Enjoy :)
- mfincham 11y agoCheers. Sounds promising :)
- mrlambchop 11y agodimity - nice hack :) I'd argue that the most critical piece of work is power management for the watch. Did this magically port over or does the system just run at full whack? Cheers, Nick
- dmitrygr 11y agoAndroid does power management relatively well. In the kernel I am working on (the one I mentioned in the end - the almost-working one) I have a few cool hacks I am trying, like using the JZ4775's DMA engine as a sensor hub (it is a small MIPS cpu that cna run arbitrary code)
- danjayh 11y agoThis article is fascinating, and having done board bringup work, I understand the challenges that the author faced. He did absolutely top-notch work. Getting a board that does nothing, has no debugger, no output of any kind going is really hard. However, to me the most important quote in the story is this: > As per the GPL (under which the Linux kernel is licensed), the manufacturer had to have provided a written offer of sources. Needless to say that a random chinese company (SmartQ, currently owned by Huami) does not care even a little about this sort of thing. I checked theit site every which way I could, and found no sources. Emaling them produced no reply, of course. Of course, why would it? I tried to find some people on LinkedIn who might help, but I was told in no uncertain terms to go away. With increasing amounts of SW development moving to low-cost countries, this sort of attitude may well eventually destroy the availability of the 'free' software that these manufacturers rely on (besides hurting the GPL + homebrew firmware communities).
- kuschku 11y ago> With increasing amounts of SW development moving to low-cost countries, this sort of attitude may well eventually destroy the availability of the 'free' software that these manufacturers rely on (besides hurting the GPL + homebrew firmware communities). Even in developed countries, a lot of projects that historically chose BSD or MIT ("why should we choose GPL? Companies will contribute back anyway") are starting to change their mind because more and more companies just take publicly available code and sell it, never contributing back. Just think about Google (which uses Apache code, but doesn’t contribute back) or VMware (which openly violates the GPL). As long as humans are greedy, we’ll have to find a technical solution to protect against such immoral people or organizations.
- viraptor 11y agoI'm not sure why you put "Google (which uses Apache code, but doesn’t contribute back)" and "VMware (which openly violates the GPL)" in the same sentence. One is legal, the other one isn't. You're not forced to contribute to anything, GPL or not. But it's worth remembering that Google's involvement goes further than just extra commits. For example - if Google uses something, they'll likely do a better security testing of the product than many other companies. Their security reports always go back to other projects.