yashsingh1/xdaforums huggingface dataset:
[Android General] schriss:
I'm pretty sure that unlocked Padfone 2 can be relocked with fastboot command just like for example HTC One X. Then it would be possible to use Asus OTA updates.

But I also think Asus OTA could be flashed with CWM. Then, same insecure rooting story starts over.

---------- Post added at 05:20 PM ---------- Previous post was at 05:17 PM ----------

So you installed SuperSU, then rebooted just to be sure and then tried updating?

Anyway, in case of such problems, I think we could push latest SuperSU.apk and other files same way as SU, we just push them to /System/app folder where all apk belong, then reboot.
[Android General] turtle76:
Worked finally :D Thks for the advice pal :o
[Android General] Ivalex:
Thanks for the advice. I'll add also push and chmod commands for supersu as add-on In case of problem as the one You had.

Inviato dal mio PadFone 2 con Tapatalk 2
[Android General] gilani7:
Great news

The only thing I was waiting for before deciding on buying this device was to see how well its supported by this community. Thanks guys, may be finally time to let my good ol HTC HD2 rest now
[Android General] RagnarokRO:
Great work Padfone 2 community!

Would like to know if anyone has tried this on the IMM761.TW_9.8.8.55-0 firmware?

Did it work?
[Android General] turtle76:
It shld work. I was trying on tw firmware and didn't encountered issues till step 7b which was due to other issue.
[Android General] juDGEY2k10:
getting mine friday did see on asus site there is a tool for unlock of boot loader.

Is this phone and pad any good? Can not wait for mine
[Android General] Burley1:
I guess I am stupid because I can't get anything to work.

downloaded everything

but I can't make any commands work

I open the cmd and don't know if the " are suppose to be there or not and nothing works
[Android General] kahei036:
Have you switched to the folder that contains fastboot and those stuffs in command prompt?
[Android General] --a3pz0--:
Hmm is your phone shown as asus fastboot device in the windows device manager?
[Android General] dContra:
In device manager it says asus android bootloader interface
[Android General] --a3pz0--:
Have you tried it with this fastboot.exe?
[Android General] harpik3d:
Can someone with an unlocked and rooted phone check something?

I think the unlock consists in storing the cpuid (probably signed by asus) in the /dev/block/platform/msm_sdcc.1/by-name/asuskey partition.

During boot process this partition is checked and depending on it's contents the device is either locked or unlocked

In my Padfone (Locked) this partition is empty

can someone with an unlocked and rooted phone check if it has data? ( just do a cat /dev/block/platform/msm_sdcc.1/by-name/asuskey from a terminal as root, no need to share it just tell us)

Thank you all
[Android General] --a3pz0--:
Seems empty i cant open the file i get a error
[Android General] gt500:
received mine today, now i am in 4.1.1 jro03l.wwe 10.4.5.36-0, can i root with wich method? many thanks
[Android General] mu5icman:
You can root by using the guide in the first post and the linked boot.img for jelly bean. It works fine.

It's empty
[Android General] gt500:
but can i use boot.img TW version? my padfone is WWE version..
[Android General] mu5icman:
Yes, it doesn't matter. I also have WWE build.

After you flash the TW boot.img and get root access, you can flash the original boot.img.
[Android General] schriss:
you boot any provided insecure boot.img and root, then reboot phone and that's it. No flashing of boot.img needed. Especially if youre on different build/region.
[Android General] dContra:
If someone can post wwe 4.1 firmware rooted so i can flash it it would be cool this method is not working for me.....
[Android General] alexbard:
This procedure works 100% with my padfone 2 jb 4.1.1 I used the insecure tw boot.img then rooted the phone.

Thsnkd
[Android General] gt500:
when i do step 7a:

7a. in cmd session type the below

