yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] parknook:
persistence (with a modicum of technical ability).

Ever since I received my SGS 2 I've been plagued with "poor" battery performance - The stock ROM that came with it wouldn't stay charged longer than 12 hours when I was doing nothing with it and barely 6 hrs when I used it. I quickly discovered that Samsung had released a newer version via KIES, updated it and it improved it, not life changing but just enough to see me through the working day.

I was also disillusioned with the stock ROM that came with the phone - too much "bloatware" that I'd never use. Found this forum and started by rooting the phone, then using CWM and Titanium Backup to make full backups before moving on to loading custom roms. Tried the 3 that seemed most popular and stable - VillainROM, LightningROM and DarkyROM.

Much preferred Lightning ROM but after I'd installed it found that battery life was abysmal to the extent that I could have the phone plugged in and charging via USB and the battery would continue to go DOWN!

After restoring back to a CWM backup I did more research and found an app that would let me know what was killing the battery (see link at end). I re-installed the Lightning ROM and found that a security application called Privacy Guard (not LBE Privacy Guard) was chewing the battery up. This now made sense as this particular app had stopped working as it should after upgrading to Lightning ROM.

Un-installing this app made a massive difference to the battery life.

During this period I did have Juice Defender installed and since rooting the phone SetCPU. I had also encountered the "issue" with SetCPU appearing to cause reboots, closedowns and had turned off the functionality. But I was trying to use setCPU under the stock ROMS not a custom rom.

Since fixing the Privacy Guard issue and performing a clean install of Lightning ROM I now have a phone which lost only 3% battery last night (almost 8 1/2 hours).

I now have Juice Defender Ultimate, SetCPU configured to on-demand between 200Mhz and 1Ghz (I raise manually when I play games needing 1.4 or 1.6Ghz), Timeriffic to turn stuff off when I don't need it.

I have also put time into either removing or freezing (using TB) apps that I won't need.

Yes when I use the phone the battery goes down but it's a powerful phone and I treat it the same as a laptop running on batteries - The more I use it the less the battery lasts, get use to it people!

*link to app showing battery stats

http://xdaforums.com/showthread.php?t=1179809
[Galaxy S II General] jj03:
i'm on stock kf3. rooted and removed bloatware (hubs, software update, maps etc). Battery life is good.

sent from my galaxy S2.
[Galaxy S II General] supertazzta:
does juice defender really work??
[Galaxy S II General] Testraindrop:
If you use it correctly and know what it is doing = yes.
[Galaxy S II General] GIR:
A solid tip is to never ever ever ever ever ever ever use any of the bloatware provided by Samsung. Don't even start it once because some stay active even if you don't use them. They drain the life out your battery and there are enough good alternatives.

I would love to hear about your settings.
[Galaxy S II General] Gustopher:
It's an old one and oft repeated, but for anyone fresh to the 4378 (and counting) battery life threads, get out of Google Latitude and stay out - kills the battery
[Galaxy S II General] JAG131990:
I'm wondering if you use your phone frequently all day and JD constantly renegotiating connections is it better to not use it at all
[Galaxy S II General] Testraindrop:
If you are using yout phone really frequently (data) then JD is useless, but for me it really good.

I have bad signal at work, so I have JD set to sync every hour, preferred wifi and automatic night mode when i'm asleep.

Data on when screen on and everything is fine (for me).
[Galaxy S II General] spiros83:
Is there a safe way to delete bloatware apps? I mean what if I delete something that messes up the phone? Do I need to reinstall the Rom?
[Galaxy S II General] ithehappy:
It works or not is a different matter, IMO it is not needed, nothing is needed actually. Just install JD and you will see it under Wakelocks in Better Battery Stats. So it drains more than saving it.

http://xdaforums.com/showthread.php?t=1069924&highlight=Safe+to+remove

