[Q] help needed modifying Rosie.APK for Landscape support - Wildfire Q&A, Help & Troubleshooting

I really like Sense but i hate the fact that it doesn't support Landscape mode. Today i found this thread and i managed to decompile the Rosie.apk with APK manager
I found the code what needs to be changed and changed it in Notepad++ following the turorial. Then i recompiled it again with APK manager without signing it and pushed the newly created Rosie.apk on my phone with Root Explorer to System/Apps(did the R/W remount offcourse)
BUT! when i restarted the phone it is stuck at bootanimation for about 10 minutes. Then i got my "homescreen". however it was a black screen with the notification bar...
Now my question. Could someone try to follow that tutorial and make a Rosie.apk wat won't give a black homescreen.
The notification bar was turned over in landscape mode by sensor!!
So could someone give me a working Rosie.APK or explain me what i did wrong and the method to fix it...
I would appreciated! + it will be awesome to have landscape in froyo sense

help..... anybody!?

Try using adb/apk manager to push it back to your phone.
Root explorer always gives me problems pushing files to /system, I don't quite understand the whole permissions thing yet but did you change them?
I'm on cm7 though so can't try to do it for you without reflashing.
Sent from my HTC Wildfire using xda premium

thank you! i did'nt try by adb push and ik think if i find the time tomorrow i will try this. could it be that it is a recompile issue?

I used root explorer to push my systemui.apk and framework-Res.apk to my system folder last night and managed to get it to work first time, the way I did it was like this:-
My new file was named newsystemui.apk which let me copy it into the same folder as systemui.apk without overwriting the original.
Then check the permissions on the original file, rename the new one to the same as the original (which should vanish at this point leaving the new one) change the permissions to what they should be and reboot. Same method with the framework, if that doesn't work then it must be something you've edited. Did you save a copy of the original? If not I presume you would be able to extract one from a sense rom or an ruu.
Sent from my HTC Wildfire using xda premium

I dont really get wat you mean. Where did you find the systemui and framework.apk or do you have another launcher? or also sense?
can you please be a bit more specific? thanks for the help though!

Sorry I was just using that as an example as there the files I was playing with last night. In your case it would be Rosie.apk instead of systemui.apk. I'm on cm7 nightlies btw.
Rename your new file to something other than Rosie.apk, then copy with root explorer into whichever folder Rosie.apk is in.
Rename it back to Rosie.apk and then change the permissions.
Sent from my HTC Wildfire using xda premium

aaaaaaaaah in that way...
lets try...

You get me now, I think apk manager should've renamed it on compiling anyway to unsignedrosie.apk
Sent from my HTC Wildfire using xda premium

unfortanatly that didn't work
I had Adw launcher installed so i dont have the blackscreen anymore. But everytime i try to copy and paste Rosie.apk tot system app wit R/W remount, using root explorer Rosie shutsdown and ADW takes over the homescreen.
So, i installed home switcher for froyo to see if Rosie is seen as a homelauncher but it doesn't
in short, after i changed Rosie.apk Sense won't recognize Rosie.apk as a launcher.
Could this be my problem? and how can i fix it? Do i need to sign it and how can i do that?
I used the following code:
adb pull /system/framework/com.htc.resources.apk
adb pull /system/app/Rosie.apk
apktool if com.htc.resources.apk
apktool d Rosie.apk
-- edited Androidmanifest.xml (nosensor replaced by sensor)
apktool build Rosie
Put Rosie.apk from the Dist-folder on my sd card
Copy and paste it to System/app with R/W on using root explorer

Sorry mate, only other thing I can think of is to push it back with adb/apk manager see if that works, try signing it see if that works, play around a bit. I'm not too sure now as I haven't used sense for a while.
Sent from my HTC Wildfire using xda premium

thank you! i already tried to push with adb and apkmanager, no luck either. The only thing i can do within my knowledge is signing after i figured out how...
thanks!
Maybe somebody else can help me?

Landcape Rosie doesn't work for Sense 1.0. It was developed for 2.1+ with the release of the Evo Shift 4G. The Thunderbolt is also Sense 2.1. If you want landscape rosie, I would suggest using a sense 2.1/3.0 rom. If your device has none, I would suggest asking a developer for porting help. I might be able to port it, but I don't have very much experience porting...

