OS modifications? - Xperia Play Android Development

Rather then installing apps such as the "r" button camera mod, is there anyway to change this permanently without running another app just for the camera.. Seems a bit silly to me, should just be able to exploit some kind of command script or something.

You could just remove the original camera app. Compile the modded camera app with the standart camera app package name ind push that one to /system/bin/

Laberkopf said:
You could just remove the original camera app. Compile the modded camera app with the standart camera app package name ind push that one to /system/bin/
Click to expand...
Click to collapse
Yeah i get ya, just replacing the files obviously after backing them up. My camera mod app is also installed onto the phone so will that be in a similar folder? I like to keep things tidy

Nope that wont work because the camera mod package name is seb.camera.mod while the original cameras package name is com.android.camera .
You must compile the modded camera with the com.android.camera packagename otherwise it wont work. (btw: the package name is not the filename of the apk)

Take a look at this and the modifications
http://forum.xda-developers.com/showthread.php?t=1140540
Sent from my HTC Sensation Z710e using XDA App

Related

[Q] Deleted Gallery now I need help

Ok half of the problem is I deleted the gallery from my Eris running vanilla tazz 26. I mistook it for something else when I was deleting it.
After searching I found this over on the desire forums:
brummiesteven said:
EDIT:
New version for Froyo, support for 24bit color and the full resolution on your camera!
Download HERE
Hey,
Here's the file to install Gallery 3D to the Desire.
You have 2 ways of installing:
1) Install Android USB Driver (search for it) run the following commands:
adb install <filename and path>
2) Copy to SD Card, open in a file manager (make sure "install from unknown sources" is checked in menu) (untested)
New version:
Gallery works great, launches camera, and plays videos!
Download
Click to expand...
Click to collapse
When I installed it everything seems to work fine except the camera button. It dosn't work because I also deleted the stock camera. I use FxCamera. I just like it better. When I'm in FxCamera and I push the gallery button it takes me to the 3dGallery I installed which is perfect thats what I want it to do.
My question is when I'm in 3dGallery and I push the camera button can I make it automatically open FxCamera? Right now when I push the cam button in 3dgallery it just force closes. Thank you so much in advance.
To make it open fxcamera, I don't know. However if you ever want your gallery and camera back, an easy way is to just pull them out of the roms .zip file.
Edit: I suppose you would have to decompile the gallery3d.apk and edit some xml to change the targeted app to open when that button is pushed
Sent from my FroShedYo V10-ERIS using XDA App

[Q] neo V (.62 fw) problem with recompiled Home.apk

