[Mod] Stock android lockscreen *now with no menu unlock option* - Captivate Android Development

All credit goes to Ateisti in the I9000 forum.
http://forum.xda-developers.com/showthread.php?t=779803
Attached is my resulting android.policy.odex file from I897UCJH3. I would recommend verifying the signature from your android.policy.odex file before attempting to apply the mod to your phone. If you're feeling brave, you can simply replace, after making a backup, your /system/framework/android.policy.odex file with the attached one.
Standard disclaimers apply. I am not responsible for what you do with this information and highly recommend a backup before attempting. I had to return to stock after an oversight so be careful and understand what you are doing before you act. I haven't modified framework-res.apk so my menu button also unlocks.
Added a version that does not allow the menu button to unlock.
The at&t screen on first boot after the change took quite a while on my phone.
Apparently my above warnings were not clear enough. This is not, and never was intended, as a drop in mod. You should read the linked i9000 thread and understand what you are doing before attempting to apply this to your phone. If you're not running JH3, you have a very high chance of getting stuck on the AT&T splash screen. Even if you are on JH3, you could still get stuck if your signature for the odex file is different than mine.
If you want a 100% guaranteed working mod, you must follow the linked post. The attached files are only for risk takers that don't mind flashing back to stock or restoring from backup.

Worked like a charm. Thanks for the info.

How Do I Go About Putting This On My Phone?? I'm Kind Of A Newb..Do I Do It As A Update.zip File??

Nice! As soon as I get home from work I'll try this out, been waiting for something like this.

kmthomas2009 said:
How Do I Go About Putting This On My Phone?? I'm Kind Of A Newb..Do I Do It As A Update.zip File??
Click to expand...
Click to collapse
It's right there in the OP. Make a copy of the file mentioned and replace the old file with the one in his .zip manually. I used root explorer but I am sure Astro would work just as well. Reboot and ??? Profit.

Worked like a charm here. Used Root Explorer and POW Glass is shattered.
Any chance this would work on a Vibrant?

id10terrordfw said:
Worked like a charm here. Used Root Explorer and POW Glass is shattered.
Any chance this would work on a Vibrant?
Click to expand...
Click to collapse
All bets are off on using my file, but if you follow the instructions in the I9000 thread, you should be able to generate a file for the vibrant.

Yeah I was reading into that, it looks like it shouldn't bee TOO hard since others have blazed the path.
Thanks!

Thank you so much! I saw that thread on the i9000 forums but didn't really know how to port it. Just replaced the odex on JH7, and it worked perfectly

Just an FYI. Didn't seem to do anything on Eugene373's Hybrid R3. There was no existing android.policy.odex in system/framework, and putting the new file in there made no change. There is an android.policy.jar in system/framework, so I tried renaming it to .old but that just made it hang on ATT boot screen.
Just my 2 cents.

Thank you very much, iv been wanting this lock screen for so long. i even resorted in using lock bot pro, but that laged so much. i install and everything is working great!
Oh an i have to say it again, Thank you! i dont have the puzzle pieces any more. i know some like that feat. but i for one did not

id10terrordfw said:
Yeah I was reading into that, it looks like it shouldn't bee TOO hard since others have blazed the path.
Thanks!
Click to expand...
Click to collapse
You're right, not too hard, just have to follow the steps. I made a copy of the entire system/framework folder to my internal sdcard and the copied it to my laptop for editing. When running dexopt-wrapper I just used an adb shell.
bobbylx said:
Just an FYI. Didn't seem to do anything on Eugene373's Hybrid R3. There was no existing android.policy.odex in system/framework, and putting the new file in there made no change. There is an android.policy.jar in system/framework, so I tried renaming it to .old but that just made it hang on ATT boot screen.
Just my 2 cents.
Click to expand...
Click to collapse
I'm just guessing, but I'd say that Eugene's rom is deodexed. There is discussion about applying the fix to deodexed roms in the original thread.
http://forum.xda-developers.com/showpost.php?p=8121172&postcount=31
Your solution is probably there.

l7777 said:
You're right, not too hard, just have to follow the steps. I made a copy of the entire system/framework folder to my internal sdcard and the copied it to my laptop for editing. When running dexopt-wrapper I just used an adb shell.
I'm just guessing, but I'd say that Eugene's rom is deodexed. There is discussion about applying the fix to deodexed roms in the original thread.
http://forum.xda-developers.com/showpost.php?p=8121172&postcount=31
Your solution is probably there.
Click to expand...
Click to collapse
Good call. Thanks for the link.

Awesome, used ADB swapped the file out and it works like a charm. Thank You!

No music controls on lock screen ?
I just put this on my phone - pretty neat. However, when playing a song, the old lock screen had a nifty music control, where you had access to the music controls (play/pause, next, prev, etc) without having to unlock the phone. I don't see that on this, and it was a pretty convenient feature. Maybe I have to also replace the music player with the Android stock music player to get this?
I'll be putting the original stock lock screen back on. I also like how Samsung's music player shows these controls in the notification bar.

Can Someone Help Me...When I Use Astro It Says "File Type Odex Not Found"....Am I Doin Something Wrong??

