Help with deodexing a touchwiz app - Galaxy S II Q&A, Help & Troubleshooting

Hello! I am trying to make the stock Samsung file manager work as a normal apk so I can use it on any ROM. Now from what I scouted around the internet I learned that I need to deodex the apk so it doesn't need the the framework dependencies anymore. I did that, but the problem is like this: I pulled the file manager from the stock 4.1.2 and I'm trying to make it work on 4.2.2. My first question is, is it possible to make it work on other Android versions (ofc higher then the one it came from). If yes can anyone point out what I'm doing wrong as I am a total noob with Android development?
I used Universal Deodexer v4 and there you can choose the Android version. I tried both 4.1 and 4.2 but theres no difference, although the app is deodexed successfully. The actual problem I stumbled across on, is that I push the apk in /system/app, fix permissions and reboot but it doesn't show up in apps manager or app drawer at all.

C'mon, really nobody tried porting that good looking and simplistic file manager?

Breaksense said:
C'mon, really nobody tried porting that good looking and simplistic file manager?
Click to expand...
Click to collapse
I'd be willing to bet that it's because the Samsung application needs Touchwiz framework to correctly function. Here is code I used to launch an app which didn't show up in my app drawer (enter it in Terminal Emulator):
Code:
am start -n com.cyanogenmod.settings.device/.DeviceSettings [enter]
Obviously you need to change the 'com.cyanogenmod.settings.device' and 'DeviceSettings' to your specific application. I still doubt it will work.
The other thing to try is to open it using Titanium Backup, although its possible that Titanium won't recognise it as being installed. Give both a go. In saying that, I doubt the app will work without Touchwiz behind it.

Related

Possible to install AOSP Contacts.apk with Blur?

Ok I've done a little research on this but can't find what I'm looking for exactly.
I really don't like the Blur Contacts app. I have figured out how to filter things correctly so I only get my usual Google contacts but I'd still like to get one feature back that I had on CM - direct dial and direct text message shortcuts. They were supported through the AOSP Contacts app from what I can figure out. The Blur Contacts app has something similar but it doesn't work consistently. Does anyone know if it's possible to install the Contacts.apk and ContactsProvider.apk extracted from CM 6.1.1 (what I had on my EVO) and bring them over to my rooted Atrix?
I'd like a different contacts manager as well. This one combines services which is not what I want/need. Any suggestions that are similar to CM contacts on N1 would be appreciated!
+1 more here for a different contacts app.
+1
Bump
I'd also love the AOSP dialer
phobos512 said:
install the Contacts.apk and ContactsProvider.apk extracted from CM 6.1.1
Click to expand...
Click to collapse
I tired this few days ago, nothing worked. =/
Click install throws an error and says it can't be installed. Pushing the apk to /system just has no result.
Moto's contacts are terrible.
How to Install Android AOSP Apk, in any system.
Find the AOSP apps from a CM6 build by unzipping and pulling the .apk file like browser.apk. Install "File Expert" (Free and amazing file browser with full root access and alteration capabilities application)
Copy the .apk you wish to have on to your phones SD Card
Run File Expert,
hit menu/more/File Explorer settings. Then check "Root Explorer" on the bottom.
hit menu/more/mount/Mount As Read Write
Browse to /System/Apps Find the App you wish to replace with the AOSP version.
Hold Down on the App and when the options come up choose file operations and rename to something like application name.apk.bak
Browse to your SD Card find your app. hold down to choose file operation then choose copy.
Go back to /System/Apps then hit Menu button and choose paste.
Locate the app you just pasted and hold down on it and in file operations choose "permissions" Check Everything and exit out of File Expert
Note: You may need to redo the shortcuts for the app on your desktop and or launcher.
Note: Must have a rooted phone.
Note: 2.3.3 apps may or may not work on 2.2 Android Roms and vice versa.
Note: if this causes errors or failures delete the new apk and rename the old apk to its original name.
Good luck!!
can someone upload the contacts apks?
Sent from my MB860
Download the latest Cyanogen mod for your phone or any. Unzip on your pc and go to the folder labeled system/apps. Get the apps you want from there and pass them to your phone via USB to your phone then follow my previous instructions.
I have already tried to install a different dialer/contacts app. I had no luck, I think that the stock dialer/contacts are to deeply tied into motoblur and the phone system. It won't break your system but you just will not have a dialer or contacts.
Did you try it to my exact instructions. Making sure to you the cyanogen mod that corresponds to your version of android? If it didnt show up on your list you may have tried the 2.3.3 instead of s2.2 dialer.
Oh, I would love to hear the solution to this. I have been trying to figure this out for a couple days now. I pulled Contacts.apk from a Liberty backup I have and have been trying to replace BlurContacts.apk with it to no avail. I believe someone above may have touched on it. Possibly to change when other things look for BlurContacts, and instead refer to Contacts.apk?
I have tried several different contact apps. None work I think that the blur apps are to deeply tied into the system to allow a change.
Bump
any progress ??
sent from my gingerblur 3.1 atrix. with 1% mod & clock delete
I've actually been using GoContacts. It seems to work like how I want my contacts to work(I.E like ASOP) plus allows for a little bit more tweakability.

