[HOWTO] Speed up force closes in T989 ICS ROMs - T-Mobile Samsung Galaxy S II SGH-T989

I noticed that force closes would lock up my phone with ICS ROMs enough to make it completely unusable at times. I noticed that this is so because a system state dump is done every time it hangs by default. I don't know how to disable this internally, but found out how to prevent dumpstate from running when this occurs.
Code:
su
busybox chmod a-x /system/bin/dumpstate
Enjoy!

So we just open a terminal emulator and type in that code?
Sent from my SAMSUNG-SGH-T989 using xda premium

An easier way is to navigate to /system/bin in Root Explorer, select dumpstate, long press, change permissions and remove execute permissions for all (system, user, etc).
Update: It's critical to ensure you have "R/W" permissions on the folder before doing this, if it reads "R/O" at the top, make sure you change it (change it by clicking on the "R/O", it will change to "R/W").

blchff04 said:
So we just open a terminal emulator and type in that code?
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
or you could do it through adb shell.

autom8r said:
An easier way is to navigate to /system/bin in Root Explorer, select dumpstate, long press, change permissions and remove execute permissions for all (system, user, etc).
Click to expand...
Click to collapse
"Easier" is subjective, but yes, that is another way of doing it.
Sent from my SGH-T989 using xda premium

Thanks for this tip. I tried both methods, but no dice. I can't seem to change either directory to read/write.
Any thoughts? Thanks in advance.

Reboot and try again. If it still doesn't work try flashing TDJs cache wipe script.
Sent from the iPhone graveyard.

Which ones should be checked?
Sent from my SGH-T989 using xda premium

Which ones should be checked?
Sent from my SGH-T989 using xda premium

Uncheck all the Execute permissions, that's all you need to do.

markusf21 said:
Reboot and try again. If it still doesn't work try flashing TDJs cache wipe script.
Sent from the iPhone graveyard.
Click to expand...
Click to collapse
Hmmmm... tried both. I get the following error:
Permissions change was not successful.
Please note that some file systems (e.g. SD card) do not allow permission changes
Click to expand...
Click to collapse
Any other thoughts?

niice, works great...i did it through root explorer, i went into lockscreen weather settings which always vibrates, stalls out and fc's..now it instantly fc's no hanging black screen or nothin
---------- Post added at 11:26 PM ---------- Previous post was at 11:19 PM ----------
TheSeanTeam said:
Hmmmm... tried both. I get the following error:
Any other thoughts?
Click to expand...
Click to collapse
yea that happened to me what i did was flashed darkside cache wipe n booted then went into manage apps, root explorer then cleared data/cache for the app (i have a feeling i didnt even need to darkside cache wipe i probably just needed to clear app data but those are the 2 steps i did anyways)

Sorry for the late responses. It seems like others covered the spread, though. You can type those commands into a terminal or with adb using adb shell. I've never done it with Root Explorer (I use ES...it's free and can browse/remount as root), but make sure it has root permissions before continuing. Also make sure that the /system partition has been mounted as read-write; it won't work otherwise.

Can confirm it works with root explorer just make sure you switch to r/w
Sent from my SGH-T989 using xda premium

