How difficult would it be to change the build target of an app that is not compatible with android 2.1?
centralpark said:
How difficult would it be to change the build target of an app that is not compatible with android 2.1?
Click to expand...
Click to collapse
It's easy - you can change it in AndroidManifest.xml.
Make sure your app don't use API not available in 2.1 as well, It won't work otherwise on 2.1
ApokrifX said:
It's easy - you can change it in AndroidManifest.xml.
Make sure your app don't use API not available in 2.1 as well, It won't work otherwise on 2.1
Click to expand...
Click to collapse
Could you show me how to change the AndroidManifest.xml file?
Thanks so much
centralpark said:
Could you show me how to change the AndroidManifest.xml file?
Thanks so much
Click to expand...
Click to collapse
Check these links:
http://www.reddit.com/r/Android/comments/11852r/how_to_modify_an_apk/
http://forum.xda-developers.com/showthread.php?t=1891686
http://simonvt.net/2012/02/07/what-api-level-should-i-target/
Related
Hello everyone!
I have tried and tried to customize framework-res.apk, and what a nightmare!! I made a script that works all fine when using Defrost 2.9a and 2.5, but if i try Cyanogenmod or Defrost 3.0, i get force close. When I modify both xml and images.
What am I doing wrong?
Bestest of best regards,
Jonas Hald
Check this initially:
http://forum.xda-developers.com/showthread.php?t=722993
Daelyn said:
Check this initially:
Click to expand...
Click to collapse
As i get it, that doesnt work when I edit the xml, then it has to be recompiled?
Sure
If u change the code it has to be Recompiled ;-)
xtcislove said:
Sure
If u change the code it has to be Recompiled ;-)
Click to expand...
Click to collapse
Yeah, so I do
But i get force close in cyanogen and DF 3.0 - but the Circle Mod online framework modifier can do it, without force close.
Are you sure its not semi-edit the files? I think there are just various versions of the framework.
xtcislove said:
Are you sure its not semi-edit the files? I think there are just various versions of the framework.
Click to expand...
Click to collapse
Semi-edit the files?
So i'm trying to edit the status bar background.png file. I've made a copy of the framework, changed it to zip, replaced file, changed back to apk. But the systems folder is read only. how do i go about changing it to 'write' so I can replace the frameworks???
Also, if my background is transparent, do i also need to change something in the xml if I want the new background to be a solid color
Hi i wanna know how can I edit the UI of my rom for example in ics I want to change that blue line on title of apps or the icons or the status bar background and icons?
Galliture said:
Hi i wanna know how can I edit the UI of my rom for example in ics I want to change that blue line on title of apps or the icons or the status bar background and icons?
Click to expand...
Click to collapse
You would need to flash a theme for the rom or theme the system apks yourself.
zelendel said:
You would need to flash a theme for the rom or theme the system apks yourself.
Click to expand...
Click to collapse
No i like to theme the rom myself but how can I do it? Ones I tried to decompile the systemUI.apk with apk manager but it didnt decompiled it ... How do modders make modes? which app should i use for modding?
Galliture said:
No i like to theme the rom myself but how can I do it? Ones I tried to decompile the systemUI.apk with apk manager but it didnt decompiled it ... How do modders make modes? which app should i use for modding?
Click to expand...
Click to collapse
Apktool is the prefered method but it is alot of trial and error depending on the rom used. Did you install the framework files? Do you have the SDK installed?
zelendel said:
Apktool is the prefered method but it is alot of trial and error depending on the rom used. Did you install the framework files? Do you have the SDK installed?
Click to expand...
Click to collapse
im using ice cold sandwich 7.5 but my sdk is for platform 9 and i cant update it ... can you give me a link for apk tool?
Galliture said:
im using ice cold sandwich 7.5 but my sdk is for platform 9 and i cant update it ... can you give me a link for apk tool?
Click to expand...
Click to collapse
ICS requires a special apktool set up you have to use a command line set up and 2 different apktool jar files. a Search for decompiling ICS will get you a link to the how to and tools.
http://forum.xda-developers.com/showthread.php?t=1511730
Here is a link that came up in the first result of a search but you will need to update the SDK to allow editing ICS
zelendel said:
ICS requires a special apktool set up you have to use a command line set up and 2 different apktool jar files. a Search for decompiling ICS will get you a link to the how to and tools.
http://forum.xda-developers.com/showthread.php?t=1511730
Here is a link that came up in the first result of a search but you will need to update the SDK to allow editing ICS
Click to expand...
Click to collapse
Tnx.I have the lastest version of sdk manager but when i wanna update it it just shows my current sdk .. i tried many ways to update it but i couldnt. How did you get sdk for platform 13?
Galliture said:
Tnx.I have the lastest version of sdk manager but when i wanna update it it just shows my current sdk .. i tried many ways to update it but i couldnt. How did you get sdk for platform 13?
Click to expand...
Click to collapse
Just ran manager with admin rights and downloaded and installed all updates. I have windows 7 64 bit
Sent from my Inspire 4G using Tapatalk 2
zelendel said:
Just ran manager with admin rights and downloaded and installed all updates. I have windows 7 64 bit
Sent from my Inspire 4G using Tapatalk 2
Click to expand...
Click to collapse
ran manager? does it update the sdk? no im using win xp sp3 32bit(i loooove xp)
Warning:
This guide isn't orginally by me, I found it on internet and posting (with some edits) here to help people
The original post : http://epiccm.blogspot.com/2012/01/porting-touchwiz-apps-for-cm7.html
Click to expand...
Click to collapse
Many stock Samsung apps are awesome and beautifully looking, also cyanogen mod is fast and high customizable, you dont need to sacrfice CM& for good looking apps anymore
Click to expand...
Click to collapse
STEPS:
1- get your desired App from System/app + twframework.jar and twframework-res.apk from System/framework
2- Decompile all of them Using APK Manager OR Apktool OR Virtous Ten Studio or any other apps
Guide for decompile,compile : HERE
Click to expand...
Click to collapse
3- Remove the library dependence from the AndroidManifest.xml
The line looks like this:
Code:
and remove any lines contain ‘com.device.samsung’
This to make it install on non samsung roms
Click to expand...
Click to collapse
4- Copy the twframework code into the app source.
‘twframework.jar.out/smali/’
The app now contains both its own code, and all the needed TouchWiz code. There’s a small chance it might work if you recompile it now, but it probably also needs resources
Click to expand...
Click to collapse
.
5-Update the resources
a. Add the needed files/parts
search for any ‘@touchwiz:’ parts in any xml file under res/.
Next, you will need to merge everything under /res/ from the twframework-res.apk.
Copy over anything that doesn’t already exist. Files under /res/values/ (Except public.xml) will need to be merged, meaning insert all the values from the framework into the app, before the closing tag (Keep the XML valid). If your missing any resources, re-compiling the APK will fail
b. Remove the touchwiz references
Replace every ‘@touchwiz:’ with just an ‘@’
Example :
Code:
@touchwiz:color/
to
@color/
Copied directly from OP :
There are some calls to IDs in the 0x20 range, this is an issue because as far as I know, the 0x20 range can only be provided by the system somehow. For the Calendar app, I had to remove setIcon calls in a few activities to prevent ResourceNotFound exceptions.
If you remove them, then some things like images might not work. I also found that just removing them can cause random NullPointer errors.
Note: While working on the Task Manager, it became more complex. I had to update the old 0x20 references to the references within the new package.
After the resources are added, decompile it again, so the added resources show up in the /res/values/public.xml
Search for the old 0x20 value, and update it to the new value. If you include the /smali/touchwiz/ directory, then you can just search for the hex value and you will get the name of it from the TW R.smali files, and you can find the updated hex value in the /res/value/public.xml file
Click to expand...
Click to collapse
6. Re-compile
7. Sign the apk using platform key or testkey from HERE
GUIDE TO SIGN APK
Click to expand...
Click to collapse
Most apps uses testkey but if you had any permission error, use platform key or search google for the error
Click to expand...
Click to collapse
8. Install
adb push /system/app/
OR
using system app installer
OR
using any root explorer
Credits :
-Original poster
-Me, for simplifing it
Click to expand...
Click to collapse
Well this is useful!
I Will release some apps, after my exams finish
Sent from my GT-S5360 using Tapatalk 2
Is it possible to port stock fm radio to cm7?
bluestarfish said:
Is it possible to port stock fm radio to cm7?
Click to expand...
Click to collapse
you can try it, but it will not work anyway. there is a radio fm bug in cm7
yeah finaly i got this
many thanks sir
Well, I had it in my mind everytime but never tried doing it... #laziness
Anyways, this IS usefull :good:
Nachiket.Namjoshi said:
Well, I had it in my mind everytime but never tried doing it... #laziness
Anyways, this IS usefull :good:
Click to expand...
Click to collapse
Its a great honor for me that a good developer like you admires my work
On a side note : many devs ported stock apps (generally clock widget and launcher and task manager) to CM7 but no one ever shared, I don't like those who don't share their experiences
Sent from my GT-S5360 using Tapatalk 2
Perfect !
Just what i needed good job OP
ok so im having issues decompiling settings apk in slimkat 4.4.4. For the fact of the matter i cant even install there framework-res.apk
i get
Code:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080220 drawable/default_wallpaper, config=-sw600dp-nodpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:199)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:168)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:134)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:109)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:687)
at brut.androlib.Androlib.installFramework(Androlib.java:640)
at brut.apktool.Main.cmdInstallFramework(Main.java:252)
at brut.apktool.Main.main(Main.java:91)
when i try to install, resulting in the inability to decompile the settings.apk
any pointers?
I think you need modified apktool because of The real dark slim feature
Notorious said:
I think you need modified apktool because of The real dark slim feature
Click to expand...
Click to collapse
doesn't advanced apktool come with beta 9 apktool?
xdarkmario said:
doesn't advanced apktool come with beta 9 apktool?
Click to expand...
Click to collapse
No idea
Yea slim releases their own apktool ever since they messed with the resources and broke normal apktool support on it
^found it @xdarkmario
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x
Notorious said:
^found it @xdarkmario
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x
Click to expand...
Click to collapse
is that for windows? looks a bit "linuxy"
xdarkmario said:
is that for windows? looks a bit "linuxy"
Click to expand...
Click to collapse
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x/scripts/windows
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x/release
https://github.com/SlimRoms/apktool...-lib/src/main/resources/prebuilt/aapt/windows
Notorious said:
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x/scripts/windows
https://github.com/SlimRoms/apktool/tree/kk-ver-2.x/release
https://github.com/SlimRoms/apktool...-lib/src/main/resources/prebuilt/aapt/windows
Click to expand...
Click to collapse
cant launch these files, says apktool.jar is corrupted and another error with aapt
found one from there website
http://slimroms.net/index.php/downl...apktool-install-windows-1-5-3-kitkat-trds-3-0
Opened a new thread Here
New Thread
Andi32790 said:
Some screenshots
Click to expand...
Click to collapse
could you tell me what files you edited to be able to change the backgrounds
I want to edit pandora as well for my personal use only with certain images..
did you use APK tool for this ?
Ma$etas said:
could you tell me what files you edited to be able to change the backgrounds
I want to edit pandora as well for my personal use only with certain images..
did you use APK tool for this ?
Click to expand...
Click to collapse
There were several files i made changes to mostly in the layout and layout v21 folders. You will have to use apktool to decompile the app.