[Q] Framework-res error after edit - Galaxy Y GT-S5360 General

Hi, i was trying to rewrite old smilies in framework-res.apk and after that change my phone repeatedly show welcome screen (again and again ..), nothing more happen.
I have original unchanged framework-res.apk file, but i don't know how to rewrite it back without other apps (rootexplorer etc.), just through my pc or some phone recovery mode.
Can anybody help?

maybe adb would work..
try
Code:
adb remount
adb push framework-res.apk /system/framework
lets see if you can overwrite..

noobwithgalaxyy said:
maybe adb would work..
try
Code:
adb remount
adb push framework-res.apk /system/framework
lets see if you can overwrite..
Click to expand...
Click to collapse
I have this phone shortly, so i need to know where can i get adb.

after adb remount command it says: Operation not permitted
and adb push ... : Read-only file
any other ideas?

Erm.. you need to download android SDK from http://developer.android.com/sdk/index.html
then use terminal(on PC), navigate to your <sdk folder>\platform-tools
and use those commands..
I tried to create an update.zip for u.. doesn't work
Can you give me the backup framework-res.apk?

noobwithgalaxyy said:
Erm.. you need to download android SDK from http://developer.android.com/sdk/index.html
then use terminal(on PC), navigate to your <sdk folder>\platform-tools
and use those commands..
I tried to create an update.zip for u.. doesn't work
Click to expand...
Click to collapse
I have update.zip from xda forum, but it doesn't work. (but before my problem this update.zip worked)

selda said:
I have update.zip from xda forum, but it doesn't work. (but before my problem this update.zip worked)
Click to expand...
Click to collapse
no no.. i mean to restore framework file..

Ok, here is framework-res file

problem is that maybe you have not enabled usb debugging..
and update script doesnt seem to be working.. maybe some one with more experience can help you..
you can try here yourself..
http://www.londatiga.net/it/how-to-create-android-update-zip-package/

My created and signed update.zip says aborted :/

hmm. just flash a fresh rom?

how can i do that?

Related

HTC Magic Ringtones & Alarms

