[Q] No Trim in in Sony's 4.3 releases? - Xperia SP General

Hi all,
I upgraded to .201 about a week ago - it lags a bit on opening apps already, so I thought I'd check and see what fstrim was doing.
Looking at the phone log with adb logcat -d | grip -i fstrim I see nothing. It's supposed to run once a day, so I would expect to see some entries. I'm thinking that Sony have left fstrim out of their firmware.
I see some 3rd party apps that implement fstrim, but they require root, and I'm not entirely comfortable allowing something I've downloaded off Play move around system files.

Related

[SOLVED] Not all apps showing in Market on 1.6 roms

The problem: After installing AOSP 1.6, I noticed protected apps weren't showing in Market, including some I had bought in 1.5. I restored my 1.5 backup and found the same thing. Instructions on this thread (http://forum.xda-developers.com/showthread.php?t=605028) were able to get my apps back in 1.5, but upon reflashing 1.6 I was back to square one.
Update:
----------
I started fresh to test things out, trying both AOSP 1.6 and gbhil's modded AOSP 1.6. I wiped, then flashed and booted, then flashed gbits and booted, then setup my google creds, then rebooted and flashed superuser, then installed busybox then rebooted.
That's my baseline. From that point, I observed:
- Market showed a limited amount of apps. One time My Downloads had all my apps, but upon trying to install one I got a "Download unsuccessful" error. I'm assuming when the download was initiated my fingerprint was sent out, and then Market filtered My Downloads to reflect that unofficial fingerprint. Meaning, most apps were missing again.
- I updated build.prop with the fingerprint from stock 1.5 (see below for instructions). I downloaded a random app (Twidroid Free) so it'd send out my "new" fingerprint, and thus remove the filter limiting my apps. Soon after all apps were appearing again. Be patient here, sometimes it doesn't update instantly. One gave a download error, but trying to install it again solved it.
- Just to test, I edited my build.prop back to whatever was default with the 1.6 rom I was using, then rebooted. My Downloads still showed everything, but as soon as I installed any random app, that unofficial fingerprint was sent out and my apps were limited again.
I don't know enough about Market to know the repercussions of what I did - does it think I have 1.5, so will it be showing me only 1.5 compatible apps? Either way, I'd rather have access to all 1.5 apps than only some 1.6 apps. And aren't most (not all, but most) 1.5 apps backwards compatible with 1.6 anyway? So the only real downside is 1.6+ apps will be hidden. If someone has the fingerprint for an "official" 1.6 device, they could change their fingerprint to that and conceivably have the best of both worlds (protected apps AND 1.6+ apps).
How To Change Your Build Fingerprint:
--------------------------------------------
1. Connect your phone.
2. Pull /system/build.prop | For Mac users: ./adb pull /system/build.prop ./
3. Using your favorite editor, find the line that starts with ro.build.fingerprint and put a # in front of it.
4. On a new line, put: ro.build.fingerprint=sprint/htc_heroc/heroc/heroc:1.5/CUPCAKE/85027:user/release-keys
5. Save the file.
6. Remount the filesystem as read/write | For Mac users: ./adb remount
7. Log into the phone | For Mac users: ./adb shell
8. Exit the shell by typing: exit
9. Now push the file back. | For Mac users: ./adb push ./build.prop /system/build.prop
10. Reboot | For Mac users: ./adb reboot
11. Go to Market, and install something to send out the new fingerprint.
12. Within a few minutes you should see all apps. If not, try rebooting. If still not, try clearing Market's cache (Settings->Applications->Market->Clear Cache)
--------------------------------------------
Hope this helps someone.
-TM
This affects the MoDaCo rom I installed, and the AOSP 1.6 rom I was playing around with. Things like WeatherBug Elite, and tons of other stuff are hidden from the Market. In the case of MoDaCo, which I installed overtop my existing 1.5 stock (after backing up of course) the apps ran fine since they were grandfathered in from the stock rom, but still weren't listed in the marketplace. I'd really appreciate any help, as these speedy roms are useless if I can't run any of my apps on them.
search is king
this should help you
Link here
This reply isn't valid anymore and may be deleted.
Can you please post the code for this. I'm having a hard time getting this to work. Thanks
dathryl said:
Can you please post the code for this. I'm having a hard time getting this to work. Thanks
Click to expand...
Click to collapse
Code for what? What problems are you having?
Newbie question, how do you "pull" the file. I'm on shell but don't know what to input in order to edit the file.
PRGUY85 said:
Newbie question, how do you "pull" the file. I'm on shell but don't know what to input in order to edit the file.
Click to expand...
Click to collapse
You need to have ADB installed (which you do if you've rooted your phone, as ADB is required to do so). So you'd need to go into a command prompt (Windows) or Terminal (Mac), navigate to your adb/tools directory (that has adb.exe in it) and type "adb pull fileonyourphone fileonyourcomputer". Obviously replace fileonyourcomputer with the actual paths and filenames of what you're pushing/pulling. When you push the file back to the Hero, you swap the syntax, so it'd be "adb push fileonyourcomputer fileonyourphone".
OK, sorry again for noobness...
He says adb remount as read write, how do I do that?
He says log in to the phone...how do I do that on the shell?
So just to be sure, this fix will allow me to download the apps that I just can't find on the market that my friends with stock Heros can, right?
Someone recommended a new twitter client (twicca) but I couldn't open it on the market and I'm assuming it's because I'm running AOSP 1.6.
Thanks.
I just did this, and it seemed to work, but when Weatherbug Elite was downloading the phone went into the "Android" boot screen and just looped it over and over. After a battery pull it still won't boot up, and it keeps getting stuck at the boot screen. Is there anyway to fix this?
sure is nice to have sufbs back.
thanks for this.
Thanks, worked like a charm.

Is your PvZ (game) crashing at the menu? Fix here!

If your copy of Plants vs Zombies is crashing at the main menu (where you can set player names, click 'Adventure', etc..) when you choose to start a game, I've discovered the fix.
Open up a file manager app and browse to /system/app. I'm almost willing to bet that you will NOT find "SisoDrmProvider.apk".
PvZ needs this file installed to play properly, and it was either removed in a custom ROM you're running, or by you at some point in the past.
Unfortunately, it cannot be installed like a normal APK.
To re-install it, you need root access on your phone.
Download the file from this post to your PC, put it somewhere you can find it, and do this:
1) Connect your phone (with ADB Debugging enabled) to your PC.
2) Open a command prompt window.
3) Type these commands, one line at a time, to unlock the directory we'll be needing to write to:
Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit
Yes, the second 'exit' is intentional. After the 'su' command, you may get a popup on your phone asking to grant su root access. Allow it.
Then, type this command in:
Code:
adb push C:\SisoDrmProvider.apk /system/app
Replace the "C:\" with wherever you downloaded the file to. You should get a message about some number of bytes pushed (around 18k) in some fraction of a second.
And one final set of commands to re-lock the area of the phone we were writing to. This is important, don't skip it:
Code:
adb shell
su
mount -o remount,ro /dev/block/stl9 /system
exit
exit
This should leave you back the Windows command prompt. Type exit one more time and it should close.
Reboot your phone and PvZ should now work properly!
Nice find. Plant Vs Zombie didn't work for me period. It would crash whenever I clicked on the app no matter what I did. I ended up just wiping my phone and putting bonsai and well, it works flawlessly.
Never knew people had problems with PvZ o_o. It's worked for me since the day I got it.
Yep, some ROMs removed DRM content from running in the background because it caused noticable battery drain. It's recommended to freeze them with an app such as TI and then when you want to use a game that requires it, unfreeze the app.
Overstew said:
Yep, some ROMs removed DRM content from running in the background because it caused noticable battery drain. It's recommended to freeze them with an app such as TI and then when you want to use a game that requires it, unfreeze the app.
Click to expand...
Click to collapse
I can understand that, but for me, doing that every time I want to play a certain game would annoy me greatly. Also, if this file has been removed, it can cause various music players to lock up on certain files.
Overstew said:
Yep, some ROMs removed DRM content from running in the background because it caused noticable battery drain. It's recommended to freeze them with an app such as TI and then when you want to use a game that requires it, unfreeze the app.
Click to expand...
Click to collapse
Or you can just kill the service. It won't run again unless you turn on your service after having no 3G or being in Airplane mode.
Works the same either way. Saves my battery life a LOT.
|| Acer || said:
Never knew people had problems with PvZ o_o. It's worked for me since the day I got it.
Click to expand...
Click to collapse
Not for me, lol. I removed the file I talked about in the OP and PvZ ceased to run properly. After spending a while troubleshooting it, I found the fix, so I'm sharing it here.
thanks for this! i really didnt want to start the game over but whats strange is it was working before and i had the drm frozen so not sure why the game froze when i got to level 4-9? (i think), anyhow defrosted the drm, restarted and game works again!
Hi. I know this forum is not for it, but I have the same problem with my Xperia Neo V MT11i .431 ICS 4.0.4, it crashes on startup screen, right after the popcap logo, the EA logo doesn't have the chance to appear. Last time it happened I fixed it by updating it from 2.5.x to 2.6.1 but now there's no updates for it, so after seein this post I was wondering whether or not this fix would work for me.
Please say yes
Thanks anyway!
Alexei.Robles said:
Hi. I know this forum is not for it, but I have the same problem with my Xperia Neo V MT11i .431 ICS 4.0.4, it crashes on startup screen, right after the popcap logo, the EA logo doesn't have the chance to appear. Last time it happened I fixed it by updating it from 2.5.x to 2.6.1 but now there's no updates for it, so after seein this post I was wondering whether or not this fix would work for me.
Please say yes
Thanks anyway!
Click to expand...
Click to collapse
I have no idea if it will or will not work for your specific phone. I only that it works on a 1st generation (circa 2010) Sprint/Samsung Epic 4G.

