[HOWTO] Updating your framework-res.apk WITHOUT bricking your phone - Sony Ericsson XPERIA X10 Mini

Disclaimer: maybe this is just my phone, but I doubt it since there are *so* many bricked phones that have to do with updating framework-res.apk when installing a new theme.
Also I've bricked my phone with any other suggestion by the theme creators on how this should be done.
Here's how to safely update framework-res.apk (only via command shell) :
- Upload your new framework-res.apk to your sd card:
Code:
adb push framework-res.apk /sdcard/framework-res.apk_new
- Remount R/W your /system:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
- Move framework-res.apk_new to /system/framework/:
Code:
busybox mv /sdcard/framework-res.apk_new /system/framework/
- Update the perms correctly:
Code:
busybox chmod 644 framework-res.apk_new
- 'Atomically' replace the old framework-res with the new one:
Code:
busybox mv framework-res.apk framework-res.apk.orig && busybox mv framework-res.apk_new framework-res.apk
Its REALLY important that the last command completes (and it does) before the phone reboots because without a working framework-res.apk it won't give access to su to have it replaced afterwards, hence, your phone is bricked! Also every time you tamper with this file the phone reboots instantly! The last commands ensures that there is enough time for the new framework to be in place before the phone reboots.
Hope this helps avoiding some needless reflashes

thanks for this
"cat" methode" works to your phone reboots without permissions but it will just work

Not working for me.
Maybe the file is wrong?

What do u mean? Just compare the downloaded framework with the one in /system/framework
Sent from my E10i using XDA App

or
Or you can copy that file (in a routed device with rootexplorer) in folder system, after that change the atributes like in picture down, than, cut from system and paste overwrite in framework , and than restart ( in my opnion is more sigure, and more simply )
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

This way got me bricked one time

nobodyAtall said:
This way got me bricked one time
Click to expand...
Click to collapse
nobodyAtall, i have used the root explorer method for over 100 changes of framework-res.apk and i didn't brick even once.
The key is to copy the framework-res.apk first on /system and after chmod to 644, move it (dont copy it) to /system/framework.
Even if the phone reboot while you have framework-res.apk on /system, android can't read it as system element.

DaRk_dOg said:
nobodyAtall, i have used the root explorer method for over 100 changes of framework-res.apk and i didn't brick even once.
The key is to copy the framework-res.apk first on /system and after chmod to 644, move it (dont copy it) to /system/framework.
Even if the phone reboot while you have framework-res.apk on /system, android can't read it as system element.
Click to expand...
Click to collapse
mv is what works. The point is that there is huge confusion on how this should be done, something that bricks a lot of people's phones.

nobodyAtall said:
mv is what works. The point is that there is huge confusion on how this should be done, something that bricks a lot of people's phones.
Click to expand...
Click to collapse
Check the installation procedure on this one.
D_d

Related

[Q] Problem installing xRecovery, Please Help

