yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] YurBoiHasan:
im having the exact same problem with the video recording! im on paranoidandroid 3.50. i love cm10.1 but this is really frustrating.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] rickoslyder:
Clear dalvik and cache, and reinstall Snapchat upon reboot.
[Android Software Development] LSI:
Hi,

I have a problem of draining battery with SL4A.

First, what i do :

I use Tasker to run SL4A script during night. I repeat script all 10 min. The script give back phone orientation to tasker. if phone don't move during 30min, i put phone in airplane mode and stop to repeat script all 10 min. I do this action only if screen is off, so phone in sleep mode.

The battery draining don't come from tasker, i test it without run SL4A script, no problem. I sure it's because of SL4A.

So with this script, i get battery drain during all night, and battery drain stop when alarm ring on morning (so when phone awake, it's important, remind this)

My script is this one :

import android, time

droid = android.Android()

class Task():
SET_VARIABLE = 547
def new_task(self):
self.action_cnt = 0
self.extras = {'version_number': '1.0', 'task_name': 'task' + str(time.time()), 'task_priority': 10 }
def set_var(self, varname, value):
self.action_cnt += 1
self.extras['action' + str(self.action_cnt)] = {'action': self.SET_VARIABLE, 'arg:1': varname, 'arg:2': value, 'arg:3': False, 'arg:4': False, 'arg:5': False}
def run_task(self):
taskIntent = droid.makeIntent('net.dinglisch.android.tasker.ACTION_TASK', None, None, self.extras).result
droid.sendBroadcastIntent(taskIntent)
def set_var_now(self, varname, value):
self.new_task()
self.set_var(varname, value)
self.run_task()

temps = 20

droid.startSensingTimed(1,500)

while temps > 0:
time.sleep(0.5)
x, y, z = droid.sensorsReadOrientation().result
temps = temps - 1
if x is not None:
break

droid.stopSensing()

t = Task()
t.new_task()
if x is not None:
t.set_var("%ORIENTATION_X", str(x))
t.set_var("%ORIENTATION_Y", str(y))
t.set_var("%ORIENTATION_Z", str(z))
t.set_var("%ORIENTATION", "Done")
t.run_task()

What i do in this script :

I read orientation (max 20 time in case of none result) and i send information to tasker.

I d'ont think i do error in this script.

So i think SL4A don't allow phone to back to sleep mode after finished is script.

Because i find a solution, turn on screen during one second after running script (i do this in tasker) and now, i don't have battery drain.

But this solution is not clean.

Any help to solve this problem ?

thanks a lot
[Android Software Development] broodplank1337:
I''m still kinda new to java coding but I really think you need to reffer to:

PARTIAL_WAKE_LOCK

like this:

PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "My Tag");
//WAIT here
wl.acquire();
// action here
wl.release();

full reference:

http://developer.android.com/reference/android/os/PowerManager.html

releases the wake lock after the process is finished. I hope that that info is correct, as im note sure. :P
[Android Software Development] kolo2x:
Have you tried running your script on the emulator to make sure it's exiting properly?

