3D Gallery from SGS2 ICS Leak? - Samsung Galaxy Nexus

hi
I loved the 3D Gallery from the Nexus One and i want to have this Gallery app on the GNx.
The apk from the Nexus One doesn't work. (fc)
I saw on a Video about the ICS Leak for the SGS2, that Samsung still use the 3D Gallery. So i pulled the apk from the leak and tried to install it on my GNx, but i can not install it.
Any Chance to install this Gallery on our GNx?

Sadly I don't have the smarts to figure it out but I do have a logcat for anyone that wants to look into it.
W/PackageParser( 8067): No actions in intent filter at /system/app/Bluetooth.apk Binary XML file line #125
W/PackageParser( 8067): No actions in intent filter at /system/app/Gallery3D.apk Binary XML file line #201
W/ResourceType( 8067): Failure getting entry for 0x7f02004b (t=1 e=75) in package 0 (error -75)
W/InputManagerService( 266): Window already focused, ignoring focus gain of: [email protected]
W/PackageParser( 9920): No actions in intent filter at /system/app/Gallery3D.apk Binary XML file line #201
W/InputManagerService( 266): Starting input on non-focused client [email protected] (uid=10097 pid=8067)
W/PackageParser( 8067): No actions in intent filter at /system/app/Contacts.apk Binary XML file line #538
W/ActivityManager( 266): No content provider found for permission revoke: file:///system/app/Gallery3D.apk
W/ActivityManager( 266): No content provider found for permission revoke: file:///system/app/Gallery3D.apk
W/PackageParser( 266): No actions in intent filter at /data/app/vmdl748848628.tmp Binary XML file line #201
E/PackageParser( 266): Package com.cooliris.media has no certificates at entry classes.dex; ignoring!
Sent from my Galaxy Nexus using xda premium

Zacisblack said:
Sadly I don't have the smarts to figure it out but I do have a logcat for anyone that wants to look into it.
W/PackageParser( 8067): No actions in intent filter at /system/app/Bluetooth.apk Binary XML file line #125
W/PackageParser( 8067): No actions in intent filter at /system/app/Gallery3D.apk Binary XML file line #201
W/ResourceType( 8067): Failure getting entry for 0x7f02004b (t=1 e=75) in package 0 (error -75)
W/InputManagerService( 266): Window already focused, ignoring focus gain of: [email protected]
W/PackageParser( 9920): No actions in intent filter at /system/app/Gallery3D.apk Binary XML file line #201
W/InputManagerService( 266): Starting input on non-focused client [email protected] (uid=10097 pid=8067)
W/PackageParser( 8067): No actions in intent filter at /system/app/Contacts.apk Binary XML file line #538
W/ActivityManager( 266): No content provider found for permission revoke: file:///system/app/Gallery3D.apk
W/ActivityManager( 266): No content provider found for permission revoke: file:///system/app/Gallery3D.apk
W/PackageParser( 266): No actions in intent filter at /data/app/vmdl748848628.tmp Binary XML file line #201
E/PackageParser( 266): Package com.cooliris.media has no certificates at entry classes.dex; ignoring!
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Are the permissions set correctly?

Try this guide: http://epiccm.blogspot.com/2012/01/porting-touchwiz-apps-for-cm7.html
The main thing to do is remove the TouchWiz dependencies.
Sent from my PC36100 using XDA App

spyz88 said:
Are the permissions set correctly?
Click to expand...
Click to collapse
I changed them to rw-r-r and nothing. It is probably due to the app having Touchwiz framework that needs to be modified/removed. That is beyond me so hopefully someone can look into it.

pspunderground said:
Try this guide: http://epiccm.blogspot.com/2012/01/porting-touchwiz-apps-for-cm7.html
The main thing to do is remove the TouchWiz dependencies.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Ok thanks, but thats a bit too freaky for me
Hopefully anyone with the right knowledge can do this...

Just read the guide, I've done a bit of tinkering here and there, I might give this a try since I already have apktool
*Edit*
Apparently APK tool doesn't work with Ice Cream Sandwich.
http://code.google.com/p/android-apktool/issues/detail?id=267
I get this error trying to decompile
Code:
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(Unknown Source)
at org.jf.dexlib.DexFile.<init>(Unknown Source)
at brut.androlib.src.SmaliDecoder.decode(Unknown Source)
at brut.androlib.src.SmaliDecoder.decode(Unknown Source)
at brut.androlib.Androlib.decodeSourcesSmali(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)

Zer0_Cool said:
Just read the guide, I've done a bit of tinkering here and there, I might give this a try since I already have apktool
Click to expand...
Click to collapse
I might give it a try, but I don't own a GNex. Just hopped on this section of XDALand and thought I would help

