Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Fix for Flash 10.3 on CM7


  • Please log in to reply
22 replies to this topic

#1 OneLikeSeaBass

OneLikeSeaBass
  • Members
  • 15 posts
  • Country:us
  • Device Model:G2 (Vision)
  • MOD Version:CM7 Nightly #100 w/AUS Radio
  • Recovery Image:ClockworkMod

Posted 09 June 2011 - 07:05 AM

To get Flash 10.3 working on the stock browser you need to do two things:

1) force stop the browser process
2) Remove all permissions for /data/data/com.android.browser/app_plugins/com.adobe.flashplayer/.macromedia/Flash_Player/config.data

*Fix also works for Dolphin. Just change com.android.browser to mobi.mgeek.TunnyBrowser

Changing the permissions restricts the flash plugin or the stock browser or the webkit or I dunno what from reading config.data. This file is screwing with video playback of anything over 240p.

What's weird is that the config.data generated for 10.2 and 10.3 appears to be identical, except for the ProductVer string. Since the file contains settings for h264 high, baseline and main profiles, there's probably some change in 10.3 to the way it uses this information.

Either way, this is a bandaid for those that don't wish to use Opera until the heart of the issue is found/addressed.

#2 Kamikaze78

Kamikaze78
  • Members
  • 5 posts
  • Country:us
  • Device Model:Motorolla Cliq
  • MOD Version:CyanogenMOD 7.1.0-RC1
  • Recovery Image:ClockworkMod

Posted 14 July 2011 - 03:08 AM

I tried to make flash work by doing this, but when I tried to navigate to /data/data/com.android.browser/app_plugins/com.adobe.flashplayer/.macromedia/Flash_Player/config.data as far as I got was /data/data/com.android.browser there was no folder called app_plugins... so how do I fix this?

Edited by Kamikaze78, 14 July 2011 - 03:11 AM.


#3 Adam W. Hawk

Adam W. Hawk
  • Members
  • 2 posts
  • Country:us
  • Device Model:HTC Thunderbolt
  • MOD Version:CM7.1.0-RC1.4
  • Recovery Image:ClockworkMod

Posted 01 August 2011 - 06:40 PM

Works like announced.

I did it using ADB, to avoid any typing errors.

Thank you.

#4 Rob I

Rob I
  • Members
  • 27 posts
  • Country:us
  • Device Model:htc inc / hp touchpad
  • MOD Version:CM7.1 nightlies / alpha 2.1
  • Recovery Image:ClockworkMod

Posted 11 August 2011 - 03:14 PM

For anyone that's interested, I wrote a handy little script for editing flash's user agent to windows:


wget http://www.adobe.com/software/flash/about/ -O - | grep '10.' | grep -v 's' | uniq | cut -d '>' -f2 | cut -d '<' -f1 > /sdcard/version
winversion=$(sed 's/\./,/g' /sdcard/version)
andversion=$(cat /data/data/com.adobe.flashplayer/lib/libflashplayer.so | grep 'AND 10,')
echo "Replacing \"$andversion\" with \"WIN $winversion\""
echo "Will open the adobe test page on completion"
sed -i "s/$andversion/WIN $winversion/" /data/data/com.adobe.flashplayer/lib/libflashplayer.so
rm /sdcard/version
am start -a android.intent.action.VIEW -d http://kb2.adobe.com/cps/155/tn_15507.html

Just copy the code into a new file anywhere on your sdcard and execute it as su with "sh your_file_name" from the terminal emulator. It gets the current version from adobe's site and replaces the android user agent in libflashplayer.so. This will work until they up it to 11.x, and then all you have to do is change the last bit of the 3rd line to "grep 'AND 11,')" instead.

Whenever flash updates you can just execute this script and you'll be free to watch hulu and what not in ~30 seconds.

Happy modding!

PS I release this code asking only for a thank you in return. Anyone that wants to make an app like adFree for this feel free to do so as long as it is distributed for free.

#5 haiu2323