Hi.
Sorry, I wasn't sure if it should be in "Themes", so I posted in General.
I've got neo V with root made on .42 (with ZergRush) and .62 stock fw installed via OTA. I was trying to change the number of desktops in Home.apk. What I do, generally:
1. Decompile Home.apk
2. Edit "number_of_desktop_panes" in values/integers.xml
3. Edit values/styles.xml to avoid compilation error (as advised here).
4. Edit DesktopModelManager.smali (as adviced here), but there's slightly different code (different line number and variable (?) name).
5. Recompile, replace with /system/app/Home.apk
The replace process is 100% good, because restoring original Home.apk do not cause any problems.
I do it from adb. I made the /system/tmp/ dir and given it 777 chmod to do it faster (without /sdcard). I mount /system as R/W, push Home.apk to /system/tmp/, change chmod to 644, then replace /system/app/Home.apk with it. Sometimes I try "sync", sometimes not.
It works only with stock Home.apk.
The problem is with recompiled apps.
I tried:
- xdaAutoTool
- ApkMultiTool
- ApkTools (from here)
- ApkTools (from here)
I also tried signing the app and not signing it (as mentioned here).
I also tried installing another launcher (GO Launcher EX), changing it to default, then replacing Home.apk, then changing again.
I also (huh) tried recompiling the app without any changes (except the one in styles.xml, without it, compilation would not succeed).
I also (getting boring) tried skipping the .smali edit.
Nothing works. If I replace Home.apk without reboot, the Home button doesn't work (single press) and if I was on the desktop when replacing app - it becomes black, no dockbar, nothing.
If I reboot - the phone freezes on SE logo, fortunately I can access it with ADB - when I replace Home.apk with stock one, the phone boots in a couple of seconds without a reboot.
I've got Win7 Professional x64, the newet JRE and JDK for x64, tried newest and older apktool.jar, smali.jar and other files. ApkMultitool was working on the yesterday-updated Android SDK folder. And I have no idea, what am I doing wrong... Do you have any ideas?
EDIT:
- earlier I successfully replaced SystemUI.apk with the changed one (Ultrans v2b) - no problems here
- I've got locked BL and I didn't install any recovery
If i understood corect your problems seems because busybox check your version;
and it easy to work with apk manager here is the link:http://forum.xda-developers.com/showthread.php?t=695701
umarian said:
If i understood corect your problems seems because busybox check your version;
Click to expand...
Click to collapse
Why busybox would check the Home.apk version? Or maybe I misunderstood you? If it was about busybox's version, I've got 1.18.4
umarian said:
and it easy to work with apk manager here is the link:http://forum.xda-developers.com/showthread.php?t=695701
Click to expand...
Click to collapse
Like I said, I tried it (ApkMultiTool). Decompiles, recompiles, signs (or not) correctly. Just the .apk doesn't work.
Man send a pm my english it not so good and i try to to help if i can
umarian said:
Man send a pm my english it not so good and i try to to help if i can
Click to expand...
Click to collapse
Thanks, I sent you a PM.
I will also check the procedure on 32bit system in a couple of hours. If anyone has another idea, please let me know.
Just checking you know semc home has a dependancy app and won't compile correct with out said app /framework or semcgeneric.apk
Sent from my Xoom using Tapatalk
kormatoes said:
Just checking you know semc home has a dependancy app and won't compile correct with out said app /framework or semcgeneric.apk
Click to expand...
Click to collapse
I had no idea, compile and decompile didn't report any errors so I assumed it should be OK.
As I never changed apk with dependencies, can you explain me two things?
1. Which files from /system/framework should I pull and where to place them before decompiling with ApkMultiTool?
2. Will files from framework be changed or are they only needed as resources and are left untouched?
WRonX said:
I had no idea, compile and decompile didn't report any errors so I assumed it should be OK.
As I never changed apk with dependencies, can you explain me two things?
1. Which files from /system/framework should I pull and where to place them before decompiling with ApkMultiTool?
2. Will files from framework be changed or are they only needed as resources and are left untouched?
Click to expand...
Click to collapse
Honest it's been months since I used,
decompile with dependency ie framework-
Res.apk then change stuff
Then recompile and in keep folder remove what you changed including resources if xml were changed hopefully you get what im saying
Sent from my MT15i using Tapatalk
OK, I think I got this - SemcGenericUxpRes.apk
Home.apk decompiled with dependencies from this file, then I changed it and compiled. Still the same thing.
Maybe the res file was wrong? Or should I sign it with ApkMultiTool?
WRonX said:
OK, I think I got this - SemcGenericUxpRes.apk
Home.apk decompiled with dependencies from this file, then I changed it and compiled. Still the same thing.
Maybe the res file was wrong? Or should I sign it with ApkMultiTool?
Click to expand...
Click to collapse
Try framework-res.apk
Then try and get different apk tool we use apkmanager
Sent from my MT15i using Tapatalk
kormatoes said:
Try framework-res.apk
Then try and get different apk tool we use apkmanager
Click to expand...
Click to collapse
You were right, thanks. I must have tried with the wrong file earlier, because I was quite sure I tried framework-res.apk - and I didn't. And yes, the app should be signed after build.
Now, the Home.apk is working with my changes, but only after this little "hack" from Chainfire.
But I've got another stupid problem - the only thing that doesn't work is the "Photos and Videos" widget... I think I'll give up...
WRonX said:
You were right, thanks. I must have tried with the wrong file earlier, because I was quite sure I tried framework-res.apk - and I didn't. And yes, the app should be signed after build.
Now, the Home.apk is working with my changes, but only after this little "hack" from Chainfire.
But I've got another stupid problem - the only thing that doesn't work is the "Photos and Videos" widget... I think I'll give up...
Click to expand...
Click to collapse
Now you get it keep going If you changed layout of desk top
widgets need doing to tho
Sent from my MT15i using Tapatalk
kormatoes said:
Now you get it keep going If you changed layout of desk top
widgets need doing to tho
Click to expand...
Click to collapse
Thanks, but in case of widgets I don't even know, where to start from. Why the hell only a couple of them doesn't work now? Photos and Videos, Music Player and Timescape Widget - I think that's all. I have no idea, where it came from :/
EDIT: OK, now I have an idea, but it scares me. As I can see, the only way to compile and run the .apk was to remove
Code:
android:sharedUserId="com.sonyericsson.home"
From AndroidManifest. Now, if I understand properly, the widget needs Home.apk to HAVE that ID? Because logcat says:
Code:
W/System.err( 3399): java.lang.SecurityException: Requesting code from com.sonyericsson.advancedwidget.photo (with uid 10004) to be run in process com.sonyericsson.home (with uid 10138)
Long story short: WTF?!
WRonX said:
Thanks, but in case of widgets I don't even know, where to start from. Why the hell only a couple of them doesn't work now? Photos and Videos, Music Player and Timescape Widget - I think that's all. I have no idea, where it came from :/
EDIT: OK, now I have an idea, but it scares me. As I can see, the only way to compile and run the .apk was to remove
Code:
android:sharedUserId="com.sonyericsson.home"
From AndroidManifest. Now, if I understand properly, the widget needs Home.apk to HAVE that ID? Because logcat says:
Code:
W/System.err( 3399): java.lang.SecurityException: Requesting code from com.sonyericsson.advancedwidget.photo (with uid 10004) to be run in process com.sonyericsson.home (with uid 10138)
Long story short: WTF?!
Click to expand...
Click to collapse
android:sharedUserId="com.sonyericsson.home that's the problem try replacing the compiled resources in a fresh apk
Sent from my MT15i using Tapatalk
I tried removing the same ID from AndroidManifest in PhotoWidget.apk, but it didn't work.
The only thing I've managed to get to know is that no widget from com.sonyericsson.advancedwidget.framework will work and also that I'm not the only one, who has problems with it
kormatoes said:
try replacing the compiled resources in a fresh apk
Click to expand...
Click to collapse
Forgive me, but I don't understand. Can you explain it?
I'm unsure what your trying to do but if you get the resources fileand any thing else you changed from the home apk that you made,
and then put IT inside a fresh home apk -ie new untouched home.apk
this should help with what you're saying your problem is
Sent from my MT15i using Tapatalk
kormatoes said:
I'm unsure what your trying to do but if you get the resources fileand any thing else you changed from the home apk that you made,
and then put IT inside a fresh home apk -ie new untouched home.apk
this should help with what you're saying your problem is
Click to expand...
Click to collapse
OMG, I did it
First of all - I didn't understand you at the first time, about resources and "new" .apk. Now I think I got it (not everything, but enough to get this to work).
The problem I found on my private PC (earlier I was using other PC) was the "Sorry thats not the dependee apk, try again" error when trying to decompile Home.apk with framework-res.apk. It didn't happen before, but I was so tired with all of that, I wanted to try the shortest way, so here's what I did:
1. Decompiled Home.apk without dependencies
2. Made some changes I wanted to make
3. Just compiled the app, answering "y" for question about system app, but without copying "additional files".
4. Replaced resources.arsc file inside original (stock) Home.apk with the one from just compiled unsignedHome.apk, installed and...
- working Home.apk - checked
- working widgets - checked
- happy me - checked!
Thanks!
Your wellcome
Sent from my MT15i using Tapatalk 2 Beta-5