Requesting stock notes app APK

I guess it's called "Richnote." I'm wondering if someone could export that APK and upload it somewhere so that I can try and get it running on a Galaxy S4. I found http://koolwap.in/games_app/dld.php...ba/comlgeapprichnote-30200111-v32.htm&ext=apk, but the phone just says "application not installed." I have a notes backup from an old E970 that I'd like to view, but I obviously can't with the GS4 (the format is .rnt, whatever that is), and I don't have any other LG device to view them from.
Here it is.
I extracted the app from my phone using Stock 4.1.2
Its called Rich Note
Here is the
PHP:
[URL="http://www.mediafire.com/download/x483o5gtq3o8a8c/com.lge.app.richnote.apk"]link[/URL]
I have this one. Copy to system app and set permissions. Doesn't work with kitkat in ART mode.
https://app.box.com/s/qfxao2m9rcctp2b03eom
Thanks guys!
Unfortunately, for both of those APKs, the phone just says application not installed.
It won't install as a normal app. You need to copy it with a root explorer to system apps, set permissions and reboot.
Sent from my LG Optimus G using xda app-developers app
Try this app it opens the notes I made with the lg notebook app.
https://play.google.com/store/apps/details?id=com.rookiestudio.perfectviewer&hl=en
adfurgerson said:
It won't install as a normal app. You need to copy it with a root explorer to system apps, set permissions and reboot.
Sent from my LG Optimus G using xda app-developers app
Try this app it opens the notes I made with the lg notebook app.
https://play.google.com/store/apps/details?id=com.rookiestudio.perfectviewer&hl=en
Click to expand...
Click to collapse
That probably explains it. The phone currently isn't rooted.
Regarding Perfect Viewer, it's unable to find the "backup.rnt" file that Richnote made during the export, even if I tell something like ES File Explorer to open that file with Perfect Viewer.
So there's no way to install that app without rooting?
So I rooted, copied one of the two APKs that were posted here into /system/app, changed the permissions to match the other APKs that I saw, rebooted, and nothing new showed up. Do these APKs need a matching OPEX file? Both of the Richnote APKs do this.
besweeet said:
So I rooted, copied one of the two APKs that were posted here into /system/app, changed the permissions to match the other APKs that I saw, rebooted, and nothing new showed up. Do these APKs need a matching OPEX file? Both of the Richnote APKs do this.
Click to expand...
Click to collapse
The one I posted shows up as "notebook" in app drawer and it doesn't have an odex file. Not sure if that would keep it from working on an odexd ROM. It is a modded apk. and I am pretty sure I found in a Samsung forum.
Oh...and googling .rnt it says it is files for CNC machines, but there are some free programs to open them.
adfurgerson said:
The one I posted shows up as "notebook" in app drawer and it doesn't have an odex file. Not sure if that would keep it from working on an odexd ROM. It is a modded apk. and I am pretty sure I found in a Samsung forum.
Oh...and googling .rnt it says it is files for CNC machines, but there are some free programs to open them.
Click to expand...
Click to collapse
Ah... I'm really confused, then. I tried putting some random APKs in /system/app and they ended up showing up after a reboot, so I'm not sure what's happening with the APKs that you guys posted.
I might just go to a T-Mobile store to open up my Richnotes backup and email all of the text to myself.
This is where I got it from downloaded the zip and pulled app from it. Does it look like the same note app you are trying to get?
http://forum.xda-developers.com/showthread.php?t=1938414
adfurgerson said:
This is where I got it from downloaded the zip and pulled app from it. Does it look like the same note app you are trying to get?
http://forum.xda-developers.com/showthread.php?t=1938414
Click to expand...
Click to collapse
I'm not sure what it looked like before (I barely used the phone), but I don't think that that's it.
I think I skipped out on your APK (the first two that I mentioned, one was from Alex_XV6700, the second was RichNote_a003.apk from a stock AT&T ROM for the E970). I put it in /system/apps, and the app works, but it's a different app overall, unfortunately. Thanks anyway.
I think the idea of going to a store to get the notes would be the easiest.