composer47 said:
I just put this on my phone - pretty neat. However, when playing a song, the old lock screen had a nifty music control, where you had access to the music controls (play/pause, next, prev, etc) without having to unlock the phone. I don't see that on this, and it was a pretty convenient feature. Maybe I have to also replace the music player with the Android stock music player to get this?
I'll be putting the original stock lock screen back on. I also like how Samsung's music player shows these controls in the notification bar.
Click to expand...
Click to collapse
gah, why do people not understand that if you remove a part of touchwiz, you're going to lose some of touchwiz's functionality.
the music control was a part of touchwiz and samsung's music player and never existed for stock android. I'm not saying I prefer to NOT have it, but if you remove a core component, you're going to lose added functionality. if you want to keep touchwiz stuff like puzzle lock and music controls, then you're simply going to have to keep touchwiz. much like how you can't use samsung's widgets without using TwLauncher or why we can't use Sense widgets without running Sense

Does anybody have the ability to upload these files to somewhere else? Trying to do all of this from my phone but when my phone downloads the zips they are only like 47kb and corrupted. Only seems to happen though when i download straight from my phone. Other than that great work, can't wait to try this out. Tired of the lockscreen the cappy comes with.

I got the file on my sd card but everytime I try to move it via Astro it loses the copy when going into the root folders???

You could always download terminal emulator.
open it and type,
su
cp /system/framework/android.policy.odex /sdcard/android.policy.odex.ORIG
cp /sdcard/android.policy.odex /system/framework
reboot
that should work.
Or if you have access to your computer and usb cable plug in and do the same thing with ADB.
adb shell
then the same commands above.

Related

Get rid of tmobile animation on boot

This may be posted elsewhere...if so, sorry. I replaced the 2 qmg files in /system/media with the attached files. The attached files are the stock i9000 boot animations. I got them from a captivate thread.
So far they seem to work fine, but you should make a backup just in case.
mm0
Guess you have to be rooted, right?
rooted here, not working
What is the best way to copy files over? Could you give more of a noob tutorial on how to do this lol
works great! no more stupid pink crap! I a sooo excited!
The way I did it is as follows. I used root manager to copy the original qmg files to a safe place. I then mounted the phone to my computer copied the new qmgs to the sd card unmounted and used root manager again to put them in the correct place (system/media).
make sure that you extract the two files from the zip. other than that, I did it just like the above posts.
Works perfectly Thanks!!! Any idea where the sound file is? I'd like to replace that with something less "happy"
ISprayCandy said:
Works perfectly Thanks!!! Any idea where the sound file is? I'd like to replace that with something less "happy"
Click to expand...
Click to collapse
this is covered in the sticky and here: http://forum.xda-developers.com/showthread.php?t=731059
For some reason I am not able to copy the files with root explorer. Do I need to move the files with terminal? I've copied/move them over..but they do not appear. I have root access btw.
Working on a rooted Vibrant here. Ended up using Root Explorer to get it to work.
Now, is there a way to get rid of the pink shutdown animation?
blanked said:
Now, is there a way to get rid of the pink shutdown animation?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=732311
ISprayCandy said:
http://forum.xda-developers.com/showthread.php?t=732311
Click to expand...
Click to collapse
Thank you sir
Oh yeah! works great. 90% unbranded
About at the beginning when booting up the " Pink Stick together " still comes out, anyway to get rid of this ?
Thank you in advanced..
THanks for the info worked great. Anyway to change the bootup sound so that is like the original samsung galaxy s as well. THanks
thanks for this tip... good to see just the galaxy s animation
yvyv said:
About at the beginning when booting up the " Pink Stick together " still comes out, anyway to get rid of this ?
Thank you in advanced..
Click to expand...
Click to collapse
Go into /system/media and remove bootsamsung.qmg and bootsamsungloop.qmg ... or replace them with the i9000 files from the ZIP in the post that started this thread.
Thank you!
I copied the files over with root explorer, and everything works fine, except for when the new animation plays, it's very choppy/pixelated. Anyone else?

[Q] Change lock screen slider