I posted about this working in Root Explorer, without trying it firsthand, I've tried it now, and it does work. The reason is this, the original post's command simply reads: for all (that's the "a" part) users remove execute (the "-x" part) permissions. You can mimic this functionality in any App with the ability to change file permissions. It's critical to ensure you have "R/W" permissions on the folder before doing this, if it reads "R/O" at the top, make sure you change it.

Related

Vanilla Lockscreen on Sense?

How can I get that? I like the volume slider, since I have to switch to vibrate the other day (i know it goes to silent but I have an app to make it vibrate instead). If anybody has some tips or a way that'd be helpful.
buffnutz1 said:
How can I get that? I like the volume slider, since I have to switch to vibrate the other day (i know it goes to silent but I have an app to make it vibrate instead). If anybody has some tips or a way that'd be helpful.
Click to expand...
Click to collapse
Just delete htclockscreen.apk
Sent from my ADR6300 using XDA App
I'm on the Skyraider rom, don't know if that makes a difference but I'm deleting it with root explorer then the phone shuts off powers up and the file is right back there again.
Careful if you're on the stock rom and delete the default lockscreen apk, I've heard it makes the lookscreen look really bad. But it works on other roms.
Sent from my HTC Incredible
It looks best on 2.2 but it works on 2.1 just it looks messed up
Sent from my ADR6300 using XDA App
buffnutz1 said:
I'm on the Skyraider rom, don't know if that makes a difference but I'm deleting it with root explorer then the phone shuts off powers up and the file is right back there again.
Click to expand...
Click to collapse
Delete it via adb on your computer. I believe it is rm /system/app/htclockscreen.apk
Sent from my HTC Incredible
i would just use astro file mgr on the phone, remove the files from the rom, and flash it again with all changes applied
Sent from my ADR6300 using XDA App
The only way you can delete a file in system, is if you've used unrevoked forever to unlock nand. Then in root explorer, change system to rw (read/write), then I'd rename the app instead of deleting just in case you need to put it back.
Sent from Incredible using Tapatalk.
i meant just to edit the rom.zip on the sd card and then just reflash the rom
Sent from my ADR6300 using XDA App
jdkoreclipse said:
i would just use astro file mgr on the phone, remove the files from the rom, and flash it again with all changes applied
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I don't think this is possible unless he has Forever installed cause what.he described happened to me like 2 weeks ago, I had to use adb
Sent from my HTC Incredible
Didn't see that, but yeah that will work too. Either way will work just fine.
Sent from my HTC Incredible
Please don't Delete files...
TheWhiteBandito said:
Delete it via adb on your computer. I believe it is rm /system/app/htclockscreen.apk
Sent from my HTC Incredible
Click to expand...
Click to collapse
Please don't rm files from your phone...
Why not
Boot in to recover
Mount System
From you computer (if you on Linux or MAC open a terminal window from Windows open a CMD window) at the prompt type:
ADB Shell
cd /system
mkdir app.backup
mv /system/app/htclockscreen.apk /system/app.backup
You never know when you may need one of files you "RM" into oblivion...
Sent from my MAC looking at my Sky Raider 2.5.2 Incredibly Rooted Phone..
oldman_58 said:
Please don't rm files from your phone...
Why not
Boot in to recover
Mount System
From you computer (if you on Linux or MAC open a terminal window from Windows open a CMD window) at the prompt type:
ADB Shell
cd /system
mkdir app.backup
mv /system/app/htclockscreen.apk /system/app.backup
You never know when you may need one of files you "RM" into oblivion...
Sent from my MAC looking at my Sky Raider 2.5.2 Incredibly Rooted Phone..
Click to expand...
Click to collapse
Yes I aplogize for the poor suggestion, moving the file to an alternate folder is a much better solution.
Sent from my HTC Incredible
Ok, I'm trying to do either way but it say it's a read only file. how do I change that?
buffnutz1 said:
Ok, I'm trying to do either way but it say it's a read only file. how do I change that?
Click to expand...
Click to collapse
If you're in recovery, you have to mount system under the partions menu first.
Edit: or might be sd card & storage menu depending on version of clockworkmod you're running.
Sent from Incredible using Tapatalk.
I've used better terminal emulator to remove the lock screen.
Use this line:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
To mount system.
Then:
cd system/app
rm HtcLockScreen.*
(Case sensitive)
Worked great, had to reboot though and it stuck. Until then the old one stayed.
Thanks to adrynalyne for the mount line.
Sent from my ADR6300 using XDA App
Ok did exactly what you said, then like said it would it rebooted. Comes back up as the HTC one. Am I the only it's done this for? Why won't it just erase?
I just removed mine with adb and it worked without a hitch. Word of caution though if you use your alarm, you need install another clock app otherwise you won't be able to turn the alarm off without pulling the battery. I just installed the stock android desk clock and all is well again.
Sent from somewhere
lgldrgdlr said:
I just removed mine with adb and it worked without a hitch. Word of caution though if you use your alarm, you need install another clock app otherwise you won't be able to turn the alarm off without pulling the battery. I just installed the stock android desk clock and all is well again.
Sent from somewhere
Click to expand...
Click to collapse
Where did you find it? I usually use my alarm clock. :/
I can upload it at some point today. Not sure when I'll be home to do so though.
Sent from somewhere

[Q] Market still force-closing (CM 6.1.1+Pershoot)

Opening the Market installed from update.zip here on the foum, it just force-closes immediately.
Running CM 6.1.1 + Pershoot's 1.5ghz kernel.
Might it be Pershoot? Or the .zip? Is .apk better?
What file manager are you using?
Sent from my T-Mobile G2 using XDA App
dynamikd said:
What file manager are you using?
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
The one pre-installed with CM. Just "File Manager".
Halp!
This makes mt G2 almost unusable...
adrienspawn said:
The one pre-installed with CM. Just "File Manager".
Click to expand...
Click to collapse
Use Root Explorer. It has a button on top that all you have to do is press to change the folder you are in to Read/Write and when you done modifying it, press the button to change it back to Read/Only
dynamikd said:
Use Root Explorer. It has a button on top that all you have to do is press to change the folder you are in to Read/Write and when you done modifying it, press the button to change it back to Read/Only
Click to expand...
Click to collapse
It won't let me change the permissions on /system (rest works).
Probably because I don't have the latest due to not having the market lol...
Can someone upload a newer Root Explorer?
"SU File Manager and Terminal". Best file manager you can buy, and it allows /system and /data to mount as rw in file explorer mode.
Sent from a Western Union telegram.
From adb shell or a term session on the phone, makes no difference:
Code:
su
mount -o rw,remount /system
If you still need the latest one let me know and I'll upload it to dropbox.
adrienspawn said:
It won't let me change the permissions on /system (rest works).
Probably because I don't have the latest due to not having the market lol...
Can someone upload a newer Root Explorer?
Click to expand...
Click to collapse
Sent from my T-Mobile G2 using XDA App
Alright, I removed it, but update.zip for the Market, once installed, still force-closes...
Does someone have a DEFINITE link to a working Market for 6.1.1?
I know there are at least 5 uploaded on this forum, and I'll start to try each one one by one since I can delete them now.
OK it failed again, but I installed the modded Gapps (was hoping to avoid having to install all Gapps, they waste resources) and the Market works.
Now to remove all the other crap...
edit: nevermind lol.....
Spoke too soon. It was working fine for a few minutes, then started force-closing constantly. Won't start now.
Clear dalvik cache?
dadewy said:
Clear dalvik cache?
Click to expand...
Click to collapse
Yeah, I do that every time I do anything in CWM now just because everyone's been recommending it.
Were on the same boat but mine's working on Cyanogen 6.1.1+pershoot what I idid is clear market then reboot the zip file that I download change it top update.zip boot to recovery clear dalvik then update the file.. BAM working
Sent from my HTC Vision using XDA App

Installing an app to the System

Hello I got a question. So pretend I wanted to make ADW EX as a system app how should I do that. Also I have tried it using root explorer but I keep getting Force closes when I put it as a system app. Any suggestions would be nice. Thanks
Sent from my T-Mobile G2 using XDA Premium App
lainvalenajr said:
Hello I got a question. So pretend I wanted to make ADW EX as a system app how should I do that. Also I have tried it using root explorer but I keep getting Force closes when I put it as a system app. Any suggestions would be nice. Thanks
Sent from my T-Mobile G2 using XDA Premium App
Click to expand...
Click to collapse
Did you set the permissons correctly? And did uninstall it before you moved it?
[sig]off topic is a great place to get my post count up, role on 1000[sig]
cjward23 said:
Did you set the permissons correctly? And did uninstall it before you moved it?
[sig]off topic is a great place to get my post count up, role on 1000[sig]
Click to expand...
Click to collapse
Set permission correctly.... Haven't installed it though. Will try
Sent from my T-Mobile G2 using XDA Premium App
In terminal
Su
mv /data/app/com.android.ADWEX.launcher-1.apk /system/app/ADWLauncher.apk
That's exmaple how to do it.. jus put the proper name for adw ex and from there should be good i, I do ths with LP all the time
Well if you're using a custom rom then you can open the rom .zip with something like 7zip, navigate to system>app then drag and drop ADW EX in there. Flash the rom like normal and you're done. That's how I do it.
There's also the terminal method mentioned by ilostchild, though what was forgot is mounting the system as rw
mount -o remount,rw /system
There's also ADB which is done the exact same way aside from having to tell adb to operate in a shell.
KCRic said:
Well if you're using a custom rom then you can open the rom .zip with something like 7zip, navigate to system>app then drag and drop ADW EX in there. Flash the rom like normal and you're done. That's how I do it.
There's also the terminal method mentioned by ilostchild, though what was forgot is mounting the system as rw
mount -o remount,rw /system
There's also ADB which is done the exact same way aside from having to tell adb to operate in a shell.
Click to expand...
Click to collapse
Sick...didn't realize how easy it is. Thanks!
Sent from my T-Mobile G2 using XDA Premium App

How would you push an .apk to your system/app?

The best way to push an app to your system/app file with out bricking your phone?
na4hotx said:
The best way to push an app to your system/app file with out bricking your phone?
Click to expand...
Click to collapse
Um that isn't going to brick you. Especially since you're talking about system app. Worst thing to happen would be a reboot if you touched an app which was currently running.
But I've been using root explorer and it works great. Or if the file is on my computer I use adb push. Or even a flashable zip if you really are worried.
Sent from my SGH-T999 using Tapatalk 2
As he said. Nothing else really needed to be said, good answer.
Sent from my SGH-T999 using xda premium
I used a file browser app and installed it over the existing one. Every time after that I was getting an error something .goo not responding. (SecPhone.apk) Trying to restor the call recording feature. I ended up doing a restore back to square one. No if I use root-explorer will it make a difference or should I use dab push? I would not know how to begging with that. could I use terminal and instal like I would if I was using the cwmtr.img install directions. but direct it to system/app?
na4hotx said:
I used a file browser app and installed it over the existing one. Every time after that I was getting an error something .goo not responding. (SecPhone.apk) Trying to restor the call recording feature. I ended up doing a restore back to square one. No if I use root-explorer will it make a difference or should I use dab push? I would not know how to begging with that. could I use terminal and instal like I would if I was using the cwmtr.img install directions. but direct it to system/app?
Click to expand...
Click to collapse
Which file browser app did you use? Did you remember to set the permissions for the newly copied apk? Permissions in /system/app should be rw-r--r
Sent from my SGH-T999 using Tapatalk 2
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Ctrl+C then Ctrl+V
Can I use RootExplorer to zip file them flash it? Or just move using RE?
na4hotx said:
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Click to expand...
Click to collapse
Yes, Root Explorer will allow you to change permissions as long as you aare rooted.
na4hotx said:
Can I use RootExplorer to zip file them flash it? Or just move using RE?
Click to expand...
Click to collapse
Root Explorer is a file manager, use to move the file to the appropriate folder and set permissions and reboot. I know you can create a zip & tar file, don't know if it would be flashable though.
na4hotx said:
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Click to expand...
Click to collapse
Smanager isn't a good file system tool. Try root browser lite tap and hold functioning is perfect. Has options for copy paste and permissions
saldebot said:
Yes, Root Explorer will allow you to change permissions as long as you aare rooted.
Root Explorer is a file manager, use to move the file to the appropriate folder and set permissions and reboot. I know you can create a zip & tar file, don't know if it would be flashable though.
Click to expand...
Click to collapse
Yeah it can't make flashable zips. Just storage zip files
Sent from my SGH-T999 using Tapatalk 2
I am using Frosty JB v6. I asked in the developer thread and I got a reply http://forum.xda-developers.com/showthread.php?t=1874063&page=546
I tried using RootExplorer and I was still getting error messages after be booting. Is there a way to make it flash able? What am I doing wrong or is it just never going to work? Do I need to start looking for a rom that has it functional on the build?
Did you reset permissions to match the rest of the files in the folder?
And you probably need to wipe dalvik and cache in recovery.
Sent from my SGH-T999 using xda app-developers app
na4hotx said:
I am using Frosty JB v6. I asked in the developer thread and I got a reply http://forum.xda-developers.com/showthread.php?t=1874063&page=546
I tried using RootExplorer and I was still getting error messages after be booting. Is there a way to make it flash able? What am I doing wrong or is it just never going to work? Do I need to start looking for a rom that has it functional on the build?
Click to expand...
Click to collapse
Use root browser lite, you can get it from the market it's a freeware then copy the app you want to system/app ....no permission stuff needed
DocHoliday77 said:
Did you reset permissions to match the rest of the files in the folder?
And you probably need to wipe dalvik and cache in recovery.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
this. Also, you didn't odex your ROM did you?
deziguy420 said:
Use root browser lite, you can get it from the market it's a freeware then copy the app you want to system/app ....no permission stuff needed
Click to expand...
Click to collapse
Please know what you're talking about first before posting suggestions. Especially when it pertains to system directory permissions. System/app directory uses rw-r--r-- as the permissions. Meaning owner has read write permissions while everyone else only has read. Not setting permissions correctly can lead to many many many issues.
Sent from my SGH-T999 using Tapatalk 2
There is application on the market called system application mover
Sent from my SGH-T999 using xda premium
I vote for a rom that has it and works where you don't need to mod stuff, yet. Learn all this stuff with something you don't need, like a sound mod (DSP) or something.
simple video
http://www.youtube.com/watch?v=mJGbiSkom9M

[GUIDE] ODEX any 4.1.1 JB ROM from official OTA

This will essentially odex all files in your /system/framework and it will do it straight from the Android UI via my personal favorite app ... this is good because it frees up memory, makes UI transitions cleaner, and reduces DVM size.
NOTE: DO NOT TRY TO ODEX YOUR /SYSTEM/APP/ DIRECTORY THEN TRY TO ODEX USING THIS METHOD. YOU WILL HAVE A BAD DAY. 0_o framework must me odexed before system apps
1. download the odex.zip here --> PURPLE
2. extract all files with a file explorer, i prefer root explorer or fx file explorer
3. place the extracted folder and all of it's contents in /data/local/tmp ... so you should have /data/local/tmp/odex/+(misc files in new odex directory)
4. give the new directory and ALL contents FULL permissions - full read, write, and execute perms. You will need to set them all individually. the odex folder, and all contents. your file explorer, if it has taken you this far, should be able to accomplish this. Also, mount your system as writeable as well!
5. download this app TERMINAL EMULATOR dont worry it is free. open the app
Type the following commands - each new line should be executed with the enter key:
su (hit enter, it will ask for root)
/data/local/tmp/odex/odex (hit enter, you will see
you will see a bunch of outputs. there will be a message when it is done (honestly, like 10 seconds if that) saying something like "enjoy your hybrid ROM"
type "reboot recovery" (without the quotes)
device will boot into recovery immediately after you hit enter...
wipe cache and dalvik cache once more each, and reboot your device. PROFIT :good:
*Disclaimer - I don't take donations, just hit the thanks button, and the thanks button for anybody I mention in my thread.
typing su in doesn't request root permission. I am definitely rooted, not sure what's going on.
EDIT: Got it, the su was working but I didn't realize that it might just change from $ to # instead of asking for permission. I also had to grant not just the directory, but all of the files in the odex folder full permission, which might have just been a reading comprehension error on my part. Worked flawlessly after that. On Infamous 2.2
deadpass said:
typing su in doesn't request root permission. I am definitely rooted, not sure what's going on.
EDIT: Got it, the su was working but I didn't realize that it might just change from $ to # instead of asking for permission. I also had to grant not just the directory, but all of the files in the odex folder full permission, which might have just been a reading comprehension error on my part. Worked flawlessly after that. On Infamous 2.2
Click to expand...
Click to collapse
your super user app is probably set by default to allow access. also, i will update the OP to be a little more clear about setting the perms on the directory AND it's contents.
thanks
Forgot to mention that you have to mount your system to writeable.
Sent from my SGH-T999 using xda app-developers app
---------- Post added at 09:32 PM ---------- Previous post was at 09:18 PM ----------
Oh and the old odexme.apk works fine for odexing jb roms.
Sent from my SGH-T999 using xda app-developers app
TarHeelTrigger said:
Forgot to mention that you have to mount your system to writeable.
Sent from my SGH-T999 using xda app-developers app
---------- Post added at 09:32 PM ---------- Previous post was at 09:18 PM ----------
Oh and the old odexme.apk works fine for odexing jb roms.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Ah, yes. I need sleep. Lol
So... shouldn't I see "odex" files in /system/app?
So what's the difference between this and the app that does it automaticly?
Sent from my SGH-T999 using xda app-developers app
I'll wait for the app
Sent from my SGH-T999 using xda premium
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
I don't see the .odex files either...
Sent from my SGH-T999
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
Nabeel10 said:
I don't see the .odex files either...
Sent from my SGH-T999
Click to expand...
Click to collapse
This Odex's the files in your /system/framework
NOT /system/app
WarlockW said:
This Odex's the files in your /system/framework
NOT /system/app
Click to expand...
Click to collapse
Ok, that explains a few things... I'd expected the /system/app folder to also be odexed
Think I restored from Nandroid because I couldn't tell what changed....
Sent from my SGH-T999 using Tapatalk 2
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
No, you shouldn't, because this odexes /system/framework/* not /system/app/*.all
Also, please for the love of hot Asian women people... please read the directions carefully in the OP lol...
If you have used the odex me app... don't use this method... if you odex your system apps, THEN try to odex framework after, you will have issues.
cobraboy85 said:
No, you shouldn't, because this odexes /system/framework/* not /system/app/*.all
Also, please for the love of hot Asian women people... please read the directions carefully in the OP lol...
If you have used the odex me app... don't use this method... if you odex your system apps, THEN try to odex framework after, you will have issues.
Click to expand...
Click to collapse
Understood. Don't odex system apps BEFORE odexing framework, but can we odex system apps AFTER odexing /system/framework? Or better yet, is there any reason to odex system apps after odexing /system/framework?
Thanks in advance for your reply!
__McB__ said:
Understood. Don't odex system apps BEFORE odexing framework, but can we odex system apps AFTER odexing /system/framework? Or better yet, is there any reason to odex system apps after odexing /system/framework?
Thanks in advance for your reply!
Click to expand...
Click to collapse
Yes after you odex your framework you can odex system apps.
The main thing about odexing is your apps load faster and it frees up memory in your /data/ partition because you are removing a good chunk of dalvik cache.
Also does improve performance just a tick, by that I mean general UI responsiveness is improved.
Thanks!
just for the sgh3 or would any work like sgh2?
wondering if this would work for the s2 :fingers-crossed:
DAD12345 said:
wondering if this would work for the s2 :fingers-crossed:
Click to expand...
Click to collapse
No it won't.
Boot class path is different.
But if you change that part in the script it will work.
Will this work on all jb roms. Like 4.2 or is it just for s3 4.1?
sent via note 2 in boss mode @ quad core 1.9ghz
Didn't work for me and the dude was so rude that I asked really made me like unfollow him
Sent from my SGH-T989 using xda app-developers app
It didn't really work, and I gave full permissions as well, should I try again?
Sent from my SGH-T999

Categories

Resources