I'm a bit worried about while code (python or not).
[Android Software Development] LSI:
My code work properly, no error in console. Code is in Python (i'm not specialist but if i understand well, the "wend" is do by indentation)

And if code have error, turn on screen 1s after script will don't have any effect, i thinks.

About power management: after read, it's can be this problem. May be if do my own wake lock, SL4A will do one automatically (and forgot to close it)

I will try.
[Android Software Development] LSI:
I don't arrive to get powerManager function :crying:

i try to add

pm = droid.powerManager()
pm.goToSleep(droid.sytemClock.uptimeMillis())

but no way goToSleep function is unknow.

Some help for syntax, i don't find any example. Thanks
[Android Software Development] LSI:
i do like this

import android, time

droid = android.Android()

droid.wakeLockAcquirePartial()

class Task():
SET_VARIABLE = 547
def new_task(self):
self.action_cnt = 0
self.extras = {'version_number': '1.0', 'task_name': 'task' + str(time.time()), 'task_priority': 10 }
def set_var(self, varname, value):
self.action_cnt += 1
self.extras['action' + str(self.action_cnt)] = {'action': self.SET_VARIABLE, 'arg:1': varname, 'arg:2': value, 'arg:3': False, 'arg:4': False, 'arg:5': False}
def run_task(self):
taskIntent = droid.makeIntent('net.dinglisch.android.tasker.ACTION_TASK', None, None, self.extras).result
droid.sendBroadcastIntent(taskIntent)
def set_var_now(self, varname, value):
self.new_task()
self.set_var(varname, value)
self.run_task()

temps = 20

droid.startSensingTimed(1,500)

while temps > 0:
time.sleep(0.5)
x, y, z = droid.sensorsReadOrientation().result
temps = temps - 1
if x is not None:
break

droid.stopSensing()

t = Task()
t.new_task()
if x is not None:
t.set_var("%ORIENTATION_X", str(x))
t.set_var("%ORIENTATION_Y", str(y))
t.set_var("%ORIENTATION_Z", str(z))
t.set_var("%ORIENTATION", "Done")
t.run_task()

droid.wakeLockRelease()

But i still have problem. No effect to use wakeLock :mad:
[Nook Color Q&A, Help & Troubleshooting] danmanx:
Hi guys. Anybody having trouble running Netflix on a rooted Nook Color. Pretty sure I'm still running CM7.2. The menus load without problem, then you select a show and it's a total blank screen. Thanks for any help.
[Nook Color Q&A, Help & Troubleshooting] k8108:
What version of Netflix are you using? I've heard you can use the latest one with CM7, but I have always used version 1.8.1. If you Google it, you should be able to find the app file.
[Nook Color Q&A, Help & Troubleshooting] sbrown23:
Yeah, from everything I've seen 1.8.1 is supposed to be the best option. I need to get the same for my CM10 installed Nook.

http://xdaforums.com/showthread.php?t=1749707

Just downloaded the .apk from the dropbox link. A couple of the others seem to not work. Haven't put it on the Nook yet (needs to charge).
[General Questions and Answers] triple 0:
Good evening to all,

i would like to find a widget (or application or a skill) that i can put on the screen of my phone (galaxy S III) to change and to SEE my audio profile (that is to say that i can see if it is on silencious or normal or...)

Have you an idea of such a widget or application ?

Thank to you if you can help me and good sunday

Triple 0

N.B.: better if your answer is not too complicated because i am not very gifted for phones...
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] rin67630:
Hi I am a bit baffled: the media player (v10.3)should be able to play mms or http radio streams, but for most of them it just crashes or returns errors.

With TCPMP (0,72RC1) the streams open randomly with a crash, to about 60% it will play and stop after 6 minutes.

Up to now, I did not find a reliable player.

What do you use to play streams?

Do I have a glitch elsewhere? I have plenty of ram left (at least 96MB).
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] rin67630:
I got it finally

since my question didn't get an answer and after a lot of try an error I finally found what made my TCPMP stop after 6 minutes!

In Tools --> Advanced Config --> Data connection --> GPRS disconnect

one should change "Enable button and timer" to "Enable button".

Surprisingly this influences GPRS, but also UMTS and WiFi as well!

After that change no more stops after 6 minutes streaming.

Hope it could help someone else...

P.S: use with care in a metered data plan!

regards

RIN67630
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] mosf1:
I use GSPlayer, no problems so far
[Sprint Samsung Galaxy S III] das_webos_transformer:
Is it OK to flash LJ7 to MA6 over MA4? And then do the MA6 to MB1? or can I just do MB1 over MA4?

There's more than corn in Indiana!
[Sprint Samsung Galaxy S III] SGSIIIJB:
Ive never had any problems with flashing ANY modem from/to ANY version :)
[Sprint Samsung Galaxy S III] das_webos_transformer:
OK thanks!

There's more than corn in Indiana!
[Sprint Samsung Galaxy S III] das_webos_transformer:
Just this got me qondering

