yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] skyhigh2004:
I tried the commands you posted here and either I am missing some stuff that should be installed on my computer or I am to much of a noob to enter the commands correctly. Here was my output as I entered the commands.

skylar@skylars-lair:~$ test.py
test.py: command not found
skylar@skylars-lair:~$ #!/usr/bin/env python
skylar@skylars-lair:~$ import sys
skylar@skylars-lair:~$ import platform
skylar@skylars-lair:~$
skylar@skylars-lair:~$ p = platform.dist()
bash: syntax error near unexpected token `('
skylar@skylars-lair:~$ distro = p[0]
distro: command not found
skylar@skylars-lair:~$ version = p[1]
version: command not found
skylar@skylars-lair:~$ name = p[2]
No command 'name' found, did you mean:
Command 'named' from package 'bind9' (main)
Command 'namei' from package 'util-linux' (main)
Command 'lame' from package 'lame' (multiverse)
Command 'cname' from package 'cfs' (universe)
Command 'uname' from package 'coreutils' (main)
Command 'mame' from package 'sdlmame' (multiverse)
name: command not found
skylar@skylars-lair:~$
skylar@skylars-lair:~$ check = (sys.maxsize > 2**32)
bash: syntax error near unexpected token `('
skylar@skylars-lair:~$
skylar@skylars-lair:~$ print "Distro: %s\nVersion: %s\n Name: %s\n 64bit OS: %s" % (distro, version, name, check)
bash: syntax error near unexpected token `('
skylar@skylars-lair:~$ python test.py
python: can't open file 'test.py': [Errno 2] No such file or directory
skylar@skylars-lair:~$

Sorry if I entered them incorrectly, I am learning linux as fast as I can. Should I have entered them differently?

Sky-
[Android Q&A, Help & Troubleshooting] reallybigabe:
Haha..yes...you needed to put everything from the # all the way to the end of check) in a file called test.py...then enter python test.py in your command line

Use your editor of choice

Don't worry, everyone was new once. :)
[Android Q&A, Help & Troubleshooting] skyhigh2004:
Thank you sir. I'm such a dope :p. I'll do that tonight when I get home from work.

Sent from my GT-N7000 or Galaxy Nexus
[Android Q&A, Help & Troubleshooting] lithid-cm:
sorry about that, I didn't know you were new. Apologies.

Copy and paste these commands.

Command 1:

(cat << EOF) > $HOME/test.py
#!/usr/bin/env python
import sys
import platform

p = platform.dist()
distro = p[0]
version = p[1]
name = p[2]

check = (sys.maxsize > 2**32)

print "Distro: %s\nVersion: %s\n Name: %s\n 64bit OS: %s" % (distro, version, name, check)
EOF

press [enter]

Command 2:

chmod a+x $HOME/test.py

Command 3:

python $HOME/test.py
[Android Q&A, Help & Troubleshooting] skyhigh2004:
Thanks for the beginners guide lol, it worked now. Here was the output of that command.

skylar@skylars-lair:~$ python $HOME/test.py
Distro: Ubuntu
Version: 10.04
Name: lucid
64bit OS: True
skylar@skylars-lair:~$

That's what you were looking for correct?
[Android Q&A, Help & Troubleshooting] lithid-cm:
If I were you I would run a mem check on your memory. There shouldn't be any reason that your getting those errors.

I have 8 gigs and I never have an issue.
[Android Q&A, Help & Troubleshooting] skyhigh2004:
How would I go about doing that? Sorry for the noobish questions I just have never had to do this before on any of my PC's. Its just so weird because I'm compiling AOSP as we speak. Just wish it was CM lol.

EDIT: My bad I can do it with the ubuntu install dvd I have.

Sent from my GT-N7000 or Galaxy Nexus
[Android Q&A, Help & Troubleshooting] skyhigh2004:
Also if you dont mind me asking lithid, what version of linux do you use to build?
[Android Q&A, Help & Troubleshooting] lithid-cm:
ubuntu 12.04 64bit
[Android Q&A, Help & Troubleshooting] skyhigh2004:
Well I am running a mem test now. If it all goes just fine I think I'm gonna do a fresh install of 12.04 and reset everything up and try again. I'm at a complete loss :(.

Sent from my GT-N7000 or Galaxy Nexus
[Android Q&A, Help & Troubleshooting] skyhigh2004:
Well my computer passed the memory rest with zero errors. So I'm installing 12.04 on a fresh format so hopefully I have better luck later tonight or tomorrow getting it to build.

Sent from my GT-N7000 or Galaxy Nexus
[Android Q&A, Help & Troubleshooting] lithid-cm:
I am really interested in this. Please keep this post updated with your success!
[Android Q&A, Help & Troubleshooting] skyhigh2004:
I'll definitely keep you posted. I'm syncing tonight, then hopefully I'll set it up to build when I leave for work in the morning and I'll have good news when I get off in the afternoon.

Sent from my GT-N7000 or Galaxy Nexus
[Android Q&A, Help & Troubleshooting] skyhigh2004:
Well all I can say is ***k yeah. I guess reinstalling ubuntu and upgrading to 12.04 in the process cured my computer :p. I still have no idea as to why I couldnt build before but at least it works now.

Package complete: /home/skylar/cm9/out/target/product/maguro/update-cm-9.0.0-RC0-maguro-UNOFFICIAL-signed.zip
097429908172684449fb5a3fe796c290 update-cm-9.0.0-RC0-maguro-UNOFFICIAL-signed.zip

skylar@theden:~/cm9$

Now to learn how to cherry pick :cool:
[Android Q&A, Help & Troubleshooting] lithid-cm:
Easy man.

Click cherry pick.

Click copy

change directories in your repo path corresponding to the change. In this example frameworks_base from your repo path.

cd frameworks/base

paste in that command you just copied. press enter and you have just cherry picked to test a new cm commit.
[Android Q&A, Help & Troubleshooting] skyhigh2004:
That sounds very easy. Thanks again for a noob tutorial :). Also what would you do to remove the cherry pick if you didnt like the commit? Is that path just added to the local manifest just like device trees and kernels sources?

Sent from my GT-N7000 or Galaxy Nexus
[Android Q&A, Help & Troubleshooting] lithid-cm:
While inside the same path you applied the cp.

git reset --hard HEAD

That will reset to the last cm commit. You can do specific files as well by appending the file path after the command.
[Android Q&A, Help & Troubleshooting] mDroidd:
Thanks for the 64 bits check, lol, I needed that :P
[Android Q&A, Help & Troubleshooting] mDroidd:
I read somewhere (don't know if it's true and also golds for CM9), that you can't build ICS with OpenJDK.

I use the one from this link:

Oracle
[Android Q&A, Help & Troubleshooting] lithid-cm:
Then your full of it, I build with openjdk every single day.
[Android Q&A, Help & Troubleshooting] mDroidd:
Okay

Just a suggestion huh :P
[Android Q&A, Help & Troubleshooting] sk8erwitskil:
i am having the exact same issue. did you find a solution?
[Android Q&A, Help & Troubleshooting] skyhigh2004:
After I selected all the sun Java or all the open jdk components as default instead of some of each it built perfectly fine. Thanks lithid.

Sent from my GT-N7000 or Galaxy Nexus
[Samsung Galaxy Nexus] tracerit:
I'm unrooting and restoring my Epic Touch 4G and i just realized i'mg oing to miss the customizable vibration intensities. It makes the feel so much better. I got caught up in all the customization that AOKP ICS offers I forgot about the actual feel of the phone.
[Samsung Galaxy Nexus] simms22:
you can control vibration intensity with the trinity kernel, and probably other kernels too.
[Nook Touch General] ver2go:
I need to recover a NTG, are there any images for recovery? It is not booting up properly because I replaced the patch android.policy.jar and services.jar for a NST to use NookTouchTools.

So is there any factory images any where I can use Clockwork on SD to reflash from?

Thanks!
[Nook Touch General] ver2go:
I fixed this by adding my jar file backup to "glownooter-1-5-26" zip file so it copied the files back over when I used Clockwork to apply glownooter. Good for now, but still would be nice to have recovery images.
[Nook Touch General] roustabout:
Boot from noogie and look?

I forget which partition it's on, but there's a factory.zip on the NST and glowworm that I think has what you need in it. Copy it out and unzip it, confirm it has the unique stuff from /rom in it correctly.

And now that you're running again, make your own recovery image, too, using dd or similar.

If you want to undo your changes so far to make that viable recovery image, the 8 failed boots method works on the glowworm, as does echoing data into bootcnt to force a reset.
[Nook Touch General] melachrinos:
Help unbricking my nook glowlight?

Hello,

I recently got a nook glowlight and foolishly tried to apply the touchnooter package to root it, as if it was a NST. After several efforts to restore it, including noogie, CWM, and everything else I read on this forum; my nook is at a state of never starting up without the sd card in; and sometimes starting up with the sd card in, depending on what partition is in (noogie and CWM work).

Can someone, more experienced than me, help me recover my nook, to its stock state? I made a backup with noogie, but I don't think it's correct anymore.

Thanks a lot,

a noob
[Vibrant Q&A, Help & Troubleshooting] astross89:
Phone has clockworkmod v2.5.0.4 My phone is stuck in the splash screen. I was texting and it froze. pulled battery and tried rebooted. all my pics and vids are on the phone and NOT the sd card. any way to get to the files with my computer before i wipe it? please help.
[Vibrant Q&A, Help & Troubleshooting] lapdog101:
Don't wipe. Can you reboot into recovery? If so restore a previous rom or nandroid. You shouldn't lose anything. Above All don't panic.
[Vibrant Q&A, Help & Troubleshooting] astross89:
under clockwork, i click reboot recovery and it goes to vibrant screen for one second then right back to clockwork. any other way?
[Vibrant Q&A, Help & Troubleshooting] Toast6977:
Before clicking reboot recovery restore a backup that you have made, first.
[Vibrant Q&A, Help & Troubleshooting] astross89:
im sure im screwed, but i dont have a backup
[Vibrant Q&A, Help & Troubleshooting] lapdog101:
Do u still have the rom or ANY rom still on your SD card..(internal SD) ?? Just flash the rom again from recovery . If u can access cwm you are fine.
[Vibrant Q&A, Help & Troubleshooting] astross89:
doesn't that wipe everything?
[Vibrant Q&A, Help & Troubleshooting] Toast6977:
Can you get into download mode? If so Odin to stock. Then put whatever rom you want on there. I believe your pics and vids will be there if you don't repartition. Can someone confirm that?
[Vibrant Q&A, Help & Troubleshooting] lapdog101:
No I didn't say wipe data. Only reflash the SAME rom if u have it. odining to stock is a last resort
[Vibrant Q&A, Help & Troubleshooting] Woody:
I am not trying to be a smarta$$, but your post says that you are clicking reboot recovery. What about just reboot? Could also wipe /cache and then advanced/wipe dalvik-cache, then reboot.

If you have adb then you can reboot that way too.

Btw, what ROM are you on?
[Vibrant Q&A, Help & Troubleshooting] astross89:
I think i know what rom is on it? is there a way to find out without being able to boot? and to reflash just install on sd, wipe dalvik and apply sdcard:update.zip or install zip from sdcard?
[Vibrant Q&A, Help & Troubleshooting] astross89:
reboot just locks up at splash screen and clearing the cache and dalvik wont delete files correct? also the cache we talk about is the wipe cache partition?
[Vibrant Q&A, Help & Troubleshooting] Woody:
Wiping /cache and /dalvik won't delete any data so no worries about that. Wipe them both and then reboot. It will take up to 3-5minutes to rebuild the caches.

I kind of need to know what ROM you are/were on to figure out where to go. Once you answer that and try the above, and it doesn't work I have another idea to try.
[Vibrant Q&A, Help & Troubleshooting] lapdog101:
@woodrube

Hello my friend. I am working at 5am I trust you will help this young man to get his vibe rolling again
[Vibrant Q&A, Help & Troubleshooting] astross89:
i know the dalvik part but the cache to wipe is the cache partition? also trying to remember the rom(wifes phone) I think its ginger_clone_final_r2
[Vibrant Q&A, Help & Troubleshooting] Woody:
Hey buddy. I'll see what I can do for awhile. I gotta be at work at 7 and conduct meetings all day til 3. I have no problem talking in front of people but the redundancy part drives me bonkers. Cecil back in on him in the morning when you get a chance how far to see we have gotten.

Yes it is the cache partition. Try the wipe instructions I posted above and let me know if it works. Now that I know what you might be on it will help.
[Vibrant Q&A, Help & Troubleshooting] astross89:
trying to reboot now but it looks like it isnt going to work. but i also read somewhere else

Only the factory recovery wipes the /data/media ("/sdcard") partition. Any third-party community-built recovery (like ClockworkMod Recovery or TeamWin Recovery Project) will wipe everything except /data/media.

So, to answer your question, as long as the files are on your phone's pretend SD card (the default for user-created content and files you transfer to your phone), they won't be wiped when installing a custom ROM.

is this true? also again could care less about the phone just need the new baby pics and vids
[Vibrant Q&A, Help & Troubleshooting] Woody:
You are correct. The only ways to erase your internal SD card is by formatting it, masterclear in Odin, or formatting /data (not wiping but formatting -they are different functions).

Did the wipe and reboot work?
[Vibrant Q&A, Help & Troubleshooting] astross89:
no still stuck on splash screen and vibrates maybe every minute. also updating rom not an option because not sure what rom. and clockwork wipe(even though you said will work) not an option just in case it did wipe pics. it looks like im out of options.
[Vibrant Q&A, Help & Troubleshooting] Moped_Ryder:
Download DroidExplorer and install on your PC

Reboot into Recovery. Open up Droid Explorer and see if it finds the phone. If so just browse to where you need and copy them.
[Vibrant Q&A, Help & Troubleshooting] Woody:
Well you have a few choices here. Either way, you will not lose you pix but if you are not willing to try the I can't really help.

First I think that I understand your fears bc my tablet is the same as what you think your phone is. I have an Asus Transformer and if you wipe the /data partition it will wipe out the internal. That is not how it works on the Vibrant.

Second, here is what you can do. Two options. First go to the Dev section and download the AIO toolbox and Odin back to stock, taking care not to hit masterclear. Then flash a ROM from there. Regardless it will not wipe your internal SD. Second, since you were on a GB ROM, you could pull your external and download a CM7 ROM to it, put your external back in and install from SD following the OPs.

The choice is up to you but if you fear that a wipe will delete your pix/vids and you do nothing they will still be there but you'll not be able to access them w/o getting a full boot. I know how it is to almost lose important pix and the anxiety that comes with it.
[Vibrant Q&A, Help & Troubleshooting] astross89:
im so close. this is somewhat working. found the dcim folder. pics are there. but droid explorer wont let me copy them. am i missing something?
[Vibrant Q&A, Help & Troubleshooting] astross89:
first off big thanks to Moped_Ryder and Woodrube for all your help. im transferring 10 gigs of files right now. for anyone whos phone is stuck in boot screen and needs to get files off of it. use droid explorer and then in clockwork mount sdcard and you can find your files. hope this helps others.
[Samsung Galaxy Nexus] GNexor:
Hello,

I have a high battery drain because of "Android System". I lose about 3-5% per hour of my battery in idle state. I turn screen off and didn't use it.

I'm using Slim ICS ROM with franco kernel #174.

Badass Battery shows me that following included processes are in Android-System:

com.android.systemui
system
android:ui
com.tmobile.themechooser
surfaceflinger
com.android.settings
servicemanager

So anybody know what's the problem here?

I'm already disabled Google Photo Sync, NFC and GPS because I didn't need that. Also googling for the problem doesn't help.

Hope you can help, thanks!
[Samsung Galaxy Nexus] KennyG123:
You hit the "Yes this is a question" box

Guess where this thread belongs?

Thread Moved

Friendly neighborhood Moderator
[Samsung Galaxy Nexus] luckydude:
you must install your rom again

this is based on your luck
[Samsung Galaxy Nexus] Beatsleigher:
Again, I've mentioned this twice today: Bullsh**, I don't mean to be disshonouring, or anything, but please, give proper answers,. It's all good, that you want to help, but only with proper and correct answers.

Right, back to topic;

Go into your dev. settings, and uncheck everything that doesn't need to be checked (Stay Awake, Strict mode, etc.) Undervolt the CPU, that should save a ton of battery charge, and underclock to 900-920 MHz, that is definitly enough, on a dual-core :)
[Samsung Galaxy Nexus] GNexor:
Thanks for your answer =)

I think my phone is already undervolted through Smartreflex in francos app and I also tried underclocking by setting max cpu to 1036 Mhz (instead of 1200 Mhz).

The problem disappeared after 1-2 charges (don't ask me why..).

And now after flashing Slim ICS 3.9, battery time seems to be ok (for me at least).

Per hour in idle state the phone consumes ca. 2-3%.

I ask myself how do others get 1% drain over night. Is that even possible? Tried very much kernels (franco, trinity, glados and leankernel) and didn't even get near that.

Any tips?
[Samsung Galaxy Nexus] axxonX:
OP Im glad you mentioned the issues went away after a few charges. this has been an issue for some who do not believe that a few charge cycles does anything. well im with you as i always see things sort of "settle down" after a few days of flashing a new rom.
[Samsung Galaxy Nexus] Pik3no:
I have the same problem on my Nexus S.

The process consuming battery is surfaceflinger. I can see it on battery screen before the name change to Android System.
[Samsung Galaxy Nexus] adrynalyne:
I doubt you will find much help here for the Nexus S.
[Samsung Galaxy Nexus] Pik3no:
I guess this is an Android problem. Not related to any device. :cowboy:
[Samsung Galaxy Nexus] konsolen:
Android

Yes, i think your prob comes to every Android phone after flashing New rom.

Just wipe Battery stets after flashing. It needs few complete chargings to calibrate the battery.

There are also many apps in the market for this
[Samsung Galaxy Nexus] General Crespin:
You need to read this. Also you, OP.
[Samsung Galaxy Nexus] beekay201:
This. People, just give it 2,3 days for the rom to settle after flash. Same for a kernel.
[Samsung Galaxy Nexus] Pik3no:
I don't know if was the new kernel I flashed or was the battery stats wipe I did, but seems now my phone have no more RILD/RILJ wakeclocks.
[Samsung Galaxy Nexus] Nuno_PT:
Yes, it is possible. I get 1 or 2% drain overnight with wifi and mobile data disabled, and up to 5 to 6% if mobile data is enabled overnight.

My record with it is 1 day and 20 hours from 100% to 3%.

I had a LG Optimus Black before and didn't last a day. I'm loving this Galaxy Nexus.

Nuno
[Samsung Galaxy Nexus] onexuan:
One Power Guard can help the system into a deep sleep,Reduce battery drain

downloaded from http://xdaforums.com/showthread.php?t=1889740
[Samsung Galaxy Nexus] boardrx182:
I would like to achieve battery drain like that, seems like what it should be.

I am running AOKP Build 2 and I feel like my battery life is ok but not great. I let my phone sit overnight last night with sync off, but LTE on and it drained roughly 4% an hour. I actually turned off LTE in the middle of the night to see if there would be a difference, and no, it drained at the same speed on 3G as well. I live in an area with pretty good reception actually, GSam says I spend the vast majority of my time with a signal strength of 4/5.

GSam reported that roughly 34% of my battery drain overnight was due to Phone Radio. Another 52% was due to app usage. Drilling into that it tells me that over 40% of the battery drain from apps came from "Android System", "Phone" and "Kernel". Under Android System, which was by far the greatest drain of the apps, it only kept the phone awake 1m18s overnight so that doesn't seem excessive. However, I'm confused as to why, with a good signal/connection my battery would drain at nearly 4% an hour whether connected to LTE or CDMA. Unless the radios in this device are poor, I have a hard time believing there isn't a way to fix this without using something like Juice Defender.

I can't recall because it's been so long, but I don't really remember any ICS ROMs draining this fast. I'm on a clean install of AOKP B2 and I've tried a few different kernels with the same results. Any ideas anyone?
[Samsung Galaxy Nexus] boardrx182:
So I wanted to let you all know that after trying a few different ROM/Kernel combinations all with similar idle battery drain, I installed the latest (9/21) CM10 nightly and I only lost about 10-12% overnight last night connected to LTE. That is a much better drain than the 30% or so I was seeing previously. Not sure why but my phone just hasn't been handling the latest AOKP builds very well. I am afraid to try a different kernel right now as I'm leaving town tomorrow for most of the week so I'll leave it as is until I get home next weekend, and see if I get this good of battery life with the latest Leankernel.
[Samsung Galaxy Nexus] sordatos:
Surfaceflinger

The same happens to me, this app appear in BetterBattery stats, Surfaceflinger appear as the culprit of my 45%+ battery consumption caused by Android Sys

When I first rooted my phone (xperia S) I noticed an 31%+ energy consumption by Android Sys, I reflashed and re-rooted and stoped for 2 weeks or so, now 2 days ago I woke up to find that 81% of the battery is being drained by Android Sys, then it lowered to 31-43%. I noticed that when I refreshed the stock "Battery" app ,"Surfaceflinger appear for a moment, I seem that I confirmed with the BetterBatteryStats, Surfacaflinger appears at the top.

Why is this happening? Can something be done about it?

PS: I cannot change kernel, bootloader is locked...
[Samsung Galaxy Nexus] Atharkhan101:
Surfaceflinger and android.process.acore are top battery drainer. I mean how to make them not sucking on battery?
[Sprint HTC EVO 4G LTE] PhxkinMassacre:
with the og evo 4g when the phone was charging, from time to time the touch screen would bug out and get mildly unresponsive and make your screen jump everywhere. does this phone also suffer from this problem?

im going to get one when my contracts up regardless, im just curious since i can't get it till november... :(
[Sprint HTC EVO 4G LTE] scottspa74:
hey oldschool lol ;) nope. This does not suffer from that issue. I'm typing while plugged in right now, and everything is smooth and dead accurate.

See ya here soon.

sent from my Evo LTE, usually.
[Sprint HTC EVO 4G LTE] wuestsider:
I used to have that same problem with both my OG EVO and EVO 3D, but then I found out it was the charger/cord I was using. Apparently it was not pushing enough power into the phone. Once I got a new charger I didn't have that problem again.

Sent from my mighty EVO 4G LTE

WUESTSIDER X!
[Kindle Fire General] cloud7a:
just rooted my kindle fire and not it will not talk the usb data cable to be able to charge it or mount it. i cant find any setting in twrp to kelp with this. please help
[Kindle Fire General] androidcues:
don't know enough about your situation maybe a little more info? which rom? can you mount when booted up?

but don't bother with USB to charge...user the wall outlet.
[Kindle Fire General] chris_m128:
Uninstall the kindle drivers on your computer, then plug your kindle back in and let the drivers re install
[Kindle Fire General] linktohack:
I believe he mentioned a rooted ROM. So no ICS bugs here.

Gửi từ Kindle Lửa của tôi qua Tapatalk 2
[Kindle Fire General] braintrap:
Install Airdroid to transfer files over wi-fi while you searsh for usb solution.