adb remount (system answer "remount succeded" that's a confirmation you can act as superuser)

adb push su /system/bin/

adb shell

chmod 06755 /system/bin/su

i have the following error

unable to chmod /system/bin/su:no such file or directory

can someone help me?
[Android General] kahei036:
can u capture a screendump on that?

after u push the file what's the msg? after u type adb shell is it showing a '$' or '#'?
[Android General] schriss:
maybe try

adb push su /system/bin

instead of:

adb push su /system/bin/

and make sure su file is present in the folder you are at when executing all the steps.
[Android General] dContra:
error: device not found is what i get do you have windows 8 perchance?
[Android General] gt500:
have passed step 7a now the problem on 7b:

C:\android\adt-bundle-windows\sdk\platform-tools>adb remount

adb server is out of date. killing...

* daemon started successfully *

remount succeeded

C:\android\adt-bundle-windows\sdk\platform-tools>adb push su /system/bin

adb server is out of date. killing...

* daemon started successfully *

2977 KB/s (380532 bytes in 0.124s)

C:\android\adt-bundle-windows\sdk\platform-tools>adb shell

adb server is out of date. killing...

* daemon started successfully *

root@android:/ # chmod 06755 /system/bin/su

chmod 06755 /system/bin/su

root@android:/ # adb push Superuser.apk /system/app

adb push Superuser.apk /system/app

error: device not found

1|root@android:/ #
[Android General] dContra:
my super user does not update binary same problem
[Android General] gt500:
C:\android\adt-bundle-windows\sdk\platform-tools>adb reboot-bootloader

adb server is out of date. killing...

* daemon started successfully *

C:\android\adt-bundle-windows\sdk\platform-tools>adb remount

adb server is out of date. killing...

* daemon started successfully *

error: device not found

C:\android\adt-bundle-windows\sdk\platform-tools>fastboot devices

00167eba fastboot

C:\android\adt-bundle-windows\sdk\platform-tools>fastboot boot boot.img

downloading 'boot.img'...

OKAY [ 0.468s]

booting...

OKAY [ 0.016s]

finished. total time: 0.484s

C:\android\adt-bundle-windows\sdk\platform-tools>adb remount

adb server is out of date. killing...

* daemon started successfully *

remount succeeded

C:\android\adt-bundle-windows\sdk\platform-tools>adb push su /system/bin

adb server is out of date. killing...

* daemon started successfully *

2382 KB/s (380532 bytes in 0.156s)

C:\android\adt-bundle-windows\sdk\platform-tools>adb shell

adb server is out of date. killing...

* daemon started successfully *

root@android:/ # chmod 06755 /system/bin/su

chmod 06755 /system/bin/su

root@android:/ # adb push Superuser.apk /system/app

adb push Superuser.apk /system/app

* daemon not running. starting it now on port 5038 *

* daemon started successfully *

error: device not found

1|root@android:/ #

maybe the problem is related to drivers? in step 7b tha padfone must be on or in fastboot mode?
[Android General] nikotine81:
superuser problem
[Android General] gt500:
havent done step 7b but i installed root checker and it says this device has root access so its ok right?:)
[Android General] mu5icman:
After doing this

exit the shell mode with "exit"

Then go on with adb command
[Android General] georgek_gr:
Hey folks!

I got my device yesterday, updated OTA to JB right away (also a camera firmware update was pushed right after the JB) and I'd like to confirm that the procedure on the OP worked on my WWE 4.1.1 version flawlessly :D

I just got stuck every second command with a message "device not found" but I guess it had to do with adb not playing well with windows 8 (x64) AND my firewall, which I disabled. I had to unplug and plug the phone back in several times, killing the adb.exe process in the task manager. Another small issue was the "adb reboot-bootloader" command on step 3b. That one didn't work for me but "adb reboot bootloader" did.

A BIG thanks to Ivalex for his efforts and Schriss for his valuable input!!

Looking forward to more development on this great device, hopefully more developers will join the Padfone 2 scene :)

Happy Holidays to everyone!

Edit: to root my device, I used the "boot.img from TW JB"
[Android General] GerWonder:
Hi all!