I rooted my HTC Magic today and I loaded the RAv1.1.0 custom rom. Its a great rom, but the ringtones are a bit boring and i really liked the htc ones. So i extracted the files from a Hero ROM and pushed it to my phone.
If anyone wants these media files, i have packaged them toagther and made a small python script to install it automatically for you, you just need to run just run push.py file.
Let me know how it goes, it works great for me
Cheers
spatali
PS: Reboot the system after running the script. Otherwise they wont show up until next reboot
Tutorial & .bat (for windows) by TikiiTorch
For people who don't have python install in Windows
1) extract the above .zip file into your "android-sdk-windows-1.5_r3\tools\" directory (wherever that might be)
2) get on your command line and cd to the "htc_media" directory you just created.
3) enter the following commands:
Code:
adb remount
adb push alarms /system/media/audio/alarms/
adb push ringtones /system/media/audio/rigntones/
adb reboot
Click to expand...
Click to collapse
or use push.bat in the zip
DOWNLOAD
Ringtones & Alarms
thanks TikiiTorch
didn't download. requires login to download.
Rroet said:
didn't download. requires login to download.
Click to expand...
Click to collapse
No it doesnt.. just click the request ticket link above the file... then do the same when it changes to download.
Thanks
Flashed the Drizzy TF3D rom and was seriously missing the stock notifications.
Thanks for tracking this down and sharing!
Any idea why now under ringtones it list every ring tone twice, yet there is only one copy of each file in the directory?
thanks
Okay never mind, I deleted them, rebooted, copied them back, rebooted and now only one is showing up. That was very strange.
So how does one go about installing these ringtones to the phone? A myTouch 3G specifically using Cyanogen's 4.0.1 ROM. I guess I'm a little confused as fas as running the python script itself....any help would be absolutely appreciated! Thanks everyone!
juanavila said:
So how does one go about installing these ringtones to the phone? A myTouch 3G specifically using Cyanogen's 4.0.1 ROM. I guess I'm a little confused as fas as running the python script itself....any help would be absolutely appreciated! Thanks everyone!
Click to expand...
Click to collapse
Im guessing you are on windows without python installed, so you will want to:
1) extract the above .zip file into your "android-sdk-windows-1.5_r3\tools\" directory (wherever that might be)
2) get on your command line and cd to the "htc_media" directory you just created.
3) enter the following commands:
Code:
adb remount
adb push alarms /system/media/audio/alarms/
adb push ringtones /system/media/audio/rigntones/
adb reboot
OR Download this zip (same as spatali's above but with my .bat file included) and double click the push.bat file thats in there.
Let me know...
@TikiiTorch this is great, i'll include your tut and .bat file in the first post
ps: I dint know push command works for entire folder ^^
i'm not an expert, but isn't the reboot commando:
Code:
adb shell reboot
unirox said:
i'm not an expert, but isn't the reboot commando:
Code:
adb shell reboot
Click to expand...
Click to collapse
Whoops, you're right. Re-upping now with the correct code.. Thanks unirox!
... upped .. OPs link above includes correct commands lol
--
@Spatali thank you, you did all the hard work!
Ringtones on sdcard
There is an easier way
Just create on your sdcard a "media\audio" folder and copy into it notifications, ringtones and alarms folder.
Disconnet your phone from the pc and new medias will be detected automatically
castorjunior said:
There is an easier way
Just create on your sdcard a "media\audio" folder and copy into it notifications, ringtones and alarms folder.
Disconnet your phone from the pc and new medias will be detected automatically
Click to expand...
Click to collapse
But with this method, don't those files remain on the SDCard rather then becoming part of the system?
TikiiTorch said:
1) extract the above .zip file into your "android-sdk-windows-1.5_r3\tools\" directory (wherever that might be)
2) get on your command line and cd to the "htc_media" directory you just created.
3) enter the following commands:
Code:
adb remount
adb push alarms /system/media/audio/alarms/
adb push ringtones /system/media/audio/rigntones/
adb reboot
Click to expand...
Click to collapse
I think you mean "adb push ringtones /system/media/audio/ringtones/"
(ringtones)
Cyalintz said:
I think you mean "adb push ringtones /system/media/audio/ringtones/"
(ringtones)
Click to expand...
Click to collapse
I fail... horribly...
yes, thanks, must have been a bad finger day
TikiiTorch said:
But with this method, don't those files remain on the SDCard rather then becoming part of the system?
Click to expand...
Click to collapse
You're right, the files remains on the sdcard but it doesn't really matters as they are detected and used automatically, the same way as if they are part of the system
how do i get on my "htc_media" directory i just created
castorjunior said:
You're right, the files remains on the sdcard but it doesn't really matters as they are detected and used automatically, the same way as if they are part of the system
Click to expand...
Click to collapse
if using SUFBS with root and mounting system RW, does it not write to system when copying file from sdcard folder to system/media/notifications?
lpasq said:
if using SUFBS with root and mounting system RW, does it not write to system when copying file from sdcard folder to system/media/notifications?
Click to expand...
Click to collapse
Yes, it would indeed move them there if you used the above method.
??
Guys which is the easiest method now ? I'll update the first post accordingly
spatali said:
Guys which is the easiest method now ? I'll update the first post accordingly
Click to expand...
Click to collapse
The easiest way, obviously would be to just put these files onto your SD and let the device recognize them.
If you want to properly replace these ringtones onto a ROM that does not have them, then what you have posted is the correct way.

Change banner on lockscreen