[Q] How to disable Tethering on a S3

Hi
Please can anyone help me to DISABLE tethering on the S3. I want all types: USB, WiFi hotspot and Bluetooth Tethering disabled but for the mobile still to be able to use data for other apps like WhatsApp etc. Its to disable access to the internet for a minor (I have removed the browser applications already but there are computers in the house that can be connected via these other routes and the kids these days are sharp ).
Any help would be appreciated.
Thanks
Mark
Just go to the notification panel and disable them from there i know this is not that helpful but i tried to be
Sent from my GT-I9300 using XDA Premium 4 mobile app
With a rooted phone, you would have to decompile system/settings.apk using apktool or similar (in a pc with the android sdk installed).
Edit its xml to remove, just delete, the thetering and portable hotspot menu, and then put the modified settings.apk back into the phone.
That would make it so they cannot activate it via the settings menu, but the phone would still be able to by using 3rd party apps.
Look into decompiling and compiling system apps with framework and apktool. Its a lot to put in the post, but there are great tutorials in the xda community. It's time consuming, but once you get the hang of it, really easy.
Re. How to disable tethering
dxppxd said:
With a rooted phone, you would have to decompile system/settings.apk using apktool or similar (in a pc with the android sdk installed).
Edit its xml to remove, just delete, the thetering and portable hotspot menu, and then put the modified settings.apk back into the phone.
That would make it so they cannot activate it via the settings menu, but the phone would still be able to by using 3rd party apps.
Look into decompiling and compiling system apps with framework and apktool. Its a lot to put in the post, but there are great tutorials in the xda community. It's time consuming, but once you get the hang of it, really easy.
Click to expand...
Click to collapse
Thank you dxppxd, that's exactly what I wanted to know. I am familiar with the apktools method of modifying apk files and my phone is rooted. :good::laugh:
Any other suggestions are welcome too.
Blaauwberg said:
Thank you dxppxd, that's exactly what I wanted to know. I am familiar with the apktools method of modifying apk files and my phone is rooted. :good::laugh:
Any other suggestions are welcome too.
Click to expand...
Click to collapse
Hi dxppxd, there is no Settings.apk under /system. Any idea where else it could be. Also, is the xml file in the res directory and is it also called settings.xml?
The version of android is 4.1.2 and is stock.
Your help is appreciated.
R
Mark
Blaauwberg said:
Hi dxppxd, there is no Settings.apk under /system. Any idea where else it could be. Also, is the xml file in the res directory and is it also called settings.xml?
The version of android is 4.1.2 and is stock.
Your help is appreciated.
R
Mark
Click to expand...
Click to collapse
Edit: Ooops! It's system/app/settings.apk my bad!
Also, you probably have an odexed rom. I suggest installing a stock deodexed rom so you can decompile settings.apk
You can get one in the roms section, I remember 4.1.2 stock deodexed versions of wanamlite or archidroid roms.
I'll look into which xml to edit, don't really remember. It's usually one called layout or res_layout or something like that.
There was a tut for modding the settings layout, ill look for it when I get home and post the link, was very helpful a long time ago.
Edit2: this is the tutorial. It was made for moding android 2.3.6 settings. But a lot of things still apply. It gives a very good idea on what each section does, and how the layout is made and you're only removing stuff, not adding titles or sections:
http://forum.xda-developers.com/showthread.php?p=24317850
Good luck.