Thanks.. soon we will have sense 2.1 with gb 2,3,3. User vigidroid and nrk1983 is fixing this.. (senseonfire) as an extra feature vigidroid will try landscape support. Perhaps you can helo them for some fixes?
Sent from my HTC Wildfire using XDA App

Related

Livewallpaper on Bonsai

Hi All,
I was wondering if I could put out a request for some APKs. I would like to have live wallpapers on Bonsai and have tried putting livewallpaper.apk and the picker into my Epic but I don't have Root Explorer and I can't seem to change the permissions on those files. Right now all of the APKs I found have Read Yes Write Yes and the other one No. All of the APKs in my app directory have Read Yes Write No and other one No. Could someone post those APKs with permissions set like that? I don't know if that is my exact problem or if it is worth it to buy RE for only that purpose.
TIA,
DD
I believe its been mentioned before that ES File Explorer brings most of the Root Explorer functionality for free. I could be wrong though since ive never tried it myself. Worth a shot though if its just a permissions issue.
doggiedog said:
Hi All,
I was wondering if I could put out a request for some APKs. I would like to have live wallpapers on Bonsai and have tried putting livewallpaper.apk and the picker into my Epic but I don't have Root Explorer and I can't seem to change the permissions on those files. Right now all of the APKs I found have Read Yes Write Yes and the other one No. All of the APKs in my app directory have Read Yes Write No and other one No. Could someone post those APKs with permissions set like that? I don't know if that is my exact problem or if it is worth it to buy RE for only that purpose.
TIA,
DD
Click to expand...
Click to collapse
Sent from my SPH-D700 using XDA App
U can also use sdx stock app removal app, just put the apk in the adx folder on the SD card and go Into the app then to manage backups and got restore
Set From My 3.0.1 Bonsai Epic 4g
Thanks. I have tried everything. I could not change the permissions using sdx or ES File manager. All I could do with those programs was access the system directories. Unless I am doing something wrong, I will either need to get Root Explorer and change the permissions or get altered livewallpaper apks.
I think the frankenstine rom thread has a flashable zip for live wallpapers
Sent from my SPH-D700 using XDA Premium App
doggiedog said:
Thanks. I have tried everything. I could not change the permissions using sdx or ES File manager. All I could do with those programs was access the system directories. Unless I am doing something wrong, I will either need to get Root Explorer and change the permissions or get altered livewallpaper apks.
Click to expand...
Click to collapse
U don't need to change permissions in the sdx app removal app...
Set From My 3.0.1 Bonsai Epic 4g
OK. I think I may be confusing some people.
I would like to have Live Wallpapers in Bonsai since it's been removed. I did some research and found that you need to install the livewallpaper apks into the system/app directory. I did that using ES File Manager and rebooted. It didn't work. I did some more research and a few people had the same issue. The solution was to make sure the permissions in the livewallpaper apks was exactly the same as the permissions as the other apks in the apps directory. The apks in the directory all have Read Yes, Write No and Hidden No. All of the livewallpaper apks I found had permissions set up as Read Yes, Write Yes and Hidden No. I figure if I change the Write from Yes to No, it might work. I'm not 100% positive which is why I don't know if it's worth it to buy Root Explorer just to experiment. I'm hoping someone can provide me with the livewallpaper and livewallpaperspicker apks with altered permissions that have those settings.
Estewa_619, I will try that ROM. Thanks!
Tried the Frankenstein ROM livewallpaper apks and it still didn't work. The permissions are still set up as Read Yes, Write Yes and Hidden No.
doggiedog said:
OK. I think I may be confusing some people.
I would like to have Live Wallpapers in Bonsai since it's been removed. I did some research and found that you need to install the livewallpaper apks into the system/app directory. I did that using ES File Manager and rebooted. It didn't work. I did some more research and a few people had the same issue. The solution was to make sure the permissions in the livewallpaper apks was exactly the same as the permissions as the other apks in the apps directory. The apks in the directory all have Read Yes, Write No and Hidden No. All of the livewallpaper apks I found had permissions set up as Read Yes, Write Yes and Hidden No. I figure if I change the Write from Yes to No, it might work. I'm not 100% positive which is why I don't know if it's worth it to buy Root Explorer just to experiment. I'm hoping someone can provide me with the livewallpaper and livewallpaperspicker apks with altered permissions that have those settings.
Estewa_619, I will try that ROM. Thanks!
Click to expand...
Click to collapse
This is very easy to solve. Go to midnight rom and download it to computer. Open up the midnight extras folder and you will find lots of zip files in there that are all flashable in CWM. Just extract the folder, then copy the live wallpaper zips you want onto your sd card, then flash in CWM.
Alternatively, what I normally do is download the rom you want to flash (Bonsai). Open it up on your pc. Navigate to system/apps. Paste the livewallper apks into that directory. Then flash normally. This will include any files you want in the system/app folder.
davidrules7778 said:
U can also use sdx stock app removal app, just put the apk in the adx folder on the SD card and go Into the app then to manage backups and got restore
Set From My 3.0.1 Bonsai Epic 4g
Click to expand...
Click to collapse
Just used this method on bonsai 3.0.1 , worked just fine. Thanks!
Sent from my SPH-D700 using XDA App
All I did was download the flashable zip from frankenstine post and I flashed it in cwm and it worked for me
Sent from my SPH-D700 using XDA Premium App
mis3 said:
This is very easy to solve. Go to midnight rom and download it to computer. Open up the midnight extras folder and you will find lots of zip files in there that are all flashable in CWM. Just extract the folder, then copy the live wallpaper zips you want onto your sd card, then flash in CWM.
Alternatively, what I normally do is download the rom you want to flash (Bonsai). Open it up on your pc. Navigate to system/apps. Paste the livewallper apks into that directory. Then flash normally. This will include any files you want in the system/app folder.
Click to expand...
Click to collapse
7zip (windows) is what u want to use 2 open the zip but DO NOT EXTRACT it!!! Well in 7zip paste the apks u want into system/apps. Then close 7zip. Move the rom 2 ur sdcard and flash as u would normaly. U can also replace the boot/shutdown animation and a few other parts of the rom that you can add or subtract stuff from. I hope this help as not to sound offensive but u seem a bit newbish and 7zip isa great tool for viewing zip files w/o extracting them took me a good deal of time 2 find this handy tool, hope this helps ya out...
Sent from my Epic4G isn't that enough? *disclaimer* I may not know what I'm talikin bout, plz take w/ a grain of salt or sheen style it "I was banging 7 gram rocks and finishing em... because I'm me" -if thats winning I'm losing....
If any of u have the Android sdk installed, this is a 10 second push using adb - fwiw
Sent from my SPH-D700 using Tapatalk
I tried all of the cut and pasting techniques. None of them worked. I came across this online:
Code:
adb push LiveWallpapersPicker.apk /sdcard/
adb shell
Code:
su
remount rw
cat /sdcard/LiveWallpapersPicker.apk > /system/app/LiveWallpapersPicker.apk
exit
exit
I went into the dos shell and sure enough it worked!
Thanks for all the suggestions!
http://forum.xda-developers.com/showpost.php?p=12014836&postcount=13
<smacksforehead>
Here are the .zips from the midNIGHT ROM extras folder... Flash one of these, should work.
But the adb method works just as well... Maybe even faster.
Moved to Q&A.