Using Darkstones FroyoStone build, but I really dont like the lock screen slider, it just visually clashes with every wallpaper imo. I would much prefer to use the default Froyo one or HTC hero one. I have only found 2 apps capable of this, lockbot and widgetlocker. Lockbot has terrible reviews and doesnt seem to work well at all (i tried it), and widgetlocker is payware.
Seems like changing the lockscreen should be easy enough, if not a basic system default option. Does anyone know how to do it?
RunNgun42 said:
Using Darkstones FroyoStone build, but I really dont like the lock screen slider, it just visually clashes with every wallpaper imo. I would much prefer to use the default Froyo one or HTC hero one. I have only found 2 apps capable of this, lockbot and widgetlocker. Lockbot has terrible reviews and doesnt seem to work well at all (i tried it), and widgetlocker is payware.
Seems like changing the lockscreen should be easy enough, if not a basic system default option. Does anyone know how to do it?
Click to expand...
Click to collapse
Make a backup of anyfiles before you edit them!
I used astro file explorer, but just use whatever file explorer you like best. Go to /system/app and find the file called "HtcLockScreen.apk" make a copy of it and put it somewhere safe, then delete the original and bam there you go. I just restarted android when done, and when it comes back on you should have the stock froyo lockscreen.
byrdman443 said:
Make a backup of anyfiles before you edit them!
I used astro file explorer, but just use whatever file explorer you like best. Go to /system/app and find the file called "HtcLockScreen.apk" make a copy of it and put it somewhere safe, then delete the original and bam there you go. I just restarted android when done, and when it comes back on you should have the stock froyo lockscreen.
Click to expand...
Click to collapse
Does that mean I could dump the 2.1 lockscreen.apk in and have that one instead, I don't like the 2.2 one much.
Piemole said:
Does that mean I could dump the 2.1 lockscreen.apk in and have that one instead, I don't like the 2.2 one much.
Click to expand...
Click to collapse
I have not personally tried to but I would assume that you could, just make sure you copy the original .apk file and try it out.
Any idea where I could get a copy of an older apk for a lockscreen?
Piemole said:
Any idea where I could get a copy of an older apk for a lockscreen?
Click to expand...
Click to collapse
Find one of the old 2.1 builds in the forum, load it up and copy the htclockscreen.apk to your computer or sd card. Load up your current build of android and place it in the system/app folder.
anyone with thedesire HD or a "normal" sense rom can post the htclockscreen.apk??? PLZ!!!
byrdman443 said:
Make a backup of anyfiles before you edit them!
I used astro file explorer, but just use whatever file explorer you like best. Go to /system/app and find the file called "HtcLockScreen.apk" make a copy of it and put it somewhere safe, then delete the original and bam there you go. I just restarted android when done, and when it comes back on you should have the stock froyo lockscreen.
Click to expand...
Click to collapse
awesome, this is just what I needed! Thx!
byrdman443 said:
Make a backup of anyfiles before you edit them!
I used astro file explorer, but just use whatever file explorer you like best. Go to /system/app and find the file called "HtcLockScreen.apk" make a copy of it and put it somewhere safe, then delete the original and bam there you go. I just restarted android when done, and when it comes back on you should have the stock froyo lockscreen.
Click to expand...
Click to collapse
Trying this out now, thanks for the tip.
I used the tip and it is working perfectly. Thank you, easy and effective
Eevn if this brings back the Stock Froyo lockscreen, if your phone is locked and you have a incoming call, again you will see the HTC answer screen (htc lock screen for answering). How can we remove this and get the Froyo style?
joseph230 said:
Eevn if this brings back the Stock Froyo lockscreen, if your phone is locked and you have a incoming call, again you will see the HTC answer screen (htc lock screen for answering). How can we remove this and get the Froyo style?
Click to expand...
Click to collapse
That would probably require the replacement of phone.apk and possible even dial.apk
AMCJUNGLE said:
That would probably require the replacement of phone.apk and possible even dial.apk
Click to expand...
Click to collapse
Could not find a solution for this yet
Have fun: http://forum.mobilism.org/viewtopic.php?f=399&t=144147

[GUIDE] Changing your bootanimation and delete those ugly sound