I would like to change my banner and found a way to do it with out CDMA workshop and need to know how to setup or get into the adb(or into the shell). I apologize if Im not even saying this correctly! Can someone help me? Please see examples below:
adb pull /system/framework/framework-res.apk .
adb remount
adb push framework-res.apk /system/framework
adb reboot
Thanks in advance!!!
EDIT: Can I use terminal emulator to do this?
EDIT: Do you have the Android SDK installed on your computer??? If not do this first:
http://developer.android.com/sdk/index.html
I am guessing that you are using this method:
http://forum.xda-developers.com/showthread.php?t=801537
You cannot pull the file using TE.
Have you already modified your keyguard_screen_tab_unlock.xml file?
If so, then you need to use ADB to pull the framework-res.apk from /system/framework/ on your evo, and open with whatever zip prog you like
and replaced the one in /res/layout/ folder of the framework-res.apk.
When done, close up the apk, and use adb to push back to the /system/framework/ on your evo.
BOOM! DONE!
bender1077 said:
EDIT: Do you have the Android SDK installed on your computer??? If not do this first:
http://developer.android.com/sdk/index.html
I am guessing that you are using this method:
http://forum.xda-developers.com/showthread.php?t=801537
You cannot pull the file using TE.
Have you already modified your keyguard_screen_tab_unlock.xml file?
If so, then you need to use ADB to pull the framework-res.apk from /system/framework/ on your evo, and open with whatever zip prog you like
and replaced the one in /res/layout/ folder of the framework-res.apk.
When done, close up the apk, and use adb to push back to the /system/framework/ on your evo.
BOOM! DONE!
Click to expand...
Click to collapse
I am going to SDK on my comp and run with it! Thanks for the advice
Adam1422 said:
I am going to SDK on my comp and run with it! Thanks for the advice
Click to expand...
Click to collapse
NP.
Just an FYI - With the new SDK for Android 2.3, ADB is now located in the /platform-tools folder.
It used to be in the /tools folder so whenever you see code that has you navigate to your tools folder to utilize ADB, use /platform-tools instead
Have fun!
bender1077 said:
NP.
Just an FYI - With the new SDK for Android 2.3, ADB is now located in the /platform-tools folder.
It used to be in the /tools folder so whenever you see code that has you navigate to your tools folder to utilize ADB, use /platform-tools instead
Have fun!
Click to expand...
Click to collapse
Couple questions
1. is there a walk though on how to install ADK for windows 7 64 bit home? The only reason why I ask is in doing some searching I have found that alot of people are having trouble with it.
2. If Im only using android 2.2 then I still use tools/ right?
You will still use the platform-tools location even for 2.2 from now on with the latest sdk. I think just google set up adb win7 and you should be able to find it. Im just on my phone here.
bender1077 said:
You will still use the platform-tools location even for 2.2 from now on with the latest sdk. I think just google set up adb win7 and you should be able to find it. Im just on my phone here.[/QUOT1E]
Just wanted to show you that with your help I was able to get this done! Again thanks for all you help
Click to expand...
Click to collapse
That's intense! Glad it all worked out.

[Q] ROM install SDCard USB issues.

So, my problem is that I have recently unlocked the bootloader on my HTC One X using my Mac and the very helpful guide provided on this YouTube link
http://youtu.be/8Y3VbFJIwWU
No problems with the process in that video and I've gotten to the end with the phone bootloader definitely.
My problem is that I've then attempted to install a custom ROM from the SD card. Again, this seems to work fine, but upon reboot I'm immediately hit with a continual pop-up 'unfortunately, the process com.android.phone has stopped' with the only option to press ok. It loops continuously.
I suspect I may have to reinstall the ROM onto the SD card, but this is my problem. I cannot get my phone's USB access to work on my Mac as I am stuck with the above pop-up preventing me. I can't seem to access it via Recovery either.
Can I use fastboot to 'flash' over the *.img or *.zip of a new ROM to get it onto the SD card? Stuck with a phone I can't use otherwise. :crying:
Thanks.
Mount usb storage from the recovery.
Sent from my HTC One X using xda app-developers app
or while in recovery type
Code:
adb push rom.zip sdcard/
Thanks for that, athulele . :good:
I have tried that. On a Mac, for USB access requires that I use software called 'Android File Transfer' rather than the way Windows would do it. That software doesn't kick in via Recovery mounting. So, I'm going to need a different approach.
Since I have Windows installed via Bootcamp, I think I'll try to connect the phone up via Windows and see whether I can access the SD card via USB using that route.
Any other help is most welcome.
you do not need that file, just boot into recovery and type the command above... it's the easiest way
matt95 said:
you do not need that file, just boot into recovery and type the command above... it's the easiest way
Click to expand...
Click to collapse
Having booted into recovery, using Terminal on my Mac and typing
adb push sentinelrom_v4_30_endeavoru.zip sdcard/
gives the following message:
-bash: adb: command not found
Am I doing something wrong here?
well, have you got the sdk installed on your mac?
matt95 said:
well, have you got the sdk installed on your mac?
Click to expand...
Click to collapse
I've now downloaded the sdk for mac. It's a adt bundle folder with many files inside. I've installed 'Eclipse' but I'm still getting the same message as before from the Terminal. What else do I need to do here?
Im not into macs .... but don't you need to enter sudo commands before the adb/fastboot commands ?
no, he only needs to navigate to the adb directory with the terminal and then type
Code:
./adb push rom.zip sdcard/
matt95 said:
no, he only needs to navigate to the adb directory with the terminal and then type
Code:
./adb push rom.zip sdcard/
Click to expand...
Click to collapse
Hi matt95
I'm grateful for the help you are giving me here. I've found the adb file within the following downloaded directory path:
act-bundle-mac-x86_64-20130219 - sdk - platform-tools - adb
When I changed directory in Terminal to this path and ensured the specific rom.zip was also in that path, Terminal is still giving me this:
./adb push sentinelrom_v4_30_endeavoru.zip sdcard/
-bash: ./adb: No such file or directory
I must be doing something not right. Please help further.
that's strange, could you provide me the platform-tools folder and the rom.zip folder? i'll write down what you exactly have to write...
matt95 said:
that's strange, could you provide me the platform-tools folder and the rom.zip folder? i'll write down what you exactly have to write...
Click to expand...
Click to collapse
Folder contents as described.
Thanks.
ok now i need their directory, for ex. /User/yourusernane/Docuemnts/ecc ecc......
matt95 said:
ok now i need their directory, for ex. /User/yourusernane/Docuemnts/ecc ecc......
Click to expand...
Click to collapse
/Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
and
/Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools/sentinelrom_v4_30_endeavoru
Thanks.
ok, now open the therminal ans type
Code:
cd /Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
./adb push (drag the rom.zip into terminal) sdcard/
now it should work
matt95 said:
ok, now open the therminal ans type
Code:
cd /Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
./adb push (drag the rom.zip into terminal) sdcard/
now it should work
Click to expand...
Click to collapse
Slowly making progress. Latest Terminal message after doing that reads 'error: device not found'.
I am using ClockworMod Recovery v5.8.2.7 and have clicked on 'mount /sdcard'. I have tried to 'mount USB storage' but am getting an error message which reads 'E: Unable to open ums lunfile (No such file or directory).'
What should I do next?
Thanks.
fingerbob said:
Slowly making progress. Latest Terminal message after doing that reads 'error: device not found'.
I am using ClockworMod Recovery v5.8.2.7 and have clicked on 'mount /sdcard'. I have tried to 'mount USB storage' but am getting an error message which reads 'E: Unable to open ums lunfile (No such file or directory).'
What should I do next?
Thanks.
Click to expand...
Click to collapse
Flash a newer recovery.
Mr Hofs said:
Flash a newer recovery.
Click to expand...
Click to collapse
I managed to find a copy of ClockworkMod Recovery v5.8.4.0 and flashed this as advised. This has somehow enabled the USB facility on my phone to start working again and I can replace the ROM I've downloaded onto it.
I just tried reinstalling the ROM I had again, but once again got the original message stated in my first post. I'm about to now try a different ROM to see if that makes any difference.
:good:

[Q] help i

OK I used the kit at port for smt210r and I tryed to add build.props and it gets stuck at boot any ideas
dsilx said:
OK I used the kit at port for smt210r and I tryed to add build.props and it gets stuck at boot any ideas
Click to expand...
Click to collapse
d,
did you reset permissions on build.prop to 644 ?
if not boot to recovery, connect to pc
in terminal, assuming you are using linux, enter;
adb start-server
adb remount
adb shell
and wait for service to start and bring up prompt
then at prompt
# chmod 644 /system/build.prop
exit and reboot
m
no windows 7/8
moonbutt74 said:
d,
did you reset permissions on build.prop to 644 ?
if not boot to recovery, connect to pc
in terminal, assuming you are using linux, enter;
adb start-server
adb remount
adb shell
and wait for service to start and bring up prompt
then at prompt
# chmod 644 /system/build.prop
exit and reboot
m
Click to expand...
Click to collapse
hi no im using windows its different sadly and how can i see if i reset the build.prop to 644 plse for give me i am new to this and il try to do adb
all i know is when i started editing the rom it wouldnt let me edit it so i had to go on my computer and edit it with notpad ++
okay
dsilx said:
hi no im using windows its different sadly and how can i see if i reset the build.prop to 644 plse for give me i am new to this and il try to do adb
all i know is when i started editing the rom it wouldnt let me edit it so i had to go on my computer and edit it with notpad ++
Click to expand...
Click to collapse
notepad++ is good,
unless you set something wrong inside build.prop then it is the wrong permissions on the file
download aromafm http://forum.xda-developers.com/attachment.php?attachmentid=2231581&stc=1&d=1378202418
install just like any zip in recovery just make sure you mount system from recovery. navigate to /system long press on
build.prop and select change permissions. and you should be good unless like i said you got something wrong in
build.prop itself.
m
Just flash the latest update. All my updates include a build.prop.
gr8nole said:
Just flash the latest update. All my updates include a build.prop.
Click to expand...
Click to collapse
Yes, but learning how to get around things has value..
m
link pls and thanks
gr8nole said:
Just flash the latest update. All my updates include a build.prop.
Click to expand...
Click to collapse
Can I pls have the link and @moonbutt74 thanks for all our help I'm just a little confused on what to do with the aroma cause I don't see build.prop
But thank u for all the help
dsilx said:
Can I pls have the link and @moonbutt74 thanks for all our help I'm just a little confused on what to do with the aroma cause I don't see build.prop
But thank u for all the help
Click to expand...
Click to collapse
before your run aromafm, select mounts option in recovery and mount /system , then run aromafm.
there is an option in aromafm to automount all partitions, very helpful.
it takes a little till you get the hang of using it. very good tool.
m