[Q] Trying to take messaging apk and htc keyboard from virtuous fusion rom

I tried to take the messaging apk and the htc.ime apks from the virtuous fusion rom because i want to use them on Insertcoin_vision rom running 2.1 sense+ 3.0.Is there anyway that i can do this ??
Put the rom.zip on you computer and unzip it. Then look in system/app for the apk's.
Now there is a good chance that these apk's won't actually work on the insertcoin rom. For a lot of sense apps to work they are dependent an the sense framework and this varys from version to version.
Easiest way to then install is adb if you know who to use adb, cool. If not I'm not going to explain here and you will need to follow the instructions bellow
you won't be able to install like a normal app you would have to place then in the /system/app folder and make sure the permissions were set correctly. The best way to do this is using root explorer or something similar. Place the apk on your sd card and copy them to the folder. If your using root explorer once you have copied them th the correct folder press and hold on the app to bring up them menu and select permissions. The permissions need to be the same as the other apps in the /system/app folder. You will need to move the original apk before copy the new ones in make sure you put these on your sdcard.
Then reboot, but be prepared for the apps not to work.
UNLOCK OUR BOOTLOADERS
Noob's Watch This
Did you ever extract the keyboard from Virtuous Fusion? I am interested in it as well.
I have never used Virtuous ROMs but I am curious, what is special about the keyboard? Is it not just the stock HTC keyboard?
cjward23 said:
Put the rom.zip on you computer and unzip it. Then look in system/app for the apk's.
Now there is a good chance that these apk's won't actually work on the insertcoin rom. For a lot of sense apps to work they are dependent an the sense framework and this varys from version to version.
Easiest way to then install is adb if you know who to use adb, cool. If not I'm not going to explain here and you will need to follow the instructions bellow
you won't be able to install like a normal app you would have to place then in the /system/app folder and make sure the permissions were set correctly. The best way to do this is using root explorer or something similar. Place the apk on your sd card and copy them to the folder. If your using root explorer once you have copied them th the correct folder press and hold on the app to bring up them menu and select permissions. The permissions need to be the same as the other apps in the /system/app folder. You will need to move the original apk before copy the new ones in make sure you put these on your sdcard.
Then reboot, but be prepared for the apps not to work.
UNLOCK OUR BOOTLOADERS
Noob's Watch This
Click to expand...
Click to collapse
Thanks mate....it helped me too big time...