Hello guys it's me again,
after you helped me with the program Sony ericsson update service, installed it on my pc.
I wanted to try it out, so I runned it. Now my phone is back as how it was when i bought it.
Installed root, Done. Installed Busybox Done. Installed xRecovery Fail!
I don't know why it happen after the SEUS Update. My system is 2.1- Update 1 same as before.
Before running SEUS I installed already xRecovery without problems. Please help me I want to install 2.2 Froyo ...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The blue box is in german and it means "xRecovery got Su premissions.
Hi,
Try this..
http://forum.xda-developers.com/showthread.php?t=895351
Regards,
Okay thanks, I'll try it now and tell you if it worked.
I can't install xRecovery, it tells me that it is forcibly closed and i don't know what to do. I tried everthing. please help me. Sry for noob question
do you have busybox and superuser installed?
@jimbo77 doesn't work, but I installed now using the manual Installation
Manual Installation:
- Download the apk, rename it to xRecovery-0.2-release.ZIP
- Unpack the file, find ./res/raw folder inside. It should contain 3 files (chargemon, busybox, xrecovery.tar)
- copy these 3 files into /system/bin using root explorer (remember to remount /system rw
Tehouster said:
do you have busybox and superuser installed?
Click to expand...
Click to collapse
yes I have
5xL-Gaming said:
@jimbo77 doesn't work, but I installed now using the manual Installation
Manual Installation:
- Download the apk, rename it to xRecovery-0.2-release.ZIP
- Unpack the file, find ./res/raw folder inside. It should contain 3 files (chargemon, busybox, xrecovery.tar)
- copy these 3 files into /system/bin using root explorer (remember to remount /system rw
Click to expand...
Click to collapse
well i already have these in my system/bin will it copy over or i mean replace them, and lastly how do i remount /system rw ?
This is a option you can use in the app "Root explorer"
ok im up and running now 2.1-1, rooted using flasher 0.2.5, xRecovery installed, and jit enabled.
it seems the problem for me was busybox was old or something. anyway after installing 2.1-1, rooting, tried to install xRecovery-failed, ( back up your fone just incase) using the free explorer, i deleted busybox then reinstalled latest from app market, went into my apps and since id already tried to install xRecovery it was sitting in there and i pressed it, it installed it, i rebooted, added jit to fone, installed using xRecovery.
now all is good.
hope this might help someone else having trouble.
i had trouble doin all this stuff when i first did root. but i just did i restart and it worked, if u dnt restart after installing busybox and xrecovery and whatnot they dnt normally work, that was just me but urs may be different

[Q] Need Help

Hi All,
When i push some applications in system/app folder via root explorer. It does not work. I am not able to see those apps in app drawer. Is there any other way to push to those apps ?
thanks in advance.
Regards
Creedy
Make sure you give the files Read/Write permission.
What ever app you push to system/app folder, change their permissions like this with the help of root explorer after enabling read write.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you told me, I have changed the permissions but still can't see pushed apps in app drawer. ....
Have you reboot the phone after copying and setting permission?
Can you post the URL you use as reference for doing this?
Off course I have rebooted the phone after setting permissions. Actually I m trying to push default music app by LG. By mistake it was deleted by me. So i want to install it again.
Place the apk on the root of your sdcard. Remount and copy the stuff with these commands:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard
cp <filename>.apk /system/app/<filename>.apk
kpbotbot said:
Place the apk on the root of your sdcard. Remount and copy the stuff with these commands:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard
cp <filename>.apk /system/app/<filename>.apk
Click to expand...
Click to collapse
what about remount for read after?
I tired it but no luck Music app is not showing. Could you please share Music.apk and Music.odex Files). using cmds can't see music.apk in app folder.
The_ERROR said:
what about remount for read after?
Click to expand...
Click to collapse
I thought he was going to restart anyway
I think there was a similar problem in another thread about this, something about the app not being signed?

[MOD] CM11 Bootanimation {MDPI/HDPI}

CM11 Bootanimation for MDPI and HDPI devices
Decided to make an optimized and a resized one for our devices​​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
*Warning
I'm not responsible for devices that undergo bootloops or any errors, it's your choice to make these changes.​
*Requirements
-Unlocked bootloader
-Rooted device
*Instructions
Via Root Explorer:
-Place the file in your sd card.
-Rename it as "bootanimation" (Without quotes)
-Copy or move it to root/data/local
-Set permission as r-w-r-r
-Reboot
Via ADB:
-Enable USB debugging in your device.
-You should have SDK installed. Go to platform-tools.
-In notepad++ type
Code:
echo off
pause
files\adb root
files\adb remount
files\adb push files\bootanimation.zip /data/local
files\adb shell chmod 755 /data/local/
files\adb reboot
pause
echo on
-Name it and save it as .bat (Type ".bat" after the name of your file without spaces) save it to platform-tools.
-Place the "bootanimation_HDPI.zip" or "bootanimation_MDPI.zip" to platform-tools.
-Connect your device to your Machine.
-Open the file you created and CMD will appear, press enter, wait for it.
-Your device will reboot, done ​
*Downloads
bootanimation_HDPI.zip
bootanimation_MDPI.zip
*Credits
CyanogenMod​
Downloading for Xperia S!
yeah
support on
xperia e?
benpsam said:
xperia e?
Click to expand...
Click to collapse
If it has HDPI screen size, try it
I need s5 boot animation
Cool. :good:
this is awesome, thanks @JovieBrett! Any chance you could create this in 1080x1920?
The_Benwa said:
this is awesome, thanks @JovieBrett! Any chance you could create this in 1080x1920?
Click to expand...
Click to collapse
I no longer have this original file of it, sorry!
Abdulwahid34 said:
I need s5 boot animation
Click to expand...
Click to collapse
try this link:
http://forum.xda-developers.com/showthread.php?t=2711213

Read only File System Problem

Hi everyone,
First of all, I would like to wish Merry Christmas to the Community Members...
Secondly, I am stuck on a very irritating problem: Read Only File System
I Rooted my phone, Flashed CWM 6.0.3.1 a month ago. Since then, I tried various ROMs here and I found this problem in all ROMs I've tried. Basically, I am not able to Change my System Files.
I tried ES File Explorer to overwrite but it says: Permission Denied!
I tried all File manager, but failed!
I tried mount -o remount,rw /system but neither it changed the permissions, nor it gave any error in Terminal.
I used Terminal and tried the chmod command, but it says Read Only file system
I tried to make a Flashable ZIP using this method, but even this doesn't change the files.(No, it does not show any error while flashing the zip through CWM)
Actually, I was trying to overwrite the boot animation, but the thing is that my whole system seems to be Read Only.
So, I would like to ask for help regarding this.
Thank You
Best Regards,
THAKUR
SCREENSHOTS BELOW
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
flashed roms. ..? ehh is your bootloader unlocked...?
second it looks like a root problem . try this method to gain root again (if you're already rooted ,then go to supersu and in settings do permanent unroot) ,it roots your phone in 28~35 seconds ,
http://forum.xda-developers.com/showthread.php?t=2511695
Ok. So the problem was solved on the same time as I posted this thread.
What worked for me:
When I tried mount -o remount,rw /system, I was still not able to Fix permissions through ES File Explorer. Then, When I tried mount -o remount,rw /system 2 times, and then I used the Default File manager(Cyanogen File Manager) to change permissions, it was working.
Ok. So the problem is solved now.
Thread can be marked as SOLVED :good:
Anuj, Thanks though

adb pull gives error "access denied" - How to fix?

All I want to achieve is to pull subfolders ( DCIM etc.pp ) of Android's /data/media folder what successfully got mounted as RW
To access /data partition you need root permission which is adb root
But most devices would refuse to run this command, in which case you need to install adb insecure mode. You can get that from here.
After installing the app switch to insecure mode. Then pull command should work.
Alternatively you can use adb shell to work around it:
Code:
adb shell
su
mkdir /sdcard/media
cp -R /data/media/* /sdcard/media
exit
exit
adb pull /sdcard/media
Notes:
The "*" in "/data/media/*" stands for all, which copies all files in current directory. If you want specific file just replace it with "filename.extension"
The option "-R" in "cp" command stands for recursive which copies directories, and will copy all files in respective directories as well.
Thanks for trying to help: Unfortunately your solutions don't work at all.
FYI:
I use /data/local/tmp for intermediate storage ( permissions: rwxrwxrwx )
I can successfully copy /data/media/<SUBFOLDER> to /data/local/tmp/<SUBFOLDER> ( permissions rw-rw-rw- )
All copied files have permission rw-rw-rw-
When applying ADB PULL on /data/local/tmp/<SUBFOLDER> I still get error "Access denied" even if having additionally set owner of all
files in /data/local/tmp/<SUBFOLDER> to shell.shell and/or root.shell and/or shell.root and/or root.root
It's working fine with me, but I used /sdcard as the copy folder.
Like I said you can only access /data partition with root. You can try the first method mentioned above.
As mentioned none of your suggestions solved the problem.
1, ADB Insecure obviously doesn't work on Android 8+ devices, hence useless
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Temporarily copying to /sdcard in my case is useless too, because /sdcard is merely a symlink to /data
So you can't even use pull command on /sdcard partition?
I only found this answer, that may be similar https://android.stackexchange.com/a/213172

Categories

Resources