Zer0_Cool said:
Just read the guide, I've done a bit of tinkering here and there, I might give this a try since I already have apktool
*Edit*
Apparently APK tool doesn't work with Ice Cream Sandwich.
http://code.google.com/p/android-apktool/issues/detail?id=267
I get this error trying to decompile
Code:
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(Unknown Source)
at org.jf.dexlib.DexFile.<init>(Unknown Source)
at brut.androlib.src.SmaliDecoder.decode(Unknown Source)
at brut.androlib.src.SmaliDecoder.decode(Unknown Source)
at brut.androlib.Androlib.decodeSourcesSmali(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Click to expand...
Click to collapse
with apkmanager..? do you think that can works for this procedure?

nevermind 10char

Download Cool 3D Gallery from market, it is the same

apktool/manager does work with ICS. it's tricky, though. you need an older version to decompile and a newer version to compile iirc. that may be backwards but there's a thread on here called Theming Questions and it's talked about.

Booker-T said:
Download Cool 3D Gallery from market, it is the same
Click to expand...
Click to collapse
i try to download but market says that it's not compatible with my phone... no ICS support ?
EDIT: it's my problem, caused by DPI changes ... ;-)

Guys, try this simply installing the apk, for me it works perfectly:
http://forum.xda-developers.com/attachment.php?attachmentid=362413&stc=1&d=1279450049
It is the standard Gallery 3D from Android FroYo.
(I've 4.0.2 stock, not rooted)

matteventu said:
Guys, try this simply installing the apk, for me it works perfectly:
http://forum.xda-developers.com/attachment.php?attachmentid=362413&stc=1&d=1279450049
It is the standard Gallery 3D from Android FroYo.
(I've 4.0.2 stock, not rooted)
Click to expand...
Click to collapse
"Cannot open file"
Sent from my Galaxy Nexus using xda premium

Related

[DEV] Can't compile CM 6.2 for HERO?¿?

Hi all,
Does anyone managed to compile latest CM 6.2 (froyo) sources?¿?¿. I get errors when compiling CMParts and if I choose not to compile CMParts, I get a package that gets me in to crash loops on first start.....
Many Thanks in Advance,
Perdita2000
perdita2000 said:
Hi all,
Does anyone managed to compile latest CM 6.2 (froyo) sources?¿?¿. I get errors when compiling CMParts and if I choose not to compile CMParts, I get a package that gets me in to crash loops on first start.....
Many Thanks in Advance,
Perdita2000
Click to expand...
Click to collapse
You need CMParts. Can you post the compilation errors?
These are my compile errors...
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:72: cannot find symbol
symbol : variable config_enableScreenOffAnimation
location: class com.android.internal.R.bool
getResources().getBoolean(com.android.internal.R.bool.config_enableScreenOffAnimation) ? 1 : 0) == 1);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:83: cannot find symbol
symbol : variable ACCELEROMETER_ROTATE_180
location: class android.provider.Settings.System
Settings.System.ACCELEROMETER_ROTATE_180, 0) == 1);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:96: cannot find symbol
symbol : variable ELECTRON_BEAM_ANIMATION_ON
location: class android.provider.Settings.System
Settings.System.ELECTRON_BEAM_ANIMATION_ON, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:102: cannot find symbol
symbol : variable ELECTRON_BEAM_ANIMATION_OFF
location: class android.provider.Settings.System
Settings.System.ELECTRON_BEAM_ANIMATION_OFF, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:108: cannot find symbol
symbol : variable ACCELEROMETER_ROTATE_180
location: class android.provider.Settings.System
Settings.System.ACCELEROMETER_ROTATE_180, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIActivity.java:125: cannot find symbol
symbol : variable OVERSCROLL_EFFECT
location: class android.provider.Settings.System
Settings.System.OVERSCROLL_EFFECT, 1);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIActivity.java:196: cannot find symbol
symbol : variable OVERSCROLL_EFFECT
location: class android.provider.Settings.System
Settings.System.putInt(getContentResolver(), Settings.System.OVERSCROLL_EFFECT,
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
11 errors
make: *** [out/target/common/obj/APPS/CMParts_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Many Thanks for you Help!!!
Perdita2000
I'm not modifyng any code because first compilation of any CM sources I always use source as is, then I try this created CM-untouched-sources rom and start to make changes (I am developing on CM7 and would like to have my own CM6.2 too...)
Many Thanks,
Perdita2000
I would check two things:
A. That you updated all the repositories. Do another "repo sync" to make sure everything is up to date. If you are using some repositories which you forked (or someone else) they also need to be updated "manually".
B. Do a clean build, by totally removing the "out" directory and then try to recompile it.
If you are still having trouble I can try to look into it, maybe even tonight.
Download froyo_stable CMParts,then it is no problem to compile,or I upload my modified CMParts 6.2.0 with setcpu etc... if you want that
This should fix the issue:
Code:
cd packages/apps/CMParts && git checkout 69613a248519fed7d971bd6292013d36097d0107
- taken from http://forum.cyanogenmod.com/topic/15353-froyo-compile-cannot-find-symbol-error/
At least, that fixed the issue for me.
erasmux said:
I would check two things:
A. That you updated all the repositories. Do another "repo sync" to make sure everything is up to date. If you are using some repositories which you forked (or someone else) they also need to be updated "manually".
B. Do a clean build, by totally removing the "out" directory and then try to recompile it.
If you are still having trouble I can try to look into it, maybe even tonight.
Click to expand...
Click to collapse
I have done A and B yet a few days ago, but nothing was solved and I found k0ner solution too, but It seems to solved compilation issue (can't find what patch 69613a248519fed7d971bd6292013d36097d0107 do?¿?¿, don't know how to search this code on git...) but ROM compiled doesn't boot (boot loop, but don't have error now, I will reproduce it and send logcat...).
Where can I find CMParts stable?¿?¿
Many Thanks to ALL,
Perdita2000
Elelinux, do you mean use froyo-stable branch for CMParts??
Many Thanks,
Perdits2000
perdita2000 said:
Where can I find CMParts stable?¿?¿
Many Thanks to ALL,
Perdita2000
Click to expand...
Click to collapse
Here https://github.com/CyanogenMod/android_packages_apps_CMParts/tree/froyo-stable
perdita2000 said:
Elelinux, do you mean use froyo-stable branch for CMParts??
Many Thanks,
Perdits2000
Click to expand...
Click to collapse
Yes as you see in post above,download it and replace it with that CMParts you have now.
A fully up to date CM6 ROM? I sincerely hope this works out! I think this would be the ideal ROM for our HTC Hero. Gingerbread's a bit slow on the Hero, but Froyo has always worked well.
I'm just writing this to let you know I'd be hugely appreciative of any ROM that you end up producing here!
I am getting same boot loop as when I applied mentioned patch....
I have synced CMParts git with froyo-stable brunch and compile again (clean before new compile) and no errors (typical VM cores from out of memory .... I always get one or two during compilation on CM7 but everything works fine... not enough memory for compilations ( ), but after flash new rom it loops on HTC HERO with following errors...
I/dalvikvm( 161): System server process 164 has been created
I/Zygote ( 161): Accepting command socket connections
I/dalvikvm( 164): Unable to dlopen(/system/lib/libandroid_servers.so): Cannot load library: link_image[2033]: failed to link libandroid_servers.so
I/dalvikvm( 164):
D/AndroidRuntime( 164): Shutting down VM
W/dalvikvm( 164): threadid=1: thread exiting with uncaught exception (group=0x400207e0)
E/AndroidRuntime( 164): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 164): java.lang.UnsatisfiedLinkError: Library android_servers not found
E/AndroidRuntime( 164): at java.lang.Runtime.loadLibrary(Runtime.java:461)
E/AndroidRuntime( 164): at java.lang.System.loadLibrary(System.java:557)
E/AndroidRuntime( 164): at com.android.server.SystemServer.main(SystemServer.java:592)
E/AndroidRuntime( 164): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 164): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 164): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime( 164): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime( 164): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 164): Error reporting crash
E/AndroidRuntime( 164): java.lang.NullPointerException
E/AndroidRuntime( 164): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
E/AndroidRuntime( 164): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887)
E/AndroidRuntime( 164): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884)
E/AndroidRuntime( 164): at dalvik.system.NativeStart.main(Native Method)
I/Process ( 164): Sending signal. PID: 164 SIG: 9
I/Zygote ( 161): Exit zygote because system server (164) has terminated
D/AndroidRuntime( 172):
D/AndroidRuntime( 172): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
I/AndroidRuntime( 172): Heap size: -Xmx16m
D/AndroidRuntime( 172): CheckJNI is OFF
D/AndroidRuntime( 172): --- registering native functions ---
I/SamplingProfilerIntegration( 172): Profiler is disabled.
I/Zygote ( 172): Preloading classes...
D/dalvikvm( 172): GC_EXPLICIT freed 824 objects / 47648 bytes in 7ms
D/dalvikvm( 172): GC_EXPLICIT freed 368 objects / 19104 bytes in 7ms
I/bluetooth_ScoSocket.cpp( 172): Entry name = MY-CAR ScoTypes = 0x7f
I/bluetooth_ScoSocket.cpp( 172): Entry name = Motorola HF850 ScoTypes = 0x7
D/dalvikvm( 172): GC_EXPLICIT freed 319 objects / 18080 bytes in 8ms
D/dalvikvm( 172): GC_EXPLICIT freed 464 objects / 28864 bytes in 9ms
D/dalvikvm( 172): GC_EXPLICIT freed 2096 objects / 108592 bytes in 13ms
I'm going to take a look at /system/lib/libandroid_servers.so compilation because I think is the problem...
Many Thanks to All,
Perdita2000
Hi all,
I have tried a couple of times with no luck, can't find if there is some problem with repos or just a code error, because it compiles without any error...
Have tried to sync froyo-stable but no luck too....
Syncing work tree: 4% (9/210) error: revision master in CyanogenMod/android_device_advent_vega not found
Perdita2000
perdita2000 said:
Hi all,
I have tried a couple of times with no luck, can't find if there is some problem with repos or just a code error, because it compiles without any error...
Have tried to sync froyo-stable but no luck too....
Syncing work tree: 4% (9/210) error: revision master in CyanogenMod/android_device_advent_vega not found
Perdita2000
Click to expand...
Click to collapse
In your /android/system/.repo/manifest/ you find default.xml edit the file and remove the path for advent_vega then run repo sync again
Many Thanks Elelinux ... and sorry about "my newbie questions" .... I'm starting to use github today (more than repo init/sync ... etc)..
Perdita2000
Checked out the "froyo" branch, did a "repo sync", added HTC proprietary files and ROM Manager and started the compile.
Ran into the same compilation error from the start of this thread.
Then applied bjk's fix from here (added the diff files there so you can apply then automatically with "git apply"), then compilation completed smoothly. Boots up just fine here.
What exactly is the error you are getting?
Boot error is posted thread . Did you tried stable or current branch?
Many thanks,
Sent from my Hero using XDA App
perdita2000 said:
Boot error is posted thread . Did you tried stable or current branch?
Many thanks,
Sent from my Hero using XDA App
Click to expand...
Click to collapse
Ok, sorry didn't see it. Doesn't make much sense to me. I used the "froyo" branch (not "froyo-stable"). But this shouldn't matter.
From where did you take your proprietary libs? Try taking them from here: https://github.com/koush/proprietary_vendor_htc/tree/froyo (notice the froyo branch).
I always use device propietary files from device itself. Do you mean they could be wrong?, in fact extract-files.sh didn't pull every needed file (I thought it was wrong because haven't got any issue compiling CM7?¿?¿?).
I will try device files from koush and let you know!!!
Many Thanks to Everyone!!!
Perdita2000