[Q] CM 10.1 performances issues with Nexus 7

Alright, I'm just completely perplexed about this issue.
I have a Nexus 7 16GB (the crappy one with bad storage issues yes).
Device is rooted and I'm running CM10.
Now the device will run perfectly smooth right after I flash a new CM update or right after the device is formatted and programmed reinstalled.
Over time things slowly start slowing down.
At some point the device is sooo slow that I just want to throw is again the wall. Nothing has changed from the time that the rom was flashed, just regular day to day use (no app installed, no files created besides temp stuff).
I've tried clearing the caches, rebooting, running all kinds of utilities, killing running apps and so on, nothing seems to be cutting it and making the device run as smoothly as when it was first flashed.
So the question is why is this happening and what could be causing these types of issues.
I don't have a problem with constantly upgrading but it's getting old.
Try flashing a different kernel. I highly recommend M-Kernel. And if that doesn't work just try a completely different rom like Paranoid Android or AOKP.
Will give a shot. I was running motley a while back with good results. Ill check other ROMs too, just figures cm would be the most stable.
You can try running the fstrim command (this works as long as you have kept the busybox that came with cyanogenmod).
Open terminal emulator and type:
su
fstrim -v /cache
fstrim -v /system
fstrim -v /data
reboot
This might all just be placebo so I also recommend flashing metallice's M-kernel. Remember to set CPU to 1300 max at boot to preserve battery life and not overclock (you can do this in the power menu).
I'll give it a shot... Definitely not placebo, the perf differences do get to be pretty significant unfortunately.
Still running smooth on rc3 so I'll give it a few more days.
The fstrim stuff works fine on my N7 (8GB, bought in September). But after a few days it's lagging again. That's why I let Tasker run fstrim daily
Sent from my Nexus 4 using Tapatalk 2