Face unlock app

I've ripped this from my TMobile sgs2 ics update. I've tried it but it seems to need something extra to activate the front camera. Maybe a dev can figure it out. I'll keep this posted for a few hours or so. http://db.tt/ioJxfYXa
Sent from my Sony Tablet S using Tapatalk 2
Can you download the latest Gapps (Google apps zip) from goo-im and extract the Face Unlock app. Push it to system/app with a file explorer and try it?
Or maybe it's missing some libs now that you installed it. I don't know
KCuadrado said:
Can you download the latest Gapps (Google apps zip) from goo-im and extract the Face Unlock app. Push it to system/app with a file explorer and try it?
Or maybe it's missing some libs now that you installed it. I don't know
Click to expand...
Click to collapse
The app works but it's not initializing the camera.
I'm just sayin!
What about logcat? Download aLogcat free from Play Store on the tablet and try to use face Unlock. Then check the logcat later, it might say what's happening.
KCuadrado said:
What about logcat? Download aLogcat free from Play Store on the tablet and try to use face Unlock. Then check the logcat later, it might say what's happening.
Click to expand...
Click to collapse
I'll leave that to a dev that's interested in getting this to work. If I ran a logcat, I wouldn't know what it's saying.
I'm just sayin!
To get this to work, you would need to baksmali the classes.dex from framework.jar, settings.apk and services.jar from a known device like the s2 and from this device, find the smali files you need, then incorporate them into the tab files, smali them back and then push them into the ROM. It's a very difficult task that takes a lot of time and knowledge of java, python and shell scripting. you would also have to push the binaries and libraries associated with face lock and make them function correctly. Also, with done devices, you would need the kernel support meaning you would need to add the proper modules/drivers to the kernel...
Sent from my SGH-I727 using xda app-developers app
thomas.raines said:
To get this to work, you would need to baksmali the classes.dex from framework.jar, settings.apk and services.jar from a known device like the s2 and from this device, find the smali files you need, then incorporate them into the tab files, smali them back and then push them into the ROM. It's a very difficult task that takes a lot of time and knowledge of java, python and shell scripting. you would also have to push the binaries and libraries associated with face lock and make them function correctly. Also, with done devices, you would need the kernel support meaning you would need to add the proper modules/drivers to the kernel...
Sent from my SGH-I727 using xda app-developers app
Click to expand...
Click to collapse
Ah hell, I guess facelock is a no go lol!
I'm just sayin!
e....
Nothing Here
The file you are looking for has been deleted or moved.
-------------------------------------------------------------
maybe you can use this to fix it
Dalvik-Bytecode-Editor
https://code.google.com/p/dex-editor/
Have you tried this?
https://play.google.com/store/apps/details?id=com.facelock4apps
The paid version has also face lock screen, don't know for the free.
Sent from my XT910
marinos35 said:
Have you tried this?
https://play.google.com/store/apps/details?id=com.facelock4apps
The paid version has also face lock screen, don't know for the free.
Sent from my XT910
Click to expand...
Click to collapse
Problem, The Play Store and the settings gets to be locked which is irritating when trying to access the Play Store soon has possible which is the reason I uninstalled it
Sent from my Sony Tablet S using xda premium

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] Installable system app?