*EDITED*
This is very easy now after having the permanent ROOT -- thanks to PAUL for wonderful Visionary+, Evostance for brilliant guide, and those geniuses who make this happened (you know who )
First you need to get permanent root. Here is the link to the guide:
http://forum.xda-developers.com/showthread.php?t=834427
(If you read till page 10, you will definitely know how to do it and what to expect).
Second, go buy ROOT EXPLORER from the market. (Best explorer for rooted phone period).
Go to /system/customize/resource
Make sure you enable the r/w (read write option), other wise you cant do modification.
You will see both the audio and bootanimation there.
If you hated that sound (just like me), just delete the audio.mp3. If you want to change the bootanimation, just copy your bootnimation.zip to overwrite the default one.
That's all....reboot the phone....and you will have your peace...and enjoy the new bootanimation.
kuailan said:
I am just wondering is the good old way of adb pushing the bootanimation.zip work for HD? I do noticed the stock animation are located in /customize/resource folder in the system ROM. Has anyone try changing the bootanimation? Just hated those sound in bootup (prefer no sound).
Click to expand...
Click to collapse
firstly i'd like to state, this is development and not Q & A not being mean just stating.
secondly if you had read the ref guide which is pinned to the top you might have got your answer.
finally your answer...
NO
you can not write on the nand with the temp root. no can you adb push.
permanent root is on its way and i believe the nand will be unlocked on that so you may have write permissions. once this has been obtained then you can push a custom boot animation if required.
El_Nino9 said:
firstly i'd like to state, this is development and not Q & A not being mean just stating.
secondly if you had read the ref guide which is pinned to the top you might have got your answer.
finally your answer...
NO
you can not write on the nand with the temp root. no can you adb push.
permanent root is on its way and i believe the nand will be unlocked on that so you may have write permissions. once this has been obtained then you can push a custom boot animation if required.
Click to expand...
Click to collapse
First of all thank you for the answer (actually I also thought so, and your answer just confirmed that)
And as for posting in develeopment, I DO believe that changing bootanimation is part of Android development (anything that involved creating/modifying and changing of the default system files). Just like recovery or flashing tools, people also develop bootanimation changer application to make life easier for others.
Also I did some search, and this is the first post for any bootanimation for Desire HD. I hope once "root" has been accomplished. People can just use this thread to put the guide to changing those animation.
Therefore I do read and follow the guidelines.
-----------------edited---------------------
kuailan said:
First of all thank you for the answer (actually I also thought so, and your answer just confirmed that)
And as for posting in develeopment, I DO believe that changing bootanimation is part of Android development (anything that involved creating/modifying and changing of the default system files). Just like recovery or flashing tools, people also develop bootanimation changer application to make life easier for others.
Also I did some search, and this is the first post for any bootanimation for Desire HD. I hope once "root" has been accomplished. People can just use this thread to put the guide to changing those animation.
Therefore I do read and follow the guidelines.
Click to expand...
Click to collapse
well glad you're a happy bunny
but several things,it isn't development as you were asking a question at time of writing.
secondly themes section deals with bootanimation and things like that. sound can be disabled by just renaming the file i.e. add a .bak after mp3 just for back up purpose or you can delete the file entirely up to the user.
with customs roms, they may be in a different location. i do believe that AOSP builds are located in media where as in sense builds /customize/resource
it can change depending on the developers choice really. thats why when a person releases a theme, it states what rom the user must be using to avoid problems.
anyways there's no need to carry on with that as you have got what you wanted, full root so you can do w.e. you like know
my personal favourite boot animation was the original hero one, but since that doesnt work anymore/havent found 1 that has been converted to work with the new roms, i like "making fro-yo" it just draws a pic of a frozen yoghert and colours it in.
I purchased Bootanimation changer by Andres Schomis a while back when I was still using the original Desire. There are quite a few nice and interesting ones there. My fav so far is the pissing droid (to piss off some of my iphone mate ) and the alienware. I am sure they are also available in this forum (just do a search). There is no option for desire HD yet, but seem like the one that work for Desire also work just fine in HD. To make the app work, you will need to set the custom path. I highly recommend that app for bootanimation.
Somehow I feel this thread should be in the Themes/Apps subforum instead Since it basically has to do with customization. Anyway, thanks a lot for the instructions.
phunkycow said:
Somehow I feel this thread should be in the Themes/Apps subforum instead Since it basically has to do with customization. Anyway, thanks a lot for the instructions.
Click to expand...
Click to collapse
Agreed with you there mate
I do like the instructions, always helpful for those not browsing the development threads (which do take up a lot of reading time )
Ok can some one tell me what i'm i doing wrong?? it's been more then 6 hours since I started working on this.
Here is my anamtion
Download me please
I cant figure out whats wrong with it....
I even saved it as store with winrar even tried copying the files inside the HTC stock zip and still same problem
can someone help me please?
Bump any one can help?
Just delete the bootanimation.zip inside the /system/customize/resource
Then just copy your animation to the same path /system/customize/resource.
Make sure your animation is also named bootanimation.zip
For some reason I'm not able to enable the r/w function in the resource folder. The only place I can do it is in the root directory (with system, sdcard etc). Any idea of why this is happening? (my phone is perma-rooted and I have granted Super user permissions).
kuailan said:
Just delete the bootanimation.zip inside the /system/customize/resource
Then just copy your animation to the same path /system/customize/resource.
Make sure your animation is also named bootanimation.zip
Click to expand...
Click to collapse
I did my animation that made with Photoshop dont work any idea why? any other animation works fine
Sylpher said:
For some reason I'm not able to enable the r/w function in the resource folder. The only place I can do it is in the root directory (with system, sdcard etc). Any idea of why this is happening? (my phone is perma-rooted and I have granted Super user permissions).
Click to expand...
Click to collapse
This drove me mad for a while too.
I uninstalled root explorer then re-installed and I could the select r/w for all folders.
hi
do i need s-off for this or is just permanent root enough??
thnx
anyone got any good animation zips and sounds?
combat goofwing said:
anyone got any good animation zips and sounds?
Click to expand...
Click to collapse
yeah, thats what i wanna know too
Does anyone know what would happen if you removed the boot animation entirely? Will the phone still boot ok?
I'm happy not to have one at all if it speeds things up
Guys
first I didn't find the bootanimation in system ressource i found it in data/local/
along with the android-audio.mp3
second I tried to change these file it worked but the animation doesn't show up and I have just a small android when I boot up
What can I do ?
PS : my file may be too big 27 megabite for the bootanimation.zip
I tried already, but why whenever I reboot, the bootanimation.zip would revert to the original one?

[think tank] disable increasing ringer (link to intl ver working)