[Q][DEV needed] Moving an app from one ROM to another || and || Missing files

hi there.
So i've asked a dev related questions here before but didnt get an answer... hoping to get one now!
--i didnt ask it in the DEV related forums because it doesnt seem like the place to ask a question--
and i've also searched for an answer, many times, but havent reached a solution
anyway, ...
I took the Dice_ml.apk from the sensation ROM and put it on my 2.3.3 deodexed (near to)stock-ROM, yet i get a 'Force Close'. i deodexed the dice_ml file and added the classes.dex file to the apk.
I 'logcat'ed and found that its missing a .so file, so i found it in the sensation ROM and copied it to the /system/lib folder, yet i still get the error, this is what it says:
I/ActivityManager( 1343): Start proc com.htc.dice.ml for activity com.htc.dice.m
l/.DiceActivity: pid=2762 uid=10130 gids={}
I/DiceActivity( 2762): onCreate()
I/DiceActivity( 2762): onResume()
D/DiceActivity( 2762): [onResume] mView is Null and postDelay
E/Dice ( 2762): Couldn't load libdice_ml.so!
W/dalvikvm( 1443): disableGcForExternalAlloc: false
D/DiceActivity( 2762): [DiceLib::getInstance] Null State
W/dalvikvm( 2762): No implementation found for native Lcom/htc/dice/ml/DiceLib;.
setResourcePath (Ljava/lang/String; )V
D/AndroidRuntime( 2762): Shutting down VM
W/dalvikvm( 2762): threadid=1: thread exiting with uncaught exception (group=0x4
001d5a0)
E/AndroidRuntime( 2762): FATAL EXCEPTION: main
E/AndroidRuntime( 2762): java.lang.UnsatisfiedLinkError: setResourcePath
E/AndroidRuntime( 2762): at com.htc.dice.ml.DiceLib.setResourcePath(Nativ
e Method)
Click to expand...
Click to collapse
The AndroidRuntime Error still goes on. What could be the problem (im kinda new to this moving from one ROM to the next)
And could i also ask how one changes the Resolution of an apk?
//----------------------------
Also, alot of people have this issue, which is that, after rooting, the headphone mic, and buttons dont work.
i also 'logcat'ed it, and sometimes the buttons send a signal to the OS, sometimes it takes a while for the OS to process the signal (or maybe get it?) and sometimes it doesnt receive it at all!(or maybe its taking to long to send the signal).
Anyway, when it does get a signal, it also says that a certain file is missing, heres the log:
W/KeyCharacterMap( 1443): Can't open keycharmap file
W/KeyCharacterMap( 1443): Error loading keycharmap file '/system/usr/keychars/h2
w_headset.kcm.bin'. hw.keyboards.65540.devname='h2w headset'
I/KeyCharacterMap( 1443): Using default keymap: /system/usr/keychars/qwerty.kcm.
bin
E/BroadcastReceiver( 1713): BroadcastReceiver trying to return result during a n
on-ordered broadcast
E/BroadcastReceiver( 1713): java.lang.RuntimeException: BroadcastReceiver trying
to return result during a non-ordered broadcast
E/BroadcastReceiver( 1713): at android.content.BroadcastReceiver.checkSynchr
onousHint(BroadcastReceiver.java:451)
E/BroadcastReceiver( 1713): at android.content.BroadcastReceiver.abortBroadc
ast(BroadcastReceiver.java:374)
Click to expand...
Click to collapse
and also the BroadcastReceiver Error continues in the log.
So i checked the 1.32 original stock rom(my buttons were working on that ROM before i rooted it), and i didnt find the 'h2w_headset.kcm.bin' file, so i thought maybe its from the 'qwerty.kcm.bin' file, thus i replaced it with the same file from 1.32, (and without restarting the phone) i tested the file and still, had the same problem.
My question for this part is ... Is that error normal? and can it be fixed?
and sorry for all this stuff!!!
Hoping for a reply!

Fixing market "download Unsuccessful" - and update to market 2.2.6

