yashsingh1/xdaforums huggingface dataset:
[Android General] [zozi]:
Hi, i dont have any problems flashing your ROM, i talk when i flash the first time one rom made to flash in TWRP

in page 21 topic #206 i talk this -> http://xdaforums.com/showthread.php?t=2135735&page=21

---------- Post added at 02:33 PM ---------- Previous post was at 02:30 PM ----------

Try push one little file, like exemple.zip for data/media "adb push c:\exemple.zip ./data/media" and in recovery try see that file when you go install zip from sdcard -> choose zip from sdcard
[Android General] Lidenburg:
+1 Try doing this
[Android General] DjBastard:
With the phone in fastboot mode!

Try push one little file " adb push su.zip data/media"

I get permission denied!!!

I tried several directories and always says the same

some solution? :S

thanks for your help!!
[Android General] [zozi]:
not in fastboot, i talk in recovery...
[Android General] Lidenburg:
You need to be in recovery not fastboot.

Try pushing it to /cache instead. To check it was succesful do

adb shell
ls /cache

If you see the name of the file you just pushed it was succesful and you should be able to push the firmware the same way.
[Android General] DjBastard:
Something I got ....

cmw within and from the pc with adb, write "adb devices" and i get 2 devices

then I have to type "adb -s (device number) prueba.zip push data/media"

it sends the file, but then I go to cmw choose zip from sdcard:

Error can `t mount sdcard O_o

I've formatted and nothing ... I understand nothing ...
[Android General] [zozi]:
Sorry i think i cant help more, before, i wait few hours after full wipe and try again and works... i dont know whats happens, but i remember to wait...
[Android General] Lidenburg:
Are you on the latest version of CWM?

Also, try booting/flashing the stock recovery then do "adb push whatever.zip /cache" If that works, push the firmware with the same command and choose "apply update from cache" that's how I got mine back to life when I bricked it and couldn't acces the sdcard
[Android General] walaway:
if you guys get that message, flash the superboot before coming in to recovery. It has something to do with either drivers or root

Can't mount SD etc. that means you don't have root :)
[Android General] Lidenburg:
Ohh, that explains alot
[Android General] walaway:
This is why I prefer TWRP. you have a visual of the sideload at the least
[Android General] DjBastard:
Solved!! XD thank goodness .....

For if it helps someone get exactly the steps.

1. Boot into fastboot mode and install stock recovery, from ADB write:

"fastboot flash recovery recovery stock.img"

2. Boot stock recovery and from adb write:

Adb devices (may have more than one device)

"adb -s (device number) push rom.zip /cache"

3. From stock recovery, Select Update from cache .......

Risen :laugh:

thank all the Members who have helped me, really THANK YOU!
[Android General] Lidenburg:
Glad to hear it worked!
[Android General] walaway:
google.com/maze guys kkgo
[Android General] :
I'm trying to flash CWMR ( Link) to the recovery partition via Fastboot but somehow Fastboot is only able to boot the recovery.img, not flash it. The image is located in the same folder as fastboot.exe and my CMD is pointing to the right directory.

This is what I do:

- With phone turned on, on homescreen, I use 'adb reboot bootloader'

- When in the bootloader (Fastboot mode is on top), I use 'fastboot devices' . The phone is listed.

- I then use 'fastboot boot recovery.img'. It sends, writes and reboots to CWRM, that works (I made my back-up)

- When I reboot, go back into the bootloader and use 'fastboot flash recovery recovery.img' it shows this:

It sends, it writes but nothing happens. it stays on the 'Fastboot mode' screen.

What is wrong?

If I have CWMR flashed, I'll use it to flash Iidenburg's deodexed ROM, wipe partition cache, wipe dalvik cashe and start modding.

Thanks in advance!:o
[Android General] Lidenburg:
You have to get a root filemanager or adb shell and go to /system/etc and delete "install-recovery.sh" after that you can flash recovery via fastboot.
[Android General] walaway:
Because when yoh flash you also flash the stock recovery.

Fastboot boot xxx.img just boots the img

Fastboot flash recovery xxxx.img is the correct format to flash it to your device

As mentioned above you may have to remove one of the scriptts from the rom.zip
[Android General] :
@walaway:

Yeah, that is what I did. I first booted the recovery.img to check that is worked. When that was the case, I went back into the bootloader to flash the recovery.img and that didn't work.

@Lidenburg:

I'll try your suggestion! Is there a reason why install-recovery.sh must be deleted in order to flash? Do you have a link where I can read up on that?
[Android General] Lidenburg:
Not really but if you look in it you can see what it does, also the name is kind of a giveaway :P

When the phone boots it checks if the recovery that is currently installed is the stock recovery and if its not it flashes the stock recovery
[Android General] :
Alright, everything is working. Running your 10.4.12.24 ROM, Lidenburg

I flashed CWMR after I rooted and deleted install-recover. I then flashed the ROM with CWMR, factory reset, wiped the cache partition and dalvik cache. Went without a single hiccup. Many many thanks guys!

EDIT: Can I further debloat by removing the desired .apk files in /system/app?
[Android General] walaway:
Yes. You can delete from the rom or via titanium backup
[Android General] DjBastard:
Lidenburg

I have taken the liberty of putting the ROM information HTCMania forum, for people to test the Rom and so if you dare to have modifications, and create new things.

I would change the battery icon, if I draw "sistemUI.apk" and the * png change Battery with root explorer and insert it again .... would be fine?

then I'll have time proves it ...

Regards
[Android General] SiSSiDroid:
I suggest you use uot kitchen to make battery icon mods.

Tho I haven't tested it out yet im planning to as soon as I get home.

Anyone else played around with UOT kitchen on there padfone 2 ?
[Android General] Lidenburg:
I've been trying to change the battery icon aswell, so far only changing the files in it has not worked for me, I either manage to boot it up but without a statusbar, or it gets stuck at the Asus logo.

Also if you're going to be changing the battery icon you need to edit the framework-res.apk aswell.

Btw is the dropbox download working? I got an email from dropbox saying they have temporarily disabled my public files or something like that...
[Android General] :
I'm trying to apply the CRT animation ( Link ). I have FrameworkFlasher is not working for me, if gives an echo off error when recompiling. Instead I have manually pulled framework-res.apk (and systemUI.apk) with ADB and decompiled it with apktool. I then changed the line in bools.xml from 'false' to 'true and recompiled it with apktool. I merged the new framework-res with the old one (resources.arsc, where the values reside). That goes well.

The problems start when I try to push framework-res.apk with ADB. I need to have /system/ set as rw and I have to give framework-res.apk on the phone all permissions with ES file explorer in order to push. Otherwise ADB gives errors like 'Read only file system' or 'permission denied'.

When I have pushed the moddified framework-res.apk with ADB, the phone reboots but gets stuck on booting on the ASUS logo (loading logo is turning but it hangs).

I now have to restore my ROM with CWRM for the second time. I thought I would start with something easy (before moving on to transpart statusbar and battery icons) like the CRT mod but that doesn't even work.

Any advice?
[Android General] walaway:
@A51 wouldnt you need to set it to -rw? Check all the root options on your explorer on ES just check mount system

@Lidenburg you got exceeded the network traffic so they disabled it. better put it on rapidshare or something
[Android General] Lidenburg:
I'll tell you how I do it when I'm modding with the framework-res and SystemUI.

First grab a backup of the original framework-res.apk and SystemUI.apk, save them in a folder on your PC and you do not touch these files, they are your backup so you don't have to reflash the whole ROM

You then make a copy of the framework-res and SystemUI that you pulled and make whatever modifications you want to it.

When you're done, boot the phone in to recovery, go into "mounts and storage" and mount /system.

You now go to the folder you have adb in and place the modified framework-res and SystemUI in there.

now open adb and enter

adb push SystemUI.apk /system/app
adb shell chmod 644 /system/app/SystemUI.apk
adb push framework-res.apk /system/framework
adb shell chmod 644 /system/framework/framework-res.apk

That puts them in the right place and gives them the correct permissions

You now wipe the dalvik cache, reboot and hold your thumbs!:good:

If it doesn't work (you know it won't work when you can see the phone with "adb devices" and it's still at the Asus logo) you do "adb reboot recovery" mount the /system partition again and replace the framework-res and SystemUI you put in your adb folder, with the backup ones and do the commands I listed above again, you're now back to the un-modded framework-res and SystemUI wihout having to reflash the 1gb+ backup that nandroid makes
[Android General] :
Massive thanks, Lidenburg!

That seems like a better procedure, will try is this evening:)

EDIT: have you made any progress with the battery icons? (using UOT kitchen?)
[Android General] DjBastard:
Lidenburg

You can use the link that got me, that's premium ;)

http://ul.to/hxicvv9s

Turning to the battery :cowboy::

I tried to follow this tutorial: http://apkmultitool.com/

http://www.youtube.com/watch?feature=player_embedded&v=aM5mjKN4ceo

Everything works until I have to compile :(

not by jumping the error: S

A51Rene, I am also now I'm testing the Ultimate Online Theme Kitchen web, have more luck if

greatings

PD: I like mod :crying: : http://ul.to/8c7xojpi
[Android General] Lidenburg:
I've never tried the UOT kitchen I've been using ticke my android and I have actually made some progress I have now managed to boot in to android with the framework-res and SystemUI that has the battery mod, but I'm now facing a new problem, there is no battery icon in the statusbar...
[Android General] walaway:
Send me the link for the ROM when you've uploaded it on another site
[Android General] DjBastard:
I've tried to create in UOT Kitchen battery mod....

Error log: http://uot.dakra.lt/viewlog.php?data=VU9ULTAzLTIyLTE4LTMyLTEtU0hURi50eHQ=

No ideas to try ....

Walaway

Link for rom running : http://ul.to/hxicvv9s
[Android General] walaway:
Editing OP and 2nd post, added revive
[Android General] Lidenburg:
It will be done uploading in about an hour, I will inform you when it's done and I have a new download link

Edit: New download link: http://www.4shared.com/zip/1xHdyELY/A68-update-1224-rooted-deodexe.html
[Android General] :
@Lidenburg,

ADB doesn't see my device when I'm in recovery.

If I reboot after having mounted /system/ and then use ADB to push, I'll get this error: failed to copy framework-res.apk to '/system/framework/framework-res.apk': read-only file system'.

So, pushing while in recovery doesn't work and pushing when booted up again gives an error...
[Android General] Lidenburg:
What recovery are you using?
[Android General] :
CWMR v6.0.2.9

I heard people bricked their phone with TWRP, so I chose CWMR instead...
[Android General] Lidenburg:
Hmm, that's weird, I'm using that too and I have no problem seeing the padfone in recovery... have you tried reinstalling the drivers?
[Android General] :
Ah! Reinstalling the ADB driver gave me access to ADB while in recovery, so that is fixed. Now going to try pushing the files.

Thanks again, Lidenburg. Very much appreciated!:)
[Android General] Lidenburg:
You're welcome :) Only glad I can help
[Android General] :
Pushing worked perfectly, but it didn't boot (hang on ASUS logo) with my modified framework apk.

Here is what I did to it:

- Pulled framework-res.apk from the phone

- decompiled it with apktool

- went to /res/values/bools.xlm

- changed "config_animateScreenLights">false< to "config_animateScreenLights">true<

- recompiled with apktool

- transferred 'resources.arsc' from /build/apk to the original framework-res.apk and replaced it

- my orginal framework-res.apk now has the CRT animation enabled and is correctly signed.

- pushed the apk with ADB while in recovery

- whiped dalvik cache

- rebooted

The file size changed from 17.882kb to 13.254kb with this small edit, which is somewhat weird.

Anyway, pushed back the back-up I had and booted back up. That works perfectly, Lidenburg

EDIT: Some success, I have pushed a framework-res.apk that I modded with UOT Kitchen and that one booted. I now have a white battery icon ( Link ) but all other things I've seleced in UOT don't work.
[Android General] Lidenburg:
Try putting the Manifest and META-INF from the unmodified .apk in the modified .apk too
[Android General] :
Yes, that worked. Pushed the framework apk with de CRT mod in it with success. However, the animation doesn't seem to work.

Back to the drawing board, i guess...
[Android General] [zozi]:
Nice stuff and great news... Only a few days out and many progess thank you guys... You are the Best i like...

I teste de right now this script http://xdaforums.com/showthread.php?t=2158329 and seems workshop very well... May be somtinhg too put in next version of rom... ;)
[Android General] walaway:
I'm excited to see CRT! That would really make my day! Good job and good luck guys!
[Android General] SiSSiDroid:
Don't forget to pay the bills to get the skills. Seems like I've forgotten to pay ny Internet bill. So no testing uot kitchen for me. :banghead:
[Android General] :
I am trying to decompile and recompile SystemUI.apk with apktool. Decompiling works fine but when I try to recompile the unmodified SystemUI I get this error:

I: Compiling SystemUI...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, G:\Users\REN~1\AppData\Local\Temp\APKTOOL6661195979667474979.tmp, -0, arsc, -I, C:\Users\René\apktool\framework\1.apk, -S, C:\ApkChanger\out\SystemUI\res, -M, C:\ApkChanger\out\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.a(Unknown Source)
at brut.androlib.Androlib.a(Unknown Source)
at brut.androlib.Androlib.a(Unknown Source)
at brut.androlib.Androlib.a(Unknown Source)
at brut.apktool.Main.b(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, G:\Users\REN~1\AppData\Local\Temp\APKTOOL6661195979667474979.tmp, -0, arsc, -I, C:\Users\René\apktool\framework\1.apk, -S, C:\ApkChanger\out\SystemUI\res, -M, C:\ApkChanger\out\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.a(Unknown Source)
... 6 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, G:\Users\REN~1\AppData\Local\Temp\APKTOOL6661195979667474979.tmp, -0, arsc, -I, C:\Users\René\apktool\framework\1.apk, -S, C:\ApkChanger\out\SystemUI\res, -M, C:\ApkChanger\out\SystemUI\AndroidManifest.xml]
at brut.util.OS.a(Unknown Source)
... 7 more

I can decompile/recompile framework-res.apk just fine. What can cause this error with SystemUI.apk?
[Android General] Lidenburg:
Recompiling the SystemUI is a bit weird like that.

In the folder you decompiled the SystemUI you have to go to /res/values and open public.xml, go to the bottom of it and change

<public type="menu" name="notification_popup_menu" id="0x7f100000" />

to

<public type="menu" name="notification_popup_menu" id="0x7f000000" />

and change

<public type="menu" name="recent_popup_menu" id="0x7f100001" />

to

<public type="menu" name="recent_popup_menu" id="0x7f000001" />

save it and then you can recompile it.

Go say thanks to this guy, he's the one who figured it out http://xdaforums.com/showpost.php?p=35922233&postcount=799
[Android General] :
I changed those lines and saved it, but is still gives the same error when it is building the resources.
[Android General] Lidenburg:
Sorry, then I don't know what it could be...
[Android General] DjBastard:
Lidenburg

Thank you very much for your help

Now if you have compiled, without throwing errors

Once done this you can make a flashable zip from cmw?

for now I will try changing it with root explorer and doing "wipe cache"

thanks

and greetings

PD: Padfone boots! But the notification bar disappears :(
[Android General] :
DjBastard, have you succeeded at compiling now? Or are you, like me, still experiencing the error?
[Android General] Lidenburg:
I just tried flashing the framework-res that I made with the UOT kitchen yesterday and it actually worked! I now have a 1% mod working!

Now to look through the framework-res and see what it did that I missed

Here's a download if someone wants to try it: http://www.4shared.com/zip/jvV6PsX2/UOT-03-23-00-16-1.html
[Android General] Lidenburg:
@DjBastard have you tried zipaligning it? That worked for me
[Android General] DjBastard:
A51Rene & Lindenburg

Compiled ok!!!! but not found :(

This sistemUI.apk

http://ul.to/xppq265a

Notification bar disappears ...

After the failure, I've been in recovery (CMW) I restored backup

and the phone will not start, stays in the white asus logo: (

By passing this?

I get to live again :crying::crying::crying:
[Android General] :
What did you do to have recompiling working? Only Lidenburg's suggestion?

I still can't decompile and recomile the SystemUI.apk...

EDIT: which aapt version do you guys use? An older one (1.4.3 or 1.5.2 ?) or the one from the Android SDK?

EDIT 2: It now gives an error on 'building APK', instead of 'building resources':

Microsoft Windows [versie 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle rechten voorbehouden.

C:\Users\René>cd /android/apktool

C:\Android\apktool>apktool b SystemUI SystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building apk file...
ERROR: output file 'C:\Android\apktool\SystemUI' exists but is not regular file
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-ver
sion, 16, -F, C:\Android\apktool\SystemUI, -0, arsc, -A, C:\Android\apktool\Syst
emUI\assets, C:\Android\apktool\SystemUI\build\apk]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildApk(Androlib.java:455)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Android\apktool\SystemUI, -0, ar
sc, -A, C:\Android\apktool\SystemUI\assets, C:\Android\apktool\SystemUI\build\ap
k]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 5 more

C:\Android\apktool>
[Android General] DjBastard:
A51Rene

Only Lidenburg's suggestion, sistemUI.apk compiled 100% ok (no crash aapt.exe)

But the notification bar disappears ...

salu2
[Android General] Lidenburg:
Have you zipaligned it? If you don't zipalign the SystemUI the status bar seems to disappear
[Android General] DjBastard:
If we take the mod he has done with UOT Kitchen Lidenburg worked, manually changing the icon images "png" battery should work

Could you explain how zipaligned it? with Tickle My Android 5.3?
[Android General] :
I have fixed my problem, now compiled with success:

http://xdaforums.com/showthread.php?p=39476913#post39476913
[Android General] DjBastard:
A51Rene

Can you explain ...

"systemUI.apk have to remove the extensions *. apk?

I do not understand what they mean ...
[Android General] :
I used this command in apktool, because I read somewhere that .apk must not be added after SystemUI. This is wrong.

apktool b SystemUI SystemUI

This command is the right one to compile (Don't forget to change the 2 lines in /res/values/public.xml)

apktool b SystemUI SystemUI.apk

Lidenburg, what is the easiest way to zipalign SystemUI.apk?
[Android General] Lidenburg:
I do it with tickle my android, I haven't looked up how to do it the "proper" way
[Android General] :
I think I've found it in the mean time:

- Put the contents of the zip below in the same folder as apktool (with the apk that need zipaligning after compiling)

- Use the following command:

zipalign -v 4 APK-that-need-aligning.apk done.apk

So for SystemUI.apk it must be, for example:

zipalign -v 4 SystemUI.apk DoneSystemUI.apk

The finalized apk will be DoneSystemUI.apk (or any name you give it)

EDIT: decompiled SystemUI, changed the 2 lines in public.xml, recompiled it, zipaligned it, pushed it to the phone while in recovery, rebooted and it is working.

Now that is have figured it all out, time to start modding :)
[Android General] Lidenburg:
We should make a separate thread for the battery mod/modding in general
[Android General] DjBastard:
Lidenburg

Can you explain please

With Tickle My Android 5.3 as create a flashable zip?

at the end you know why the notification bar disappears?

thanks in advance

regards

PS: I flashed the your mod UOT kitchen mod, and it works xD
[Android General] Lidenburg:
Did you zipalign it before making it to a flashable zip?
[Android General] DjBastard:
Yes!!

create a flashable zip from cmw!

thanks
[Android General] unLieb:
Hi community, at first excuse my bad english. I'm not the best in it. I've got a big problem since I tried to flash my ASUS Padfone 2 with the ROM from Lidenburg.

I tried to install the ROM with TWRP (!??!?!?!?)

The installation worked well.

It's finished succesfull.

BUT when I trie to reboot it get a Bootloop.

So i hoped i can wipe and flash the ROM again. But when i try to wipe, comes the message:

But i can't mount the external SD to.

And i can't find my backup!

What can i do?
[Android General] walaway:
Keep it here while theres not a real sub-forum yet. We want to have every development available here on this thread so there'll be no wandering around.

@unLieb

refer to 2nd post, you're going to have to start over from there.
[Android General] DjBastard:
UnLieb

I spend the same

Performs these steps:

1. Boot into fastboot mode and install stock recovery, from ADB write:

Download Stock recovery

"fastboot flash recovery recovery stock.img"

2. Boot stock recovery and from adb write:

Adb devices (may have more than one device)

to put the official rom renamed "update.zip"

"adb -s (device number) push update.zip /cache"

3. From stock recovery, Select Update from cache .......

So I've fixed it already 3 times xD so quiet ...

Regards

PD: We want a real forum for Padfone 2!!!!!
[Android General] unLieb:
Hi DjBastard,

thanks for your answer.

But now, i've the next problem.

I'm in Fastboot-Mode, my Phone is detected in Windows, but adb/fastboot don't find it. :confused:
[Android General] DjBastard:
Has installed drivers padfone 2?

http://support.asus.com/download.aspx?SLanguage=en&m=PadFone 2&os=32

boot fastboot power+vol+

if so it should work!

Pd: quiet, I am Spanish and my English is not very good either :p
[Android General] unLieb:
Yeahh, it was not a driver problem, but your instractions works geat!!! :good::good::good:

I've flash the Stock-ROM and my Phone runs as previously!

But the downside is, that my data on my SD-Card was cleared!

SMS and WhatsApp-messages are lost! :crying:
[Android General] [zozi]:
ok, lets go,

someone as tested this -> http://builder.clockworkmod.com/

here i can get the files?
[Android General] walaway:
Re: [INITIATIVE/RECRUITMENT] ASUS Padfone2 Development /Root/ CustomRecovery(beta) /P

Ill look in to that tomorrow, and if possible get help porting twrp soon(lack of decent interwebs).

Good stuff right there