There's more than corn in Indiana!
[Sprint Samsung Galaxy S III] swiggs98:
This looks more like ROM update files where version does matter. As others stated, the baseband firmware is independent of ROM and comes as a complete image which means no dependency on prior baseband version either.

This is something worth asking though as flashing baseband is one of the more critical things you can do to your device.
[Sprint Samsung Galaxy S III] CNexus:
Its fine, the whole system is just gonna reinstall itself so it doesn't matter what he's on. Just make sure you have the stock recovery on your phone or else the update will fail
[Motorola Atrix HD] MertDogan:
Hi, I need someone to use İCS on Atrix HD. ( For root.) If using ICS and have root, this post for the using ICS Atrix HD users.

So ,

I want from you go install from play store Ota Root Keeper and make backup root. And send me the Root Backup file. And I will try on jelly bean..

Thanks from everyone
[Motorola Atrix HD] deeje00:
There is a root method for jelly bean already man.

Sent from my InfliktedMATRIX HD MAXX
[Motorola Atrix HD] MertDogan:
I know, but I bought new Atrix HD and I am on Jelly Bean now. I can not downgrade to İCS.
[Motorola Atrix HD] deeje00:
You don't need to downgrade man. There is an exploit for jb.

Sent from my InfliktedMATRIX HD MAXX
[Motorola Atrix HD] MertDogan:
How can I do root my ahd on jb?
[Motorola Atrix HD] swapnil0545:
Please browse through the forums or use search before posting

Heres your link :

http://xdaforums.com/showthread.php?t=2143437
[Motorola Atrix HD] AzraelsVoice:
Oh sweet Jesus. A little searching goes a long way, and would have saved you a lot of time.

Sent from my Rooted Atrix HD running Jellybean
[Huawei MediaPad, T-Mobile SpringBoard] sonygoup:
ok guys why cant i use app 2 sd on the latest rom of the media pad 7 lite with came out like just ther other day (2013)
[Huawei MediaPad, T-Mobile SpringBoard] joebuttons1:
Installing apps on the SD is up to manufacture to include/ exclude from android system, if I'm not mistaken most huawei devices don't have this feature because the devs won't allow this feature
[Huawei MediaPad, T-Mobile SpringBoard] sonygoup:
Wow i feel ****ed right now
[MDA, XDA, 1010 Software Upgrading] Smash:
Hi I need some help here with the XDA Special Edition ROM..

Does anyone live nearby Leiden/The Netherlands?

you can contact me: srmualsehz@hotmail.com
[Epic 4G Q&A, Help & Troubleshooting] nothing3:
This is my first time rooting or installing a custom rom. I have already rooted my phone and i just flashed corn kernel 7.05 using odin3 v1.85.

I am installing cm10 using cwm based recovery v5.0.2.7.

I currently have gingerbread FC09 on the phone which is a sprint epic 4g.

The problem I am having is during the install I get an error saying status 7 installation aborted. I appears to say there is an error in the zip file, but I have downloaded it several times and tried it multiple times and keep getting the same error. Any help would be appreciated.
[Epic 4G Q&A, Help & Troubleshooting] AndyYan:
As usual, check MD5, redownload, see what happens. There shouldn't be a problem with a normal CM package.

Sent from HTC Incredible S @ CM10.1
[Epic 4G Q&A, Help & Troubleshooting] nothing3:
I didn't know about checking the md5,,, i used the md5 check utility from cnet and it says the codes do not match... ive re downloaded several times. what would be the next step?
[Epic 4G Q&A, Help & Troubleshooting] KennyG123:
Try downloading on a PC. Then transfer to phone if md5 matches.

Friendly Neighborhood Moderator
[Epic 4G Q&A, Help & Troubleshooting] nothing3:
thats what i have been doing... idk what to do if the md5 doesnt match, keep re downloading it until it does?
[Epic 4G Q&A, Help & Troubleshooting] DynamicN:
Are you leaving the zip file as is after you download it or are you unzipping/changing it?

