loki-doki, the simple way to patch any custom boot image on AT&T and Verizon Galaxy S 4


Feedback please – let me know your result by commenting below.

What it is:

A simple script in a zip I put together that is run from recovery (like GAPPS) that will extract and patch the installed boot image with drjbliss’s utilities and re-flash it. The only prerequisite is any properly working custom recovery.

Why?

from djrbliss’s notes, it seems that the patch is aboot specific. This means that boot images will only work with the version aboot they were patched for. This remedies that by patching for the phone-specifc aboot.

To use:

  1. flash a non-patched boot image or custom rom. 
  2. flash loki-doki.zip from custom recovery the same way you would flash gapps for CyanogenMod or a custom rom.
  3. Done.  It’s quick and painless.

This utility checks the bootloader version before executing anything.  It will do no harm if someone should run it on a device out of scope.

Anyone is free to use/modify/distribute this in any way.
No Warranty is implied, expressed etc.  As always, use at your own risk.

Download:  http://tau.shadowchild.nl/files/loki-doki.zip

Reference:
drjbliss’s github repo: https://github.com/djrbliss/loki

 

Prisons of the future: BluYot – the 42nd Evolution of BluRay

attn1 6.6.2166

Sony today announced BluYot, which is now the 42nd evolution of BluRay.  BluYot will be a 100mm wide, nearly indestructible disc capable of storing 983 yottabytes of data, more than sufficient to store the transporter data of any mammal, land or sea – on a single disk, were it legal. BluYot promises to be the most reliable way to store such massive amounts of data for some time into the future.  BluYot was developed with Government grants and oversight, and should be available mid 4th quarter.

Even as legal and ethical implications of digital cloning are tested and challenged, testing of Government’s controversial Digital Prisoner Rehabilitation Program (DPRP) progresses. Sources say original data storage will utilize redundant copies of original prisoner data on BluYot while data is manipulated to effect rehabilitation on prisoner DNA and brain function.  The original data will be destroyed only if Government Constitution is fully tested on issues involving it’s destruction, and also if it will not be utilized by Agency.

Opponents say DPRP is a gross violation of human rights, and say that habitual offenders of even misdemeanors may be subjected to reinvention that can drastically alter who they are and have negative impact on family, career and quality of life.  The process is being compared to lobotomies performed in the 20th century.  Proponents say the comparison is preposterous.

 

Go play outside you whiney, entitled feeling little punk.


It’s too bad some users (largely those coming from XDA developers, the largest commercial idiot farm on the planet) seem to feel like they are entitled to free support that simply isn’t on the table.  In the end, it makes existing support impossible in certain cases.

Quote from unlimited.io

Update regarding Windows versions of our tools:

Team Unlimited has decided to drop all support for the Windows OS. This is due to massive amounts of trolling on forums and in our support channel as well as flaming us for our decision to not support Windows 8 or any version of Windows 64bit.

We attempted to explain to anyone who had questions why this was not supported – drivers are unreliable, percentage of risk for bricking was too high, and just general complications – but we were greeted with people who demanded support and others that came into our support # to tell us that ‘clearly we didn’t test 64bit because it works’ and ‘wanted to let us know that we could support 64bit.’

We want to make it clear that we make and support these tools with our free time, for free, for you – our users. We made a decision to provide clear and concise directions and a live support channel. We can revoke all or part of this at any time and will should people become abusive to our team members.”

Android usb debugging and fastboot support on Windows is dicey at best.  My biggest mistake with AAHK was including windows support because it *could* work.  It was a mistake because too often the user’s windows environment failed.   Some of the hacks for newer smartphones are more complex than they used to be, and those who develop them hate to put them out there without some support because sometimes even with due diligence on the part of the user things can go awry.  Not all Linux distros are equal and most of these tools are distributed with android tools that are for 32 bit Linux.  So if developers support only what works most reliably and produces the least number of support issues, then support that decision because:

  • Showing gratitude without criticism of free support is the classy thing to do.
  • Carping about free support automatically makes you a colossal asshole.
  • You might as well; your opinion means shit anyway.