haiu2323
  • Members
  • 4 posts
  • Twitter:haiu2323
  • Country:vn
  • Device Model:HTC Desire Z
  • MOD Version:7.1.0 RC1
  • Recovery Image:ClockworkMod

Posted 17 August 2011 - 10:18 PM

man you are my hero, help fix the audio but no video issue. thanks

#6 Waterbox

Waterbox
  • Members
  • 1 posts
  • Device Model:HTC Inspire 4G
  • MOD Version:CM7
  • Recovery Image:Cyanogen

Posted 27 August 2011 - 07:36 AM

View PostKamikaze78, on 14 July 2011 - 03:08 AM, said:

I tried to make flash work by doing this, but when I tried to navigate to /data/data/com.android.browser/app_plugins/com.adobe.flashplayer/.macromedia/Flash_Player/config.data as far as I got was /data/data/com.android.browser there was no folder called app_plugins... so how do I fix this?

The files are hidden. I think I just right-clicked and checked "show hidden files".

#7 SupraChris

SupraChris
  • Members
  • 13 posts
  • Country:us
  • Device Model:evo 4g
  • MOD Version:7.0.3
  • Recovery Image:ClockworkMod

Posted 29 August 2011 - 06:26 AM

I got flash to work just by downloading from the market and installing it.

#8 vivianoz777

vivianoz777
  • Members
  • 2 posts
  • Twitter:vivianoz777
  • Device Model:htc aria
  • MOD Version:2.3.3
  • Recovery Image:Cyanogen

Posted 10 September 2011 - 02:10 PM

for no reason at cm7 low or install the Flash player 10.3 why?

#9 digitalsynner85

digitalsynner85
  • Members
  • 31 posts
  • LocationNew Iberia, LA
  • Country:us
  • Device Model:Incredible 2
  • MOD Version:CM7 Nightly Build #56 8/31
  • Recovery Image:Cyanogen

Posted 10 September 2011 - 10:28 PM

Awesome write up. This fixed flash for me. Thanks!

#10 Thee GOC

Thee GOC
  • Members
  • 3 posts
  • Device Model:Motorola Defy
  • MOD Version:7-110930-0800-NIGHLY-Jordan
  • Recovery Image:Cyanogen

Posted 03 October 2011 - 03:54 PM

View PostSupraChris, on 29 August 2011 - 06:26 AM, said:

I got flash to work just by downloading from the market and installing it.

I did as well, and haven't had an issue yet.

OP, is there a specific reason that this needs to be done?  Such as certain sites not working?

#11 flippin flappin

flippin flappin
  • Members
  • 1 posts
  • Device Model:HTC Thunderbolt
  • MOD Version:CM7 RC1.8
  • Recovery Image:ClockworkMod

Posted 03 October 2011 - 10:10 PM

View PostKamikaze78, on 14 July 2011 - 03:08 AM, said:

I tried to make flash work by doing this, but when I tried to navigate to /data/data/com.android.browser/app_plugins/com.adobe.flashplayer/.macromedia/Flash_Player/config.data as far as I got was /data/data/com.android.browser there was no folder called app_plugins... so how do I fix this?

I have the same problem.  Anyone else seen this and know how to fix it?

#12 Frank Loveras

Frank Loveras
  • Members
  • 10 posts
  • Twitter:pedroflovera
  • Device Model:G2
  • MOD Version:7
  • Recovery Image:Cyanogen

Posted 04 October 2011 - 05:02 AM

New update for flash player now is FLASH PLAYER 11, Thank you man finally i can see flash working on cm7..

#13 Sebanisu

Sebanisu
  • Members
  • 2 posts
  • Twitter:Sebanisu
  • Device Model:HTC Inspire 4g
  • MOD Version:CM7 nightlies
  • Recovery Image:ClockworkMod

Posted 08 October 2011 - 04:01 AM

Hello I used the script to mod flash 10 to say I'm running windows so July works. I just upgraded to flash 11. And I edited the script and changed 10 to 11 and I'm getting a sed error /. I'm not sure if something more needs to be done.