I've never heard of that kernel for the Epic 4g. Is this the kernel you downloaded http://xdaforums.com/showthread.php?p=21843487

Edit: Here are a few helpful videos that will get you to CM10, follow these in order and you'll be good to go.

1st - http://www.youtube.com/watch?v=QTQ6Rn0FBSk

2nd - http://www.youtube.com/watch?v=C9eaCtiS0Bo

3rd - http://www.youtube.com/watch?v=_jCqKo7C-nY
[Epic 4G Q&A, Help & Troubleshooting] nothing3:
im not changing it, i just copy it directly to the sd card and install from cwm... thats not the kernel ive been using, ill follow the videos and see if that works... thank you!
[Epic 4G Q&A, Help & Troubleshooting] KennyG123:
Have you tried a different mirror?

Friendly Neighborhood Moderator
[Epic 4G Q&A, Help & Troubleshooting] nothing3:
Yes i have tried several different download sources. I dont know what I was doing wrong but those three videos worked. Thank you @dynamicN
[Epic 4G Q&A, Help & Troubleshooting] DynamicN:
You're welcome and I'm glad that helped, qbking77 has many useful videos.
[Motorola Droid 4] kfazz:
known bugs:

occasionally modem may take a while to come up. toggle with airplane mode and/or reboot

fixed bugs:

slider/onscreen kb / phys kb issue.

everything else i tested works. wifi, bt, hwc, camera, calls, webtop, etc

releasing as safestrap V3.10 backup for now., might do flashable zip later.

unzip to sdcard, don't overwrite your own backups, and

restore to a clean romslot, haven't tested overwriting any other builds. it might work since it was an ota but who knows?

Link: http://www.mediafire.com/?x9aec82a8xcm4c1

Updated framework-res.apk fixes keyboard issue.

http://www.mediafire.com/file/jfsc35gr40yf8g5/framework-res.apk

to install framework res: mount system of romslot in safestrap make sure it's the right slot

adb push framework-res.apk /system/framework/

adb shell chmod 0644 /system/framework/framework-res.apk

wipe cache and dalvik cache just to be sure, and reboot

please report bugs.

kernel source here: https://github.com/kfazz/kernel_mapphone_kexec/tree/razr_jb
[Motorola Droid 4] kfazz:
this rom has been superseeded by this: http://xdaforums.com/showthread.php?t=2199741

it's almost exactly the same, but based on D4 JB leak, and everything works.
[Motorola Droid 4] captainstarbucs:
Is this too good to be true?

Can I ask what specific things on the hardware keyboard isn't working?
[Motorola Droid 4] kfazz:
the slider event doesn't trigger that the hw keybaord is out or away, so

with Hardware keyboard turned on: the rom thinks the keyboard is out all the time, onscreen kb doesn't appear

with Hardware kb off: onscreen kb pops up all the time, regardless of whether real kb is in or out, hardware kb still works

the "mapphone switch" device sends the slider event via /dev/input/event5

runing getevent -l /dev/input/event5 shows SW_LID events, they just don't do anything.

i tried editing keyboard bools inside framework-res.apk, but they don't appear to make a difference.
[Motorola Droid 4] rruleford:
Boooooo motoblur crap... Otherwise nice port! Will stick with cm10.1 for now. We should be getting jb ota soon anyway
[Motorola Droid 4] Hashcode:
Nice work kfazz :)

MotoBlur or not, this is a GREAT example of the kind of things we can now do on the phones using the new kexec kernel.

Glad to see it's already being put to good use!
[Motorola Droid 4] huatz84:
Kexec is amazing. More mods should be coming. :)
[Motorola Droid 4] huhu1312:
Nice ;] Sounds good iam going to test it

still waiting for a JB release

Edit: it not coming up for me. It start and update the application after that it reboot in boot loop
[Motorola Droid 4] captainstarbucs:
cannot wait to test this first thing tomorrow. Thanks so much
[Motorola Droid 4] schmeerdawg:
Could hash use this rom for fixes to the current issues with the JB builds he is working on?
[Motorola Droid 4] local444:
how do we install this? i'm unfamiliar

