Sorry if this is already posted.. but I searched and couldn't find anything
I'm trying to undo a morph without necesarily doing a NAND restore, does someone have the stock notification bar and icons for nexus one as a morph or apk I could push?
Instructions would be nice too
Reflash the ROM you are using.
/system/framework/framework-res.apk from the ROM you used should do the trick. If you changed the text color too then also restore /system/framework/services.jar
britoso said:
/system/framework/framework-res.apk from the ROM you used should do the trick. If you changed the text color too then also restore /system/framework/services.jar
Click to expand...
Click to collapse
thanks ,where am I pushing the framework to on my phone?
the command would be
adb push /system/framework/framework-res.apk ?????
adb remount
adb push framework-res.apk /system/framework/framework-res.apk
adb push services.jar /system/framework/services.jar
adb shell reboot
You may want to push services.jar first, but either way, you will have to reboot.
david1171 said:
adb remount
adb push framework-res.apk /system/framework/framework-res.apk
adb push services.jar /system/framework/services.jar
adb shell reboot
You may want to push services.jar first, but either way, you will have to reboot.
Click to expand...
Click to collapse
Thanks David
Related
Just for fun I have been looking at getting Rosie on to the Android Emulator and to see what I can do. All is well I believe except I am missing some shared librarys and a permisions file...
adb push com.htc.android.easopen.jar /system/framework/
adb push com.htc.android.pimlib.jar /system/framework/
adb push com.htc.framework.jar /system/framework/
adb push com.scalado.util.ScaladoUtil.jar /system/framework/
adb push com.htc.resources.apk /system/framework/
adb push framework-res.apk /system/framework/
adb push com.htc.framework.xml /etc/permissions/
Any way - I cant get these on to the relevant directory due to them ( framework / permissions ) been read only. I'm trying to do this in a way that wont massivly change a rom so i was hoping that I would be able to install to an unrooted device by changing just those directorys permissions.... in fact I assumed the emulator would be unrooted ???
Any way - pointers for this Android noob would be much apprciated......
PS I started by using the Android Toggle.bat so cudos to the Dev who started that.... I forgot your user name
Also is there any way to read the dependancys of an apk ? The know what they need and I am guessing by using logic..... might help to optimise my mess.
Heres the rest as is.... still a lot of messing to go...
Code:
@echo off
:start
cls
ECHO ********************************************************
ECHO * 1. Install HTC 2. Nothing to See *
ECHO ********************************************************
ECHO.
:opt
Set /p xch=Select Option:
If '%xch%'=='1' Goto choice1
If '%xch%'=='2' Goto choice2
ECHO That is not a valid choice, please try again.
ECHO.
Goto opt
:choice1
ECHO.
ECHO **********************
ECHO * Installing HTC *
ECHO **********************
adb push com.htc.android.easopen.jar /system/framework/
adb push com.htc.android.pimlib.jar /system/framework/
adb push com.htc.framework.jar /system/framework/
adb push com.scalado.util.ScaladoUtil.jar /system/framework/
adb push com.htc.resources.apk /system/framework/
adb push framework-res.apk /system/framework/
adb push com.htc.framework.xml /etc/permissions/
adb install AndFTP.apk
adb install AndExplorer.apk
adb install FlashPlayer.apk
adb install framework-res.apk
adb install com.htc.resources.apk
adb install Launcher.apk
adb install Rosie.apk
adb install com.htc.TwitterWidget.apk
adb install com.htc.MusicWidget.apk
adb install com.htc.StockWidget.apk
adb install com.htc.WeatherWidget.apk
adb install AccountManager.apk
adb install AndroidMarket.apk
adb install HTC_CIME.apk
adb install HtcAddProgramWidget.apk
adb install HTCAlbum.apk
adb install htccalendarwidgets.apk
adb install HtcClockWidget.apk
adb install HtcContacts.apk
adb install htccontactwidgets.apk
adb install HtcFootprints.apk
adb install HtcFootprintsWidget.apk
adb install htcinternetwidget.apk
adb install HtcLocationPicker.apk
adb install HtcLocationService.apk
adb install HtcLockScreen.apk
adb install HtcLog.apk
adb install htcmailwidgets.apk
adb install htcmsgwidgets.apk
adb install HtcMusic.apk
adb install com.htc.WeatherWidget.apk
adb install HTCNew.apk
adb install HtcPhotoWidget.apk
adb install HtcRingtoneTrimmer.apk
adb install htcsearchwidgets.apk
adb install HtcSettingsProvider.apk
adb install htcsettingwidgets.apk
adb install HTCSetupWizard.apk
adb install HtcSoundRecorder.apk
adb install HtcStreamPlayer.apk
adb install HtcTwitter.apk
adb install IM.apk
adb install ImProvider.apk
adb install Stk.apk
adb install SocialNetworkProvider.apk
ECHO.
ECHO Completed! Rebooting...
Pause
adb shell reboot
Exit
:choice2
ECHO.
ECHO **********************
ECHO * Nothing to see *
ECHO **********************
Exit
Terran
It would be easier to create a ROM that did not require the SWAP file, then flashing it into a G1, then doing a nandroid backup and using that for the Emulator (and adding much more RAM in the emulator.)
ivanmmj said:
It would be easier to create a ROM that did not require the SWAP file, then flashing it into a G1, then doing a nandroid backup and using that for the Emulator (and adding much more RAM in the emulator.)
Click to expand...
Click to collapse
Can you please elaborate on this a bit? How do I translate a nandroid backup into an avd file that the emulator can boot? I wanted to do this exact thing but never really figured out how. Will really appreciate your step by step?
devsk said:
Can you please elaborate on this a bit? How do I translate a nandroid backup into an avd file that the emulator can boot? I wanted to do this exact thing but never really figured out how. Will really appreciate your step by step?
Click to expand...
Click to collapse
This is a step by step walkthrough:
http://forum.xda-developers.com/showpost.php?p=3952890&postcount=7
If you get it up and running, I'd appreciate a copy of that system.img (without the swap partition requirement). ^_^
ivanmmj said:
It would be easier to create a ROM that did not require the SWAP file, then flashing it into a G1, then doing a nandroid backup and using that for the Emulator (and adding much more RAM in the emulator.)
Click to expand...
Click to collapse
MMmmmm - where I was trying to get to was the point where some one could just run this batch and update their eum / phone with out messing around with custom roms etc.... I have a feeling I am flogging a dead donkey going down that route though.
Terran
ccsnet said:
Just for fun I have been looking at getting Rosie on to the Android Emulator and to see what I can do. All is well I believe except I am missing some shared librarys and a permisions file...
adb push com.htc.android.easopen.jar /system/framework/
adb push com.htc.android.pimlib.jar /system/framework/
adb push com.htc.framework.jar /system/framework/
adb push com.scalado.util.ScaladoUtil.jar /system/framework/
adb push com.htc.resources.apk /system/framework/
adb push framework-res.apk /system/framework/
adb push com.htc.framework.xml /etc/permissions/
Any way - I cant get these on to the relevant directory due to them ( framework / permissions ) been read only.
Click to expand...
Click to collapse
You can make /system rw by using a remount command. It's not enough to just push the framework files onto system though. They need to be added to BOOTCLASSPATH in the init.rc as well. You'll have to unyaffs boot.img
Also is there any way to read the dependancys of an apk ? The know what they need and I am guessing by using logic..... might help to optimise my mess.
Click to expand...
Click to collapse
Look in the AndroidManifest.xml
jashsu said:
You can make /system rw by using a remount command. It's not enough to just push the framework files onto system though. They need to be added to BOOTCLASSPATH in the init.rc as well. You'll have to unyaffs boot.img
Look in the AndroidManifest.xml
Click to expand...
Click to collapse
Thanks....
Terran
EDIT - Remount command info - http://groups.google.com/group/andr...7ecb631689/da581f1b398fdf8b?#da581f1b398fdf8b
I have a problem with white notification bar, I put the black and then I came back to white and now I have white bar but white text. Any solutions? I pulled white framework-res.apk and services. Jar both picked from a stock deodexed
frf50
if you have spare parts on your phone change those colors with that, newest CM has spare parts in the settings menu, complete with import and export of an xml with color settings
Look up-right, white bar and white font and time http://i782.photobucket.com/albums/yy101/mrnameless151/2e48aaef.png
I have froyo not cyanogen mod
spare parts is the only way i know how to modify that without modifying the services.jar itself
Push the original framework-res.apk and the services.jar to your /system/framework folder.
Originale black or white?
MrNameless said:
Originale black or white?
Click to expand...
Click to collapse
Original services.jar for black text.
adb remount
adb push services.jar /system/framework/
adb reboot
djmcnz said:
Original services.jar for black text.
adb remount
adb push services.jar /system/framework/
adb reboot
Click to expand...
Click to collapse
it doesn't work, and i pushed this http://www.myhangoutonline.com/inde...allfib_top/leonnib4/blackonwhite-services.jar
MrNameless said:
it doesn't work, and i pushed this http://www.myhangoutonline.com/inde...allfib_top/leonnib4/blackonwhite-services.jar
Click to expand...
Click to collapse
It doesn't work means what? Did you get an error?
If not, then it did work, you just must be pushing the wrong file.
it works, but the font was not changed
MrNameless said:
it works, but the font was not changed
Click to expand...
Click to collapse
The fonts are all in /system/fonts/
sorry, i didn't want to say font but time and writes
http://i782.photobucket.com/albums/yy101/mrnameless151/2e48aaef.png
it is always the same
Okay, try extracting the one in the attachment..
And use these commands (case sensitive):
adb remount
adb shell rm /system/framework/services.jar
adb push services.jar /system/framework/services.jar
adb shell ls -l -a /system/framework/
Make sure a services.jar - all lower case - is listed and only one is listed.
adb reboot
If you want to make sure it is the correct one, then use adb to pull it back off your phone and compare it to the source file attached here.
there are 2 .
service.jar
services.jar
No, its not.
Thats the result of your work.
You've pushed it as service.jar.
Now its clear, why your fontcolour doesn't change^^
MrNameless said:
there are 2 .
service.jar
services.jar
Click to expand...
Click to collapse
Simply add the following command to the series above, above the other "rm" command and below the "remount" command.
adb shell rm /system/framework/service.jar
and remember to push services.jar this time...
thanks to both!!!1
sorry guys forgive my dumpness but i downloaded theme from the topic . after i replaced the apk files through root explorer and made restart to the device after that my x10 couldnt start i reflashed root steps but i really still want to change this stupid blue colore is there any easy way to do it . i wanna use the themes that already made from devlopers it comes like normal apk files........thanks in advance
Sent from my X10i using the XDA mobile application powered by Tapatalk
see Here *10chars*
What files do you have exactly? framework-res.apk? Phonebook.apk? Phone.apk
This thread as given above is taken that you have ADB installed on your computer.
http://forum.xda-developers.com/showthread.php?t=714288
If you do not have ADB, visit this thread first.
http://forum.xda-developers.com/showthread.php?t=532719
Feel free to ask if you have more questions
xGary said:
What files do you have exactly? framework-res.apk? Phonebook.apk? Phone.apk
This thread as given above is taken that you have ADB installed on your computer.
http://forum.xda-developers.com/showthread.php?t=714288
If you do not have ADB, visit this thread first.
http://forum.xda-developers.com/showthread.php?t=532719
Feel free to ask if you have more questions
Click to expand...
Click to collapse
i have framework-res.apk? Phonebook.apk? Phone.apk
and i know about adb commands but i wonder what is the diffrences it's all about replacing apk files and i manged that with root explorer and the guide is too hard it's all about modfications of the system files but it didn't tell us how to use an exsiting theme files ....is it all about the remount command that make us have to use adb ??? thanks in advance
h.boushi1987 said:
i have framework-res.apk? Phonebook.apk? Phone.apk
and i know about adb commands but i wonder what is the diffrences it's all about replacing apk files and i manged that with root explorer and the guide is too hard it's all about modfications of the system files but it didn't tell us how to use an exsiting theme files ....is it all about the remount command that make us have to use adb ??? thanks in advance
Click to expand...
Click to collapse
Not sure if ADB is required but thats the only method I know of. A step by step guide (Might want to double check with advanced users)
1) Install ADB and set the environment variables, etc.
2) Go to the folder (Should be c:/android-sdk-windows/tools) and open adb.exe (If it flashes and auto closes, open up cmd [Start>Run>cmd] and drag the adb.exe into the cmd and press enter)
3) Put Phone In Debugging Mode Settings>Applications>Development>USB Debugging
In ADB, type these commands
*Note that the commands are case sensitive*
Pull the files you are about to replace with the following commands:
cd c:/anrdroid-sdk-windows/tools
adb pull /system/framework/framework-res.apk framework-resk.apk
adb pull /system/app/Phonebook.apk
adb pull /system/app/Phone.apk
4) Now framework-res.apk, Phonebook.apk, and Phone.apk should be in your tools folder where your adb.exe is. Put these files somewhere safe.
5) Now drag your new framework-res.apk, Phonebook.apk, and Phone.apk into the tools folder.
6) Go back to adb and type the following command:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
7) Now these commands will move your new theme files to the sdcard:
adb push framework-res.apk /sdcard/framework-res.apk
adb push Phonebook.apk /sdcard/Phonebook.apk
adb push Phone.apk /sdcard/Phone.apk
8) Now these commands will install the new theme files in the sd card from the previous step:
adb shell dd if=/sdcard/framework-res.apk of=/system/framework/framework-res.apk
adb shell dd if=/sdcard/Phonebook.apk of=/system/app/Phonebook.apk
adb shell dd if=/sdcard/Phone.apk of=/system/app/Phone.apk
9) Now your phone will restart (If not, manually restart) and your theme should be installed.
Gary~
thanks a lot man ... you are the best i'll try that and report back but any way you still the best.....
Sent from my X10i using the XDA mobile application powered by Tapatalk
why every time i put the mount command it tells me "the device not found"
and the pull commands don't seems to work
i tried adb devices command but it seems it doesnt found my device
Mmm...maybe its sound dumb, but I'm a noob in this. How do you change the battery icon? Thx
rein_hiryu said:
Mmm...maybe its sound dumb, but I'm a noob in this. How do you change the battery icon? Thx
Click to expand...
Click to collapse
You pull the framework-res.apk file and open it with 7-zip. Inside should be some folders and there should be a folder (forgot which one) with a bunch of pngs. Replace the battery icons with desired ones.
Gary~
i am trying to decompile a stock apk. and it gives me error id: 2
can somebody simplify and explain this guide for me?
http://code.google.com/p/android-apktool/wiki/FrameworkFiles
thanks.
If your on windows open a Cmd window and type-
"adb pull /system/framework/framework-res.apk C:\"
This will pull your framework from your phone to C:\
Then type-
"apktool if C:\framework-res.apk"
This will install the framework.
Hope this helps.
lol.
# adb pull /system/framework/framework-res.apk c:\
adb pull /system/framework/framework-res.apk c:\
>
and it just stays like that and do nothing
liorweitz said:
lol.
# adb pull /system/framework/framework-res.apk c:\
adb pull /system/framework/framework-res.apk c:\
>
and it just stays like that and do nothing
Click to expand...
Click to collapse
Don't do it while in shell
Start -> run -> cmd
adb pull /system/framework/framework-res.apk framework-res.apk
Then select option (with dependency)
drag/drop this apk into the script.
ok, thanks.
but, there isn't a way to make it permanent, do i have to do it every time?
liorweitz said:
ok, thanks.
but, there isn't a way to make it permanent, do i have to do it every time?
Click to expand...
Click to collapse
Only for proprietary apk's from firmwares such as Htc Sense, Samaung Touchwiz...etc
You did give me an idea however, will try n implement a more cleaner way into the script.
glad to help .
and thank you very much.
I have made a few changes in the SystemUI.apk file and framework-res.apk using apk multi tool. After compiling it and trying to push the apk it shows an error saying Remount fail :Operation not permitted. The log says system cannot find the file specified. I tried making a flashable file but it just would not work. I really want to start off theming, please guide me as I have searched for one full day now, but nothing worked.
preshit10 said:
I have made a few changes in the SystemUI.apk file and framework-res.apk using apk multi tool. After compiling it and trying to push the apk it shows an error saying Remount fail :Operation not permitted. The log says system cannot find the file specified. I tried making a flashable file but it just would not work. I really want to start off theming, please guide me as I have searched for one full day now, but nothing worked.
Click to expand...
Click to collapse
I'm not an expert on adb, but is your phone's usb debugging on? Do you have su, and have you mounted rw? Also, is the file in the same folder as your adb folder?
Sent from my GT-I9003 using xda app-developers app
bscraze said:
I'm not an expert on adb, but is your phone's usb debugging on? Do you have su, and have you mounted rw? Also, is the file in the same folder as your adb folder?
Sent from my GT-I9003 using xda app-developers app
Click to expand...
Click to collapse
Just enabled root access to adb but still no luck. I am also facing this problem http://forum.xda-developers.com/showthread.php?t=1765379
Procedure
Make sure that SystemUI and framework-res are in the same folder as ADB and in the \tools folder. For example mine is:
C:\AndroidSDK\tools
So I would place SystemUI and framework-res in that directory.
After starting CMD in windows (assuming you are on windows) type these commands in this order:
adb remount
adb push SystemUI.apk /system/app/
adb push framework-res.apk /system/framework/
adb shell
su
cd /system/app
chown 0.0 SystemUI.apk
chmod 0644 SystemUI.apk
cd /system/framework
chown 0.0 framework-res.apk
chmod 0644 framework-res.apk
reboot
Explanation: first line remount system as read-write. 2 & 3 pushes the files. 4-7 sets proper permissions for the files. 8 reboots your phone.
P.S. If you EVER decompile framework-res.apk, open it in 7-zip and copy AndroidManifest.xml from the OLD PRE-MODDED framework-res.apk (using 7-zip) into your NEW framework-res.apk to prevent BootLoops. Apktools isn't really configured that well for our phone so it doesn't copy AndroidManifest.xml and you have to do it manually.