Got my Padfone last week but no I am missing the root access. So I would to try this method to get root. But no I am stuck at on of the first points. :((

I downloaded the unlock.apk from Asus website and launched it several times, but every time I got the message "An unknown error occurs, which may be a network connection issue. Please wait and try again later". Can someone confirm that there is really an connection problem or is there an false on my site?

Thanks for your help!

edit:

Now it worked for me. Seems like the server isn't really stable.
[Android General] pissos13:
I decompiled the Unlock.apk, but I only understand the basic of smali.

I was checking for directories that the tool seems to check or modify.

I got this:

creates:
"/sdcard/Unlock_Time.txt"

modifies:
/dev/block/mmcblk0p3
/dev/block/mmcblk0p4

modifies or checks:
/system/bin/cat
/proc/cpuinfo
/system/bin/
/sys/devices/platform/cardhu_misc/cardhu_chipid
/DMServer/DeviceState
/system/
/system/bin/sync

I think that the tool modifies /dev/block/mmcblk0p3 and/or /dev/block/mmcblk0p4 to unlock.

If is like this, every time we flash with an original ROM, this partitions goes back to original, no?

I would like to know if is possible to backup this to partitions without root.

I also didn't understood if the tool sends some info to a server, did someone unlock the PF2 without being connected, or the tool needs connection?
[Android General] DjBastard:
Hi!!

I demanded my writing my google account, to follow and to unlock the device

salu2
[Android General] hackbob:
Same here; google accout autentication required when I've executed the unlock apk.

I think that it's mainly to confirm your request; not sure if some thing is sent to server.
[Android General] nikotine81:
It's a vérification for Asus ny the google account for sure, to see if the phone will appreciate by develloper
[Android General] findapple:
Any expert there? Need your expertise advise... is it possible to update singapore StarHub_A68-9.8.8.56 firmware to PadFone2 Firmware: V10.4.5.36 Only for WWE SKU (Android 4.1).

So far there is no JB update for singapore users here... and my concern is does it brick my phone if i do upgrade?

Many thanks
[Android General] ekoandrew:
one you log in with your Google Account using that unlock tool from Asus.

your phone SN and IMEI are recorded in Google and sent to Asus for record. Showing that this device have used the Unlock tool.

Meaning, if you were to Flash any new update just to "Lock" again, Asus database will still show your first Unlock attempt.

Pretty much first attempt looses the Warranty for eternity!!

this was told to me by Asus Padfone2 developer here in Taiwan over the phone.
[Android General] benthian89:
You can update to other SKU without any problem.

Look at the steps to flash other SKU over here: http://forums.hardwarezone.com.sg/tablet-den-328/asus-padphone-2-a-3944316-42.html#post72579060
[Android General] hackbob:
Btw in EU a law was approved that rooting or changing rom DOES NOT void the warranty no matter what the manufactur says or let you sign.

It's actually an old law reapplied to all electronics.

If the manufactur says something refer to this link

http://piana.eu/root

And if you ask for legal support for consumer association you'll have your rights applied.

Merry holidays to anyone.

P.s. the article was written from a well known geeky lawyer in italy
[Android General] harpik3d:
I was analyzing the unlock tool for some time and that's what i got:

The unlock tool writes "boot_unlock" at the beginning of sbl2(/dev/block/mmcblk0p3), "recovery\li" at position 64 and something else(probably an asus signature) on sbl3 (/dev/block/mmcblk0p4)

It seems that the unlocking itself is made during the boot process by checking both partitions and somehow removing the lock.

about the google account i'm not really sure if it is mandatory, probably if you don't have a google account configured it won't ask
[Android General] nikotine81:
when we have a dedicated forum to your padfone2, and now we can do "normaly" put an insecure boot, root the phone, update and re-root, no backup with full wipe and with adb connection can put update.zip and restore!(mine experience!), we can't feel the developpement really grow up, why are the difficulty?, the recovery will advance?beta test? and the custom rom and the port of android 4.2, CM10?, MIUI? this phone is so wonderfull maybe the new year will be more positive for this phone!
[Android General] fakeaccount:
thanks
[Android General] pissos13:
I think the problem here is not the root, is about unlocking the bootloader. But without unlocking you can't root or put another rom.

I supose that for the law, is under the same thing.
[Android General] hackbob:
I was on the mobile so I couldn't explain fully.

Unlocking the bootloader in this specific case is only a software change.

As stated by the EU Directive 1999/44/CE

So if we keep the kernel working with max freq as ASUS provided, there is no way that they can say the damages are caused by the software even if it's battery problem (same as BT and other things as long as we keep using ASUS provided sources or with fixes proven to be working).

BTW. rooted today and everything is working fine
[Android General] pissos13:
OK :)

Probably in a few days, after I check I have no problems with PF2 or the dock I will root mine too :)

Thanks!
[Android General] Scarletdeath:
Someone help me please!I was able to boot from the JB insecure img but at step 7a adb remount states error:device not found.
[Android General] georgek_gr:
During the rooting procedure, I encountered the same error msg several times on my Windows 8 machine. What helped me was either closing down the cmd window, killing the adb process in task manager, disconnecting and reconnecting the phone to pc cable and open the cmd window again, or rebooting my pc. I disabled my firewall too.