I saw this thread and it made me gain interest in this again. I know many do not like three ringtone volume increasing.
If this is possible on the international version, we should be able to do the same right?
http://forum.xda-developers.com/showthread.php?t=759537
This would be great i hate that volume increase in ringtones. Any dev plz port this for Vibrant.
The meat of it
The meat of what they are doing appears to be in >> THIS << post, which I will quote below. If any developer that knows what they are doing wants to attempt this for the Vibrant the quoted post should give them an quick idea of its feasibility. If it looks like it is doable there is more info in the original I9000 thread that is linked in the OP.
the_ozyrys said:
Hello,
I've just found a (not easy) way to disable increasing ring.
This involves using Apk Manager to backsmali Phone.apk,
which then have to be replaced by patched version, either by root access or creation of update.zip.
Procedure:
1. Get your Phone.apk (\system\app\Phone.apk) and copy it to computer.
2. Use Apk Manager to decompile it.
3. Open folder with Phone source (<Apk Manager folder>\projects\Phone.apk\smali\com\android\phone).
4. Open file Ringer$1.smali with your favourite text editor.
5. Find line that reads:
Code:
invoke-virtual {v1, v5, v4, v3}, Landroid/media/AudioManager;->setStreamVolume(III)V
6. Delete this line, save the file.
7. Compile Phone.apk, put it back to phone.
8. Enjoy constant-volume ringtones.
Side effects:
- currently not known
- if you have problem decompiling Phone.apk, >here< is the solution
Maybe somebody will make pre-patched packages, I'm currently using JM5
so I can only provide one for this firmware.
Click to expand...
Click to collapse
are you guys talking about when someone calls you and the ringtone is like quiet almost, and then goes super loud? if so, i want that too, its annoying as hell.
xriderx66 said:
are you guys talking about when someone calls you and the ringtone is like quiet almost, and then goes super loud? if so, i want that too, its annoying as hell.
Click to expand...
Click to collapse
Yes
4 5 6 7 8 9
I will work on this tomorrow after I get off work unless someone beats me to it. This ringer volume issue has been bothering me a lot with this phone.
That would be amazing man. It would have to be incorporated into every rom (as an option)!
This thread should be en dev section.
pretty sure that is where I posted this initially..... must have been a mod moving it.
OK so this fix rrequires that use the .apk's from a deodexed rom which I don't have on hand so I will down download a few and edit the .apk's. Gonna take a bit more time than previously thought but I will get it done soon.
YetisAreReal said:
OK so this fix rrequires that use the .apk's from a deodexed rom which I don't have on hand so I will down download a few and edit the .apk's. Gonna take a bit more time than previously thought but I will get it done soon.
Click to expand...
Click to collapse
Thank you for this. Please log your work. With a good writeup and good understanding of what is going on it would be nice to see devs put this in as a option on all the deodexed ROMs.
Some good news and some bad for now. I have successfully decompiled and recompile the APK as told but no luck so far in fixing the ringtone. Ran into a similar issue that the i9000 users were with each build being different. I am testing on JL4 first with other builds to follow once I am successful. In my Phone.apk I found two lines similar to the line mentioned in the OP for the i9000 but removing either one or both has has no effect for me so I am digging deeper and trying test builds. Java isn't exactly my thing so if anyone with java know how would like to look at the decompiled script I can forward it to them.
EDIT: added the file for peer review just remove the .txt and open with any text editor.
After reading this last night, seemed easy enough, I was determined to try this. Dl'd the apkmanager, extracted my phone.apk, and began playing. Apparently, this is listed in the About/Tips/Debug (menu selection 23) inside of apk manager, you cannot decompile themed apk's, which is exactly what i was trying to do with my Ginger Clone phone.apk. Oh well, back to the drawing board, or at least something with a stock phone.apk i can play around with. Anyone have one, unthemed, from froyo (preferrably jl4 as thats the basis for the current rom I'm running) they want to post?
Br1cK'd said:
After reading this last night, seemed easy enough, I was determined to try this. Dl'd the apkmanager, extracted my phone.apk, and began playing. Apparently, this is listed in the About/Tips/Debug (menu selection 23) inside of apk manager, you cannot decompile themed apk's, which is exactly what i was trying to do with my Ginger Clone phone.apk. Oh well, back to the drawing board, or at least something with a stock phone.apk i can play around with. Anyone have one, unthemed, from froyo (preferrably jl4 as thats the basis for the current rom I'm running) they want to post?
Click to expand...
Click to collapse
Here you go stock JL4 Phone.apk, please let me know if you get this working I had no luck.
YetisAreReal said:
Here you go stock JL4 Phone.apk, please let me know if you get this working I had no luck.
Click to expand...
Click to collapse
Thx! I'll be giving it a go in the morning when I get to my pc.
Ginger Clone's of the World Unite! Via the XDA App
Epic Fail. I successfully decompiled, edited, and recompiled the APK. The exact line in the script that was linked instructions from T313C0mun1s7 was removed, script file saved, apk recompiled properly, and pushed to the phone. Rebooted phone, the stock jl4 i just edited actually works and doesn't fc on Ginger Clone R2 Final, but the ascending ringtone is still there. I'll post the edited apk if anyone is interested, but it seems to not work. I see, more research in my near future.
Edited - spoke too soon, fc's on outbound calls. Gonna try again granted I have the time this morning, if not, I might have to wait until I get back in town after the holidays to play around with this.
Edit 2 - No more fc's on outbound calls with the newly edited phone.apk, but also, still having the ascending ringer. I removed both lines in the script that echoed the linked post on page 1, tried with removing one or the other first, then both, and still the ascending ringer persists through all attempts. Hrm.
I see you ran into the exact same problems I did using JL4 stock. I am on JL5 now so I am going to test a few things on this build now in the hopes I can fix this.
YetisAreReal said:
I see you ran into the exact same problems I did using JL4 stock. I am on JL5 now so I am going to test a few things on this build now in the hopes I can fix this.
Click to expand...
Click to collapse
First of all I have no idea what I am doing. Second I am not sure of all the issues you guys are having. I am just trying to think outside the box. I found this not sure if it applies or not.
apks can be re-edited a few different ways. The easiest example is by replacing the individual files within the apk by dragging and dropping the files in a program such as 7zip or winrar. In this manner the signature of the apk isnt broken. If you must unpack the apk file then when you pack it back up you must resign the app to have in install successfully. Do a google search for Stericson's apk sign application (its over on xda forums). I usually prefer the first way, but have also done the second method and it works as well.
yetis - yeah, same place you were getting stuck. let me know what your results are for the jl5 attempt. i tried with both the jl4 stock and ginger clone apk's this morning, all with the same results.
nomad - thx for the heads up, i am admittedly a novice in the android world, but have been in IT for years and am a self professed computer geek. With the apkmanager posted earlier in this thread, it will do all of the uncompiling and decompiling for you, as well as signing and a ton of other things written into the script, all based on user choices. it does warn about signing system apps after recompile, unless you want to resign all of the other system apps. Never had a problem with the installing of the modded phone.apk, just push it to the system/app folder and reboot, and the last one i did worked flawlessly without and fc's, but did not fix the problem of the ascending ringer.
Yetis, I was over reading through the thread on this in the i9000 forums, and I dug up some information that might help us here. I'm away from my pc so can't verify any of this right now.
-Make sure the rom is deodexed.
-Delete the line that matches what was posted earlier, I think it was the first one in that script, not the one way down at the bottom, leave that one be.
-When recompiling, set the compression in apk manager to 0 (not sure how to do that without the program in front of me)
When you go to push the file, put your phone in airplane mode first, push, then reboot.
Let me know if any of this helps, good luck.
Ginger Clone's of the World Unite! Via the XDA App

Can't Modify SecContacts_M_OSup_Note_Legacy_USA.apk

Background: Really not loving the default New Contact icons and the random colors. Should be easy enough to change. What I tried (and failed miserably...)
MODest ROM 11 (Twiz/stock 6.01-based)
Flashpoint 5 Kernel
Copied SecContacts_M_OSup_Note_Legacy_USA.apk from
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
to my Win7 PC.
Used 7-Zip to unpack the file to a temporary folder.
Found the .qmg files I didn't like.
Found a .qmg that would be a passable replacement for the ones I didn't dig.
Made 11 copies of that image in a working folder.
Renamed each copy to the exact name of each of the 11 files I wanted to replace.
Dragged those 11 files back into the open .apk in 7-Zip
On the Phone, in Root Explorer:
Made a copy of SecContacts_M_OSup_Note_Legacy_USA.apk in the same folder:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
deleted the original
Copied my mod'd apk back into this folder and set the perms.
Rebooted.
No Phone or Contacts on home screen or in Apps
Tried to 'install' the apk from Root Explorer.
Wouldn't install
Tried to delete cache & Dalvik from TWRP.
No Joy.
Tried to do a partial Nandroid restore of Contacts and sec.phone from Titanium (nothing there called /systempriv-app/SecContacts_M_OSup_Note_Legacy_USA)
No Joy.
Nandroid restore from TWRP.
Back to normal.
Okay, what did I do wrong, and how can I change the icons?
Should I have used APKTook instead of 7-Zip, created a new signature, etc?
Should my mod'd apk somehow be flashed from recovery rather than copied to a system folder?
Is this some perverted Samsung-ism that would have worked fine on any other phone on the planet?
Thanks for reading.
ForestCat said:
Background: Really not loving the default New Contact icons and the random colors. Should be easy enough to change. What I tried (and failed miserably...)
MODest ROM 11 (Twiz/stock 6.01-based)
Flashpoint 5 Kernel
Copied SecContacts_M_OSup_Note_Legacy_USA.apk from
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
to my Win7 PC.
Used 7-Zip to unpack the file to a temporary folder.
Found the .qmg files I didn't like.
Found a .qmg that would be a passable replacement for the ones I didn't dig.
Made 11 copies of that image in a working folder.
Renamed each copy to the exact name of each of the 11 files I wanted to replace.
Dragged those 11 files back into the open .apk in 7-Zip
On the Phone, in Root Explorer:
Made a copy of SecContacts_M_OSup_Note_Legacy_USA.apk in the same folder:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
deleted the original
Copied my mod'd apk back into this folder and set the perms.
Rebooted.
No Phone or Contacts on home screen or in Apps
Tried to 'install' the apk from Root Explorer.
Wouldn't install
Tried to delete cache & Dalvik from TWRP.
No Joy.
Tried to do a partial Nandroid restore of Contacts and sec.phone from Titanium (nothing there called /systempriv-app/SecContacts_M_OSup_Note_Legacy_USA)
No Joy.
Nandroid restore from TWRP.
Back to normal.
Okay, what did I do wrong, and how can I change the icons?
Should I have used APKTook instead of 7-Zip, created a new signature, etc?
Should my mod'd apk somehow be flashed from recovery rather than copied to a system folder?
Is this some perverted Samsung-ism that would have worked fine on any other phone on the planet?
Thanks for reading.
Click to expand...
Click to collapse
That apk took me a long time to figure out too. It's one of the apps you I had to modify for multi dpi. The only way I know of is to change the compression when you're putting the app back together and even then it took a couple tries. There's probably a better way but the compression change seems to work well enough.
I don't know if 7-zip has this option, but with winrar you can change the compression to "store". You should know right away whether or not it worked. You'll see the little phone icon in the bottom left of the lock screen. You may still have to do a factory reset to see your changes (probably not though) but the app should work without it.
By the way, you can swap those image files for .png files if you'd like. Just delete the corresponding .qmg or .pio file.
I saw your post in the rom thread about theming TouchWiz. You should check out @supergrobi94's theming threads. He's put together an impressive collection of options for 6.0.1 and 5.1.1 and there's also a [how to] section that uses the vrtheme zip that will modify the res folder of a specific app without having to break it down. I'm not sure how active he is these days but he's always been very helpful with requests and questions in the past if you need it.
Supergrobi94's theming threads:
This one has all the themes
This is the [how to] thread
kevintm78 said:
That apk took me a long time to figure out too. It's one of the apps you I had to modify for multi dpi. The only way I know of is to change the compression when you're putting the app back together and even then it took a couple tries. There's probably a better way but the compression change seems to work well enough.
Click to expand...
Click to collapse
Ah, that makes perfect sense. But I'd never have figured it out myself, lol.
I'll dig into those theming threads, thanks.
kevintm78 said:
☆☆Edge Panel for ModestRom v11☆☆
DOWNLOAD-This will change your Contacts app to the S6 version and the IncallUI app to the Note 7 version because the people stripe will not work with the N4 contacts.
Click to expand...
Click to collapse
OK, this is from the MODest ROM thread, but I think it's germain here.
SO.....
If I want to 'try out' that Edge Panel, is there a way to revert back to the stock apps in question other than restoring a nandroid backup or re-flashing the ROM?
I ask because I'm thinking that, at least in the case of the Note 4 and its well known memory problems, 'bulk' memory writes like ROMs, nandroid retores, etc., stress the device, so I'm trying not to do it more than I have to.
During my last episode(see above) putting the stock apk back in its original folder didn't work.
Is there a standard procedure for either android generically, or touchwiz specifically, for safely reverting back to the stock system apps after experimenting w/ custom stuff?
EDIT: Just tried something. In Root Explorer, went into:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
and simply renamed the .apk to .foo
Rebooted.
No Contacts, as expected, but no Phone either??? Not sure why.
Anyway, back into Root Explorer.
Rename .foo back to .apk
Reboot.
Still no Contacts or Phone, so something bigger at work here.
Before I have to restore Nandroid anyway (unless there's a better way???),
I flashed your EdgePanel.zip in TWRP to see if it would restore the Phone/Contacts apps.
Wiped the cache. Reboot.
Edge Panel is now there, but still no Phone or Contacts. WTF???
Last resort-TWRP- Factory Reset.
Now the Contacts/Phone are back (and all my other stuff is gone, lol)
So is whacking the Data a necessity here?
If so, it makes trying out things related to the phone/contacts a LOT more tedious...
Any workaround???
Thanks again.
ForestCat said:
OK, this is from the MODest ROM thread, but I think it's germain here.
SO.....
If I want to 'try out' that Edge Panel, is there a way to revert back to the stock apps in question other than restoring a nandroid backup or re-flashing the ROM?
I ask because I'm thinking that, at least in the case of the Note 4 and its well known memory problems, 'bulk' memory writes like ROMs, nandroid retores, etc., stress the device, so I'm trying not to do it more than I have to.
Click to expand...
Click to collapse
No, it doesn't look like I ever made an easy way to go back. I had thought I did but I'm either overlooking it or it's not there. Feel free to rifle through my androidfilehost folders if you want to double check. All of my stuff is very organized so it could be buried in there somewhere.
If you still need a recovery zip let me know and I'll get one together. I'm actually going to make one anyway but if you need it right away I can get on it. I didn't realize that there wasn't a way back to stock.
ForestCat said:
During my last episode(see above) putting the stock apk back in its original folder didn't work.
Is there a standard procedure for either android generically, or touchwiz specifically, for safely reverting back to the stock system apps after experimenting w/ custom stuff?
EDIT: Just tried something. In Root Explorer, went into:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
and simply renamed the .apk to .foo
Rebooted.
No Contacts, as expected, but no Phone either??? Not sure why.
Anyway, back into Root Explorer.
Rename .foo back to .apk
Reboot.
Still no Contacts or Phone, so something bigger at work here.
Before I have to restore Nandroid anyway (unless there's a better way???),
I flashed your EdgePanel.zip in TWRP to see if it would restore the Phone/Contacts apps.
Wiped the cache. Reboot.
Edge Panel is now there, but still no Phone or Contacts. WTF???
Last resort-TWRP- Factory Reset.
Now the Contacts/Phone are back (and all my other stuff is gone, lol)
So is whacking the Data a necessity here?
If so, it makes trying out things related to the phone/contacts a LOT more tedious...
Any workaround???
Thanks again.
Click to expand...
Click to collapse
That is strange that they are not coming back. You may just want to double check your permissions and that there isn't two of the same apps in your folder. At the time of making that Edge zip I was still using other programs to make zips for me and the major downside to that is having to name the new apps the exact same as the old so it would get overwritten so if it doesn't match you'll end up with two active apps in one folder.
Now I think the best way to do that is to use a binary script (osm0sis has great tutorials for this) to change the app getting replaced to a .bak file and then just copy the new app to the system, set perms, and reboot (dalvik cache/ cache needs to be wiped if it's a framework .jar file). But to each their own. If you can get the job done a better way then I would use what you're comfortable with.
My system to test apps isn't much difference than yours. I think the only thing I do differently is change the app to be replaced to .bak instead of .foo although I can't imagine there's much difference. There's been a few apps like the Contacts app that gave me a bunch of trouble when modifying them but I can't remember ever having trouble bringing back the stock app. I wish I had more insight on that situation for you. If push comes to shove I would reflash the rom zip over factory reset only because the factory reset won't correct the system partition problem, if that's what's going on in this case.
kevintm78 said:
If you still need a recovery zip let me know and I'll get one together..
Click to expand...
Click to collapse
First, Merry Christmas!
Thanks very much. No rush on that, I'm OK on the Edge version for the minute.
What would be extremely useful if you have some time/curiousity would be to replicate my steps, ie renaming the untouched apk in a fresh MODest flash (i.e. break the contacts/phone function), and then see if you can get the whole thing working again without a factory reset, or if not, why. I see on xda, you & I are not the first ones to be tripping over this contacts.apk issue.
The other thing that would be telling is after successfully installing the Edge.zip, whether you can modify something (like a picture) within the contacts apk within the zip, reflash the zip and have contacts/phone still working with the change active.
I think there just HAS to be abetter way than Factory Resets.
Thanks so much again for the insights. I really want to become at least minimally competent at hacking my own ROMs together so I don't have to feel like such a noob/mooch on here, but I really do appreciate the help.
What are your weapons/platform of choice, or, if there are better tools for noobs learning the ropes, I'm all ears.
EDIT: Just found this. The last post is interesting...
https://forum.xda-developers.com/galaxy-s5/devs-only/recompile-seccontacts-apk-t3377142/page2
ForestCat said:
First, Merry Christmas!
Thanks very much. No rush on that, I'm OK on the Edge version for the minute.
What would be extremely useful if you have some time/curiousity would be to replicate my steps, ie renaming the untouched apk in a fresh MODest flash (i.e. break the contacts/phone function), and then see if you can get the whole thing working again without a factory reset, or if not, why. I see on xda, you & I are not the first ones to be tripping over this contacts.apk issue.
The other thing that would be telling is after successfully installing the Edge.zip, whether you can modify something (like a picture) within the contacts apk within the zip, reflash the zip and have contacts/phone still working with the change active.
I think there just HAS to be abetter way than Factory Resets.
Thanks so much again for the insights. I really want to become at least minimally competent at hacking my own ROMs together so I don't have to feel like such a noob/mooch on here, but I really do appreciate the help.
What are your weapons/platform of choice, or, if there are better tools for noobs learning the ropes, I'm all ears.
EDIT: Just found this. The last post is interesting...
https://forum.xda-developers.com/galaxy-s5/devs-only/recompile-seccontacts-apk-t3377142/page2
Click to expand...
Click to collapse
I'm not exactly sure what's going on with your contacts app not showing back up. Ever since modestrom v8 (I think) I've been doing the multi dpi on SecContacts_M_OSup_Note_Legacy_USA and every time I would test it doing the same as your way. After a reboot if the modified app was no good, then I would just delete that new app and change the name of the old app back to .apk, reboot and it would work again. I can't remember running in to any problems where I would have to factory reset or reflash the rom to get things working again.
There has been a couple times where I've had to factory reset to get a color change to show up or if you're adding toggles to the QS drop down that also (sometimes) requires a factory reset to show up.
As far as the post you linked, that is exactly how I do it except I use winrar to open the newly compiled app and drag the changes to the original. When I drag the changes over I change the compression method from "normal" to "store". If I don't change the compression the app doesn't work for me. The apps that I've ran into where I had to change the compression are: secContacts, secCamera, secSettings, and framework-res.apk. Any other app that I've worked on can be dragged and dropped without compression changes.
Jar files don't need an original signature though (so long as signature verification has been disabled, which it has in modestrom). They can be decompiled, edited, recompiled, and copied to the system. It does require a dalvik cache/cache wipe though on all framework files except for the framework-res.apk and twframework-res.apk
If you get a chance, you should start using apktool to decompile/recompile. It will make things easier for you in the long run and most of the time if you've made any mistakes in your edits apktool will catch it. If you're not familiar with apktool you can try using Tickle My Android or Advanced Apktool. You may also want to get Apktool by itself. I use all three of them. Android can be fickle and sometimes what works with one app won't work with another. What's nice about TMA and Advanced Apktool is that they'll do the drag and drop method for you, but when the compression needs to be changed that's when I use apktool by itself.
Sorry for the word vomit. Hopefully, this all makes sense.

Categories

Resources