Regards.
[Galaxy S II General] spiros83:
Thanks a lot!
[Galaxy S II General] LuffyPSP:
For working and busy people, i think you guys can get better battery life than me. As a student in a holiday(nothing to do except playing ps3 and running errands), I most of the time will unlock the sgs2 whenever i glanced or watched it. moving the icons around, changing launchers, putting widgets, etc... i took so many times using sgs2 everyday and it can last about 6-7 hours with almost all the time screen on except when i sleep.

for me, 10 hours is already ok. get used to it guys. buy a spare battery, or an external charger. no need to worries at all. you dont want to be a freak for battery life. constantly checking the battery and whats draining them. its not cool~~ use it to the fullest! until the manufacturers make a phone with large battery capacity! i mean officially. those 3rd party large battery are just a show off. they drain as much as the stock ones.
[Galaxy S II General] Lordrdx666:
Can I just delete it from my system apps folder and be done with it? Cuz I don't use it!
[Galaxy S II General] Gustopher:
Not sure - it may have dependencies with other more useful tools such as Maps. Just make sure you are logged out and keep clear of it - it's reasonably well behaved if left alone.
[Galaxy S II General] tfn:
I have always used Stock not rooted yet and get around 13-19 hours, I don't use the samsung hubs, but have facebook, twitter, google + and three emails constantly running and use wifi browsing a lot

so am quiet happy as it is hence no need to root although I like flashing the new firmwares via ODIN :D
[Galaxy S II General] raxio:
Just a brainwave??

With Titanium Backup you can freeze your unwanted apps. When the phone is working without problems you can safely remove the frozen apps (after making a backup of course)
[Galaxy S II General] Lordrdx666:
Will think about freezing latitude though I don't use it
[Galaxy S II General] djnas786:
I noticed that if you have alot of widgets running you will ruin your battery life. I dont use many and got amazing battery life out of the Stock Rom.

I am now using cognition rom and easily have the battery last all day still....
[Galaxy S II General] Crucio_:
Cognition - Imo best samsung based rom on the s2, super stable with battery life on first flash lasting 18hrs+. If you havent tried it id suggest you did.
[Galaxy S II General] Medved77:
36-38 Hours Battery Life!

I moved over from the HD2 a month ago. One of the things that astonishes me about the S2 is the battery life.

36-38 hours is the norm for me.

This is with:

- VillainRom

- Push Email (heavy use ~ 100 per day)

- No Lattitude

- No Wifi (HSDPA sufficient)

- No Bluetooth

I don't spend a lot of time making calls but being relatively new I am constantly fidgeting with it.
[Galaxy S II General] Declan79:
I tried to off the phone while full charging usually around 20%. Unrooted and daily plume,contract killer,gmail,yahoo,ebay,xda,market its still good around 17h

sent from my 2.3.3|dxjpe DJGTabs7
[Galaxy S II Q&A, Help & Troubleshooting] ck_looi:
Can you guys please let me know which custom ROM has the japanese in the language setting?
[Galaxy S II Q&A, Help & Troubleshooting] evildave_666:
CM and AOSP-based roms should have it in general.

I wouldn't expect any Samsung-derived custom roms to, as OMXXX (CSC DCM) is the only Samsung rom that includes japanese language.
[Android Software/Hacking General [Developers Only]] tweakradje:
EDIT 31aug2012: also this message appears if there is no "classes.dex" in the apk

Hi,

When you try to install certain apk you might get this error when using "adb install something.apk"

Andoid creates "shared users" like app_1 app_3 etc for packages you install. These UID's are like 10001, 10002, 10003 etc.

Sometimes the administration of these shared users gets messed up and you get error messages like:

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

The shared user administration is kept in /data/system:

-rw-rw-r-- system system 129933 2011-08-15 12:08 packages.xml

How to solve? You need a rooted phone and adb:

adb shell chmod 666 /data/system/packages.xml

adb pull /data/system/packages.xml

Now edit (notepad++) and remove the shared user in question xml block from the file:

<shared-user name="com.navngo" userId="10000">
<sigs count="1">
<cert index="4" />
</sigs>
<perms>
<item name="android.permission.READ_PHONE_STATE" />
<item name="android.permission.DISABLE_KEYGUARD" />
<item name="android.permission.INTERNET" />
<item name="android.permission.WRITE_EXTERNAL_STORAGE" />
<item name="android.permission.ACCESS_FINE_LOCATION" />
<item name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<item name="android.permission.ACCESS_COARSE_LOCATION" />
<item name="android.permission.READ_CONTACTS" />
<item name="android.permission.WRITE_CONTACTS" />
<item name="android.permission.ACCESS_NETWORK_STATE" />
<item name="android.permission.WAKE_LOCK" />
<item name="android.permission.MODIFY_AUDIO_SETTINGS" />
</perms>
</shared-user>

adb push packages.xml /data/system

adb shell rm /data/dalvik-cache/*

adb reboot

Now you should be able to install that apk.

Cheers
[Android Software/Hacking General [Developers Only]] tweakradje:
This problem might also be solved using ad uninstall command. (only for user apps)

Lets keep the same program as above as an example the you type from a dos box:

adb uninstall com.navngo.igo.javaclient

Now install it again. You need to know the package name. You can open the apk with winrar/zip and view the AndroidManifest.xml file. There you see the package name.

Cheers
[Android Software/Hacking General [Developers Only]] coozoo:
thanks

thanks,

that's helped me to install new dolphin browser on mine superpad tablet pc :)
[Android Software/Hacking General [Developers Only]] Star.Dust:
Hi,

I want to use android:sharedUserId="android.uid.system"

Then I get this error: Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

I removed the system uid following this procedure :P

It didn't work though :(

How to use system level privilege? I am working with hardware video codec, without system privilege. I am facing the same problem here : developer.nvidia.com/archived-tegra-forums/forum/android-how-call-libpvnvomxso-successfully

Any suggestion/idea would be welcome :)
[Android Software/Hacking General [Developers Only]] mylifeisjourney:
The deleted "android.uid.system" in packages.xml comes back after reboot.

Hi,

I followed the instructions to remove section of android.uid.system in packages.xml. But after reboot, I felt that this file was re-generated and overwritten by system itself. I still can't install my app due to the same incompatible error.

Any help? Thanks!
[Android Software/Hacking General [Developers Only]] pradeepcse:
Comment out shared-user name="android.uid.shared" xml block

Hi,

It worked for me... All you want to do is just comment out the block of XML elements under <shared-user name="android.uid.shared" userId="10012">

Note: I have "Su" permission in my Device.

This is is how i did

<!-- <shared-user name="android.uid.shared" userId="10012">

<sigs count="1">

<cert index="3" />

</sigs>

<perms>

<item name="android.permission.USE_CREDENTIALS" />

<item name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />

<item name="android.permission.WRITE_EXTERNAL_STORAGE" />

<item name="com.google.android.googleapps.permission.GOOGLE_AUTH.cp" />

<item name="android.permission.GET_ACCOUNTS" />

<item name="android.permission.READ_CONTACTS" />

<item name="android.permission.WRITE_CONTACTS" />

<item name="com.google.android.googleapps.permission.GOOGLE_AUTH" />

<item name="android.permission.READ_SYNC_STATS" />

<item name="android.permission.READ_PHONE_STATE" />

<item name="android.permission.READ_SMS" />

<item name="android.permission.MODIFY_PHONE_STATE" />

<item name="android.permission.WRITE_SETTINGS" />

<item name="android.permission.INTERNET" />

<item name="android.permission.SUBSCRIBED_FEEDS_READ" />

<item name="android.permission.VIBRATE" />

<item name="android.permission.SUBSCRIBED_FEEDS_WRITE" />

<item name="android.permission.WAKE_LOCK" />

<item name="android.permission.CALL_PRIVILEGED" />

</perms>

</shared-user> -->
[Android Software/Hacking General [Developers Only]] monkeydrufy:
same here, after I change the file and reboot it restore the line :confused:
[Android Software/Hacking General [Developers Only]] monkeydrufy:
no one? :p
[Android Software/Hacking General [Developers Only]] tweakradje:
android.uid.system (id 1000) is used for installing packages and I think this trick only works for 10.000 and higher id's.

Use google to find out more about the problem: https://www.google.com/search?num=40&hl=en&q=android.uid.system

Cheers
[Android Software/Hacking General [Developers Only]] it's:
never mind
[Android Software/Hacking General [Developers Only]] it's:
Okey, I did a small research to find out why my app was force closing everytime after I removed android:sharedUserId="android.uid.system" from AndroidManifest.xml.

It turned out that it doesn't have permission to force stop packages(it's a system monitor).

I have checked the androidmanifest.xml and everything looks correct to me. When installing, only wake lock and internet permissions are granted. I have attached the txt file... I hope somebody can help me out of here. :P
[Android Software/Hacking General [Developers Only]] ASKnASK:
Thanks man :) This helped. A lot.
[Android Software/Hacking General [Developers Only]] vinodkbishnoi:
install failed shared user incompatible

Hi,

I have decompiled an APK using apktool. And changed one file "stings.xml" The language was in Chines and I just replaced all Chines text with English. Now I recompiled that APK using apktool. Then I signed that APK with JARSIGNER. Then I zipaligned the APK.

Even after that I was geeting "install failed shared user incompatible".

Then I used method told in this thread. But still having the same problem.

These are starting line of Menifist.xml

<?xml version="1.0" encoding="utf-8"?>

<manifest android:sharedUserId="android.uid.system" android:versionCode="1" android:versionName="1.0" package="com.android.ktcit"

xmlns:android="http://schemas.android.com/apk/res/android">

<application android:label="@string/app_name" android:icon="@drawable/icon" android:name="KTCITApp">

<receiver android:label="@string/app_name" android:name=".KTCITBootReceiver">

<intent-filter>

<action android:name="android.intent.action.BOOT_COMPLETED" />

<category android:name="android.intent.category.LAUNCHER" />

</intent-filter>

</receiver>​

Could anyone help me out?
[Android Software/Hacking General [Developers Only]] niketshah11:
LLegend thanks a ton buds... helped me fix gmaps :)
[Android Software/Hacking General [Developers Only]] pcgg:
It's the 1st time I encounter such problem. Fortunately got your solution . Thank you!
[Android Software/Hacking General [Developers Only]] LEENO:
not worked for me

installing google calendar on i9100 4.0.4 simplistic V i have error

"incompatible wit other apps using same user id"
[Android Software/Hacking General [Developers Only]] striker223:
Hi, all. I'm desperately trying to understand what's going on here, but my programming/coding skills are nil. I've run into a shared user ID error with Google Calendar... How exactly would I use this technique to fix that?
[Android Software/Hacking General [Developers Only]] msasbaly:
Same here, can anyone please explain what should I do in simple words? I have this same problem and i'll be glad if you explain what is adb and those other comands, I have rooted tablet
[Android Software/Hacking General [Developers Only]] msasbaly:
Plz?...........
[Android Software/Hacking General [Developers Only]] enigma99a:
I was thinking that I could simply make the edit on boot, but it seems to regenerate every time an attempt is made to install. Everything can be hacked, there must be a way
[HD2 Android Q&A, Help & Troubleshooting and Genera] MElhassan:
Hello everyone,

I've an issue and I am looking for your advise & support. I've bought HTC HD2 512 EU with the following NAND specification:

Android ver: 2.2.1

Baseband ver: 15.42.50.11U_2.15.50.14

Kernel ver: 2.6.32.15-saint.J_Rev.005-g009fade-dirty xuchao@xuchao-ThinkPad-T61 #8

Build no: Desire HD Rev.10.XU

Software no: 1.72.405.3

aMAGLDR V1.13

The Issue: I wanted to install App2SD to be able to install apps in SD Card.. I followed this thread => http://xdaforums.com/showthread.php?t=926015 & followed Darktremor instructions here.. However, When I entered the MAGLDR menu /AD Recovery I found no CWM recovery mode "no boot source".. So what should I do next as Darktremor approach assumed that there is a CWM recovery mode to be able to format, partition and flash the App2SD, while I haven't!.. What should I do to make it work?

Thank you,
[HD2 Android Q&A, Help & Troubleshooting and Genera] mutil:
unzip attached file.put the folder you get to your sd card.in mgldr menu: services-boot settings-ad sd dir-find the folder and choose it. now you'll go to mgldr menu automatically now take the second choice:ad sd. so you'll go to ad recovery.(by this method you have to do all these steps each time in order to go ad recovery.so it is recommended to flash a recovery using daf and usb flasher.but this will erase your installed android rom.) and in ad recovery menu backup your current rom.because darktremors method doesn't go well with som roms.and know that it leads 2 extra reboots after you flash it.
[HD2 Android Q&A, Help & Troubleshooting and Genera] MElhassan:
mutil, thanks for the reply. I did as you mentioned.. got into the CWM successfully but failed to partition the SD correctly. After it said=> "Done..! partition SD successfully!" I got the screen full of errors like=>

E: Can't mount /cache/recovery/log

E: Falid to find "cache" partition to mount at "/cache".

E: Can't open /cache/recovery/last_log

E: Can't find misc

P.S: I choose partition size of 1024mb & swap of 256mb..

Update: I ignored those errors & installed the App2SD & rebooted but didn't notice any change! The available space on the internal storage still 201mb!.. SD card now reads 14gb, previously 15gb..
[HD2 Android Q&A, Help & Troubleshooting and Genera] mutil:
download a2sdgui from market. move dalvik cache to sd.this gives you some more space.i think a2sd will work for applications you install from now on.therefore i install it just after i installed a new rom.btw 256mb swap is high. you must know that it may harm your sd (but i also use 128mb swap in spite of its risk:D)
[HD2 Android Q&A, Help & Troubleshooting and Genera] MElhassan:
Done!.. :)

Thank you mutil...

About the swap, do you suggest me to redo the whole process again and limit the swap to maybe 128mb?.. I remember that swap partition is always double the mem size..

What is the max recommended ext partition size for the App2SD? because on the CWM you can make the partition up to 2048mb..
[HD2 Android Q&A, Help & Troubleshooting and Genera] mutil:
no just for that, it doesn't worth to redo everything.next time when you change rom you arrange it.i dont have much knowledge but the swap is said to harm sd-card.but as my experience it also improves speed.
[HD2 Android Q&A, Help & Troubleshooting and Genera] antonymilo:
Ext

If u want to install apps on EXT partition don't use App2SD,or A2ext use Data2ext.

Similar to a2ext, where data/app were stored inside your ext partition of the SD card, data2ext stores the whole /data inside your ext partition.

That means your internal storage will barely be used, and because nowadays some SD cards runs faster than your internal memory.

Instructions:

*This is a CyannogenMod version!Not tested on DHD Roms!

1.Make a Ext3 Partition via CWR

2. Flash data2ext_for_CM via CWR (attached) (DON'T FLASH IT ON THE FIRST BOOT OF ANY ROM!)

3. Go to your terminal emulator/adb shell to type data2ext --enable

4. Reboot

5. Go check your Ext storage via Titanium Backup(Your internal storage [220 mb~] will not be increased you must check the ext space from the Overview page of your Titanium Backup [SD card(a2sd):....mb(...mb free)])!
[HD2 Android Q&A, Help & Troubleshooting and Genera] MElhassan:
mmmm, will give it a try :)

Does it has a GUI?
[Nexus S Q&A, Help & Troubleshooting] sickzz:
Hello,

my question is allready the topic.

The Galaxy S has almost the same hardware like the Galaxy S, but with Gingerbread, has it some really cool features like the GPU Accerlated Browser.

Is there any port to the TouchWiz in work?

Greetz from germany! Sorry for my bad school english! :D
[Nexus S Q&A, Help & Troubleshooting] Borky_16:
yes Galaxy S has the same hardware as Galaxy S ! :DD Touchwizz = Closed Source ! so nobody want to port it over! and you buy a nexus for AOSP Pure! ;) not for Samsung-Crap-Wizz! :DD
[Nexus S Q&A, Help & Troubleshooting] rentaric:
Use Miren if you want a hardware acc. browser. (and what borky said).
[Nexus S Q&A, Help & Troubleshooting] omongo:
Nexus S is pure Google.
[Off-topic] Montoyatok:
I have a history test on WW1 tmr and need some tips cuz i cant rmbr the fact, pls help!!

Sent from my G3MODed G3
[Off-topic] 4silvertooth:
Tip: Close xda and start studying ..
[Off-topic] Montoyatok:
Ok bb ppl, see you on thurs

Sent from my G3MODed G3
[Off-topic] 4silvertooth:
Best of luck...
[Windows Phone 7 Q&A, Help & Troubleshooting] audiotek:
Just updated my HTC HD7 to the RTM 7720 build yesterday by starting with a clean install from NoDo and everything went fine.

However, I seem to be having some trouble trying to set up Gmail. I have tried a few time to set it up but it keeps telling me "Attention required" under Settings (Email+accounts) - Gmail.

When I click on it it says the following "Update your information for m.google.com and press Save". I tried that on the browser but it takes me to the mobile version of Gmail and its not helpful at all.

Has anyone else come across this issue? If so, any solutions...???

Thanks in advance
[Windows Phone 7 Q&A, Help & Troubleshooting] audiotek:
Solution to RTM 7720 Gmail syncing issues

I found the solution to the above problem.

If you're having a similar problem, follow the steps below.

PLEASE NOTE: it worked for me but it may not work for everyone.

Gmail Setup - Mango RTM 7720:

When you go to "Settings" under (email+accounts) click "add an account" and from the list click "other account" (POP and IMAP)

DO NOT CLICK GOOGLE

. Enter your Email address and Password and then it is automatically recognised as a Gmail account.
[EVO 4G Q&A, Help & Troubleshooting] docsparks:
Recently was running Synergy Rc1- non god mode, changed to MIUI, wanted to nandroid and lost root.

Was running Synergy RC1-nongodmode

-made a nandroid backup

-wiped / everything 2x

-mounted sd card

-flashed MIUI 1.8.5

Setup MIUI 1.8.5

-logged into market

-re-synced gmail

-rebooted

-downloaded rom manager

-flashed into recovery, to make nandroid

got stuck in boot loops, similar to thread

http://xdaforums.com/showthread.php?t=1208084&page=2

however, after making an attempt to use the latest unrevoked,

my phone will flash the pcimg36 stuff, and I actually CAN get into

clockwork, but i get unable to mount SD card errors, when trying

to flash ANYTHING, however in bootloader, it has no problems

at all, and I know my SD card is good.

So i go into bootloader, to get my stats, and my S-OFF,

is ACTUALLY now S-ON!!

This is an evo thats stood the true test of time, from the day that it came out, until 3 days ago, this beast is in perfect shape.

I used the original 53 (maybe 83?) step root process, far before unrevoked.

And even worse, between hundreds of bootloops, after pulling battery, about 5 times, it actually boots into MIUI 1.8.5, but it ALSO cant mount SD card.

I have also tried several other SD cards, just FYI.

can ANYONE put me in some decent direction?

Normally i got this aced, i have no idea whats going here.

Hboot 0.76.2000

Radio 2.15.00.09.01

EVT2-3 ENG S-ON

Thanks! for the love of god