edit: specifically the framework-res.apk. I'm assuming that for the ROM we just wipe and open it as a backup
[Motorola Droid 4] bgarlock:
FWIW: restored this from SS 3.11 just fine.

Strange issues with my sdcard, but other than that, everything seems to work.

Would love it if someone could make a flashable patch for the framework. My USB cable is touch and go..
[Motorola Droid 4] kfazz:
did you restore on a a fresh romslot? try wiping data/cache.
[Motorola Droid 4] jctennis:
Well that didn't take long! Good work.
[Motorola Droid 4] Lum_UK:
This ROM also works on GSM with no tweaks other than APNs. Does this mean we can flash any RAZR stock-based ROM or is it more involved than that?

Only problem I have found with it (other than Verizon bloat) is the keymappings for ; and : (normally accessed via Shift + , and .) don't work right, they get you < and > instead. Also the SYM key doesn't work, capslock light doesn't work. I've tried copying over omap4-keypak.kl and .kcm from ICS but it doesn't help, it actually makes things worse.

Also the damn motocast cdrom automount is back, and olegfusion's patch for it doesn't work with this ROM. Will need someone a lot better than me to fix that one!

Here is my GSM variant of this ROM with the following changes:

apns-conf.xml preloaded

framework-res.apk fix pre-applied

"This sim is from an unknown source" error fixed

Verizon crud removed

Misc debloating

Part1: http://www.mediafire.com/?2tcisw2za29wrt7

Part2: http://www.mediafire.com/?m7dfoomkcojejpf
[Motorola Droid 4] kfazz:
in order for a rom to work right the kernel driver parts and userspace driver parts for things like pvr and ducati need to be in sync.