In-Pocket Detection for Motorola Defy Froyo

Hi Guys ,
Wanted InPocketService.apk of stock rom of froyo to run on 2.3.6
Can any one extract the InPocketService.apk and share it here
I might have it, i'll check tonight . Even though i don't know what to do with it i'll upload them
Sent from my 1Ghz CM7 Defy
@crakeron thank you for that. I will eargerly wait for the same !
Crakeron Hav u got the standard froyo task manager apk by chance I deleted mine by mistake n iv being looking everywhere for it thanks.
Sent from my MB525 using XDA App
I got the InPocketService.apk from MSGinger 2.1 /system/app folder.
Now how do I install it?
when i click on it and try to install, it says application could not be installed.
pls help !!
I only have a nandroid of my froyo rom, i can extract apks and. Odex files but i never figured out what to do with them :/ ask someone who makes roms he'll explain how
Sent from my 1Ghz CM7 Defy
i want to install it in CM7.1.0
popcorn1122 said:
I got the InPocketService.apk from MSGinger 2.1 /system/app folder.
Now how do I install it?
when i click on it and try to install, it says application could not be installed.
Click to expand...
Click to collapse
Use rootexplorer or a similar file manager to place the .apk in the correct folder - probably system/app. Make sure the permissions are set to rw-r--r--. Reboot.
I think I should use Yaffs Explorer as its free.
Root Explorer is not free right?
Can anyone tell me what is the "i-pocket detection"?
in pocket detection is a proximity sensor that will detect that the phone is in pocket and then turn off the display and lock the phone. It works if the phone is put on the vertical position inside the phone. Hence it uses the gravity sensor and the proximity sensors to do that job.
But I am unable to install it in CM 7.1.0.
Does any one know how to install it ?
I tried to change chmod 644 for that in the apps folder still no luck
tries the appinstaller to install, but still no luck. It says application not installed.

7-zip cant modify files

I am looking to modify my phone.apk to change the color of a few buttons and the android guy that shows up when in a call. I have done this in the past and it seemed like then it was as simple as deleting the files in 7-zip and replacing with the file I wanted. Am I missing something or is it not that simple. Every time I try to move a file or delete it its says "not Implimented" or un supported compression method. I know how to push and pull files through adb so if I could just get the .png images where I want them then I would be all set. I have looked everywhere but cant seem to come up with a solution.
Thanks Jason
PS. the files are from another rom I am simply trying to use them in my current rom so the .png file should not be corrupt or broken.
You can't edit apk's with any zip extractors
Sent from my Incredible using xda premium
Albinoman said:
You can't edit apk's with any zip extractors
Sent from my Incredible using xda premium
Click to expand...
Click to collapse
Not true, regular image files can (should) be able to be draged out, edited, and droped back in an apk using 7-zip.
nighthawklude99 said:
I am looking to modify my phone.apk to change the color of a few buttons and the android guy that shows up when in a call. I have done this in the past and it seemed like then it was as simple as deleting the files in 7-zip and replacing with the file I wanted. Am I missing something or is it not that simple. Every time I try to move a file or delete it its says "not Implimented" or un supported compression method. I know how to push and pull files through adb so if I could just get the .png images where I want them then I would be all set. I have looked everywhere but cant seem to come up with a solution.
Thanks Jason
PS. the files are from another rom I am simply trying to use them in my current rom so the .png file should not be corrupt or broken.
Click to expand...
Click to collapse
My guess would be that the apk was decompiled at some point before, but not recompiled right, or with the right program. Which phone.apk are you having issues with, the one on your phone or the one your pulling the pngs from?
I am having problems with the phone.apk I pull from my phone with adb, with the phone.apk that is in the original rom, and the phone.apk that is in a nanadroid back up. The rom I am running is anthem 3.3. I am starting to think that there is a problem with 7-zip on my computer. Is there a setting I need to change? I have even ran 7-zip as administrator to see if that helped.
nighthawklude99 said:
I am having problems with the phone.apk I pull from my phone with adb, with the phone.apk that is in the original rom, and the phone.apk that is in a nanadroid back up. The rom I am running is anthem 3.3. I am starting to think that there is a problem with 7-zip on my computer. Is there a setting I need to change? I have even ran 7-zip as administrator to see if that helped.
Click to expand...
Click to collapse
Sounds like your install of 7z may be messed up. I just tried it to make sure something didnt change in an update and it works fine for me still with default configuration.