[Q] Accidentally modified Framework

Like a dummy I tried to rename framework-res while using my nexus so I could replace it with an edited one (deb rooted, stock 4.4.4 rom, franco -17 kernel)
Now Im trying to ADB in to rename the original file so it will boot again.
I'm connected to the nexus in ADB but when I try to pull or rename the file I always get some sort of error.
I was able to adb push a framwork file I downloaded on my computer but it still wouldnt boot. Im assuming it was bad.
Any help is much appreciated!
thanks!
Rhatfield25 said:
Like a dummy I tried to rename framework-res while using my nexus so I could replace it with an edited one (deb rooted, stock 4.4.4 rom, franco -17 kernel)
Now Im trying to ADB in to rename the original file so it will boot again.
I'm connected to the nexus in ADB but when I try to pull or rename the file I always get some sort of error.
I was able to adb push a framwork file I downloaded on my computer but it still wouldnt boot. Im assuming it was bad.
Any help is much appreciated!
thanks!
Click to expand...
Click to collapse
The reason it would not boot with the one you pushed to the device is probably because you have to set permissions correctly after the push. Framework res should probably be set to rw-r--r--
Run this after the push, or if the file is still on the phone, run it now.
Code:
adb shell
su
chmod 644 /system/framework/framework-res.apk
SwoRNLeaDejZ said:
The reason it would not boot with the one you pushed to the device is probably because you have to set permissions correctly after the push. Framework res should probably be set to rw-r--r--
Run this after the push, or if the file is still on the phone, run it now.
Code:
adb shell
su
chmod 644 /system/framework/framework-res.apk
Click to expand...
Click to collapse
I will give it a shot the second I get home! Thank you so much for the help. So by default files pushed to the system do not have full read and write permissions?
Thanks again!
Rhatfield25 said:
I will give it a shot the second I get home! Thank you so much for the help. So by default files pushed to the system do not have full read and write permissions?
Thanks again!
Click to expand...
Click to collapse
Yes, most of the time, pushed files will copy with bad permissions. Every time I've ever edited a system APK, I've had to subsequently set permissions before it would act correctly. Might not be 100% your issue, but it's definitely worth a shot.
SwoRNLeaDejZ said:
Yes, most of the time, pushed files will copy with bad permissions. Every time I've ever edited a system APK, I've had to subsequently set permissions before it would act correctly. Might not be 100% your issue, but it's definitely worth a shot.
Click to expand...
Click to collapse
Well now Ive run into a new problem. When I SU to get root access it tells me that /sbin/sh isnt found.
I rooted the n7 with cf autoroot.
this would be a whole lot easier if twrp would mount the tablet so I could just upload and flash a zip to update it.
Well I was able to sideload the boot animation herehttp://forum.xda-developers.com/showthread.php?t=2591471 just to confirm that sideload was working. I rebooted and it worked but still will not get past the boot animation.
The framework file simply needs to be put in /system right? so the command would look like
abd sideload framework-res.apk /system
Is that right?
Rhatfield25 said:
Well now Ive run into a new problem. When I SU to get root access it tells me that /sbin/sh isnt found.
I rooted the n7 with cf autoroot.
this would be a whole lot easier if twrp would mount the tablet so I could just upload and flash a zip to update it.
Click to expand...
Click to collapse
What about trying to use the terminal emulator in twrp?
Rhatfield25 said:
Well I was able to sideload the boot animation herehttp://forum.xda-developers.com/showthread.php?t=2591471 just to confirm that sideload was working. I rebooted and it worked but still will not get past the boot animation.
The framework file simply needs to be put in /system right? so the command would look like
abd sideload framework-res.apk /system
Is that right?
Click to expand...
Click to collapse
You need to fix the framework file before you can boot. Try running the permission command without su first.

Categories

Resources