#14 winsettr

winsettr
  • Members
  • 4 posts
  • Device Model:Desire HD
  • MOD Version:CM7.1RC1
  • Recovery Image:ClockworkMod

Posted 10 October 2011 - 03:19 AM

View Postflippin flappin, on 03 October 2011 - 10:10 PM, said:


I have the same problem.  Anyone else seen this and know how to fix it?

Are you using a file explorer on your phone or on your computer?

#15 ktech11

ktech11
  • Members
  • 3 posts
  • Device Model:HTC Thunderbolt
  • MOD Version:7.1
  • Recovery Image:ClockworkMod

Posted 25 October 2011 - 02:15 PM

View Postflippin flappin, on 03 October 2011 - 10:10 PM, said:


I have the same problem.  Anyone else seen this and know how to fix it?

I used the terminal emulator on the phone.  If you have ever used Linux this is much easier.  I can give you the list of commands:

su root
(grant terminal emulator root permissions when busybox comes up)
cd /data/data/com.android.browser/app_plugins/com.adobe.flashplayer/.macromedia/Flash_Player/
(the .macromedia folder is hidden, so if you cd to the com.adobe.flashplayer and want to see it, you can type ls -a and it will show you)
once in the/Flash_Player folder you can review the permissions on the config.data file by typing ls -l and it should come up as -rw-rw-rw-
then you type the following to remove the permissions:
chmod 000 config.data
and you are done.

Remember, Linux file paths are case sensitive, so type it exactly as shown.

#16 Nick Sainvil

Nick Sainvil
  • Members
  • 2 posts

Posted 25 October 2011 - 02:49 PM

hey can u plz make a cm7 for the mytouch 4g slide

#17 DIGS11

DIGS11
  • Members
  • 3 posts
  • Device Model:HTC Google Nexus ONE
  • MOD Version:CM7.1.0-RC1-N1
  • Recovery Image:Cyanogen

Posted 26 October 2011 - 04:27 AM

The only way I can get Adobe Flash v10.1 - v11.0 to work on my N1 (CM7.1) is to use Dolphin Browser HD. I have not been able to find the /data/com.android.browser/app_plugins/com.adobe.flashplayer/.macromedia/Flash_Player folder and have not been able to view hidden files or folders in stock file manager, ES Explorer, or Terminal Emulator. Guess I will stick with Dolphin.

#18 Larzzzz

Larzzzz
  • Members
  • 3 posts
  • Twitter:Larzzzz
  • Device Model:|1||
  • MOD Version:6 Nightly
  • Recovery Image:ClockworkMod

Posted 26 October 2011 - 04:36 AM

For some reason, even Dolphin is failing to play them for me.

Sent from my Inspire 4G using Tapatalk

#19 zguithues

zguithues
  • Members
  • 27 posts
  • LocationOhio
  • Country:us
  • Device Model:MyTouch 4g
  • MOD Version:CM7.1 w/ faux's kernel
  • Recovery Image:ClockworkMod

Posted 29 October 2011 - 11:05 PM

i just removed the permissions and it worked perfectly.  Thanks!!!

hopefully someone can figure out the cause behind this, but for now i won't have to go to the computer to watch flash videos.

#20 REMZEJ

REMZEJ
  • Members
  • 52 posts
  • Twitter:Telegrammer
  • Device Model:HDC Galaxy S2 - A9100
  • MOD Version:CM7
  • Recovery Image:Stock

Posted 17 February 2012 - 02:27 AM

View PostKamikaze78, on 14 July 2011 - 03:08 AM, said:

I tried to make flash work by doing this, but when I tried to navigate to /data/data/com.android.browser/app_plugins/com.adobe.flashplayer/.macromedia/Flash_Player/config.data as far as I got was /data/data/com.android.browser there was no folder called app_plugins... so how do I fix this?

we have the same problem. no app_plugin folder in com.android.browser