My custom camera icon is not showing.

So, I'm trying to customize my camera icon through the res and ect.. I got one of the apks to flash but, then I noticed it was very jagged and not clean at all so I decided to fix it up and now I can't get it to flash. When I do flash it the icon disappears and there is no camera app to be found. I have a feeling that my sizes or resolution of the picture of the (not working icon) are off or something. I will attach the not working and working camera apk below. If someone could tell me where I went wrong I would be very thankful.
Not working apk: https://dl.dropbox.com/u/37484095/(Not_Working)HTCCamera.apk
Working apk: https://dl.dropbox.com/u/37484095/(Working)HTCCamera.apk
Is the Rom odex? If it is, then you have to deodex the HTCCamera.apk
Sent from my PC36100 using xda app-developers app
bennyboy78 said:
Is the Rom odex? If it is, then you have to deodex the HTCCamera.apk
Sent from my PC36100 using xda app-developers app
Click to expand...
Click to collapse
I believe it is considering the file on the side of it is .odex. I apologize for not being the most knowledgeable on the subject. Would I deodex it in a kitchen? Like a rom kitchen of course.
I'm confused why one apk worked and the other didn't though?
EDIT: How would I go about deodexing??? I've been researching and tried using baksmali but, I keep getting error messages. I'm pretty lost right now.
Not really sure as to why it would just disappear like that if you only modified some images in the res folder... Did you mess with baksmali ? Possibly modifying something in there would cause it to dissapear.
As for deodex, get dsixdas kitchen, set it up, then just making a working folder out of the Rom you want to modify. After that's done, go to advanced options and select deodex a file or something. It should give you the option of the whole Rom or just a single apk. It's the long way, but its easier than baksmali, imo.
Sent from my PC36100 using xda app-developers app
I tried baksmali I'm not completely sure if I did it right but it gave me an out folder and then I used smali to make it into a classes.dex I'm not really sure what to do with that file. I assume you're supposed to zip it with the apk...but, when I do that I get a parse error.
My process for changing the images in res is I decompile the apk with apktool. I then go into the res folder switch out the ic launcher icon for the one I made. I then rebuild the apk with apk tool. From there I'm not sure if you're supposed to flash it in a zip or I can just adb push it....
Sent from my PC36100 using xda app-developers app
You need to take META-INF folder, and maybe the Manifest.xml from the original apk and place it in your modified one. Then push via adb or move to system with a root file manager.
Also fix permission, 644 (rw-r-r)
An enviousOG
I'll try once I get home. Thank you.
Sent from my PC36100 using xda app-developers app
Robobob1221 said:
You need to take META-INF folder, and maybe the Manifest.xml from the original apk and place it in your modified one. Then push via adb or move to system with a root file manager.
Also fix permission, 644 (rw-r-r)
An enviousOG
Click to expand...
Click to collapse
Alright, so how do I do the last command "fix permission 644 (rw-r-r)?"
steam374 said:
Alright, so how do I do the last command "fix permission 644 (rw-r-r)?"
Click to expand...
Click to collapse
If you use a root file manager (es explorer etc)
long press the apk and select permissions, then change to look like the image attached
If you're using adb:
Code:
adb shell chmod 644 /system/app/nameofapk.apk
Big thank you to both of you! Especially bennyboy78 I deodexed the apk in the rom kitchen like he said and just threw my customized icon in the apk and it worked! Thank you so much!

Categories

Resources