Unofficial TWRP Padfone X

Search This thread

AdamOutler

Retired Senior Recognized Developer
Feb 18, 2011
5,224
9,827
Miami, Fl̨̞̲̟̦̀̈̃͛҃҅͟orida
Introduction:
The padfone X was released last friday and I wanted TWRP. As you may know; @Dees_Troy is on vacation. So, I hacked together this "repack" version which should have all features in order. One caveat with this version though, when launching recovery after it's installed, the screen must time out (2-minutes) before you can push power and see it.


Warning:
Even though you may simply be using your device and just running apps, you are modifying your device. There is no 100% back to stock. You can find a fastboot flashable stock recovery here, but there is no stock system. While this mod did not trigger a "modified status" on my device, I cannot guarantee the same for you. This is a very new device and unless you're one of the few, brave and anxious, it may be in your best interest to wait until a stock firmware update, back-to-stock flash, or even an official XDA-Developers forum has been created for this device.


you will need:
1.The Unofficial TWRP recovery image
2.SuperSU installed on your device
3.TowelRoot installed on your device. You will need to enable third-party sources.
4.Terminal access (pick the one you're more comfortable with)
4a.ADB
4b.Terminal emulator


installation:
If you chose to use ADB, then use these ADB Instructions. Otherwise skip down to Terminal Emulator Instructions.

ADB Instructions
  1. Ensure you have installed SuperSU and TowelRoot.
  2. Launch the TowelRoot app, follow instructions, and let it reboot your device.
  3. navigate to the folder you downloaded ADB (and dll's if you're on windows) and execute the following command.
    Code:
    adb shell "curl 'https://builds.casual-dev.com/files/Asus/Padfone%20X/TWRP-Nexus5repack-AO1.img'>/sdcard/recovery.img; su -c 'dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery' bs=4096; sync; reboot recovery;"
  4. check your device for any pop-ups and grant root access to shell.
  5. wait 2 minutes after the screen is black, and then press power button. This is due to a difference between Nexus5 and PadfoneX which will be fixed in an official version later.

Terminal Emulator Instructions
  1. Ensure you have installed SuperSU and TowelRoot.
  2. Launch the TowelRoot app, follow instructions, and let it reboot your device.
  3. Launch Terminal Emulator and copy-pasta the following into it.
    Code:
    curl 'https://builds.casual-dev.com/files/Asus/Padfone%20X/TWRP-Nexus5repack-AO1.img'>/sdcard/TWRPrecovery.img; su -c 'dd if=/sdcard/TWRPrecovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery' bs=4096; sync; reboot recovery;
  4. check your device for any pop-ups and grant root access to shell.
  5. wait 2 minutes after the screen is black, and then press power button. This is due to a difference between Nexus5 and PadfoneX which will be fixed in an official version later.


Conclusion
Congratulations, you've got TWRP installed on your device. Now you can back up, restore, and install TWRP Flashable Zips. Please leave a comment and tell others how it worked. This worked great for me, Image below.




attachment.php
 

Attachments

  • 20140621_134628.jpg
    20140621_134628.jpg
    136.5 KB · Views: 25,232
Last edited:

AdamOutler

Retired Senior Recognized Developer
Feb 18, 2011
5,224
9,827
Miami, Fl̨̞̲̟̦̀̈̃͛҃҅͟orida
@Dees_Troy has a helpful suggestion:
Might be worth mentioning Settings -> Screen and lower the screen timeout to help get the screen up and running sooner
Whatever you do, don't turn off the screen timeout though ;)

By turning down the screen timeout you only need to wait for two minutes, one time. Turn it down to 30 seconds to reduce the wait time.

Again, this is temporary for this unofficial build. I will update these instructions later when we have a proper solution to perform the needed hardware reset.
 
  • Like
Reactions: hav0c

alleyezondisromo

Senior Member
Mar 23, 2007
430
48
Newport Beach, Ca
Adam have you put on the screen protector i saw you bought from ATT? i can't figure out how to properly place it because very time i go into tablet mode and i pull the phone out the phone protector always has a bubble or two from sticking to the tablet ... not sure if that makes sense lol
 

FUZER384

Senior Member
Jan 27, 2009
187
19
Detroit
Introduction:
The padfone X was released last friday and I wanted TWRP. As you may know; @Dees_Troy is on vacation. So, I hacked together this "repack" version which should have all features in order. One caveat with this version though, when launching recovery after it's installed, the screen must time out (2-minutes) before you can push power and see it.


Warning:
Even though you may simply be using your device and just running apps, you are modifying your device. There is no 100% back to stock. You can find a fastboot flashable stock recovery here, but there is no stock system. While this mod did not trigger a "modified status" on my device, I cannot guarantee the same for you. This is a very new device and unless you're one of the few, brave and anxious, it may be in your best interest to wait until a stock firmware update, back-to-stock flash, or even an official XDA-Developers forum has been created for this device.


you will need:
1.The Unofficial TWRP recovery image
2.SuperSU installed on your device
3.TowelRoot installed on your device. You will need to enable third-party sources.
4.Terminal access (pick the one you're more comfortable with)
4a.ADB
4b.Terminal emulator


installation:
If you chose to use ADB, then use these ADB Instructions. Otherwise skip down to Terminal Emulator Instructions.

ADB Instructions
  1. Ensure you have installed SuperSU and TowelRoot.
  2. Launch the TowelRoot app, follow instructions, and let it reboot your device.
  3. navigate to the folder you downloaded ADB (and dll's if you're on windows) and execute the following command.
    Code:
    adb shell "curl 'http://builds.casual-dev.com/files/Asus/Padfone%20X/TWRP-Nexus5repack-AO1.img'>/sdcard/recovery.img; su -c 'dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery' bs=4096; sync; reboot recovery;"
  4. check your device for any pop-ups and grant root access to shell.
  5. wait 2 minutes after the screen is black, and then press power button. This is due to a difference between Nexus5 and PadfoneX which will be fixed in an official version later.

Terminal Emulator Instructions
  1. Ensure you have installed SuperSU and TowelRoot.
  2. Launch the TowelRoot app, follow instructions, and let it reboot your device.
  3. Launch Terminal Emulator and copy-pasta the following into it.
    Code:
    curl 'http://builds.casual-dev.com/files/Asus/Padfone%20X/TWRP-Nexus5repack-AO1.img'>/sdcard/TWRPrecovery.img; su -c 'dd if=/sdcard/TWRPrecovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery' bs=4096; sync; reboot recovery;
  4. check your device for any pop-ups and grant root access to shell.
  5. wait 2 minutes after the screen is black, and then press power button. This is due to a difference between Nexus5 and PadfoneX which will be fixed in an official version later.

Didn't work for me. Just look like in TE it kept looking for a response back from the server. I tried to download the img manually and looks like the server is down or something.
 

Demazda

Senior Member
Jan 29, 2013
146
164
Montpellier

AdamOutler

Retired Senior Recognized Developer
Feb 18, 2011
5,224
9,827
Miami, Fl̨̞̲̟̦̀̈̃͛҃҅͟orida
As they (nearly) share the same hardware, do you think it would be possible to compile a working recovery from Asus PadFone Infinity 2 (A86) sources?

Here is a link: http://www.asus.com/Tablets_Mobile/The_new_PadFone_Infinity/HelpDesk_Download/
(or: http://dlcdnet.asus.com/pub/ASUS/Mo...dFone_Infinity/PadFoneT004-1012394-kernel.zip for a direct link)

As Asus has not released PFX kernel sources on their site, I think it could be useful.

Not without a device in-hand. I won't try to troubleshoot without it.

However, I use mkbootimg_tools and it requires a Linux system, not windows.
to get reccovery.img
Code:
 adb shell su -C dd if=/dev/block/platform/*/by-name/recovery of=/sdcard/recovery.img
adb pull /sdcard/recovery.img

to uncompile original boot.img
Code:
mkboot recovery.img oringialoutput
this opens recovery.img and creates a ramdisk from it which you can freely edit. Now, do the same with TWRPRecovery.img

you will copy the following folders from the TWRP ramdisk to the originaloutput ramdisk. but heed the notes here.

/sbin -- replace only recovery, but copy all files over to the new device.
/res and /etc -- do not replace files, but add in TWRP files to this and its subdirectories.
/supersu -- this does not exist on the new ramdisk, so just copy it.

you will have to navigate to originalrecovery/ramdisk/system, then copy /system/bin into /sbin, then delete /system/bin, finally link /system/bin to /sbin. the positioning is important and you cannot use fully qualified paths to link the files here. it must be linked to ../sbin, specifying one folder up, a folder called "sbin", not /home/username/whatever...

Code:
cd originalramdisk/system/
cp ./bin/* ..//sbin
rm -rf ./bin
ln -s ../sbin

And then you're ready to repack.

Code:
mkboot originalramdisk myNewRecovery.img[code]
now you can copy myNewRecovery.img to your SDCard and flash it using the DD method I showed in the OP.
 

Demazda

Senior Member
Jan 29, 2013
146
164
Montpellier
Oh, I thought you had the device, my bad.

Also, sorry, this may be off-topic (but still related to PadFone and development), but how hard do you think it would be to port CyanogenMod to a PadFone? Not for the PadFone X but for another one, knowing that I managed to build a recovery from source and that it's working, but that I've never managed to make the compiled rom itself boot?
 

AdamOutler

Retired Senior Recognized Developer
Feb 18, 2011
5,224
9,827
Miami, Fl̨̞̲̟̦̀̈̃͛҃҅͟orida
Oh, I thought you had the device, my bad.

Also, sorry, this may be off-topic (but still related to PadFone and development), but how hard do you think it would be to port CyanogenMod to a PadFone? Not for the PadFone X but for another one, knowing that I managed to build a recovery from source and that it's working, but that I've never managed to make the compiled rom itself boot?

This is a Padfone X forum. I can't help you any more than I have. Locate a developer with a Padfone 2 and ask him questions. I gave you instructions to try to create your own. I cannot do more.
 

Demazda

Senior Member
Jan 29, 2013
146
164
Montpellier
This is a Padfone X forum. I can't help you any more than I have. Locate a developer with a Padfone 2 and ask him questions. I gave you instructions to try to create your own. I cannot do more.


It's for the PadFone Infinity and I already have a CWM working, my question was about building a ROM. Also it seems that no developer has this device, as it's never beed released in the US.

But no problem, thanks anyway.

Also, sorry but I might not have said it properly in my first post: I did not ask you to build a recovery PadFone Infinity 2 (I don't have this device), I just gave you the kernel source because I thought it could help you build a PadFone X recovery from those sources, as they are both similar in hardware and from the same manufacturer.
 
  • Like
Reactions: AdamOutler

dibblebill

Senior Member
Jun 3, 2012
1,466
673
35
Raleigh, NC
www.youtube.com
So I seem to have really screwed something up with a few features by trying to save space by integrating various GApps updates to the ROM. I cannot get a keyboard at all during boot-up for any purpose (eg encryption, which my employer requires to use this on their networks).

I don't suppose anyone has a stock nandroid of /system on hand I could download?

EDIT: I see there isn't one yet, but if you make one, anyone, I'd be willing to host it on my Mediafire account.

EDIT 2: Where might I find this flashable stock recovery? I must be overlooking it.

EDIT 3: I see. The link to the unofficial TWRP points to the stock DD pull. I already have a DD pull I just did so ignore that question aboug stock recoveries.
 
Last edited:

dorj1234

Member
Nov 28, 2011
48
4
London
I have ADB installed but running "adb devices" does not show any device connected. My windows 7 shows the storage (internal and external SD card) but windows does not recognize the "ASUS Android Composite ADB Interface".

Any advice where to find drivers for windows 7 for my Padfone X ?

Thanks !
JD
 

AdamOutler

Retired Senior Recognized Developer
Feb 18, 2011
5,224
9,827
Miami, Fl̨̞̲̟̦̀̈̃͛҃҅͟orida
I have ADB installed but running "adb devices" does not show any device connected. My windows 7 shows the storage (internal and external SD card) but windows does not recognize the "ASUS Android Composite ADB Interface".

Any advice where to find drivers for windows 7 for my Padfone X ?

Thanks !
JD

LOL! did you ever plug it into the computer? It has the drivers on it.
 
  • Like
Reactions: dibblebill

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Introduction:
    The padfone X was released last friday and I wanted TWRP. As you may know; @Dees_Troy is on vacation. So, I hacked together this "repack" version which should have all features in order. One caveat with this version though, when launching recovery after it's installed, the screen must time out (2-minutes) before you can push power and see it.


    Warning:
    Even though you may simply be using your device and just running apps, you are modifying your device. There is no 100% back to stock. You can find a fastboot flashable stock recovery here, but there is no stock system. While this mod did not trigger a "modified status" on my device, I cannot guarantee the same for you. This is a very new device and unless you're one of the few, brave and anxious, it may be in your best interest to wait until a stock firmware update, back-to-stock flash, or even an official XDA-Developers forum has been created for this device.


    you will need:
    1.The Unofficial TWRP recovery image
    2.SuperSU installed on your device
    3.TowelRoot installed on your device. You will need to enable third-party sources.
    4.Terminal access (pick the one you're more comfortable with)
    4a.ADB
    4b.Terminal emulator


    installation:
    If you chose to use ADB, then use these ADB Instructions. Otherwise skip down to Terminal Emulator Instructions.

    ADB Instructions
    1. Ensure you have installed SuperSU and TowelRoot.
    2. Launch the TowelRoot app, follow instructions, and let it reboot your device.
    3. navigate to the folder you downloaded ADB (and dll's if you're on windows) and execute the following command.
      Code:
      adb shell "curl 'https://builds.casual-dev.com/files/Asus/Padfone%20X/TWRP-Nexus5repack-AO1.img'>/sdcard/recovery.img; su -c 'dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery' bs=4096; sync; reboot recovery;"
    4. check your device for any pop-ups and grant root access to shell.
    5. wait 2 minutes after the screen is black, and then press power button. This is due to a difference between Nexus5 and PadfoneX which will be fixed in an official version later.

    Terminal Emulator Instructions
    1. Ensure you have installed SuperSU and TowelRoot.
    2. Launch the TowelRoot app, follow instructions, and let it reboot your device.
    3. Launch Terminal Emulator and copy-pasta the following into it.
      Code:
      curl 'https://builds.casual-dev.com/files/Asus/Padfone%20X/TWRP-Nexus5repack-AO1.img'>/sdcard/TWRPrecovery.img; su -c 'dd if=/sdcard/TWRPrecovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery' bs=4096; sync; reboot recovery;
    4. check your device for any pop-ups and grant root access to shell.
    5. wait 2 minutes after the screen is black, and then press power button. This is due to a difference between Nexus5 and PadfoneX which will be fixed in an official version later.


    Conclusion
    Congratulations, you've got TWRP installed on your device. Now you can back up, restore, and install TWRP Flashable Zips. Please leave a comment and tell others how it worked. This worked great for me, Image below.




    attachment.php
    2
    What do we need to do , in order to get that going ? this device has great potential !!!
    2
    Here is a fixed link to his files

    Any word on when I can get twrp recovery image. Been waiting months to be able to do this and feels like finally it is all posted and can't get one file.
    https://builds.casual-dev.com/index.php?dir=CASPAC/Asus/Padfone X/&sort=size&order=asc
    1
    @Dees_Troy has a helpful suggestion:
    Might be worth mentioning Settings -> Screen and lower the screen timeout to help get the screen up and running sooner
    Whatever you do, don't turn off the screen timeout though ;)

    By turning down the screen timeout you only need to wait for two minutes, one time. Turn it down to 30 seconds to reduce the wait time.

    Again, this is temporary for this unofficial build. I will update these instructions later when we have a proper solution to perform the needed hardware reset.
    1
    Thanks! I've succesfully flashed TRWP throught the bootloader!
    Quarx has released an official TWRP:
    http://quarx2k.ru/asus_padfone_s/recovery/