[SHARE/MOD] LRX21Z 5.0.1 OTA memory/kernel/3g mods

I AM IN NO WAY TAKING CREDIT FOR THE WORK DONE BY zeppelinrox.
Anyways, I've noticed a few things a bit off about the newest OTA which was released to us loving Moto G owners. A good bit of us have snatched up the update and I believe this post may have great improvement over the already snappy Lollipop update.
Note: Do this at your own risk!!!
A few quick requirements!!!
ROOT! obviously...
Titanium Backup or any other system app uninstalling application
SManager
Busybox installer
Your choice of scripts downloaded from the [V6U9RC13]For Your Lag(4x) Do it good, Good, GOOD, GOOD! SuperCharge Your Launchaaah! thread by zeppelinrox.
STEPS!
Using Titanium Backup (or equivalent), uninstall ALL system installed apps you're NEVER going to use. This is necessary in order to free up space on the /system partition as there is no free space after a clean OTA.
Install Busybox as the fresh OTA does not come with it.
Head over to [V6U9RC13]For Your Lag(4x) Do it good, Good, GOOD, GOOD! SuperCharge Your Launchaaah!
Maybe read the entire OP if you want. It's quite educating. Then download the latest V6 SuperCharger which is found at the 'For Your Lag' Link next to the Latest V6 SuperChargers. Also, if you want, you can install KAK and 3G TC at the given links in the OP. I haven't ran into any problems, it's just all at your own risk.
If you use all three MODs I'm sharing in this post, you should run them in this order: 3G TC, then V6 SuperCharger, and finally KAK. They don't necessarily have to be in that exact order, it's just how I did it and had no issues.
In SManager, you MUST have 'browse as root' selected and when selecting the scripts the 'run as root' option has to be selected, otherwise the scripts WILL fail.
Run each script and follow the on-screen prompts and choose your desired settings.
Here's a little explanation as to WHAT is being applied with these scripts. 3G TC adds values to the TOP of your build.prop file which tweak 3G settings to your liking (in the 3G TC script.) Also, there is a Wi-Fi fix option in case your Wi-Fi doesn't work. It fixed my Wi-Fi. The V6 SuperCharger is the meat and potatoes of this modification. After selecting all of your "driver options" you'll run through a few automated lists in the script to select settings based on your liking. NOTE: WHEEL ALIGNMENT AND DETAILING OPTIONS DO NOT WORK AS LOLLIPOP HAS 'PIE' ENABLED WHICH BLOCKS ZIPALIGNING, SQLITE DBS VACUUMING, AND FIX PERMISSIONS. What I run is BulletProofing apps every 14 seconds, and Engine Flush every .25 hrs (15 mins.) BulletProofing apps runs a script which is locked in memory at boot and runs at your selected time (30 seconds is default.) This process reads your current running apps and changes their OOM priority to -17 essentially making them un-killable (bulletproof.) This is nice, as I have had issues where an app will link to YouTube being open or whatnot and then I click back to the previous app and it has to re-draw into memory essentially losing my place (like refreshing your Facebook timeline or Twitter feed, etc upon return) This script helps stop that from happening essentially putting all foreground apps into a bulletproof state. Which stays up to date with what time frame you put, as for me every 14 seconds. This helps a ton with multi-tasking issues that we Moto G users have been plagued with! The engine flush also is locked in memory at boot and runs at your selected time (I chose .25 hrs which is 15 minutes.) This process will flush your RAM at your given time intervals essentially preventing normal phone re-starts because your cache gets dumped keeping your phone snappy. Also, it WILL NOT run when the screen is on so your multi-tasking apps will stay open while being ran. If you are worried about apps closing after turning your screen off and want to keep your multi-tasking ability just increase the time interval at which the Engine Flush occurs. I believe the max value is 24 hours. Last but not least is KAK. The Kick Ass Kernelizer tweaks built in android values and well, the script explains it well enough. It warns about boot-loops happening with I/O tweaks, but I haven't ran into any issues. Like said earlier DO IT AT YOUR OWN RISK!!!
How to ensure everything runs as explained!!!
V6 SuperCharger script will tell you we have no init.d support which is fine. Just navigate to /data/V6_SuperCharger
click "!FastEngineFlush.sh" Select "Su" and "Boot" options then click 'Save'
Then navigate to /data. From there, do the same settings as the above script to "97BulletProof_Apps.sh", "98KickAssKernel.sh", and "99SuperCharger.sh"
Open the "V6_SuperCharger_for_Android..." script again and let it do it's initial run in. Then select the superclean and restart option.
Upon your phone booting up, you should see an upgrading apps popup, boot time WILL take a while, so go eat a snack to celebrate your fantastic mod work
To ensure ALL apps ran at boot or are running navigate to /data and open "Ran_BulletProof_Apps.log", "Ran_EngineFlush-O-Matic.log", "Ran_KickAssKernel.log", and "Ran_SuperCharger.log"
They all should exist since they ran at boot, heh. Opening them as text will show you the most recent time they all ran!
Enjoy your SuperCharged Lollipop!!
Issues:
Permission may be denied for adj values in the /sys folder. The path will be returned in the V6 SuperCharger script. Follow to the path and ensure user have read/write/execute permissions. This will ensure memory adj values stick at boot.