Hey Everyone,
Thought i would share what i did to fix up the issues using the market!
Had a fresh install of FRX06, Had done the bluetooth patch (all working, great work guys btw)
Only real issue i had was downloading from the market. Nothing would download.
Every time just download unsuccessful.
So i played around trying to fix it, and ended up being able to upgrade the market to the newer version, and it all works
So steps.
1. Download vending.apk for version 2.2.6 of the market. (attached)
2. plug your phone into your PC and start up droidexplorer.
3. open command prompt in droidexplorer and type "mount -o remount,rw /"
4. go to /system/app and copy the current vending.apk to your computer (for a backup)
5. delete vending.apk from /system/app
6. Rename the new 2.2.6 version to "vending.apk" and copy it to /system/app
7. restart the phone
8. open market and check that it is working
Hope this helps a few of you out and to get your market working
Or to get the newer version of the market.
Cheers
And now something has gone wrong
Was working fine, till my phone had a SOD and wouldnt turn on so i pulled the battery.
Now getting force closes
Code:
I/ActivityManager( 1355): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.in
tent.category.LAUNCHER] flg=0x10200000 cmp=com.android.vending/.AssetBrowserActivity }
I/ActivityManager( 1355): Start proc com.android.vending for activity com.android.vending/.AssetBrow
serActivity: pid=2067 uid=10004 gids={1015, 3003}
I/ActivityThread( 2067): Publishing provider com.android.vending.SuggestionsProvider: com.android.ve
nding.SuggestionsProvider
D/vending ( 2067): [1] VendingApplication.onCreate(): Resetting ServiceLocator from app
D/dalvikvm( 2067): GC_FOR_MALLOC freed 1849 objects / 128848 bytes in 80ms
D/dalvikvm( 2067): GC_FOR_MALLOC freed 6969 objects / 520096 bytes in 90ms
D/GoogleLoginService( 1465): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.goog
le.android.gsf/.loginservice.GoogleLoginService }
I/ActivityManager( 1355): Displayed activity com.android.vending/.AssetBrowserActivity: 1790 ms (tot
al 47180 ms)
D/ResourceType( 2067): calling getConfigurations
D/ResourceType( 2067): called getConfigurations size=200
E/DatabaseUtils( 1465): Writing exception to parcel
E/DatabaseUtils( 1465): java.lang.SecurityException: Permission Denial: writing com.google.android.g
sf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=2067, uid=1000
4 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS
E/DatabaseUtils( 1465): at android.content.ContentProvider$Transport.enforceWritePermission(
ContentProvider.java:348)
E/DatabaseUtils( 1465): at android.content.ContentProvider$Transport.insert(ContentProvider.
java:196)
E/DatabaseUtils( 1465): at android.content.ContentProviderNative.onTransact(ContentProviderN
ative.java:146)
E/DatabaseUtils( 1465): at android.os.Binder.execTransact(Binder.java:288)
E/DatabaseUtils( 1465): at dalvik.system.NativeStart.run(Native Method)
W/dalvikvm( 2067): threadid=9: thread exiting with uncaught exception (group=0x400207f0)
E/AndroidRuntime( 2067): FATAL EXCEPTION: Thread-11
E/AndroidRuntime( 2067): java.lang.SecurityException: Permission Denial: writing com.google.android.
gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=2067, uid=100
04 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS
E/AndroidRuntime( 2067): at android.os.Parcel.readException(Parcel.java:1260)
E/AndroidRuntime( 2067): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUt
ils.java:160)
E/AndroidRuntime( 2067): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUt
ils.java:114)
E/AndroidRuntime( 2067): at android.content.ContentProviderProxy.insert(ContentProviderNative
.java:408)
E/AndroidRuntime( 2067): at android.content.ContentResolver.insert(ContentResolver.java:587)
E/AndroidRuntime( 2067): at com.google.android.gsf.GoogleSettingsContract$NameValueTable.putS
tring(GoogleSettingsContract.java:55)
E/AndroidRuntime( 2067): at com.google.android.gsf.GoogleSettingsContract$Partner.putString(G
oogleSettingsContract.java:126)
E/AndroidRuntime( 2067): at com.android.vending.compat.MarketCheckinHelper.updateCheckinDatab
ase(MarketCheckinHelper.java:12)
E/AndroidRuntime( 2067): at com.android.vending.CheckinUpdater.sendContentSyncViaCheckin(Chec
kinUpdater.java:219)
E/AndroidRuntime( 2067): at com.android.vending.CheckinUpdater.performCheckin(CheckinUpdater.
java:176)
E/AndroidRuntime( 2067): at com.android.vending.CheckinUpdater.access$000(CheckinUpdater.java
:38)
E/AndroidRuntime( 2067): at com.android.vending.CheckinUpdater$1.run(CheckinUpdater.java:109)
E/AndroidRuntime( 2067): at com.android.vending.util.WorkService$1.run(WorkService.java:37)
W/ActivityManager( 1355): Force finishing activity com.android.vending/.AssetBrowserActivity
D/dalvikvm( 2067): GC_FOR_MALLOC freed 6230 objects / 580152 bytes in 160ms
D/dalvikvm( 2067): GC_EXTERNAL_ALLOC freed 3710 objects / 318976 bytes in 110ms
E/Tethering( 1355): active iface (usb0) reported as added, ignoring
Strangely enough... I copied the original market back over and its working (not as pretty though )
I don't have a vending.apk on my system. I tried replacing market.apk, but it just force closed.
I won't have time to check that market APK until quite late tonight at the earliest, and maybe not for a few days (really busy week!), but nearly every one I've ever seen is signed with a key incompatible with our gapps distribution, so I suspect that's the problem you are having.
To get it to work without permissions-related force closes, you have to re-sign it with one of the platform test keys. (I forget exactly which one at the moment). I've done this with 2.2.6 on my phone but I haven't had time to write a tutorial on it.
Edit: Looking at your logcat, GoogleSettingsProvider permissions issues are a classic sign of a signing key mismatch.
Entropy512 said:
I won't have time to check that market APK until quite late tonight at the earliest, and maybe not for a few days (really busy week!), but nearly every one I've ever seen is signed with a key incompatible with our gapps distribution, so I suspect that's the problem you are having.
To get it to work without permissions-related force closes, you have to re-sign it with one of the platform test keys. (I forget exactly which one at the moment). I've done this with 2.2.6 on my phone but I haven't had time to write a tutorial on it.
Edit: Looking at your logcat, GoogleSettingsProvider permissions issues are a classic sign of a signing key mismatch.
Click to expand...
Click to collapse
Oh ok, thanks.
How come it would have worked initially then? Thats weird
Shadoxity said:
Oh ok, thanks.
How come it would have worked initially then? Thats weird
Click to expand...
Click to collapse
I don't know - I do remember a couple of situations where it would work for one download and then fail.
For example, I tried a market APK from a tiad8 ROM - it was awesome for one download and then failed. Now that I know more about the download architecture I think the awesomeness in performance was a fluke. Download performance is all about DownloadProvider.apk and our filesystem drivers... And so far, my attempt to improve Market downloads by tweaking DownloadProvider made the browser totally unusable.
I have had the same as Entropy with most roms I tried.
I can download 1 or 2 things from the market, very slowly, and then it fails, sometimes with random reboots
Just as an FYI, I HAVE gotten Market 2.2.6 to work reliably - it isn't any faster though, that's for sure.
I'll try to post details sometime next week on how to do it. I'm basically out all evening every evening until the end of the weekend so don't have time to post it now.
Shadoxity... question if you will... where did you d/l the bluetooth patch from?
BTW.. I had the same issue w/ market. Went into settings>>applications>> manage applications>> clicked on Market and cleared cache. Did it once and I was only able to d/l 1 file... did it a second time and I've been good since Tuesday. Hope it helps
bluetooth
MerlinOfLore said:
Shadoxity... question if you will... where did you d/l the bluetooth patch from?
Click to expand...
Click to collapse
bluetooth was being tested for Rhodiums over at [TESTING] New audio routing for Froyo. Bluetooth info is in 2nd post.
It didn't work for me... After rebooted the phone (topaz) if I try to run the market it seems to load a white window and after a couple of second it says it's not responding...
What I notice about market is that it leaves 1.83MB-sized "orphans" in /cache. Not sure why it is that size, but regardless of the size of the app it ends up with that fragment.
-- Starfox
MerlinOfLore said:
Shadoxity... question if you will... where did you d/l the bluetooth patch from?
Click to expand...
Click to collapse
From this thead
http://forum.xda-developers.com/showthread.php?t=885550
MerlinOfLore said:
BTW.. I had the same issue w/ market. Went into settings>>applications>> manage applications>> clicked on Market and cleared cache. Did it once and I was only able to d/l 1 file... did it a second time and I've been good since Tuesday. Hope it helps
Click to expand...
Click to collapse
Tried that but made no difference on mine
Has anyone bothered to get logs from the original issue (before the known issue of permissions after manually upgrading the apk)? The only one I've seen had out of memory errors spamming their logs, but they couldn't get me a useful set of logs to look at. If someone could get a log from after a failed market download with my app http://forum.xda-developers.com/showthread.php?t=1123129 it would be much appreciated.
I replaced google apps in frx06 on gapps package downloaded here:
http://goo-inside.me/gapps/gapps-mdpi-20110501-signed.zip
Yes is named as mdpi, but 100% compatible with hdpi too.
And it's works perfect on my opinion.
DmK75 said:
I replaced google apps in frx06 on gapps package downloaded here:
http://goo-inside.me/gapps/gapps-mdpi-20110501-signed.zip
Yes is named as mdpi, but 100% compatible with hdpi too.
And it's works perfect on my opinion.
Click to expand...
Click to collapse
But why...? For what purpose did you replace the gapps package?
arrrghhh said:
But why...? For what purpose did you replace the gapps package?
Click to expand...
Click to collapse
Simply i noticed that built-in gapps are quite old, and also market cant be auto-updated
DmK75 said:
Simply i noticed that built-in gapps are quite old, and also market cant be auto-updated
Click to expand...
Click to collapse
Fair enough, thanks for the follow-up.
DmK75 said:
Simply i noticed that built-in gapps are quite old, and also market cant be auto-updated
Click to expand...
Click to collapse
Just to know, how to install this package? Still through droidexplorer?

