How can I add jar and odex file to framework folder? - Miscellaneous Android Development

I have a Galaxy Young Duos TV (GT-S6313T), and I'm using a Galaxy Young Duos (GT-S6312) ROM, X-Sam Duos.
Trying to port TV to this ROM, I've searched in stock ROM all files that have "broadcast", "nex", "ltn" and "one seg" in its name. Then I copied them to new installation, including TV apk and odex.
I get two behaviors: if I put all files found in ROM, less the /system/framework files, ROM boot normally, but TV app doesn't appear. If I put all, including the frameworks, ROM doesn't boot, get stuck in Samsung animation.
What can I do?
List of files
/system/bin/broadcastProcessObserver_ltn
/system/etc/one-seg/debug_ltn.ini
/system/lib/libbroadcastForOneSeg_ltn_jni.so
/system/lib/libBroadcastProcObs_ltn.so
/system/lib/libbroadcast_signalForOneSeg_jni.so
/system/lib/libbroadcast_upgrade_ltn_jni.so
/system/lib/libnexcalbody_aac_ltn.so
/system/lib/libnexcalbody_h264_ltn.so
/system/lib/libnexcalbody_ltn.so
/system/lib/libnexcal_ltn.so
/system/lib/libnexplayerjni_ltn.so
/system/lib/libnexplayerservice_ltn.so
/system/lib/libnexralbody_ltn.so
/system/lib/libnexral_ltn.so
/system/lib/libnexsalbody_debug_ltn.so
/system/lib/libnexsalbody_file_ltn.so
/system/lib/libnexsalbody_mem_ltn.so
/system/lib/libnexsalbody_sock_ltn.so
/system/lib/libnexsalbody_syncobj_ltn.so
/system/lib/libnexsalbody_task_ltn.so
/system/lib/libnexsalbody_time_ltn.so
/system/lib/libnexsal_ltn.so
/system/lib/libonesegappmgr.so
/system/lib/libOneSegControl.so
/system/lib/libonesegdemux_ltn.so
/system/lib/libonesegdmxdriver_ltn.so
/system/lib/libonesegdsmcc_ltn.so
/system/lib/libOneSegESG.so
/system/lib/libOneSegfactorytest_jni_ltn.so
/system/lib/libonesegoc.so
/system/lib/libonesegsp_ltn.so
/system/lib/libonesegutils_ltn.so
/system/lib/libPGL_ltn.so
/system/lib/libProtocolProc_ltn.so
/system/app/MobileTV_LTN.apk
/system/app/MobileTV_LTN.odex
/system/bin/nexprocess_ltn
/system/framework/nextreaming.jar
/system/framework/nextreaming.odex
/system/etc/permissions/nextreaming_java_lib.xml
/system/lib/OneSegControl
/system/lib/OneSegDsmcc_ltn
/system/lib/OneSegGinga
/system/lib/OneSegTsDemux_ltn
/system/etc/permissions/SecBroadcast.xml
/system/framework/SecBroadcast.jar
/system/framework/SecBroadcast.odex
/system/etc/permissions/SecBroadcastSignal.xml
/system/framework/SecBroadcastSignal.jar
/system/framework/SecBroadcastSignal.odex
/system/etc/permissions/SecBroadcastUpgrade.xml
/system/framework/SecBroadcastUpgrade.jar
/system/framework/SecBroadcastUpgrade.odex
/system/etc/one-seg/tvfiles_database_ltn.db
Edit
Found the problem: framework files were odex, and ROM is deodexed. After deodex framework and TV apk files, system boots and TV app is there, but it FC. Tried another deodex method for TV apk, system lags a lot but app isn't launched

Related

is this a stock samsung feature only?

When i was using a stock rom i remember i could copy libs and apks to system and as soon as i was out of root explorer those files worked without needing to restart.
Now i am on cm9 rc2 and i noticed that copying the same files i need to reboot to make the files work.
Is that a touchwiz exclusive feature or is somewhere hiden?
The only thing i remember doing different now in cm9 was updating apex launcher, could that be the reason?
The files i used are email apk, polaris office libs and apks, etc.

[Q] Can't delete files from lib folder

I have a problem with a apk from a Dutch tv provider ziggo....
With this app we are able to watch tv but only on non-rooted devices.......
I have 4 android devices and ofcourse they are all rooted and running on custom roms.
The first apk ziggo provided was cracked in a couple of days, for what i understand 2 "so" files had strings that searched for SU files and if they where found the app won't let you watch tv. These files where modified and recompiled so the app worked perfect on rooted devices.
Now.......ziggo launched an update with many bugfixes so i removed the old app en installed the new one.
Now to get it working again i need to replace 2 files in data/data/nl.ziggotv/lib
These files are "so" files but i can't move/delete/override these new files anymore.......
I tried everyting in root explorer, i also can't change r/w/e permissions over these files........what to do??? and how are these files protected??
For Devs who want to help me out, here's a link to the ziggo apk
https://dl.dropbox.com/u/24745264/Ziggo TV.apk

[Q] Question about stock Samsung apps after custom mod

I know this has been asked before, but it hasn't been asked too clearly, at least to me. I'm using CM 10.1 on a Tmobile Galaxy S3, and I want to install a few of the Samsung apps like the Accuweather widget, sMemo, etc. I have all the apps in a backup folder, and they all have two files; a .apk file, and a .odex file. Can I just install them (.apk) like normal apps, or do I need to do something special with the .odex file, or can you even run them on a custom rom? I just really like a few of the stock features and would prefer to have them, but not at the cost of giving up CM 10.1 just to use them.
The stock apps need kinda stock environment to work with. So most of the stock apps don't work properly on a custom ROM.
That shouldn't prevent you from giving it a try.
You shouldn't be installing it as a normal app, but you should push the apk to system/app with right permissions (rw-r--r--) and reboot.
See if that works. Try with and without the odex file.
Look at this thread on how to set permissions.
A search would have told you that you can't run OEM apps in an AOSP based rom
Wayne Tech S-III
You need the framework that samsung adds. Using a rom based off the original will do it for you.

[Q] Best way to install new de-odexed system apps?

I have a samsung galaxy note 2 (sgh-t889) I have de-odexed framework, and all system apks after a long learning process but i tested two of them and they worked on my phone! Pleased i would like to install the 151 apks and the framework files onto my phone but what is the easiest fastest way to do so?, i am still unfamiliar with adb but i know push pull, how can i delete system/app and replace it with my own app folder with all my de-odexed files?

system files from extraced stock samsung rom

Hi,
I accidentally deleted the google services framework odex file with lucky patcher. now I wanted to replace the file from a stock rom that I have downloaded from sam mobile but I cannot extract the system files. Tried the tool sgs2toext4 but it is somehow not working.
Galaxy s6
5.02.
G920FXXU1AOCV
G920FDBT1AOCN
where do I get system files from a specific rom?
It would also be a great help if someone could send me the GoogleServicesFramwork.odex from System/priv-app/GoogleServicesFramework folder
Or maybe other suggestion what to do. My phone is unstable because this services tries to start periodically and a message gapps process has stopped...

Categories

Resources