Fossil gen5 trying de-bloat

Hi to everyone, i'm new with adb and all this things, but not new on modding my phone throw custom recovery.
I have a fossil gen5, and I was trying to install ticwatch apps throw adb by pushing the apk in the storage of my watch and then install them. Some apps i installed them, like ticsleep and ticpulse, but tichealt was showing like i have it already on my watch, so I googled and find that i had to de-bloat my watch because of this ****ty apps. So i was trying some guide, but all of the guides was showing that i had to use "pm uninstall --user 0 com.mobvoi.wear.health.aw" all fine, if it goes well, but it doesn't, my error is "Failure not installed for 0". So i pm the enabled and disabled packages, and they don't figured out in this list, but usign "adb -s 192.168.1.24:5555 shell pm list packages -u" they shows up... My guess is, what can I do? I really want to remove this apps from my watch!
I tried to do the same, but noticed that article is a couple years old, and all the apps he warns against are not in the newest version of the Gen 5 (I have a Carlyle HR a few days old now).
So it seems they already debloated possibly to improve battery life in the long run.
I mainly did the steps to turn off things like tilt to wake etc etc.
Long story short, that guide you're referring to is outdated and no longer relevant because you'll notice none of those apps are present on the installed package list.
Ps the way I did it, since the watch can connect to wifi and have wireless debugging, I just connected adb direct to the watch rather than going thru the phone.

Categories

Resources