If you don’t like this approach to free support, then go play outside (or anywhere else).

A high-level DHD/Inspire manual S-OFF hack concept for advanced users


Okay, stop the hating. Here’s a high level DHD/Inspire manual (as in not automated) S-OFF hack concept for advanced users. I am NOT going to detail it further or support it.

#include <std_disclaimer.h>
/*
Your warranty is now void. I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because you can’t tether. Please do some research if you have any concerns about this process before attempting it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
*/
(Disclaimer borrowed heavily from cyanogenmod)

Just because the hack kit is going away doesn’t mean the Inspire/DHD can’t be set s-off. Here’s a high level how-to that advanced users should have no issue with. This is NOT a step-by-step, but a description of the activity.  This is deliberate.  If you don’t know what you are doing and don’t understand what’s going on – DON’T EVEN TRY THIS. I am NOT going to detail it further or support it

High Level Steps (some detail deliberately NOT included)

  • htc dev unlock, install cwm recovery and root ONLY
  • dd the stock boot image to /data/local/tmp and pull it to your pc HD (/dev/block/mmcblk0p22 is boot)
    • adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img
    • adb pull /data/local/tmp/boot.img
  • make a goldcard (for all CIDS not in android-info.txt in the firmware.zip to be flashed)
    • adb push goldcard /data/local/tmp
    • adb shell chmod 775 /data/local/tmp/goldcard
    • adb shell cat /sys/class/mmc_host/mmc2/mmc2:*/cid  (returns sdcard cid)
    • adb shell /data/local/tmp/goldcard -c <sd card cid above>  -o /data/local /tmp/goldcard.img
    • adb shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1 (this writes the goldcard.img to the sdcard.  Mileage on used sdcards may vary)
  • push misc_version to the phone and use to lower the mainversion (need to lower the  mainversion in order to flash the firmware downgrade)
    • adb push misc_version /data/local/tmp
    • adb shell chmod 775 /data/local/tmp/misc_version
    • adb shell /data/local/tmp/misc_version -s 1.11.111.1 
  • relock the bootloader
  • flash firmware.zip with from the zip below (this firmware contains the original radio exploit used by gfree)
    • fastboot oem rebootRUU
    • fastboot flash zip firmware.zip
    • fastboot reboot-bootloader
  • unlock the bootloader again (use the same unlocktoken bin)
  • flash your stock boot.img to boot (this will get the current rom working again)
    • fastboot flash boot boot.img
  • flash recovery.img to recovery (from the zip below – this recovery has a kernel that works with the radio exploit)
    • fastboot flash recovery recovery.img
  • boot to recovery (yes, the screen may well be blank, but adb should work fine)
    • adb push gfree /tmp/
    • adb shell chmod 775 /tmp/gfree
    • adb shell /tmp/gfree -f   >> yeilds – s-off, supercid, sim-unlock
  • reboot to bootloader and check success.

Notes:

  • The firmware.zip in the package below does not contain an hboot, so it should be safe for all Inspire/DHD devices, even those shipped with Gingerbread.
  • Flashing a froyo hboot to a device shipped with Gingerbread is a terrible idea. If you do this after all that has been posted about it, you’re an idiot.  EARLY S-OFF METHODS DID THIS.
  • If you read this carefully, you will realize that this is S-OFF ONLY.  The radio will need to be updated again, it is not rooted, nor does not have working recovery on most devices.  There are 1000s of threads on how to do all that with S-OFF, so no, we are not going into any of that here.
  • Included are the two HBOOTs Hyuh hacked up for us with some ENG functionality. There is one for Sense 3 devices and one for pre-sense 3 devices. Use the correct one – partition layouts are different.