Extracting Stock Camera

I am trying to figure out how to extract the camera app from the stock ROM to use in the CM13 ROM. Partly because I would like to use it for slow-motion video and to experiment with it, but also because I would like to turn this into a learning experience. I've been following instructions to flash ROMs for a few years now, but haven't gone farther than that.
So here has been my experience so far:
- Backed up CM13, flashed stock (rooted), and converted the app to user app in order to back it up.
- I noticed that it would crash on startup as a user app, so I converted it back to a system app as an experiment. It still would crash on startup.
- I decided to try going another route and extracted the stock ROM in SuperR's Kitchen. Got the apk, flashed it in CM13. Same situation: crash on startup as user or system app.
I am unsure where to go from here. Any help is greatly appreciated. Thanks in advance.
Side note: I know there is a questions sub-forum too, but I figured it fit here better as it is about extracting an app to mod the ROM. If I was mistaken, please just move the thread over to the appropriate sub-forum.
Masterjuggler said:
I am trying to figure out how to extract the camera app from the stock ROM to use in the CM13 ROM. Partly because I would like to use it for slow-motion video and to experiment with it, but also because I would like to turn this into a learning experience. I've been following instructions to flash ROMs for a few years now, but haven't gone farther than that.
So here has been my experience so far:
- Backed up CM13, flashed stock (rooted), and converted the app to user app in order to back it up.
- I noticed that it would crash on startup as a user app, so I converted it back to a system app as an experiment. It still would crash on startup.
- I decided to try going another route and extracted the stock ROM in SuperR's Kitchen. Got the apk, flashed it in CM13. Same situation: crash on startup as user or system app.
I am unsure where to go from here. Any help is greatly appreciated. Thanks in advance.
Side note: I know there is a questions sub-forum too, but I figured it fit here better as it is about extracting an app to mod the ROM. If I was mistaken, please just move the thread over to the appropriate sub-forum.
Click to expand...
Click to collapse
Did the logcat give any pointers as to why it might have crashed?
It's a camera app, for MiFavor, and only for MiFavor. It's probably depending on something else from the stock ROM, and that's why it's crashing in CM.
I like this idea. I might even look into modifying the app itself, to see if we can get it working outside of MiFavor.
I don't think I worded it clearly enough, the first time I converted it to a user app and back to system, it was still in the stock ROM. Something about the conversion screwed things up. I'll have to flash stock again at some point and grab logcats while it's working and after I screw it up.
In the meantime, I attached a logcat for everything containing "camera" after it was converted to a system app in cm13. It's kind of harsh to look at it in pure text format, but I used the matlog app with its color coding to record it.
To be honest, I'm not quite sure what I'm looking at with this, or if I went about this in the right way.
EDIT: I have no idea why the logcat is not attaching correctly. I'll need to find some other way of doing it.
It works fine under CM according to a friend. You just need the libs to go along with the app.
Here is the WHOLE folder of ZTE camera, he just put this inside the /system/priv-app/ folder and apparently it's working just fine after a reboot.
https://my.mixtape.moe/znyabg.7z
Remember to press thanks and buy me a beer.
It's still not working properly for me, but here are a few things I noticed:
- When I extracted the app from the ROM using SuperR's Kitchen, that folder did exist in /system/priv-app/ZTE_Camera/. However, the directory was completely empty, unlike your download.
- When I installed the app in CM13 and converted it to a system app, it moved to /system/priv-app/ rather than /system/priv-app/ZTE_Camera/.
- I copied the lib folder to /system/priv-app/, didn't work. I then created the folder ZTE_Camera and copied both lib and the apk into it. Didn't change anything. Of course rebooting with each change. I didn't think this would work in the first place, as the application shortcut on my home screen points to /system/priv-app/.
Definitely thanks though for helping me out. Beer... that's another matter. Nasty stuff that is. I can just hear people yelling at me behind their screens lol.
Was it a deodexed ROM? Might need to try it with the odex files? When I check /system/priv-app/ZTE_Camera, there's also an "oat" folder with odex files since this hasn't been deodexed...
Or maybe SuperR's kitchen was trying to automatically deodex while you were extracting.
To be honest, I never understood odex, just throwing ideas out at this point.
Masterjuggler said:
It's still not working properly for me, but here are a few things I noticed:
- When I extracted the app from the ROM using SuperR's Kitchen, that folder did exist in /system/priv-app/ZTE_Camera/. However, the directory was completely empty, unlike your download.
- When I installed the app in CM13 and converted it to a system app, it moved to /system/priv-app/ rather than /system/priv-app/ZTE_Camera/.
- I copied the lib folder to /system/priv-app/, didn't work. I then created the folder ZTE_Camera and copied both lib and the apk into it. Didn't change anything. Of course rebooting with each change. I didn't think this would work in the first place, as the application shortcut on my home screen points to /system/priv-app/.
Definitely thanks though for helping me out. Beer... that's another matter. Nasty stuff that is. I can just hear people yelling at me behind their screens lol.
Click to expand...
Click to collapse
I'm sure it works, friend confirmed it works on CM13 and I'm using it on BrokenOS. To clear it up.
It should be /system/priv_app/ZTE_Camera. And inside that folder should be the apk along with the lib. If you just extract the zip I gave you into priv_app it should just work. I have no idea why it doesn't work for you. Everything about the camera works. Slomo, video h265, the works.
You can try making a backup of the stock camera app using titanium backup then install it on your phone after flashing CyanogenMod. What I would do is flash zad miix then back up the stock camera app with titanium backup. Then transfer the back up to your PC. Then flash CyanogenMod and reinstall the camera app with titanium backup.
as already I will have this phone I start doing this mods
if anyone can search the file this and tell me if an entry is interesting?
I'm currently using LOS 14.1, and the method suggested does not work - File Manager throws an error about R/W, TWRP claims /system is empty, and ADB push says "Successful" but isn't.
NadavCE said:
I'm currently using LOS 14.1, and the method suggested does not work - File Manager throws an error about R/W, TWRP claims /system is empty, and ADB push says "Successful" but isn't.
Click to expand...
Click to collapse
It is working for me, just copied the files with root explorer to priv-app, restarted and it is up and running.
Thanks @BlazingBullets for providing the files!
PS. the only problem so far is that you can't access the pictures right through the app, i think we need the zte gallery for that.
lian00 said:
It is working for me, just copied the files with root explorer to priv-app, restarted and it is up and running.
Thanks @BlazingBullets for providing the files!
PS. the only problem so far is that you can't access the pictures right through the app, i think we need the zte gallery for that.
Click to expand...
Click to collapse
Root Explorer doesn't work for me either. Did you root with SuperSU or with the Lineage root zip?
NadavCE said:
Root Explorer doesn't work for me either. Did you root with SuperSU or with the Lineage root zip?
Click to expand...
Click to collapse
Used SuperSU 2.79SR3.
I can confirm using the files provided works. I have the stock MM camera working with all of it's shooting modes !
Any body have the files in a .zip they can upload? I have no computer access and the few apps I tried on my phone seem to corrupt the files.
First app I tried extracted the 7zip file just fine.
NadavCE said:
Root Explorer doesn't work for me either. Did you root with SuperSU or with the Lineage root zip?
Click to expand...
Click to collapse
You have to disable the write-protect on the system partition: in a terminal emulator, preferably in TWRP, type out:
Code:
reboot disemmcwp
Erahgon said:
You have to disable the write-protect on the system partition: in a terminal emulator, preferably in TWRP, type out:
Code:
reboot disemmcwp
Click to expand...
Click to collapse
Thanks, that did it. Copied successfully to /system/priv_app, but it doesn't show up after a reboot. When I accessed the folder and tapped the APK, I got "there is a problem parsing the package."
NadavCE said:
Thanks, that did it. Copied successfully to /system/priv_app, but it doesn't show up after a reboot. When I accessed the folder and tapped the APK, I got "there is a problem parsing the package."
Click to expand...
Click to collapse
Maybe the app permissions are wrong?
Erahgon said:
Maybe the app permissions are wrong?
Click to expand...
Click to collapse
Should I give it full permissions then?
---------------------------------------------------------------------------------------------------------------------------
Update: After giving everything (ZTE_Camera folder, the APK, the lib folder, the arm folder, and all the libs) full permissions, the app works. However resolution is limited to 8Mp 4:3 (3200 x 2400). Can anyone else confirm this?

