[Samsung Galaxy Gio GT-S5660][TUTORIAL] A Complete lagfix for Gingerbread - Android Software/Hacking General [Developers Only]

Open Terminal Emulator on phone or adb shell from PC and type the following.
su
setprop dalvik.vm.verify-bytecode false
setprop dalvik.vm.dexopt-flags v=n,o=v
rm /data/dalvik-cache/*
rm /cache/dalvik-cache/*
reboot
Click to expand...
Click to collapse
Add these to the /data/local.prop or build.prop.
dalvik.vm.verify-bytecode = false
dalvik.vm.dexopt-flags=v=n,o=v
Click to expand...
Click to collapse
(Copy local.prop or build.prop to SD and edit them. Copy back afterwards. If lines starting with dalvik.vm.verify-bytecode or dalvik.vm.dexopt-flags exist already, please modify them as above. Also type following in adb shell or terminal emulator.
rm /data/dalvik-cache/*
rm /cache/dalvik-cache/*
reboot
Click to expand...
Click to collapse
In the build.prop, change
dalvik.vm.heapsize=64m
Click to expand...
Click to collapse
to
dalvik.vm.heapsize=80m
Click to expand...
Click to collapse
This seems to be a complete lagfix. No wake-lag etc.
Tested on GT-S5660XXKQG
Donate if you like it!

I can't do this. In the first step, when I put the command
rm /cache/dalvik-cache/*
it says that the file doesn't exist.
And I don't know where are the files on the 2nd step. How can I find them? Do I need to use a specific app?

B.RicH said:
I can't do this. In the first step, when I put the command
rm /cache/dalvik-cache/*
it says that the file doesn't exist.
And I don't know where are the files on the 2nd step. How can I find them? Do I need to use a specific app?
Click to expand...
Click to collapse
Same here... I have the GT-S5660M.
I am testing this on the /system/build.prop file to see if that works.

Well find where your dalvik-cache is stored.
It can be on /data or on /cache
Use a root explorer with superuser permissions to find out
Good examples are:
Advanced Tools
AntTek File Explorer
...

djjonastybe said:
Well find where your dalvik-cache is stored.
It can be on /data or on /cache
Use a root explorer with superuser permissions to find out
Good examples are:
Advanced Tools
AntTek File Explorer
...
Click to expand...
Click to collapse
I use root explorer and the terminal. I'm a linux user and know how to search. I'm not sure if its a S5660M issue or not but I just don't have the same files and folders you note.
So far changes to the system/build.prop seem to work for me based on your above directions.

it doesn't fix the lagging of the gingerbread.it just fix only wake up lag but not UI.

Related

Start an app from terminal?

Hey guys,
is it possible to start an application from the terminal? I think it have to be something like
Code:
app_process com.example.program.apk
But that's not working... So, does anybody know how to do that?
To tell you my problem: I have a su program which I am allowed to run. But I think it would be nice to run for example ASTRO as root. (Please don't tell me that I should flash my phone with cyanogen or something like that)
Best regards,
Bastian
I havent tried this, but the superuser app shows the command running under su, you could copy one of those? E.g
Code:
/system/bin/sh -c su -c "/data/data/com.blah.blah" root
st0kes said:
I havent tried this, but the superuser app shows the command running under su, you could copy one of those? E.g
Code:
/system/bin/sh -c su -c "/data/data/com.blah.blah" root
Click to expand...
Click to collapse
Unfortunatly it's not working... In fact nothing happens...
The command is "am".
# am
usage: am [start|broadcast|instrument|profile]
am start [-D] INTENT
am broadcast INTENT
am instrument [-r] [-e <ARG_NAME> <ARG_VALUE>] [-p <PROF_FILE>]
[-w] <COMPONENT>
am profile <PROCESS> [start <PROF_FILE>|stop]
INTENT is described with:
[-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]
[-c <CATEGORY> [-c <CATEGORY>] ...]
[-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
[--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
[-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
[-n <COMPONENT>] [-f <FLAGS>] [<URI>]
Thank you lbcoder!
I still don't get it running.. I just can't find out what I have to type in exactly..
am start INTENT (which you'll have to find out)
Ok I got it!
su
am start -n com.metago.astro/.FileManagerActivity
Click to expand...
Click to collapse
The problem is: I'm still not root.... =D The app runs but I still can't look at /data for example (with ASTRO of course)...
b!rust said:
Ok I got it!
The problem is: I'm still not root.... =D The app runs but I still can't look at /data for example (with ASTRO of course)...
Click to expand...
Click to collapse
You can't run apps as root.
Root apps are just a GUI for the Terminal..
ASTRO is using native Dalvik functions.
L
maxisma said:
You can't run apps as root.
Root apps are just a GUI for the Terminal..
ASTRO is using native Dalvik functions.
Click to expand...
Click to collapse
Ok, I didn't know that... Is there any other possibility to browse through my root folder without using the terminal?
*puuuush**
You can browse through folders below /sdcard using Astro! (I can anyway)
st0kes said:
You can browse through folders below /sdcard using Astro! (I can anyway)
Click to expand...
Click to collapse
Yeah of course! But I can't browse through /data for example. When I am in a terminal I can type in "su" and then I can browse through /data for example. But I think that's very enerving to browse with the terminal. It would be much better and easier to just browse through those files with ASTRO for example.
b!rust said:
Yeah of course! But I can't browse through /data for example. When I am in a terminal I can type in "su" and then I can browse through /data for example. But I think that's very enerving to browse with the terminal. It would be much better and easier to just browse through those files with ASTRO for example.
Click to expand...
Click to collapse
Im pretty sure ASTRO is incapable of browsing root files. I use "SU File Manager" from the market to do what you're trying to do. Its like 2 bucks, but well worth it. Even allows you to mount the System and Data partition to write to them.
dills84 said:
Im pretty sure ASTRO is incapable of browsing root files. I use "SU File Manager" from the market to do what you're trying to do. Its like 2 bucks, but well worth it. Even allows you to mount the System and Data partition to write to them.
Click to expand...
Click to collapse
Do I need a rooted ROM like the cyanogen to do so or can I use a simple su terminal program?

Stock 2.1 rom rooted ROM Manager won't FIX Permissions

I searched and got on IRC and can't get a fix for this. WHen i try to use the Fix permissions option in ROM Manager Premium i get the following error.
"error occurred while attempting to run privelaged commands"
I checked superuser and ROM Manager is in there so i selected "forget" then rebooted and tried "fix permissions" again. I got the promp to allow SU and then the error.
Any idea how i can fix this? Is this a bug or a isolated problem?
Not sure if it is related or not but I had to same problem until I bought the full version off of the market.
Maybe it's part of the extended functionality?
As I noted I have "Rom Manager Premium" I don't think it's related anyway.
Just found the answer to this (as I too was having this problem). See the link below:
http://androidforums.com/899973-post26.html
It has to do with busybox not installed in the correct place.
One more thing: Make sure that busbox is set to "755" so that it can execute.
Thanks
sw99 said:
Just found the answer to this (as I too was having this problem). See the link below:
http://androidforums.com/899973-post26.html
It has to do with busybox not installed in the correct place.
One more thing: Make sure that busbox is set to "755" so that it can execute.
Click to expand...
Click to collapse
Thanks for the link to the fix!
I am unable to get the busybox file to copy from the /data.... directory into the /system/bin/ directory. Any ideas?
jtoole1 said:
I am unable to get the busybox file to copy from the /data.... directory into the /system/bin/ directory. Any ideas?
Click to expand...
Click to collapse
did you mount the system partition prior to trying this?
I'm also having an issue moving the file using root explorer. Any other ideas?
the_grobe said:
I'm also having an issue moving the file using root explorer. Any other ideas?
Click to expand...
Click to collapse
Yeah, same here. My problem is that I've never used Root Explorer before. At the top it says mounted as r/w (in the /system/bin directory) , but it won't copy the file using the Root Explorer program. When I click [Paste] it doesn't give me an error, but when I go and check the directory, the file is not there. I even tried refresh. Any ideas?
UPDATE: I have not solved the problem yet, but I did notice that the /system/bin directory that I am trying to copy to says "0K bytes available," which is probably why it won't copy. So I guess my (no copy) problem is due to my lack of understanding of the file structure of the DI.
UPDATE: I finally got it working. Here is what I did.
1. Boot phone into recovery
2. Push busybox from /sdk/tools folder to sdcard
Code:
adb push busybox /sdcard/busybox
adb shell
3. Installed busybox to /system/xbin
Code:
$ su
#export PATH=$PATH:/system/bin
#cd /system/xbin
# cat /sdcard/busybox > busybox
# chmod 06755 busybox
# busybox --install -s /system/xbin
# rm /sdcard/busybox
# exit
$ exit
4. Booted up phone, and ROM manager fixed permissions as per request.
Hope that helps.
Thanks. I appreciate your feedback. But it looks like I wasted my money again on a useless program like "Root Explorer." I was hoping that I wouldn't have to do all of that command line crap anymore after having rooted.
Does anyone know if there is a file manager out there that will push/pull files via cut/paste rather than using a seperate computer with a command line interface?
I don't think that there is going to be a program like that until we've got full NAND unlock.
the_grobe said:
I don't think that there is going to be a program like that until we've got full NAND unlock.
Click to expand...
Click to collapse
Is someone working on that? I believe the facts are, that the Unrevoked team knows how to do it...but they won't give us the means to do it. Probably because they think we'll shoot ourselves in the foot...and blame them...and they're probably right!
I can not do the cat command it tels me Cant create busybox, read only file system.
Any ideas????????????????
when i was modding widget locker i was using linda file manager free to cut and paste out of the system folder im gonna try it right now to fix this problem ill let u know if it works

[Q] how to edit GPS.conf in system folder ?

I would like to set my phone to europe.pool.ntp.org becouse it's default northamerica.pool.ntp.org
How can I edit this file ? When I try to type adb shell to terminal it gives me an error message.
Thanks
Not development related moved to General
At first U must root R phone and then install Root Explorer. After that go to SYSTEM/ETC/
Here u need to edit GPS.CONF file and change NTP Server from northamerica.pool.ntp.org to europe.pool.ntp.org.
I hope that I help U m8.
Get write acces in system folder
I used the post I've quoted down here. After you have gained write acces in the system folder you can edit gps.conf!
octy said:
By default the /system is mounted in read-only mode.
With 'root' access you can change this.
First 'root' your phone with tutorial 'slumpolo' has provided at
the begining of this thread.
Then open a shell on your phone with adb
Code:
adb shell
Grant 'root' access with 'su' command and have a look of memory partitions
Code:
su
mount
In 'mount' command output, identify the partition on which /system was mounted.
In my phone it was '/dev/block/stl6'
Finally you can remount it to get read-write permissions on it.
But before be sure to be outside /system in the shell (by typing 'cd /' for example).
Code:
mount -o remount,rw /dev/block/stl6 /system
Do the modification you want..... BECAREFUL of want you do, you can damage your phone.
Set read-only mode again
Code:
mount -o remount,ro /dev/block/stl6 /system
Sorry I cannot made any snapshot for the moment, I can't use my phone.
Hope it can help you.
Click to expand...
Click to collapse
By the way, for Slovakia I think you can better change to sk.pool.ntp.org
Complete list of European NTP servers:
http://www.pool.ntp.org/zone/europe
Other area's:
http://support.ntp.org/bin/view/Servers/NTPPoolServers
LeoApollo said:
By the way, for Slovakia I think you can better change to sk.pool.ntp.org
Complete list of European NTP servers:
http://www.pool.ntp.org/zone/europe
Other area's:
http://support.ntp.org/bin/view/Servers/NTPPoolServers
Click to expand...
Click to collapse
I see, probably I can use also CZ, HU, AT, DE or SK or EU .. I've red that the best is with more sites.
"After you have gained write acces " How can I gain write access ? I have rooted - but Adb shell doesn't work, did I missed something ? Thaks
nastyba said:
"After you have gained write acces " How can I gain write access ? I have rooted - but Adb shell doesn't work, did I missed something ? Thaks
Click to expand...
Click to collapse
i think yes adb is for the PC. it is part of the android sdk tools.
i did that on my desire (it should be same) but i have problem i edit and save file and now i cant see it
i can see that backup file but how do i restore it?
i tried create new file it wont work i cant see it (it says file created sucessfuly)
aantdesign said:
At first U must root R phone and then install Root Explorer. After that go to SYSTEM/ETC/
Here u need to edit GPS.CONF file and change NTP Server from northamerica.pool.ntp.org to europe.pool.ntp.org.
I hope that I help U m8.
Click to expand...
Click to collapse
U can use adb on Win or linux or qtadb.
Give these commands on adb shell..
su
mount -o remount,rw /dev/block/stl6 /system
exit
exit
adb pull /system/etc/gps.conf
Edit the gps.conf the way u like.
Then mount again in rw mode.
adb push gps.conf /system/etc/gps.conf
adb reboot
Done.
moved
new post @sgs2
nastyba said:
I would like to set my phone to europe.pool.ntp.org becouse it's default northamerica.pool.ntp.org
How can I edit this file ? When I try to type adb shell to terminal it gives me an error message.
Thanks
Not development related moved to General
Click to expand...
Click to collapse
U can use the apo "FasterFix" from market.
arunmcops said:
U can use the apo "FasterFix" from market.
Click to expand...
Click to collapse
Thanks for the tip much easier to change with this application done in seconds

Deodexing I9001

The guide for deodexing SGSII (http://forum.xda-developers.com/showthread.php?t=1113937) works also for SGS+ (rooted of course).
I used xUltimate version v.2.3.1 for successful deodexing of rooted I9001XXKP4 ROM.
Hello
I only know deodexing merge *.apk and *.odex files.. What will i get if i deodex my rom ? Run faster ?
XER0123 said:
Hello
I only know deodexing merge *.apk and *.odex files.. What will i get if i deodex my rom ? Run faster ?
Click to expand...
Click to collapse
Deodexing actually makes the ROM a bit slower (at least on the first boot). The main advantage is that it makes customization (themes, icons etc.) easier.
The UOT Kitchen claims to support also odexed stock ROMs (and now also TouchWiz ROMs), has anyone tried it with SGS+? (worked fine with my deoxeded ROM).
Maigel said:
Deodexing actually makes the ROM a bit slower (at least on the first boot). The main advantage is that it makes customization (themes, icons etc.) easier.
The UOT Kitchen claims to support also odexed stock ROMs (and now also TouchWiz ROMs), has anyone tried it with SGS+? (worked fine with my deoxeded ROM).
Click to expand...
Click to collapse
I tried with my odexed rom and it works.
I'm stuck on
* Checking Phone ROM Build.... *
* Waiting for Phone... *
I have Android SDK and JDK installed. Ideas?
Thanks
karo_96 said:
I'm stuck on
* Checking Phone ROM Build.... *
* Waiting for Phone... *
I have Android SDK and JDK installed. Ideas?
Thanks
Click to expand...
Click to collapse
Oh, I forgot to enable USB Debugging. Now all is okey, but I can't copy folders to internal sd
Thanks in advance
karo_96 said:
Oh, I forgot to enable USB Debugging. Now all is okey, but I can't copy folders to internal sd
Thanks in advance
Click to expand...
Click to collapse
The phone is connected to PC in mass storage mode? You should see (at least in Windows) internal SD mounted as normal removable disk and then you can just copy & paste those folders from your PC.
If you're satisfied with UOT Kitchen possibilities and have no plans for other customization then you don't gain much by deodexing.
Okey, thanks, but when I write "adb shell" in cmd it returns
'adb' is not recognized as an internal or external command,
operable program or batch file.
karo_96 said:
Okey, thanks, but when I write "adb shell" in cmd it returns
'adb' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
Locate your adb.exe (you did install Android SDK didn't you) and add it to your PATH (or execute <install dir>\abd.exe).
Maigel said:
Locate your adb.exe (you did install Android SDK didn't you) and add it to your PATH (or execute <install dir>\abd.exe).
Click to expand...
Click to collapse
Oh, Thanks, this step is now ok, but still not working :S
When I write cp /sdcard/done_app/* /system/app/ in cmd, it returns "Permision Denied"
is the UOT kitchen working on galaxy i9001?
awesome, i'm going to check it out now!
karo_96 said:
Oh, Thanks, this step is now ok, but still not working :S
When I write cp /sdcard/done_app/* /system/app/ in cmd, it returns "Permision Denied"
Click to expand...
Click to collapse
You need to execute these commands first as adviced:
su
stop
mount -o remount rw /system
Maigel said:
You need to execute these commands first as adviced:
su
stop
mount -o remount rw /system
Click to expand...
Click to collapse
Yes, but look the screenshot: http://img851.imageshack.us/img851/9163/screenshotpgd.png
karo_96 said:
Yes, but look the screenshot: http://img851.imageshack.us/img851/9163/screenshotpgd.png
Click to expand...
Click to collapse
Can someone help me?
karo_96 said:
Can someone help me?
Click to expand...
Click to collapse
When you enter the 'su' command first time via adb shell, you have to check the phone screen - the Superuser app is requesting permission for the command (and you'll have to grant it of course to continue).
i tried to deodex my device
but somehow i stuck on the last step
Code:
adb shell
$ su
# stop
# mount -o remount rw /system
# rm /system/app/*.odex
# rm /system/framework/*.odex
# cp /sdcard/done_app/* /system/app/
# cp /sdcard/done_frame/* /system/framework/
# mount -o remount ro /system
# reboot
when i try to enter " cp /sdcard/done_app/* /system/app/ "
a message shows up: cp: not found
well after that my phone starts into a bootloop
any suggestions how to solve this cp: not found ??
Blumdum said:
when i try to enter " cp /sdcard/done_app/* /system/app/ "
a message shows up: cp: not found
well after that my phone starts into a bootloop
any suggestions how to solve this cp: not found ??
Click to expand...
Click to collapse
Install Busybox first (Busybox installer can be found from Market)?
i had busybox on my phone as far as i know
Blumdum said:
i had busybox on my phone as far as i know
Click to expand...
Click to collapse
Maybe you have installed it in a way that no symbolic links to commands have not been created? Does "/system/xbin/busybox cp" work?
i installed it like 10 min ago
and this " /system/xbin/busybox cp " works
tomorrow i try it again to deodex my device
edit:
thanks not it worked

[Q] Cant't find SystemUI.apk

So I wanted to install APK-Multi Tool to my PC. But in order to set it up it is required to have a"framework-res.apk" and a "SystemUI.apk", am I right?(Ι am not sure if I forget anything) But where to find them? Do they mean that I have to use these that I got in my phone? OK lets say yes... I have found the framework-res.apk which is located in my system/framework. But I really dont know what is going on... I cant find the systemUI.apk in system/app !
Any help is appreciated! Thanks!
Additional Device Info:
Phone Model:LG-E986 G Optimus Pro
Android Version: 4.1.2
Kernel Version: 3.4.0
Root: Yes
ROM: Stock
Recovery: Yes
The Proof: Here
You can install titanium backup and search for SystemUI.apk and make a backup of it !!!
Sent from my GT-S5360 Using tapatalk 2
PreSS ThanKs If i HelPeD YoU ?!?
D-J Mutant said:
So I wanted to install APK-Multi Tool to my PC. But in order to set it up it is requered to have a"framework-res.apk" and a "SystemUI.apk", am I right?(Ι am not sure if I forget anything) But where to find them? Do they mean that I have to use these that I got in my phone? OK lets say yes... I have found the framework-res.apk which is located in my system/framework. But I really dont know what is going on... I cant find the systemUI.apk in system/app !
Any help is appreciated! Thanks!
Click to expand...
Click to collapse
What version of android do you have?
androidrocks23 said:
You can install titanium backup and search for SystemUI.apk and make a backup of it !!!
Sent from my GT-S5360 Using tapatalk 2
PreSS ThanKs If i HelPeD YoU ?!?
Click to expand...
Click to collapse
No results?? --> http://imgur.com/jZ87lHA,KRlB4QY#0
Lgrootnoob said:
What version of android do you have?
Click to expand...
Click to collapse
I wrote some additional info for the device.
D-J Mutant said:
I wrote some additional info for the device.
Click to expand...
Click to collapse
Anomaly.
Ive had some hidden apks too but i've always been able to back them up.
huh? confused4life.
All i can say is try this:
Code:
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
post the datalist.txt and syslist.txt files here as attachments.
Lgrootnoob said:
Anomaly.
Ive had some hidden apks too but i've always been able to back them up.
huh? confused4life.
All i can say is try this:
Code:
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
post the datalist.txt and syslist.txt files here as attachments.
Click to expand...
Click to collapse
Confused? Lol! What do you have to say about this?
D-J Mutant said:
Confused? Lol! What do you have to say about this?
Click to expand...
Click to collapse
lol
You need to have a root shell first.
Try this in the terminal:
Code:
su
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
Lgrootnoob said:
lol
You need to have a root shell first.
Try this in the terminal:
Code:
su
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
Click to expand...
Click to collapse
Oh... Where can I find one? For the above commands I used Terminal Emulator which has Superuser permissions.
D-J Mutant said:
Oh... Where can I find one? For the above commands I used Terminal Emulator which has Superuser permissions.
Click to expand...
Click to collapse
You have type su then the console will go from $ to # meaning you have root perms.
In the picture you provided you definitely have a user shell as denoted by the $ prompt.
If you are unsure you can always type whoami and if that returns "uid 0" then you have root permissions on the current shell.
Just because the terminal emulator has the ability to become the superuser doesn't mean you are always the superuser when you run the app.
The app has to request su permissions so you have to use the su command.
I had updated the code I wanted you to type into the emulator that you were using.
Please use the new code:
Code:
su
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
Please run this code then upload the datalist.txt and syslist.txt files from the sdcard here as attachments.
Ohh yes you are right..I forgot it.I have so much time to use the terminal
Here you go :
~~~The attached files have been deleted.~~~

Categories

Resources