I hope it helps you too.
[Android General] hackbob:
A faster way is to run this command in the cmd windows

It kills the adb process in a clearer way than terminating it from task manager.
[Android General] Mickwa76:
As long as there are no roms is it worth it to root?
[Android General] Harboe:
A "bit" off topic, but since it seems we're not getting a dedicated forum here, do we have any good forums somewhere else?
[Android General] allram:
you have one here: http://www.padfoneclub.com/news.php
[Android General] nikotine81:
I see hérésie and somewhere the org cable was only support by padfone2 with the table station, it's false, i bought the phone only and I'm really When i put my otg cable with USB key 8giga and i Will see in the notification bar the msg popup "your USB disk is connected". Sdcard and USB key allready support but hardware drive disk since 80giga and more are not support, usb ps3 game pad aren't support to.
[Android General] GerWonder:
Hi all,

I am not sure, but maybe I found the recovery right now under "/dev/block/platform/msm_sdcc.1/by-name/recovery". My problem is that I am not that experienced with things like that so I need help from someone with more skills. ;)

I allready created and recovery.img with the "dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/sdcard/recovery.img bs=4096" and tried already to build a CWM with the builder from clockworkmod.com (here) and flashed this in fastboot mode. But still it sends me to stock recovery. Dont know what the problem is, the builder says all ok. :(:(

I attached the dumped recovery and the cwm_recovery from the builder. Maybe someone can handle this better then me or know another method to get a CWM from stock recovery??
[Android General] MiniJB:
great !
[Android General] schriss:
Try fastboot boot to boot your new CWM recovery. If you flash and reboot AND you didn't rename some file, its likely that you get stock recovery automatically restored.

Fastboot boot file_name
[Android General] GerWonder:
yeah, did that allready. Whit that its booting but after the asus logo I got an black screen and nothing happen.

I think its because we need also some of these files: recovery.fstab, graphics.c, postrecoveryboot.sh
[Android General] hackbob:
The recovery.fstab is definetly needed as it contains the partition structure
[Android General] schriss:
Its also present in stock recovery, can take it from there, but it might be missing some entries. But if you built CWM from stock then existing stab was already used... so maybe missing entries.

Graphics.c should be found in Asus kernel sources.

The third one mentioned earlier, the sh file is totally optional.

Sent from my PadFone 2
[Android General] Ivalex:
just finished up building environment on my ubuntu installation. had a couple of attempt to build recovery from scratch, but no success. seems I'm facing the same issue when building the insecure boot.img. mean the ramdisk must be placed in a fixed address into the img, and after the ramdisk there must be also a couple of bytes of data, in a fixed position as well. problem now is that the original recovery ramdisk is only 680KB and the additional data is just few KB after it. the CWM recovery ramdisk is instead larger (almost 2MB) and there's no way i can compress it to be 680KB. what happen is that I cannot put the last two KB of data in their original position, and the recovery won't boot.:crying:
[Android General] schriss:
You sure these are fixed addresses and are not specified somewhere else in the header or in other position in the file? It seems strange, its unlikely fixed, either there is starting address somewhere or some offset value...
[Android General] Ivalex:
Sure they can be set, trying to understand where...

Inviato dal mio PadFone 2 con Tapatalk 2
[Android General] GerWonder:
Anyone knows that we have an recovery logfile on our device? This file in /cache/recovery/ doesn't say anything.
[Android General] leddra2k:
WKD! cheers dude! this worked excellent on my HK 10.4.5.36 device - which I switch from HK ROM to WWE 10.4.5.36 and then rooted successfully! I can now run my AVAST firewall and install the Beats Audio.apk for excellent sound! :cowboy::good::laugh::fingers-crossed::p:cool::cyclops::highfive:
[Android General] DjBastard:
as you do?

Could explain the program and how you change it?

thanks
[Android General] leddra2k:
Simple change dude, just downloaded the WWE .zip and flashed it :) if you need me to put the step by step I will :)
[Android General] findapple:
padfone 2+motherboard replaced+unlock bootloader failed

Hi Guys,

Replaced motherboard recently, can't unlock the bootloader with asus official unlock.apk error message as following...

"an unknown error occurs, which may be a network connection issue. Please wait and try again later"

PLEASE HELP! Any other method could unlock the bootloader without going back to Asus Service Center cause the SC is suck.