Error installing Launcher extracted from the ROM of an android gamebox

Hello
First of all I want to say that I use BLISS OS x86 7.1.2 system on the mini pc Alfawise X5
then extract a LAUNCHER.apk from the GEMBOX F500 device at this link: https://forum.xda-developers.com/showthread.php?t=2692843&page=69
but I can not install it because I have the error "app not installed the package conflicts with an existing package". The problem is that this launcher has never been installed on my device, this error occurs with other applications that were made exclusively for satelite android receivers of my country, already tried to install and the same error occurs, but they were never installed on my device, someone knows the can I do to install LAUNCHERf500.apk ??????
Sorry for my english I'm using google translate, thanks for the attention !!
Decompile the apk and change its package name in the Android manifest
Or
Use an app cloner that might be able to do it for you
However doing this may cause problems eg some features may not work or app may force close
You can also find out what the package name is & try uninstalling it via adb so you can install the apk with the same package name
Also Iv no idea why you have posted this in the mx player xda section as it's nothing to do with it so I'll get it moved
TheFixItMan said:
Decompile the apk and change its package name in the Android manifest
Or
Use an app cloner that might be able to do it for you
However doing this may cause problems eg some features may not work or app may force close
You can also find out what the package name is & try uninstalling it via adb so you can install the apk with the same package name
Also Iv no idea why you have posted this in the mx player xda section as it's nothing to do with it so I'll get it moved
Click to expand...
Click to collapse
I already did this but did not install apk
I already cloned, and changed the package name.
is there a lock, or a way of knowing that apk is being installed on hardware other than GEMBOX F500 ???
Can I change the application to install on my device?
or changing Build.prop ??
Sorry for posting in the wrong place, I'm not familiar with the site
dividafox said:
I already did this but did not install apk
I already cloned, and changed the package name.
is there a lock, or a way of knowing that apk is being installed on hardware other than GEMBOX F500 ???
Can I change the application to install on my device?
or changing Build.prop ??
Sorry for posting in the wrong place, I'm not familiar with the site
Click to expand...
Click to collapse
Since it's a launcher I assume you are rooted and placing the apk in system/priv-app (system/app if pre lollipop) and giving it the correct permissions then restarting the device
Some launchers are only designed to work on certain devices & would require porting to work on others
Anyway - best to actually post in your device forum or the general if your device does not have its own forum
Iv asked the mods to move this as it has nothing to do with mx player

Categories

Resources