Hello XDA Members.
I would like to know how to convert a non-installable system apk into normal installable apk.
Example:
Let's say that test.apk is a system app.
If I take it to another device and try to install it, it will say app not installed, but if I put it in /system/app and chmod 0644 it, it simply works.
So what I want to know is:
How can I make test.apk install normally same as any other apk file
Regards,
~J2C
Just2Cause said:
llo XDA Members.
I would like to know how to convert a non-installable system apk into normal installable apk.
Example:
Let's say that test.apk is a system app.
If I take it to another device and try to install it, it will say app not installed, but if I put it in /system/app and chmod 0644 it, it simply works.
So what I want to know is:
How can I make test.apk install normally same as any other apk file
Regards,
~J2C
Click to expand...
Click to collapse
after deodex the app it will work
There are a few different ways. The main issue being that it has to be signed to be able to install it in/data/app. Easiest way on the phone is this:
https://play.google.com/store/apps/details?id=kellinwood.zipsigner2
On the computer, there are a few different signing tools. Not entirely sure if it matters what SDK platform you are on as it has been awhile since I have played with apps like that.
Vaibhav Chauhan said:
after deodex the app it will work
Click to expand...
Click to collapse
I already deodexed it but it is still not installable
es0tericcha0s said:
There are a few different ways. The main issue being that it has to be signed to be able to install it in/data/app. Easiest way on the phone is this:
https://play.google.com/store/apps/details?id=kellinwood.zipsigner2
On the computer, there are a few different signing tools. Not entirely sure if it matters what SDK platform you are on as it has been awhile since I have played with apps like that.
Click to expand...
Click to collapse
So if I re-sign it, it will work?
Just2Cause said:
I already deodexed it but it is still not installable
So if I re-sign it, it will work?
Click to expand...
Click to collapse
i have face this problem
when i deodexed the app and sign it it was working
@es0tericcha0s
I signed it right now and removed it from /system/app so I can try it, it installed!
But didn't work.
The apk is a close all button from Xperia Z2, I extracted it and deodexed it and I was able to get it to work when it's in /system/app but after I signed it, it installs but it doesn't appear in the recent apps list, as if it wasn't installed.
So I want it to be installable.
@Just2Cause
Ok now you can try this task killer on the attachment
it's based on the old task killer from here:
http://www.xperiablog.net/2014/01/1...ose-all-recent-apps-works-on-xperia-z-series/
and I've modded it to look like z2 task killer
I didn't tested it so tell me if worked with you
@naheel azawy
It didn't work, it installed but doesn't show up.
Just2Cause said:
@naheel azawy
It didn't work, it installed but doesn't show up.
Click to expand...
Click to collapse
what about the one which I based my mod on? does it works?
naheel azawy said:
what about the one which I based my mod on? does it works?
Click to expand...
Click to collapse
Nope.
Just2Cause said:
Nope.
Click to expand...
Click to collapse
!!!
does any task killer worked with you???
if yes plz give me that apk
If it installed, then it's SOMEWHERE... Try this: Use a root explorer to browse through /data/app and see if you see it there. Sometime if the app isn't working right or has the wrong permissions, it'll install but can't see it. Which tool did you use to sign?
es0tericcha0s said:
If it installed, then it's SOMEWHERE... Try this: Use a root explorer to browse through /data/app and see if you see it there. Sometime if the app isn't working right or has the wrong permissions, it'll install but can't see it. Which tool did you use to sign?
Click to expand...
Click to collapse
The app from play store that you suggested.
Edit:
It is in /data/app with rw-r--r-- permissions so it should work.
I attached the apk just in case if you want to check some things.
Edit 2:
The SystemUI.apk has this line in the AndroidManifest.xml:
Code:
<permission android:name="com.sonymobile.permission.TASK_SWITCHER_PLUGIN_VIEW" android:protectionLevel="signatureOrSystem" />
and this one is in the TaskKiller.apk's AndroidManifest.xml:
Code:
<uses-permission android:name="com.sonymobile.permission.TASK_SWITCHER_PLUGIN_VIEW" />
the TaskKiller is asking for permission from SystemUI instead of framework-res, idk why.
I'm thinking that this has to be a system app and tied to SystemUI to function properly. It doesn't seem to have it's own interface which is why no open option when installed and no icon showing.
es0tericcha0s said:
I'm thinking that this has to be a system app and tied to SystemUI to function properly. It doesn't seem to have it's own interface which is why no open option when installed and no icon showing.
Click to expand...
Click to collapse
Exactly, but the old apk from the Japanese Z1 is installable.
Does resigning affect that much that it stops working?

Categories

Resources