ramdisk needs to be extracted and modified for safestrap. kernel modules need to be rebuilt for kexec kernel, frameworks hacks for keyboard need to be done, (there may well still be more of these to do) /system/lib/hw/* libraries need to match boardname. ie (lights.maserati.so instead of lights.spyder.so) build.prop needs to be edited...

it's not entirely trivial, but since i already had a kexec kernel around this only took me ~24 hours.

Edit: if you didn't want to kexec a kernel, you might be able to hack roms based on the same version as whatver your stock kernel is, so ics to ics, etc.

more of a pain to do it that way though.
[Motorola Droid 4] Lum_UK:
Ahh, this is all probably somewhat beyond me then, though I am definitely interested in how to extract and modify the ramdisk as that's where I need to modify two files to get rid of the cdrom automount.

For now though, I think this ROM is going to be my daily one, even as I continue to fiddle with it.
[Motorola Droid 4] kfazz:
Google 'android extract boot.img'

You'll need gunzip and cpio to take apart and mkbootfs and gzip to reassemble. Ramdisk is at /system/etc/kexec/ramdisk.img

Got Sym key working, ; and :, and caps light, just not all at the same time yet.
[Motorola Droid 4] Lum_UK:
It was the location of the ramdisk that was defeating me. Thank you!
[Motorola Droid 4] neiltoe:
I gotta say this is the fastest and smoothest I have ever seen my droid 4 run.

I am far from current on how to install things and never got the framework-res.apk installed. If anyone can make a video on how to install the framework-res.apk I would greatly appreciate it.

Also wondering if there is any plans to use this to improve existing roms like "CM10.1 / Jellybean 4.2.2 for the Droid 4". I have fell in love with all the customization's in that rom.

Please forgive me if I used incorrect terms or said anything that is inappropriate. I really have no idea on how all this works.
[Motorola Droid 4] Lum_UK:
I couldn't figure out how to install framework-res.apk either, so I did it while the OS was running instead.

Here is the process I used.

Install the ROM as described, boot and go through the initial setup.

Install Android Terminal Emulator from the play store

Copy framework-res.apk onto the root of the external SD card and disconnect the USB cable

Start Android Terminal Emulator

su

mount -o remount,rw /system

cd /system/framework

mv framework-res.apk framework-res.apk.bak

(At this point, things will start force closing, but that's ok)

cp /sdcard-ext/framework-res.apk .

chmod 644 framework-res.apk

reboot

Go into safestrap, wipe cache and dalvik. Reboot and you're done.
[Motorola Droid 4] neiltoe:
Thank you trying it now

Android is upgrading...

Thank you think that did it woohoo!!
[Motorola Droid 4] captainstarbucs:
Thanks for the hard work OP. I will switch to this for my main ROM as soon as the sym key and the other keys are fixed.
[Motorola Droid 4] bgarlock:
This is now my DD! I don't think the official OTA will be much different. Works fine in my car dock, so USB audio is good.

Hats off to the OP!!
[Motorola Droid 4] alex94kumar:
Neiltoe, have you flashed the official cm10.1 nightlies to your d4? I haven't flashed this yet, but cm10.1 is blazing fast
[Motorola Droid 4] Lum_UK:
CM10.1 may well be faster but this ROM has a lot more working things, camera, camera flash and lapdock/webtop being the ones I've tested so far.

Now if someone can get CM10.1 (or even better AOKP) working with this set of kernel and drivers that would be awesome.
[Motorola Droid 4] neiltoe:
yes i have been using it for a few days. it is fast but this is faster in my opinion.
[Motorola Droid 4] captainstarbucs:
I absolutely love this build, it's the best I'm going to get since AOKP and CM10 are extremely buggy on my Droid 4. Everything is running so smoothly, a huge upgrade from ICS.

After installing the framework, I still have a few quarks with the keyboard's : and ; buttons. The sym button still doesn't work even after patching in the new framework, and the shift key acts as an actual shift key as it has to be pressed in to get the shift character. Is there a way to make it a sticky shift button like ICS has?

Thanks a ton OP, this is is my new daily driver.
[Motorola Droid 4] alex94kumar:
holy piss, you're right, this rom is amazingly fast

missing the notification settings menu from cm10.1 though :(

hey kfazz, what will be the speed of development on this? Will you provide many updates? or the occasional one

Another edit: If any of you guys run into LTE data issues, just install this app: https://play.google.com/store/apps/details?id=net.andirc.lteonfoff&hl=en

toggle it to LTE Only, and then back to whatever you had before. It's also useful in many other situations
[Motorola Droid 4] wheeliest:
is it safe to run the system update?

or will it fail?
[Motorola Droid 4] Lum_UK:
Ok, I've figured out the ramdisk stuff and had success thanks to kfazz's help, so here is my patch for this ROM. It should work on both my version of the ROM and kfazz's original:

http://www.lum.co.uk/ramdisk.img

Changes:

Disabled QE spyware for faster boot time

Disabled cdrom (i.e. when you connect via USB, only the SD cards get mounted, the MotoCast CD does not get mounted and does not autoplay)

To install, copy the above file to the root of your external SD card and run the following from a terminal on the phone:

su

mount -o remount,rw /system

cp /sdcard-ext/ramdisk.img /system/etc/kexec/ramdisk.img

reboot

Enjoy :)

Also, I noticed that some of you only downloaded part 2 of my version of this ROM. I did actually edit the post to include a link to part1, but here it is again.

Thanks to olegfusion as I based this patch on his, kfazz for pointing me in the right direction on the ramdisk stuff, and of course for making this rom in the first place.
[Motorola Droid 4] The Magician Type 0:
What system update?
[Motorola Droid 4] captainstarbucs:
Any insight on how to get the SYM key working? Also the ; : keys are still throwing me off
[Motorola Droid 4] DarkMidnight:
I was also prompted for a system update. I created a MediaFire account to share it

(Let me know if it doesn't work, it's my first time sharing from MediaFire)

http://www.mediafire.com/?uj8e1cwq93x2us5
[Motorola Droid 4] Lum_UK:
I'm no expert, but taking a look at that ZIP, I wouldn't want to try and apply it. Looks like it attempts to replace the bootloader (with a RAZR version) amongst other things.