Tools here: ace-tools.zip
md5: 91a551d72f16883a35b8e8f9a7e5bcb1 ace-tools.zip

This should be a useful process outline, and I hope it helps people who have a clue to start with. I am NOT going to detail it further or support it.

Once again, I AM NOT GOING INTO FURTHER DETAIL OR SUPPORTING THIS PROCESS. IF YOU DON’T GET IT, TOO BAD.

Thanks to:

  • Revskills for their fantastic gold card algorithym
  • GenePoole for the kickass android goldcard binary based on above and a new version of gfree built w/o need for certain dependencies.
  • scotty2 for finding the vold exploit and the author of psneuter
  • Guhl for misc_version and gfree
  • hyuh for misc_version revisions and Hboots with ENG features

 

HEYZUESS, what the hell are smartphone makers thinking?


Quote from CNET on rumored SGS4 specs:
“Among them is a rumored eight-core Exynos processor, a separate eight-core graphics processing unit, a 4.99-inch SuperAmoled display, 2GB of RAM, a 13-megapixel rear camera with 1080p video capability, a 2-megapixel front-facing camera, and the latest version of Android

WTF is all of this for?  A phone? Unless it’s going to have 16 GB ram, a TB drive and a complete docking station with dual monitor support and multi OS boot capability, IDGAF.  It’s just silly.

I don’t want more cores, more megapixels and a larger screen.  REALLY, I don’t.  I want the things I have FIXED, like buggy touchscreens (let’s be honest) and light sensors that don’t work worth a damn to keep the display at reasonable automatic settings from low light to bright outdoors.  From GPS chips that loose their minds and sync forever to craptastic WIFI connections and poor audio input and output circuits.

FIXITFIXITFIXITFIXIT, DAMMIT FIXIT!

While you’re at it Samsung, I want a phone that can easily fit in ANY of my pants pockets (SGS3 isn’t it with a decent protective case on it), a phone with a battery that will last the best part of a week with light to moderate use with a single charge and a phone that can optionally automatically switch the number my carrier provides to VOIP over WIFI.

None of what I want in a new phone involves more memory a larger screen or more CPU/GPU cores.  I DO NOT GIVE A CRAP ABOUT RAISING THE BAR IN THOSE AREAS.  Those things are just not important.  What’s important is improvements in useability and functionality and better integration into my day to day life.  That’s what a smartphone is supposed to be about – not making big stupid ones.

Samsung, your eye is clearly not on the ball, even if no one else is doing any better.

Wall of shame….


17:44 jisaacs has joined #aahkSupport
17:45 < jisaacs> Hello, hello
17:45 < jisaacs> greatly in need of some help
17:47 jisaacs has quit [Client Quit]

No more mail validation required for new users…


Once you register, you can begin posting on TAU right away. Posts are validated. This is not a forum/message board.

The AAHK is retired


The Ace Hack Kit and all support is sundowned (retired).  This has been a long time coming for the following reasons:

  • The Inspire/DHD are legacy devices.  Because the kit can render devices unusable without support to complete the process, I can’t in a clear conscience make it available without support.The majority of people hacking them now are not the type of people who should be hacking smartphones.  Most of those people have moved on to better, more current devices.  This user mix makes supporting the hack kit more difficult.
  • Despite not taking a dime for Hack Kit Support and instead requesting that users “pay it forward” by learning and assisting with support in the IRC channel, no such help has emerged, save one person in South America.  Other than that, support consists of the same core of people since day one.  This is pathetic.  I have never seen such a bunch of whiney, selfish people as I have since I started hacking smartphones.  I am not saying that is what the majority of users are, but I am saying that’s what the majority of users seeking help are.  We are all about done doing this.

The AAHK has between a quarter million and a half a million downloads.  The vast majority of those downloads have NOT resulted in requests for help or support.  The majority of help requests have come from people that do not bother to read and follow directions or otherwise have no business attempting this.  Stupid people should not hack smart phones.