i was waited the queue 2 hrs to get served and another half an hr+ to get troubleshoot on my phone. ASUS SERVICE CENTER is terrible...
[Android General] Lorddeff07:
I still don't get why this device doesn't have its own sub forum.......
[Android General] harpik3d:
remember to delete/rename "/system/recovery-from-boot.p" file or it will re-create the stock recovery on every boot :good:
[Android General] ekoandrew:
the only way to unlock bootloader is through Asus app. you are pretty out of luck.
[Android General] rikiau123:
yes :good:
[Android General] ekoandrew:
Off Topic Question, Any one got NFC working on Padfone 2? Tried 5 PF2, oddly they do not "Beam/Handshake" nor read any blank NFC cards/stickers.

anyone got any luck?
[Android General] darkvice01:
Mine is OK.. Tried in galaxy nexus and galaxy note 2
[Android General] findapple:
if it doesnt work i believe you're same case with me NFC faulty. the only way to fix is go to asus service center to replace the motherboard:cool:
[Android General] Fiili:
Same story as yours, have to go to the vendor and replace phone+pad and now NFC working 100%.......
[Android General] ekoandrew:
what can you transfer from PF2? photos or websites or other documents?

from what I was told my Asus support on the phone. PF2 at moment with 4.1 can only transfer web pages.
[Android General] gilani7:
How will I know if my padfone is affected if I don't have another NFC device to test it ouT with?:confused:
[Android General] --a3pz0--:
I have updated my PF2 to WWE 10.4.9.6-0. can i use the JB insecure boot img "WWE_10.4.5.36-0" to root my phone again or have i to wait for a 10.4.9.6-0 insecure img?

or can i maybe make my own insecure image?

thanks :)
[Android General] mu5icman:
I'm also very interested in that. How did you update? With or without wipe?
[Android General] GerWonder:
where do you get this update?

OTA or another source? Can´t find anything on ASUS.com :confused:
[Android General] --a3pz0--:
i just downloaded the update for my region (WWE) from the asus website, extracted it and copied the "ASUS" folder to the root of the internal storage/sdcard. :good:
[Android General] --a3pz0--:
from asus.com on the product page.

i attached a screenshot
[Android General] GerWonder:
Thanks for the screen, now I got it. :good:

ps: War auf der Deutschen Seite, die hängt wohl etwas hinterher ...
[Android General] mu5icman:
I think you can try the older unsecure boot.img. If it does not work, you can easily flash the boot.img from the firmware.

It would not damage something. The PadFone maybe just don't boot.

/EDIT

There is really a need for a separate PadFone 2 entry in this Forum!!
[Android General] --a3pz0--:
ok i can confirm that it worked. just used the first JB insecure boot.img from page 1 and followed the instructions. got root again.

don't know if its important but i think its better/safer to use only the "fastboot boot boot.img" and not to flash the img.
[Android General] mu5icman:
Thank you, I also did this update and it works fine.

At the end, I flashed the asus original boot.img with fastboot flash boot boot.img

Now I can stream full HD Movies and watch them without sticking on the PadFone Station!
[Android General] Scarletdeath:
Flashing of SKU

Guys my original SKU was starhub. I then flashed TW SKU FW and was successful.Is it okay for me to flash WWE FW now?Thank you!
[Android General] Scarletdeath:
Nvm i just tried flashing and it works.
[Android General] Scarletdeath:
Can confirm his program works for rooting 4.1 WWE.Done in about 2 mins!Thank you!
[Android General] Ivalex:
if all agree we can put it as attachment in the first post. let me know
[Android General] Ivalex:
CWM building...

Hi just a little update on the subject.

at the moment I'm working on a bootable image for CWM recovery. so far I've now a quite ready image, that boots regularly except for the fact that the screen stays stuck on the ASUS logo.

but the phone is fully reachable via adb in this state.

currently the recovery binary is giving me a segmentation fault, so a memory allocation problem, so I guess need to recompile modding a little bit the graphics.c. additionally it also ask for a postrecoveryboot.sh and I'll also prepare this.

if someone has some tip for me, I'm here.

all the best
[Android General] georgek_gr:
I'd like that, thanks a lot :)
[Android General] rikiau123:
ok :good:
[Android General] fsf00000:
Can u please tell us the steps of converting the SKU

and are u able to download the OTA updates now ?

I have TW SKU and want to convert to wwe

Excuse me because I'm coming from Iphone background so everything is new to me :(

Thanks in advance