Help getting de-touchwized music player to work

Hello
I have been working on removing the touchwiz dependencies from the music player apk from JW4 rom.
I have sucessfully removed all of the touchwiz references and gotten the apk to recompile. I have signed the apk and I can get it to install and show up in the app drawer, but when I try to open the apk I just get a black screen and then it goes back to the app drawer and shows the notification 'media scanner starting...'
here are my logcat results, I'm not really that experienced in android development so I dont really know how to read it and fix the problems,
Is anyone able to help me figure out the logcat results so we can get this app up and running?
Thanks in advance.
If anyone is serious about helping me with this I can send you the apk file too
I/PackageManager( 229): /system/app/MusicPlayerJW4v11-sig-plat.apk changed; collecting certs
I/PackageManager( 229): /data/app/com.google.android.music-1.apk changed; collecting certs
W/PackageManager( 229): Application package com.google.android.music already installed. Skipping duplicate.
W/PackageManager( 229): Not granting permission android.permission.ACCESS_DRM to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Not granting permission com.android.email.permission.ACCESS_PROVIDER to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Not granting permission android.permission.FORCE_STOP_PACKAGES to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Unknown permission android.permission.ACCESS_DEV_STORAGE in package com.android.music
W/PackageManager( 229): Not granting permission android.permission.ACCOUNT_MANAGER to package com.google.android.music (protectionLevel=2 flags=0x8be65)
I/PackageManager( 229): Running dexopt on: com.android.music
W/ActivityManager( 229): Permission Denial: receiving Intent { act=android.intent.action.BOOT_COMPLETED flg=0x10 } to com.android.musicfx requires android.permission.RECEIVE_BOOT_COMPLETED due to sender null (uid 1000)
W/PackageManager( 229): Not granting permission android.permission.ACCESS_DRM to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Not granting permission com.android.email.permission.ACCESS_PROVIDER to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Not granting permission android.permission.FORCE_STOP_PACKAGES to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Unknown permission android.permission.ACCESS_DEV_STORAGE in package com.android.music
W/PackageManager( 229): Not granting permission android.permission.ACCOUNT_MANAGER to package com.google.android.music (protectionLevel=2 flags=0x8be65)
I/ActivityManager( 229): Start proc com.google.android.music:main for broadcast com.google.android.music/com.android.music.MediaAppWidgetProvider: pid=1220 uid=10126 gids={3003, 1015}
I/ActivityThread( 1220): Pub com.google.android.music.MusicContent: com.google.android.music.store.MusicContentProvider
I/MusicStore( 1220): Database version: 37
I/AsyncCursor1:1( 1220): Initialized for content://com.google.android.music.MusicContent/playlists, proj:_id#name, sel: 'null', args: null, order: null
I/MusicPreferences( 1220): Waiting for preferences to be fully loaded
I/MusicPreferences( 1220): Waiting for preferences to be fully loaded
I/ActivityManager( 229): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.music/.list.activity.MpMainTabActivity} from pid 474
I/ActivityManager( 229): Start proc com.android.music for activity com.android.music/.list.activity.MpMainTabActivity: pid=1821 uid=10118 gids={3003, 1015, 3002}
I/dalvikvm( 1821): Could not find method android.os.Environment.getExternalStorageDirectorySd, referenced from method com.android.music.list.activity.MpMainTabActivity$16.onReceive
kage00 said:
Hello
I have been working on removing the touchwiz dependencies from the music player apk from JW4 rom.
I have sucessfully removed all of the touchwiz references and gotten the apk to recompile. I have signed the apk and I can get it to install and show up in the app drawer, but when I try to open the apk I just get a black screen and then it goes back to the app drawer and shows the notification 'media scanner starting...'
here are my logcat results, I'm not really that experienced in android development so I dont really know how to read it and fix the problems,
Is anyone able to help me figure out the logcat results so we can get this app up and running?
Thanks in advance.
If anyone is serious about helping me with this I can send you the apk file too
I/PackageManager( 229): /system/app/MusicPlayerJW4v11-sig-plat.apk changed; collecting certs
I/PackageManager( 229): /data/app/com.google.android.music-1.apk changed; collecting certs
W/PackageManager( 229): Application package com.google.android.music already installed. Skipping duplicate.
W/PackageManager( 229): Not granting permission android.permission.ACCESS_DRM to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Not granting permission com.android.email.permission.ACCESS_PROVIDER to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Not granting permission android.permission.FORCE_STOP_PACKAGES to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Unknown permission android.permission.ACCESS_DEV_STORAGE in package com.android.music
W/PackageManager( 229): Not granting permission android.permission.ACCOUNT_MANAGER to package com.google.android.music (protectionLevel=2 flags=0x8be65)
I/PackageManager( 229): Running dexopt on: com.android.music
W/ActivityManager( 229): Permission Denial: receiving Intent { act=android.intent.action.BOOT_COMPLETED flg=0x10 } to com.android.musicfx requires android.permission.RECEIVE_BOOT_COMPLETED due to sender null (uid 1000)
W/PackageManager( 229): Not granting permission android.permission.ACCESS_DRM to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Not granting permission com.android.email.permission.ACCESS_PROVIDER to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Not granting permission android.permission.FORCE_STOP_PACKAGES to package com.android.music (protectionLevel=2 flags=0x8be45)
W/PackageManager( 229): Unknown permission android.permission.ACCESS_DEV_STORAGE in package com.android.music
W/PackageManager( 229): Not granting permission android.permission.ACCOUNT_MANAGER to package com.google.android.music (protectionLevel=2 flags=0x8be65)
I/ActivityManager( 229): Start proc com.google.android.music:main for broadcast com.google.android.music/com.android.music.MediaAppWidgetProvider: pid=1220 uid=10126 gids={3003, 1015}
I/ActivityThread( 1220): Pub com.google.android.music.MusicContent: com.google.android.music.store.MusicContentProvider
I/MusicStore( 1220): Database version: 37
I/AsyncCursor1:1( 1220): Initialized for content://com.google.android.music.MusicContent/playlists, proj:_id#name, sel: 'null', args: null, order: null
I/MusicPreferences( 1220): Waiting for preferences to be fully loaded
I/MusicPreferences( 1220): Waiting for preferences to be fully loaded
I/ActivityManager( 229): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.music/.list.activity.MpMainTabActivity} from pid 474
I/ActivityManager( 229): Start proc com.android.music for activity com.android.music/.list.activity.MpMainTabActivity: pid=1821 uid=10118 gids={3003, 1015, 3002}
I/dalvikvm( 1821): Could not find method android.os.Environment.getExternalStorageDirectorySd, referenced from method com.android.music.list.activity.MpMainTabActivity$16.onReceive
Click to expand...
Click to collapse
you did something wrong
paintball23456 said:
you did something wrong
Click to expand...
Click to collapse
Very insightful of you, thanks
but do you have any idea WHAT I did wrong? or better still, how to fix it
Have you tried symlinking your external sdcard from /emmc to /mnt/sdcard/ext-sd/?
AOSP has the card /emmc and I can see that it is looking to the external SDcard and not finding it? Samsung has it located at folder inside to internal sdcard. Just be aware though that this may cause issues or the media scanner bug going nuts (although I think not as AOSP make it only scan on disconnect from PC but it may take longer cause it does have to scan the ext card (and so it should anyway).
Its got permissions issues obviously haha
Did you push this via adb? If so then go in and just temporarily go and reset its permissions to all 077. Open it up in root browser/explorer and check the boxes
x x x
x x x
x x x
Reboot the phone and reset the dalvik cache. I usually (for testing only) grant permissions on the test app as full, then back to 0644 if all is good and working.
Try them easy things first, however I think that the last part although it may look like a random 1 line not that important compared to what logcat has spewed at you prior, I actually think this is the key thing? I maybe wrong. Basically the app has checked to see if the boot sequence has been completed according to how samsung has it work....and it hasn't.
AOSP doesn't have the same boot sequece and completion like samsung has because of the different vold, vold.fstab, vold.conf (the latter is also where the device tells to mount the sdcard and external sdcards funnily enough). There is also a reference in the build.prop that is in connection to the two binary fines in /system/bin.
vold.fstab (gingerbread)
Code:
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
discard = disable
asec = disable
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
Build.prop (and fix for media scan?)
Code:
media.stagefright.enable-player=false
media.stagefright.enable-meta=false
media.stagefright.enable-scan=false
media.stagefright.enable-http=true
media.stagefright.enable-rtsp=false
[B]dev.sfbootcomplete=0[/B]
Binaries
"/system/bin/samsungani"
"/system/bin/bootanim"
Maybe look into bringing the files in from the gingerbread, but check ove rthe code in the files in system/etc with a fine tooth comb cause I only got incredible bootloops (I have a feeling that CM chipset swapping to nexus style) is driven from within the kernel?
Worse comes to worse I would ask the devs from the SGSII port if you can grab their files and kernel and test and see what happens?
Man I really don't know aye...this is all speculation, not concreate at all
Edit this post by tegrak maybe of some use?
http://forum.xda-developers.com/showpost.php?p=15185207&postcount=139
If you can make this work on CM based roms there is definitely a beer or 2 from me in your future
Sent from my GT-I9000 using xda premium
Jarmezrocks said:
Have you tried symlinking your external sdcard from /emmc to /mnt/sdcard/ext-sd/?
AOSP has the card /emmc and I can see that it is looking to the external SDcard and not finding it? Samsung has it located at folder inside to internal sdcard. Just be aware though that this may cause issues or the media scanner bug going nuts (although I think not as AOSP make it only scan on disconnect from PC but it may take longer cause it does have to scan the ext card (and so it should anyway).
Its got permissions issues obviously haha
Did you push this via adb? If so then go in and just temporarily go and reset its permissions to all 077. Open it up in root browser/explorer and check the boxes
x x x
x x x
x x x
Reboot the phone and reset the dalvik cache. I usually (for testing only) grant permissions on the test app as full, then back to 0644 if all is good and working.
Try them easy things first, however I think that the last part although it may look like a random 1 line not that important compared to what logcat has spewed at you prior, I actually think this is the key thing? I maybe wrong. Basically the app has checked to see if the boot sequence has been completed according to how samsung has it work....and it hasn't.
AOSP doesn't have the same boot sequece and completion like samsung has because of the different vold, vold.fstab, vold.conf (the latter is also where the device tells to mount the sdcard and external sdcards funnily enough). There is also a reference in the build.prop that is in connection to the two binary fines in /system/bin.
vold.fstab (gingerbread)
Code:
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
discard = disable
asec = disable
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
Build.prop (and fix for media scan?)
Code:
media.stagefright.enable-player=false
media.stagefright.enable-meta=false
media.stagefright.enable-scan=false
media.stagefright.enable-http=true
media.stagefright.enable-rtsp=false
[B]dev.sfbootcomplete=0[/B]
Binaries
"/system/bin/samsungani"
"/system/bin/bootanim"
Maybe look into bringing the files in from the gingerbread, but check ove rthe code in the files in system/etc with a fine tooth comb cause I only got incredible bootloops (I have a feeling that CM chipset swapping to nexus style) is driven from within the kernel?
Worse comes to worse I would ask the devs from the SGSII port if you can grab their files and kernel and test and see what happens?
Man I really don't know aye...this is all speculation, not concreate at all
Edit this post by tegrak maybe of some use?
http://forum.xda-developers.com/showpost.php?p=15185207&postcount=139
Click to expand...
Click to collapse
Thanks Jarmez, I'll have a look at what you said, I'm really busy again at the moment with work and I'm going away to Holland for the weekend too, I'll have a look when I get back, hopefully I will be able to fix the problems and get this up and running soon
any news on it?
ken2802 said:
any news on it?
Click to expand...
Click to collapse
Sorry for the late reply,
I though I'd post this here too as I sent you in the pm the other day.
Still nothing, sorry.
The problem is that the samsung roms mount the internal and external sd cards at different places to all other ICS roms (AOKP, AOSP, CM9, etc) and that is hard coded into the smali of the apk. I don't know how to sucessfully edit the smali to get it to change to work in other roms.
So the project has hit a dead end, I don't know how to change it any other way
kage00 said:
Sorry for the late reply,
I though I'd post this here too as I sent you in the pm the other day.
Still nothing, sorry.
The problem is that the samsung roms mount the internal and external sd cards at different places to all other ICS roms (AOKP, AOSP, CM9, etc) and that is hard coded into the smali of the apk. I don't know how to sucessfully edit the smali to get it to change to work in other roms.
So the project has hit a dead end, I don't know how to change it any other way
Click to expand...
Click to collapse
what if you use simlinks to mount the sdcards to those places as well?
I tried that too, it still didn't work.
From what I understand the samsung rom looks for a specific boot sequence (things being in the right places at the right times) and then it will load up properly.
Because the ICS roms are different, the touchwiz apps look for this sequence and dont find it and then they crash.
Every error I tried to fix with logcat came up with another error after I resolved each one. It just seemed to be never ending.
The only thing I could come to was the boot sequence, it has to do with the vold in the rom, I'm pretty sure anyway
Can you upload the apk anyway?
Wanna take a look when I get time
edit: actually PM me with the apk if you can, cause i will forget it :d
Is anyone still working I'm this?
Sent from my GT-I9000 running remICS-UX using XDA premium
I'm not working on it anymore, I've hit a wall with it.
theos0o has asked for the apk and I've sent it to him, he said he'll work on it when he finds some time.
There are no promises that we will get it to work though...
If he can that would be amazing! I love the stock music player and I'm sure aswell as me and many others would be very grateful for this near impossible task as I've bin told
Sent from my GT-I9000 running remICS-UX using XDA premium

[PORT][TEST][4.1+] FM Radio Beta - Testers needed

Hello XDA!
I am trying to port the FM radio for CM10/AOKP. (From the latest Jelly Bean leak: XXLSJ)
Because I'm running an XXLSJ based rom, I can't really try if the port is successful or not.
I'm trying to run it on an emulator.
Status:
Fixed a lot of UI related issues, missing resources, hardcoded resource ids.
The app loads the needed lib on start:
12-01 07:58:45.104: I/FmRadioController(840): Calling JNI_OnLoad
12-01 07:58:45.104: I/FmRadioController(840): Calling register_FMPlayer
12-01 07:58:45.136: I/System.out(840): FMRadio lib loaded
12-01 07:58:45.294: I/System.out(840): mAirPlaneEnabled flag :false
12-01 07:58:45.364: I/FMRadioService(840): platform :
12-01 07:58:45.364: I/FMPlayer(840): Player created :[email protected]
Managed to add FMRadioService to the application (as non-system service). Now it starts as a new instance.
Managed to copy lot of missing classes to the apk from framework2.jar, twframework.jar and sechardware.jar.
Missing layout elements are copied to the apk.
Apk compiles and installs without error.
Known issues
Force close upon exiting: Unable to start receiver com.gyebro.android.app.fm.widget.FMRadioProvider: android.content.ReceiverCallNotAllowedException: IntentReceiver components are not allowed to register to receive intents
Since the app instantiates a new FMRadioService, and abandons it upon exiting, it is possible, that it causes some memory leak.
Samsung's AudioManager has a separate audio stream for the fm radio. Now I'm using the Music stream (STREAM_MUSIC), so it is possible, that the app can conflict with music players in the background. (So shut down all the music players before trying this)
Again Samsung's AudioManager has a function for checking whether the radio stream is playing via the speakers (or via headset), this function (isRadioSpeakerOn) is replaced by the standard isSpeakerphoneOn. So it is possible, that the listening via speaker/headset option will misbehave.
Some screenshots from the emulator
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download the current version:
signed_FmRadio_XXLSJ.apk
libfmradio_jni.so
libsecmediarecorder_jni.so
Installation:
Copy the apk to system/app
Copy the two so files to system/lib
What I'm asking:
Again I'm asking you to provide LogCat logs, when connecting the headset and pressing the ON button.
Important notice
However I'm pretty sure, that this app could not damage your phone, I'm not responsible for any temporary or permanent hardware related damage happening with your device thanks to this application. So, please keep in mind, that you are trying this at your own risk.
D/widget ( 5921): [MSC_HERO_Accu]>>> WC:866 [0:0] onResume :: fU = true cEUi
= true
D/widget ( 5921): [MSC_HERO_Accu]>>> WC:1916 [0:0] AR_S_T : 0
D/widget ( 5921): [MSC_HERO_Accu]>>> WC:903 [0:0] onResume :: mFAR = false, cC
= false, cEUI = true
D/widget ( 5921): [MSC_HERO_Accu]>>> WC:1135 [0:0] cUI : cnt = 1, mRC = true
E/Launcher( 5921): Error finding setting, default accessibility to not found: ac
cessibility_enabled
D/Launcher.HomeFragment( 5921): onResume
D/widget ( 5921): [MSC_HERO_Accu]>>> WC:1104 [0:0] fireOR
E/widget ( 5921): [MSC_HERO_Accu]>>> SM:281 [0:0] IR : false, IPR : false
D/MenuAppsGridFragment( 5921): onResume
E/ActivityThread( 5921): Failed to find provider info for com.samsung.helphub.pr
ovider
D/widget ( 5921): [MSC_HERO_Accu]>>> WC:601 [0:0] ===== mSetUIDataHandler(): da
y = 7:29 AM, night=4:24 PM
E/widget ( 5921): [MSC_HERO_Accu]>>> SM:281 [0:0] IR : false, IPR : false
D/FMApp (11428): onDestroy -----------
W/System.err(11428): java.lang.NullPointerException
W/System.err(11428): at com.gyebro.android.app.fm.MainActivity.onDestroy(Main
Activity.java:4477)
W/System.err(11428): at android.app.Activity.performDestroy(Activity.java:517
2)
W/System.err(11428): at android.app.Instrumentation.callActivityOnDestroy(Ins
trumentation.java:1109)
W/System.err(11428): at android.app.ActivityThread.performDestroyActivity(Act
ivityThread.java:3429)
W/System.err(11428): at android.app.ActivityThread.handleDestroyActivity(Acti
vityThread.java:3460)
W/System.err(11428): at android.app.ActivityThread.access$1200(ActivityThread
.java:145)
W/System.err(11428): at android.app.ActivityThread$H.handleMessage(ActivityTh
read.java:1264)
W/System.err(11428): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(11428): at android.os.Looper.loop(Looper.java:137)
W/System.err(11428): at android.app.ActivityThread.main(ActivityThread.java:4
978)
W/System.err(11428): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(11428): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err(11428): at com.android.internal.os.ZygoteInit$MethodAndArgsCalle
r.run(ZygoteInit.java:791)
W/System.err(11428): at com.android.internal.os.ZygoteInit.main(ZygoteInit.ja
va:558)
W/System.err(11428): at dalvik.system.NativeStart.main(Native Method)
this is what happens
Hey really very nice work! It seems it cannot find "FMRadio Service". Here is my logcat I hope it helps
Code:
D/FMApp (11531): oncreate -------------------
D/FMApp (11531): FMRadio Service Is NULL. Exit FMRadio
D/FMApp (11531): onDestroy -----------
W/System.err(11531): java.lang.NullPointerException
W/System.err(11531): at com.gyebro.android.app.fm.MainActivity.onDestroy(MainActivity.java:4477)
W/System.err(11531): at android.app.Activity.performDestroy(Activity.java:5172)
W/System.err(11531): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1109)
W/System.err(11531): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3429)
W/System.err(11531): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3460)
W/System.err(11531): at android.app.ActivityThread.access$1200(ActivityThread.java:145)
W/System.err(11531): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1264)
W/System.err(11531): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(11531): at android.os.Looper.loop(Looper.java:137)
W/System.err(11531): at android.app.ActivityThread.main(ActivityThread.java:4978)
W/System.err(11531): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(11531): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err(11531): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
W/System.err(11531): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
W/System.err(11531): at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm(11531): GC_EXPLICIT freed 18K, 90% free 2594K/24576K, paused 2ms?, total 20ms
ROM: ParanoidAndroid 2.54
Kernel: Dorimanx 7.23
Sent from my GT-I9100 using xda app-developers app
needme said:
Hey really very nice work! It seems it cannot find "FMRadio Service". Here is my logcat I hope it helps
ROM: ParanoidAndroid 2.54
Kernel: Dorimanx 7.23
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
I've tried to add the FMRadio system service, but it can't be done on the emulator (I should patch the services.jar and framework.jar to make the ServiceManager add the FMRadio service to the system)
However it seems, that CyanogenMod offers a comfortable way to add system services:
Allow loading of vendor specific services from compiled jar files.
So I will try to load the FMRadioService this way...
(Fortunately all the code of the service is present in a nice separated way, so it won't be hard to make a jar containing it)
Now I need testers again!
I need some testers again! What I'm curious about is, that can you turn the radio on, with earphones connected? Then what are you hearing? (Please create a log while doing this).
Thanks!
See the first post for a lot of new info and download links.
Gyebro said:
I need some testers again! What I'm curious about is, that can you turn the radio on, with earphones connected? Then what are you hearing? (Please create a log while doing this).
Thanks!
See the first post for a lot of new info and download links.
Click to expand...
Click to collapse
Hey
Nice to see progress!You are doing a great job!
The app starts, but when I push the button to turn FM radio on, nothing happens except in the Title shortly stands "Turning on".
Logcat line 175:
Code:
D/FMApp (15454): com.samsung.media.fmradio.FMPlayerException: Unable to turn on FM Radio
D/FMApp (15454): exception occurred during turning on
W/System.err(15454): com.samsung.media.fmradio.FMPlayerException: Unable to turn on FM Radio
W/System.err(15454): at com.gyebro.android.app.fm.MainActivity.on(MainActivity.java:3259)
W/System.err(15454): at com.gyebro.android.app.fm.MainActivity$MyHandler.handleMessage(MainActivity.java:293)
W/System.err(15454): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(15454): at android.os.Looper.loop(Looper.java:137)
W/System.err(15454): at android.app.ActivityThread.main(ActivityThread.java:4978)
W/System.err(15454): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(15454): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err(15454): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
W/System.err(15454): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
W/System.err(15454): at dalvik.system.NativeStart.main(Native Method)
It had some force closes when leaving main activity and change volume within the app (right upper button).Whole Logcat is attached.
Thank you for your work
needme said:
Hey
Nice to see progress!You are doing a great job!
The app starts, but when I push the button to turn FM radio on, nothing happens except in the Title shortly stands "Turning on".
Logcat line 175:
Code:
D/FMApp (15454): com.samsung.media.fmradio.FMPlayerException: Unable to turn on FM Radio
D/FMApp (15454): exception occurred during turning on
It had some force closes when leaving main activity and change volume within the app (right upper button).Whole Logcat is attached.
Thank you for your work
Click to expand...
Click to collapse
I've decompiled the libfmradio_jni.so, and it seems it is using a file called fmradio (without extension) in the dev folder. Do you have this file? (dev/fmradio)
If yes, could you please send it to me?
If no, please create an empty file called fmradio, and copy it to /dev
Gyebro said:
I've decompiled the libfmradio_jni.so, and it seems it is using a file called fmradio (without extension) in the dev folder. Do you have this file? (dev/fmradio)
If yes, could you please send it to me?
If no, please create an empty file called fmradio, and copy it to /dev
Click to expand...
Click to collapse
This file exists but it is completely empty Permissions are 660. Do you need any further information?
Sent from my GT-I9100 using xda premium
needme said:
This file exists but it is completely empty Permissions are 660. Do you need any further information?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
That's enough for now... I think the problem is kernel related -> the kernel must support the use of fm radio hardware.
Gyebro said:
That's enough for now... I think the problem is kernel related -> the kernel must support the use of fm radio hardware.
Click to expand...
Click to collapse
I am now running Siyah 5.0.1 and if it had no FM support then FM should not run even on stock ROM with custom kernel but it does. So I think it is ROM related. There may be dependencies which are just damn hard to find because Samsung has integrated FM too deep in system and log doesn't show what is needed. Damn if Samsung would be open source my phone would be so much better As I see you can't do anything now or? Thank you very much, although it's still not working
If we never try we will never see Keep up your great work!
Sent from my GT-I9100 using xda premium
needme said:
I am now running Siyah 5.0.1 and if it had no FM support then FM should not run even on stock ROM with custom kernel but it does. So I think it is ROM related. There may be dependencies which are just damn hard to find because Samsung has integrated FM too deep in system and log doesn't show what is needed. Damn if Samsung would be open source my phone would be so much better As I see you can't do anything now or? Thank you very much, although it's still not working
If we never try we will never see Keep up your great work!
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Yesterday I've found a thread (this one) which reports something about "loading kernel modules". But I did not have much time to go after that... I thought that on stock ROM, the kernel loads additional modules (.ko files, defined in init.rc) upon boot, while on non-stock roms, there is nothing to load...
Today I've installed the ported FMradio on my stock samsung rom, because I wanted to know, how it looks in logcat, if the FMRadioController can initialize itself. The logcat shown, that there are some other classes, which are related to the FMradio hardware, and some of these are packed in .so libs. (For example AudioPolicyManagerBase seems to have been modified by Samsung, and there are some native code, for example AudioHardwareYamaha -> AudioHardware, which is also different in Samsung ROMs, than in AOSP/CM10/AOKP...)
So the next task is to decompile all the .so libs (from CM10 and XXLSJ), and find out which of them are different... (libmediayamaha_jni.so?),
find out which of the libs are needed (for example there is a libaudiopolicy_sec.so in Samsung roms) and find out which of the classes in framework are missing (for example framework/com.yamaha.android.media.jar is not present in CM10)
EDIT: I've found the line in init.rc which loads the driver for the fmradio.
Code:
# ko files for FM Radio
insmod /lib/modules/Si4709_driver.ko
So finally my questions:
Do you have the Si4709_driver.ko in lib/modules OR in system/lib/modules?
Do you have the command in your init.rc to load this module?
Gyebro said:
So finally my questions:
Do you have the Si4709_driver.ko in lib/modules OR in system/lib/modules?
Do you have the command in your init.rc to load this module?
Click to expand...
Click to collapse
Hey There is the problem.
Module is there, but it's not loaded in init.rc . tried to add the command but it got reset on reboot. Any suggestions? Thank you again
Sent from my GT-I9100 using xda premium
needme said:
Hey There is the problem.
Module is there, but it's not loaded in init.rc . tried to add the command but it got reset on reboot. Any suggestions? Thank you again
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Can you send me your init.rc, and those files which are imported in the beginning of your init.rc
In stock init.rc, there are 3 imports:
Code:
import /init.${ro.hardware}.rc
import /init.usb.rc
import /init.trace.rc
And the fm module is loaded in init.smdk4210.rc (guess its init.${ro.hardware}.rc)
Code:
on init
# ko files for FM Radio
insmod /lib/modules/Si4709_driver.ko
needme said:
Hey There is the problem.
Module is there, but it's not loaded in init.rc . tried to add the command but it got reset on reboot. Any suggestions? Thank you again
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
You can try to load it with ADB: (Assuming that your driver is at system/lib/modules)
Code:
adb root
adb remount
adb insmod /system/lib/modules/Si4709_driver.ko
Gyebro said:
Can you send me your init.rc, and those files which are imported in the beginning of your init.rc
In stock init.rc, there are 3 imports:
Code:
import /init.${ro.hardware}.rc
import /init.usb.rc
import /init.trace.rc
And the fm module is loaded in init.smdk4210.rc (guess its init.${ro.hardware}.rc)
Code:
on init
# ko files for FM Radio
insmod /lib/modules/Si4709_driver.ko
Click to expand...
Click to collapse
OK i did not looked in init,smdk4210,rc. The command is written there and trying to add with adb gives "can't insert Si4709_driver.ko: File exists". So i guess it is loaded. Damn -.- this is not the problem either. Do you still need the files?
needme said:
OK i did not looked in init,smdk4210,rc. The command is written there and trying to add with adb gives "can't insert Si4709_driver.ko: File exists". So i guess it is loaded. Damn -.- this is not the problem either. Do you still need the files?
Click to expand...
Click to collapse
Can you run the following command to make sure, that the module is active?
Code:
adb shell lsmod
No I don't need the .rc files.
Gyebro said:
Can you run the following command to make sure, that the module is active?
Code:
adb shell lsmod
No I don't need the .rc files.
Click to expand...
Click to collapse
Outpout: Si4709_driver 24484 0 - Live 0xbf015000. I guess it is active.
needme said:
Outpout: Si4709_driver 24484 0 - Live 0xbf015000. I guess it is active.
Click to expand...
Click to collapse
Yes, it is active, so the solution is not *that* easy...
Another question: Do you have the file wakeup_keys at /sys/class/sec/sec_key/?
The file is probably there, but in your init.rc (or init.smdk4210.rc) only the following values are written into it:
Code:
# Permissions for gpio_keys.
chown system radio /sys/class/sec/sec_key/wakeup_keys
write /sys/class/sec/sec_key/wakeup_keys 102,116
While in the stock samsung init.rc
Code:
# Permissions for gpio_keys
chown radio system /sys/class/sec/sec_key/wakeup_keys
write /sys/class/sec/sec_key/wakeup_keys 102,116,172
And see what happens in the FMRadioService.smali when the FMRadioService is initializing itself:
Code:
.line 191
const-string v2, "/sys/class/sec/sec_key/"
iput-object v2, p0, Lcom/android/server/FMRadioService;->mWakeUpKeyFilePath:Ljava/lang/String;
.line 192
const-string v2, "wakeup_keys"
iput-object v2, p0, Lcom/android/server/FMRadioService;->mWakeUpKeyFileName:Ljava/lang/String;
.line 193
const-string v2, "102,114,115,116,172"
iput-object v2, p0, Lcom/android/server/FMRadioService;->mFmOn:Ljava/lang/String;
.line 194
const-string v2, "102,116,172"
iput-object v2, p0, Lcom/android/server/FMRadioService;->mFmOff:Ljava/lang/String;
Those nasty "172" key is used (along with 114 and 115 which have no sign in both rc files)!
EDIT: It seems these code part only sets the keys which are waking up the service and the 172 is the HOME key. So this is not essential...
what happened to this application??

Categories

Resources