To those who think you “need” AAHK for your DHD/Inspire – you don’t.  If you haven’t managed to obtain S-OFF before it gets pulled, I don’t care.  I don’t owe anyone a hack.

To everyone who has used and appreciated the hack kit that I’ve never heard from; cheers – I’m glad you were competent enough not to be a pain in our asses.

To people who have earnestly tried to follow directions but got jammed up anyway that we managed to help; you’re welcome.

To the rest of you who feel like taking shortcuts by ignoring all instructions and then feel entitled to support -  we’ve never taken a dime for this and I am glad, because now I can say fuck you with a clear conscience. This action is partly because of you.

 

 

 

 

 

 

 

I picked up a Pantech Flex….


Nice phone – I like it.  I’ve been working on CWM for it, but i’ve run into a bit of a wall:

  • It will boot with the stock kernel, but I don’t trust it because the kernel source is not patched for the emmc brick-bug.
  • It won’t boot with a kernel built from stock source with an SDCard installed, so I have not been able to build CWM from a known safe kernel yet.

Grrrr….

I don’t have the time I used to for this stuff, but I’ll plug away at it as time permits.

Timestamping Android recovery backup sets on devices with no hardware clock

Problem:

  • ClockworkMod recovery (and others) use timestamps to identify and list backup sets in sequence.  Unfortunately, many modern devices using SOC (system on chip) lack a battery backed system clock.  The result is that the Linux  time is set to sometime 1969ish on boot, and devices use network time to reset it once connected.   However, recovery is not network connected.  This results in backup sets timestamped out of sequence and makes them more difficult to track which is which.

Solutions:

Use ROM Manager to initiate backup sets.

    • Is available today as a work around for Rom Manager supported devices
    • Requires Rom Manager, which many prefer not to use
    • Does not address the core problem with standalone recovery

Connect to the network and sync time

    • No one is doing this that I know of
    • Increases the complexity of making custom recovery considerably

Pass a token to recovery from Android and use it to set time on Linux boot

    • On reboot to recovery, will be accurate within a minute or so
    • On boot to recovery after extended shutdown will not be accurate, but will still allow timestamped backup set name to be in sequence.  The long the time the phone is down before starting recovery, the older the time token is.
    • This could be implemented via a root some Android app and a start up script in recovery (I don’t know of any yet).
    • This can be implemented on any device with this issue with init.d jobs and a start up script in recovery (how to is here).

Passing a time token from Android to Recovery using initd:

Prerequisites:

    • Working init.d on ROM
    • Knowing how to build custom recovery or unpack, modify and repack a recovery image

 

Example of an init.d script on ROM:

#!/bin/sh
# 99timemachine attn1 01/2013
top() {
date -u +%Y.%m.%d-%T > /cache/timemachine
sleep 15
top
}

Addition of the following to /sbin/postrecoveryboot.sh

#!/bin/sh
# postrecoveryboot.sh script attn1 01/2013

if [ -f /cache/timemachine ]; then
ln -s /sbin/toolbox /tmp/busybox
read ntime < /cache/timemachine
/tmp/busybox date -s $ntime -u
rm -f /tmp/busybox
fi

Then rename a current version of busy box for your platform to toolbox and THEN place it in /sbin in recovery.  Why?  Busybox is built into ClockworkMod and does not support date -s function like good standalone binaries do.

One other note:

To get this working reliably, I had to mount /cache early in recovery boot, so I added a mount statement in init.rc:

from the top, init.rc might look like this:

import /init.recovery.${ro.hardware}.rc

on early-init
start ueventd

on emmc-fs
mount ext4 /dev/block/mmcblk0p16 /cache nosuid nodev barrier=1

Your mount statements will need to be correct for your device, of course.

If permissions are set correctly, this should work fine.  This system is installed with the Burst Hack Kit for the Pantech Burst.