We've all been through it. We install an application but the system name on the file is different from what you want it to be. One example would be the WhatsApp+ MOD on XDA. Most people would just like it to be name Whatsapp.
This is where I come in. Everyone says that you can NOT change the original developers system level name for the application, but I have found a way.
I will be taking requests for any applications that are free. I will not do paid applications.
How to request:
Upload the APK that you would like to be modified and send the link to me in this thread.
Tell me what you would like me to change the APK's name to.
It's that easy.
I've noticed you can do this with a few custom launchers like Nova, but not at the system level. However, if you rename an app in the drawer it with realphabetize itself properly.
Sent from my Nexus 7 using xda app-developers app
It's just a simple edit in the Android Manifest, I don't think anyone has said it's not possible
Code:
<application android:label="@string/app_name" android:icon="@drawable/icon" android:name=".Application" android:debuggable="false">
It may also come under strings.xml too.
Code:
<string name="app_name">App</string>
Matt said:
It's just a simple edit in the Android Manifest, I don't think anyone has said it's not possible
Code:
<application android:label="@string/app_name" android:icon="@drawable/icon" android:name=".Application" android:debuggable="false">
It may also come under strings.xml too.
Code:
<string name="app_name">App</string>
Click to expand...
Click to collapse
Yup, that's the only way to do it. All these other apps and APKs that say they can rename it do not work. I just thought I would help out people who don't have time to decompile an APK and edit it.
Hi, I almost sure that android does not work like I suppose (so probably my question does not belong here), but I gonna ask anyway, There is the stock browser in sense roms, and the AOSP browser, (i flashed this: http://forum.xda-developers.com/showthread.php?t=2173565) if I flash the AOSP browser the stock browser is replaced, is there a way to keep both browsers (on topic) maybe changing their names???
SLver said:
Hi, I almost sure that android does not work like I suppose (so probably my question does not belong here), but I gonna ask anyway, There is the stock browser in sense roms, and the AOSP browser, (i flashed this: http://forum.xda-developers.com/showthread.php?t=2173565) if I flash the AOSP browser the stock browser is replaced, is there a way to keep both browsers (on topic) maybe changing their names???
Click to expand...
Click to collapse
They already have different package names, you can have both. They are two different browsers. The zip you flash must be deleting the Sense browser, remove that line from the updater-script
Matt said:
They already have different package names, you can have both. They are two different browsers. The zip you flash must be deleting the Sense browser, remove that line from the updater-script
Click to expand...
Click to collapse
I could try that, but both apks are named "browser". I thought that's why the original browser is replaced during the flash, but I tried the following: flash the aosp browser, then add the stock sense browser renaming it to browser1.apk (to avoid the overwriting) and setting permissions, but after doing that, the aosp browser is not availble to use (it still is in system/app but is not 'usable") its like a rule to not be able to have both browsers because in every MOD which do that the stock browser gets replaced :silly:
SLver said:
I could try that, but both apks are named "browser". I thought that's why the original browser is replaced during the flash, but I tried the following: flash the aosp browser, then add the stock sense browser renaming it to browser1.apk (to avoid the overwriting) and setting permissions, but after doing that, the aosp browser is not availble to use (it still is in system/app but is not 'usable") its like a rule to not be able to have both browsers because in every MOD which do that the stock browser gets replaced :silly:
Click to expand...
Click to collapse
Sense browser is actually called Internet.apk
Matt said:
Sense browser is actually called Internet.apk
Click to expand...
Click to collapse
Hi,
Weird, mine is Browser.apk
Hypercore said:
We've all been through it. We install an application but the system name on the file is different from what you want it to be. One example would be the WhatsApp+ MOD on XDA. Most people would just like it to be name Whatsapp.
This is where I come in. Everyone says that you can NOT change the original developers system level name for the application, but I have found a way.
I will be taking requests for any applications that are free. I will not do paid applications.
How to request:
Upload the APK that you would like to be modified and send the link to me in this thread.
Tell me what you would like me to change the APK's name to.
It's that easy.
Click to expand...
Click to collapse
Hi:
I would be willing to do this edit myself, but I'm not seeing android:label= in the androidmanifest.xml file. So I can't seem to make the change. Is this located in some other XML file in the APK?
Bill Sabatine said:
Hi:
I would be willing to do this edit myself, but I'm not seeing android:label= in the androidmanifest.xml file. So I can't seem to make the change. Is this located in some other XML file in the APK?
Click to expand...
Click to collapse
As Matt stated, look for something alone these lines:
Code:
<application android:label="@string/APPLICATIONNAME" android:icon="@drawable/icon" android:name=".Application" android:debuggable="false">
Code:
<string name="APPLICATIONNAME">App</string>
Hypercore said:
As Matt stated, look for something alone these lines:
Code:
<application android:label="@string/APPLICATIONNAME" android:icon="@drawable/icon" android:name=".Application" android:debuggable="false">
Code:
<string name="APPLICATIONNAME">App</string>
Click to expand...
Click to collapse
There is already exposed MOD that can change the name of application online
oksagi said:
There is already exposed MOD that can change the name of application online
Click to expand...
Click to collapse
Thanks. I'm already aware of this, hence the thread being created over a year ago.
Hypercore said:
We've all been through it. We install an application but the system name on the file is different from what you want it to be. One example would be the WhatsApp+ MOD on XDA. Most people would just like it to be name Whatsapp.
This is where I come in. Everyone says that you can NOT change the original developers system level name for the application, but I have found a way.
I will be taking requests for any applications that are free. I will not do paid applications.
How to request:
Upload the APK that you would like to be modified and send the link to me in this thread.
Tell me what you would like me to change the APK's name to.
It's that easy.
Click to expand...
Click to collapse
I lreally want QuickPic to be renamed.
Please rename QuickPic to Gallery. Below is the download link:
http://file.appsapk.com/download/QuickPic.apk
Related
OK, so you have an Archos Gen 8 devices... and you want sync your Facebook contacts with your contacts list on you device... but the Facebook for Android app does show the sync option... now, here's what you need to do...
What do you need?
1. Archos Gen 8 device with Froyo 2.2.1 (firmware 2.0.54 +)
2. Root
3. Read/write filesystem
How do you get a rooted system with a read/write filesystem?
1. UrukDroid (recommended 0.4.1 +)
2. Chulri's sysroot (permanent root) with R/W filesystem
How do you get this mod working?
1. Install UrukDroid or Chulri's sysroot +rw.
2. Download the attached ContactsProvider.apk
3. Use RootExplorer or Terminal or ADB to backup ContactsProvider.apk to /system/app/
4. Use RootExplorer or Terminal or ADB to copy the attached ContactsProvider.apk to /system/app/
5. Make sure you allow it to overwrite the existing ContactsProvider.apk
6. Reboot
7. Install Facebook for Android and add your Facebook account. You will be prompted to select your sync options.
8. Have fun!!!
Why is it a modded system app?
Yes, I'd love to have an alternative, but honestly there is no other alternative. The Facebook contacts sync works in a different way compared to the sync provided by other apps such as Twitter. Facebook keeps the contacts list in the Facebook cloud instead of sharing it with the Google cloud and so it is fundamentally different. More info here... http://searchengineland.com/google-...nexus-s-googlefacebook-battle-continues-65823
What exactly is modified in this apk?
This mod is quite simple... and just involves the addition of the Facebook for Android package definition "com.facebook.katana" to the "unrestricted_packages" of the contacts sync provider.
How was this modified?
1. Decompile the original ContactsProvider.apk using the smali/baksmali tool by JF.
2. In the decompiled package folder, go to res/values/.
3. Edit the arrays.xml file in a linux/unix compliant text (TextPad, EditPlus, GEdit, vi, etc.). Do not use Notepad or Wordpad.
4. This is what the original arrays.xml looks like.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="unrestricted_packages">
<item>android</item>
</string-array>
</resources>
5. This is what I have added. This is similar to the contents of the ContactsProvider.apk of the Nexus One.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="unrestricted_packages">
<item>com.android.contacts</item>
<item>com.facebook.katana</item>
<item>com.android.mms</item>
<item>com.google.android.gm</item>
<item>com.android.email</item>
<item>com.android.phone</item>
<item>com.google.android.apps.maps</item>
<item>com.android.globalsearch</item>
<item>com.android.calendar</item>
<item>com.google.android.talk</item>
<item>android</item>
</string-array>
</resources>
6. Recompile the apk using the smali/baksmali tool.
7. DO NOT sign the apk.
8. Follow the installation instructions above.
Notes:
1. In the arrays.xml above you could simply add "<item>com.facebook.katana</item>" instead of all and Facebook sync would work.
2. You could use tools like apk-tool by Brut.all or Apk Manager by Daneshm90 to simplify the process of decompiling-recompiling the apk file.
3. Signing the apk will cause boot loops since system apks are not supposed to be signed.
Credits:
mobiousdigital for the original understanding of how Facebook sync works
JesusFreke for smali/baksmali
$auron & chulri for root and filesystem r/w on Gen 8 devices
Google
Archos
Nice i'll add that to my list
From what firmware version is the Contactprovider.apk you changed?
I think you should provide the same for every firmware version that exists at the moment it's possible Archos made some changes to that apk between firmware version and that could cause problems if applied to a different version.
wdl1908 said:
Nice i'll add that to my list
From what firmware version is the Contactprovider.apk you changed?
I think you should provide the same for every firmware version that exists at the moment it's possible Archos made some changes to that apk between firmware version and that could cause problems if applied to a different version.
Click to expand...
Click to collapse
Well, from what I've seen, this is just built of the base Android 2.2.1 code with no Archos customisations, so this works on every version of the firmware where the base Android versions is 2.2.1... so in effect 2.0.54 to 2.1.08.
And... Thanks for including this in your "What can I do when I have root?" list
craigacgomez said:
Well, from what I've seen, this is just built of the base Android 2.2.1 code with no Archos customisations, so this works on every version of the firmware where the base Android versions is 2.2.1... so in effect 2.0.54 to 2.1.08
Click to expand...
Click to collapse
Good is there a way you can describe or make public the modification you have done? diff file maybe? Always interesting to see how people do things.
craigacgomez said:
And... Thanks for including this in your "What can I do when I have root?" list
Click to expand...
Click to collapse
Weeelllllllllll my thanks meter needs to increase........
wdl1908 said:
Good is there a way you can describe or make public the modification you have done? diff file maybe? Always interesting to see how people do things.
Click to expand...
Click to collapse
I will definitely share the modifications in a day or two at the most... as soon as I can squeeze 10-15 mins of free time...
wdl1908 said:
Weeelllllllllll my thanks meter needs to increase........
Click to expand...
Click to collapse
Your thanks meter is now plus 1
Thanks for this mod. Does it also snyc the calendar? Would be nice to have the birthdays from facebook in the calendar widget with Launcher pro.
Sent from my A101IT using Tapatalk
MaxKnall said:
Thanks for this mod. Does it also snyc the calendar? Would be nice to have the birthdays from facebook in the calendar widget with Launcher pro.
Sent from my A101IT using Tapatalk
Click to expand...
Click to collapse
Well, the Facebook app does not have calendar sync... but you could sync your Facebook calendar with you Google calendar and get everything you need....
Added information and details about the modification involved to get this working and how-to-mod... see the first post for details...
Just wondering,
anybody try this method to get facebook sync back on gingerbread devices?
I mean in theory it should work, right?
amcolian said:
Just wondering,
anybody try this method to get facebook sync back on gingerbread devices?
I mean in theory it should work, right?
Click to expand...
Click to collapse
Yeah, late reply, but to clarify things... this does work on Gingerbread... and even on Honeycomb...
It, however, does not work on ICS. The ICS ContactsProvider does not use arrays.xml. Adding it in and recompiling causes it to FC several core apps and wipe out your contacts storage.
UPDATE!
07/12 JVX added
14/7: JVT version added
14/7: JVQ CWM flashable versions for odexed and deodexed! Massive props to to $omator for this, who obviously knows a lot more about creating CWM zips than I do. Go to his post to download, and thank him while you're at it!
30/6: New JVQ version, thanks again bigdyl69! Get it here.
13/6: JVP version now exists, get it here thanks to bigdyl69!
21/5: Added Froyo JSD and Ginger JVO versions.
10/5: Added JVH version
Ok, this does what it says on the tin. It's a mod of the JVX messaging app that adds 3 often requested features:
No autoconvert to MMS after 3 messages
Sending to unlimited contacts
Sent time instead of received time. If you turn off your phone, messages you get whilst it's off will have the right time!
To install:
Simply copy the included apk depending on your system version to /system/app/Mms.apk, and make a backup first just in case.
Notes:
Your ROM MUST be deodexed!
If it doesn't work, clear the cache, the Dalvik cache, and also clear data for Messaging under Settings->Applications->Manage Applications (it won't delete your messages).
If the times are off by several hours download SMS Time Fix and set it the the correct number of hours to fix the timestamps.
The JVB MMS apk is actually from Darky's 10 RC6, but I don't think it's different from the default.
If I get enough requests for:
Other versions (e.g. JVK, etc)
CWM flashable versions
I'll make them.
Hope this is useful to people!
Massive props to ykk_five for his original mod! I couldn't have made this without his help.
HOWTO
Do you theme your Mms app? Got a custom ROM going on and want to do this yourself? Well here's how!
Download Apk Manager from here.
Get your Mms.apk from /system/app/Mms.apk
Get your twframework-res.apk from /system/framework
Open up Apk Manager and choose option 22
Select Mms.apk as your project
Select option 10 (decompile with dependencies)
When it asks you for your dependency, drag and drop twframework-res.apk into the window and press enter
When that's done, go into apk_manager/projects/Mms.apk
Under /res/xml open up mms_config.xml
Go to: <int name="recipientLimit">10</int> change this to -1
Go to <int name="smsToMmsTextThreshold">4</int> Change this to 100
Now open up /smali/com/android/mms/transaction/SmsReceiverService.smali and open it in any text editor.
Search for 'time'. There will be one entry at approximately line 523
Replace this with: invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
There will be another at approximately line 2270.
Replace this with: invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
Save and close them all and go back to apk manager, option 11 'compile'
When you're done, it'll tell you about a 'keep' folder. Go delete mms_config.xml, and in the keep folder also delete resources.arsc and classes.dex
Copy your new Mms.apk to your phone! Don't forget to back up your old one in case you make a mistake.
If you get errors, check the log for mentions of 9.png errors. If they are there, fix your 9 patch files! Use google for that, I'm not explaining how to do this.
If you can't be bothered to do this or don't know how, send me a PM! I've made more than 8 custom Mms.apks for people so far.
Did you know that this was the thing I look for?
Thank you!
I'll provide feedback in case of any problems.
I was wondering if I use handcent sms do I still need this if I wanted the "sent time" instead of receive time?
Cheers
NeoXTC said:
I was wondering if I use handcent sms do I still need this if I wanted the "sent time" instead of receive time?
Cheers
Click to expand...
Click to collapse
No, this is only a modification to the stock SMS app, sorry.
Hey mate,
What did you change in the apk to remove the mms convert?
I am trying to edit the TW4 mms.apk to be the same as what you've done.
Thanks!
Otherwise, Could you make the same changes to the attached mms.apk?
this is the TW4 one.
Ryyuu said:
Hey mate,
What did you change in the apk to remove the mms convert?
I am trying to edit the TW4 mms.apk to be the same as what you've done.
Thanks!
Otherwise, Could you make the same changes to the attached mms.apk?
this is the TW4 one.
Click to expand...
Click to collapse
Under res / xml / mms_preferences.xml change
<int name="smsToMmsTextThreshold">3</int>
To something like 100. I'd just make the edit for you but I'm not at home
Fantastic!!
Thanks mate.
What about the received time setting too?
Also, How are you decompiling and editing your apk's?
I'm on a mac so have been using Betterzip to extract them and KOD to edit them... but i'm afraid i'm still seeing all scrambled text...
Ryyuu said:
Fantastic!!
Thanks mate.
What about the received time setting too?
Also, How are you decompiling and editing your apk's?
I'm on a mac so have been using Betterzip to extract them and KOD to edit them... but i'm afraid i'm still seeing all scrambled text...
Click to expand...
Click to collapse
Ehhh, received time edit involves decompiling and editing the smali files, so it's a little more complex.
As for decompiling/editing, I use apk manager, which is Windows only as far as I know. I run it on my mac using Boot Camp. Also, it won't decompile properly without using the twframework-res.apk dependency file, so make sure you have the tw4 equivalent of that. PM me if you're game to try the smali editing.
Thank so much for your help mate.
I have successfully edited the TW4 mms.apk to remove the SmsToMms conversion.
I'll create a topic for it. But thank you very much for your help. I might have a look at converting the time too. I'll send you a PM.
icon missing
hello, after replaced and rebooted, Messaging icon dissappeared from bottom bar of twiz. Any idea how to bring it back...Sms works normally, sending time shown, as expected.
ruh01 said:
hello, after replaced and rebooted, Messaging icon dissappeared from bottom bar of twiz. Any idea how to bring it back...Sms works normally, sending time shown, as expected.
Click to expand...
Click to collapse
[Solved by Ryyuu, scroll down]
All you need to do to fix this is open the app drawer, press edit, find the messaging icon and drag it to the dock.
This can sometimes happen when playing around with apk's.
Fixed.
You don't imagine how much I am thankful to you. I was looking for this very mod. Thank you so much. It works like a charm on my SGS with Darky's v10.RC6
hi,good work.would you please tell me,which xml or smali files to edit or post it as sources files for developers?I would like to insert it into my transparent mms app.
pauldiddy said:
hi,good work.would you please tell me,which xml or smali files to edit or post it as sources files for developers?I would like to insert it into my transparent mms app.
Click to expand...
Click to collapse
For xml, go to res/xml/mms_preferences.xml, then edit recipientLimit and smsToMmsTextThreshold to something overly large, I used 100 as it seems no one will breach that limit.
As for the sent time, just decompile this and stock Mms.apk and do a windiff on the smali folders. There's 2 lines changed which will jump right out.
Hi.Thanks works perfect on deodexed JVB.
montymintypie said:
For xml, go to res/xml/mms_preferences.xml, then edit recipientLimit and smsToMmsTextThreshold to something overly large, I used 100 as it seems no one will breach that limit.
As for the sent time, just decompile this and stock Mms.apk and do a windiff on the smali folders. There's 2 lines changed which will jump right out.
Click to expand...
Click to collapse
thank you,got it.
I know this may be a little off topic but would this modification work on the JPY froyo MMS.apk? I have decompiled it and looked at the xml and there is a mms_config.xml file with the following code in it:
<?xml version="1.0" encoding="UTF-8"?>
<mms_config version="4">
<bool name="enabledMMS">true</bool>
<int name="maxMessageSize">307200</int>
<int name="mmsHeaderSize">5120</int>
<int name="maxImageHeight">480</int>
<int name="maxImageWidth">640</int>
<int name="defaultSMSMessagesPerThread">200</int>
<int name="defaultMMSMessagesPerThread">20</int>
<int name="minMessageCountPerThread">10</int>
<int name="maxMessageCountPerThread">5000</int>
<string name="uaProfUrl">http://wap.samsungmobile.com/uaprof/GT-i9000.xml</string>
<string name="userAgent">SAMSUNG-GT-I9000-Mms/2.0</string>
<string name="uaProfUrlS1">http://wap.samsungmobile.com/uaprof/GT-i9000.xml</string>
<string name="userAgentS1">SAMSUNG-GT-I9000-Mms/2.0</string>
<string name="uaProfUrlApollo">http://wap.samsungmobile.com/uaprof/GT-i5801.xml</string>
<string name="userAgentApollo">SAMSUNG-GT-I5801-Mms/2.0</string>
<int name="recipientLimit">100</int>
<int name="smsToMmsTextThreshold">100</int>
</mms_config>
Click to expand...
Click to collapse
As you can see I've edited the bottom two lines of code like what you have done to the JVB MMS.apk. Do you think this will work?
It should work just as well on the JPY version, compile it and give it a go!
montymintypie said:
It should work just as well on the JPY version, compile it and give it a go!
Click to expand...
Click to collapse
Well I tried it and it kind of works. I can send a message up to 7 messages long and it doesn't auto convert but if I try to make the message any longer it tells me 'Maximum number of characters reached' so it sort of works. Do you know of any way around this or is it best to just leave it? Probably won't ever need to send a sms longer than 7 messages long but just thought I'd ask
Hey everyone,
I've just donloadest the newest version of the game "Tiny Bee"(its a copy of dillo hills)
I started the game and just saw that the soft buttons were disabled
I went back to the homescreen and there they are!
If we could use this (how they are able to disable the Soft Buttons) we could use this
Until now, just Archos applications (music,video,...) were able to do so.
If you're interested in that i could send an e-mail to the developers of the game, they're german too
what do you think about this? let me know..
I'm not a developer, but these settings are in the Manifest, aren't they?
So, if we had the command for this, we could put this in the local.prop for those people where the other method doesn't work, like me. I will look.
But does the other trick to remove the buttons is working for you?
Flix123 said:
I'm not a developer, but these settings are in the Manifest, aren't they?
So, if we had the command for this, we could put this in the local.prop for those people where the other method doesn't work, like me. I will look.
But does the other trick to remove the buttons is working for you?
Click to expand...
Click to collapse
Thanks for interest
I dont try the other ways, but i need the soft buttons in the browser, but in games i dont need them, and if we could set up for each app if we want the buttons or not, that would be cool!
I dont like the other ways, because you cant do that...
Yep, i also think there are in the manifest xml file could you look? that would be assome!
I could look, but how can I do this? Do I need the SDK or somethinglike this?
Flix123 said:
I could look, but how can I do this? Do I need the SDK or somethinglike this?
Click to expand...
Click to collapse
Noo^^
You have WinRar right?
Open the apk with this and you will get the manifest.xml
do need a link to the apk? (Warning:Warez) I would send to you per PM
I've the apk and it's extracted. But I can't open the AndroidManifest.xml. When I open it with notepad++, there are only some 00000.
How I can open it?
Forget, what I said.
I think, I found it: There's the permission: a r c h o s . p e r m i s s i o n . F U L L S C R E E N . F U L L
I will try to put that into other games.
Flix123 said:
Forget, what I said.
I think, I found it: There's the permission: a r c h o s . p e r m i s s i o n . F U L L S C R E E N . F U L L
I will try to put that into other games.
Click to expand...
Click to collapse
Wonderfull! Thank you!
I lay in bed otherwise i would do it, but i'm just on my archos
It really looks like this permission is the key
I'm testing it in the moment.
You're German, right? So could I send you a german PM?
I don't know, how we could put the permission in apps. Maybe we need the SDK for this?
Is there a developer, that could help us?
And does this work for you? It doesn't work. In connection with button savior it could solve the problem, too.
Okey, i'll send you a german pm easier..
For fhe others:
If there will be any updates i post them here
I have done it before..
Here's how to do it:
1. Decompile the apk using APK tool or other tool that have same function
2. Add this (without quotes) --> "<uses-permission android:name="archos.permission.FULLSCREEN" />" to AndroidManifest.xml
3. Recompile back the apk
4. Sign the apk, I use zip signer
5. Install the apk
I've done this to ezPDFReader, but I think this method is lots of work and after an update, you have to done it again..
Here's thread from archosfans - http://forum.archosfans.com/viewtopic.php?f=63&t=46665
akmalhisyam said:
I have done it before..
Here's how to do it:
1. Decompile the apk using APK tool or other tool that have same function
2. Add this (without quotes) --> "<uses-permission android:name="archos.permission.FULLSCREEN" />" to AndroidManifest.xml
3. Recompile back the apk
4. Sign the apk, I use zip signer
5. Install the apk
I've done this to ezPDFReader, but I think this method is lots of work and after an update, you have to done it again..
Here's thread from archosfans - http://forum.archosfans.com/viewtopic.php?f=63&t=46665
Click to expand...
Click to collapse
Okey, thanks
I it would be much work but could we create an app that decompile the apk and add the line in the manifest?
I'm new in apps develop but i read me in atm
Do you know if android can decompile a apk from built-in?
I'm sure this function hided anwhere, because if theres no function like the we wouldnt be able to install a apk
1. Doesn't "decompile" just mean "unzip"? apk files are just zip files, with some alignment and signing, and you can just unzip them.
2. Dumb question: If you get rid of the buttons, how do you leave the app?
arpruss said:
1. Doesn't "decompile" just mean "unzip"? apk files are just zip files, with some alignment and signing, and you can just unzip them.
2. Dumb question: If you get rid of the buttons, how do you leave the app?
Click to expand...
Click to collapse
1. normally yes, but then the manifest.xml file nearly isnt redable
2. With an button insie the app
Lenn said:
Okey, thanks
I it would be much work but could we create an app that decompile the apk and add the line in the manifest?
I'm new in apps develop but i read me in atm
Do you know if android can decompile a apk from built-in?
I'm sure this function hided anwhere, because if theres no function like the we wouldnt be able to install a apk
Click to expand...
Click to collapse
It would be nice if we can decompile apk inside the device itself. But I think there's no such thing yet
Guys that arent new news
Sorry i am too lazy to search the link, but in the Archosfans forum an Archos Staff said that they implemented the fullscreen permission in one of the last firmware updates...
U have to put the permission line into the manifest...
I tested it and it worked. I am not a developer, u just have to use the Apk Edit tool.
Edit: Okay here is your solution
http://forum.archosfans.com/viewtopic.php?f=63&t=46665
akmalhisyam said:
It would be nice if we can decompile apk inside the device itself. But I think there's no such thing yet
Click to expand...
Click to collapse
Actually, you can compile command-line unzip/zip utilities, and then use a zip-signer app.
(Nevermind--I forgot that the xml files are binary compressed. Sorry, can't see how to delete my reply.)
Just found that there is a way to do this without editing the manifest (and changing the signing keys, thereby losing app data). Instead, just edit /data/system/packages.xml. I just tried it with Angry Birds Seasons, and it worked fine, except that without the buttons it was hard to get out (I just rebooted).
Basically, you pull packages.xml to the PC, find the <package> section you need, and add
<item name="archos.permission.FULLSCREEN.FULL" /> to its <perms> section. If it doesn't have a <perms> section, just add:
<perms>
<item name="archos.permission.FULLSCREEN.FULL" />
</perms>
Then put packages.xml back in /data/system/. Of course you'll need root, but you don't need rw system (/data/system is not in the system partition).
And then reboot (no way around that as far as I can see).
It wouldn't be at all hard to write a little app to do this. It would take less than half an hour for someone who knows how to use SAX (I don't).
One thing this shows, which I didn't know, is that the system gets the permissions from packages.xml, not the manifest. So modifying the manifest in the apk wouldn't help unless you re-installed the apk. And it also means that one can change which permissions one gives an app after one has installed it (though it's probably going to crash if you deny it something it needs).
Of course, be careful. If the xml is malformed, you'll probably get a reset loop. So backup your system first. (I basically tar /data)
arpruss said:
Just found that there is a way to do this without editing the manifest (and changing the signing keys, thereby losing app data). Instead, just edit /data/system/packages.xml. I just tried it with Angry Birds Seasons, and it worked fine, except that without the buttons it was hard to get out (I just rebooted).
Basically, you pull packages.xml to the PC, find the <package> section you need, and add
<item name="archos.permission.FULLSCREEN.FULL" /> to its <perms> section. If it doesn't have a <perms> section, just add:
<perms>
<item name="archos.permission.FULLSCREEN.FULL" />
</perms>
Then put packages.xml back in /data/system/. Of course you'll need root, but you don't need rw system (/data/system is not in the system partition).
And then reboot (no way around that as far as I can see).
It wouldn't be at all hard to write a little app to do this. It would take less than half an hour for someone who knows how to use SAX (I don't).
One thing this shows, which I didn't know, is that the system gets the permissions from packages.xml, not the manifest. So modifying the manifest in the apk wouldn't help unless you re-installed the apk. And it also means that one can change which permissions one gives an app after one has installed it (though it's probably going to crash if you deny it something it needs).
Of course, be careful. If the xml is malformed, you'll probably get a reset loop. So backup your system first. (I basically tar /data)
Click to expand...
Click to collapse
Thaaaank you!
Thanks for the work sou made!
Great news!
Actually i start with app developement at the moment, but jow i just can give out test and buttons and such very first stadium...
You really mean this would be easy? For someone who can create an app?
I could ask the deceloper of the Uruconfig app, solune
But maybe he have to do much at the moment...
We could also create a thread on general xda to ask for somebody who could do this
Hello again! I would like to share another mod that will remove the annoying facebook pictures when you open your gallery.
By default whenever you are logged in to facebook the HTC Gallery app would download all the profile pictures of your friends and show it in the main window of your gallery thus cluttering the main window of your gallery with pictures that you don't even own. What this mod will do is disable the gallery app from pulling the pictures and instead you will be shown only the default rectangular social thumbnail.
Now why didn't I remove it totally?
The thumbnail still has a purpose. Instead of the gallery directly showing up the facebook images right when you open the gallery app with this mod it is only shown when you click open the rectangular social thumbnail.
Sorry can't post screenshots as this would be breaking the privacy of my friends that will be shown if ever I post screenshots. Just test and give feedback :good:
And for those who want to include this in their custom ROMs. Feel free to do so No need to ask for permission nor I require you guys to give credits to me. Just pull the APK and thats it! No strings attached
Edit: Sorry guys got a typo in the updater script so it failed to install. Already fixed it now.
Edit: Updated installer script.
Download this for the modded gallery.
Click Here
Download this for restoring to stock odexed gallery(If mod won't work on your ROM)
Click Here
Love the idea!
However, attempted to flash in CWM onto TrickDroid 5.4 ROM and it failed. Error Status 6.
Same here
Sent from my HTC One using xda app-developers app
Oh nice thanks
Sent from my HTC One using Tapatalk 2
unremarked said:
Love the idea!
However, attempted to flash in CWM onto TrickDroid 5.4 ROM and it failed. Error Status 6.
Click to expand...
Click to collapse
anilv26 said:
Same here
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Umh, i opened zip, there is an issue at the first string so:
- Open the zip wit 7zip or other
- Go to: "META-INF/com/google/android
- Open the "updater-script" with notepad++ or another editor
- Replace this line with the first
Code:
ui_print("HTC Gallery patch");
- Close the editor
- Save all
- Flash it
You can also do this:
- Download the apk from here or here, or extract it from zip
- Put into you fastboot/adb folder (you can download it from here)
- Connect the phone at pc with debug usb enabled
- Open a cmd or terminal and move to the folder (cd dir_of_folder)
- Type:
Code:
adb push HTCAlbum.apk system/app
- Open the gallery
- Done!
Guich said:
Umh, i opened zip, there is an issue at the first string so:
- Open the zip wit 7zip or other
- Go to: "META-INF/com/google/android
- Open the "updater-script" with notepad++ or another editor
- Replace this line with the first
Code:
ui_print("HTC Gallery patch");
- Close the editor
- Save all
- Flash it
Replace which line with what? A little confusing.
Also, couldn't you extract the .apk and use Root Explorer to move it to System?
Click to expand...
Click to collapse
thefoss said:
Replace which line with what? A little confusing.
Also, couldn't you extract the .apk and use Root Explorer to move it to System?
Click to expand...
Click to collapse
In the updater-script, replace my line with the first of the txt.
However, you can extract and copy/paste it, but with adb is more faster
thefoss said:
Guich said:
Umh, i opened zip, there is an issue at the first string so:
- Open the zip wit 7zip or other
- Go to: "META-INF/com/google/android
- Open the "updater-script" with notepad++ or another editor
- Replace this line with the first
Code:
ui_print("HTC Gallery patch");
- Close the editor
- Save all
- Flash it
Replace which line with what? A little confusing.
Also, couldn't you extract the .apk and use Root Explorer to move it to System?
Click to expand...
Click to collapse
The first line missing one double quote ("). Just add that quote to make the line looks like ui_print("HTC Gallery patch"); then you're set.
Click to expand...
Click to collapse
@unremarked @anilv26 @thefoss @CheesyNutz
Installer is fixed now guys sorry about that. And thanks for pointing out the error @Guich
U r the man
Sent from my HTC One using xda app-developers app
works perfectly any change of HIDING the blank friends folder ?
CheesyNutz said:
works perfectly any change of HIDING the blank friends folder ?
Click to expand...
Click to collapse
+1 - The only thing I don't like about this phone is the Facebook Integration with the gallery. I would love to see the option to have it gone completely as I will never use it...
CheesyNutz said:
works perfectly any change of HIDING the blank friends folder ?
Click to expand...
Click to collapse
Marcm15 said:
+1 - The only thing I don't like about this phone is the Facebook Integration with the gallery. I would love to see the option to have it gone completely as I will never use it...
Click to expand...
Click to collapse
I never removed the friends folder for the sole reason that when logged in to facebook or flickr you could still view your friend's images in there. My main intention of doing this is to organize those messy pics that shows up in the main gallery window when you open it ands instead place it inside the friends folder. Anyways I'll try to update this thread and upload a modded one with the social plugin totally disabled when I get free time.
Riyal said:
I never removed the friends folder for the sole reason that when logged in to facebook or flickr you could still view your friend's images in there. My main intention of doing this is to organize those messy pics that shows up in the main gallery window when you open it ands instead place it inside the friends folder. Anyways I'll try to update this thread and upload a modded one with the social plugin totally disabled when I get free time.
Click to expand...
Click to collapse
Thank You! It would be greatly appreciated!!
what about an xposed version?
I don't use nor know how to use xposed so better off asking some devs on doing this. Just tell them to download the APK and diff it. The change is pretty simple.
Riyal said:
I never removed the friends folder for the sole reason that when logged in to facebook or flickr you could still view your friend's images in there. My main intention of doing this is to organize those messy pics that shows up in the main gallery window when you open it ands instead place it inside the friends folder. Anyways I'll try to update this thread and upload a modded one with the social plugin totally disabled when I get free time.
Click to expand...
Click to collapse
Good enough I'll be looking for the update thanks
Sent from my HTC One using Tapatalk 2
i installed this and my gallery app disappeared?
thunderwolf333 said:
i installed this and my gallery app disappeared?
Click to expand...
Click to collapse
if you flashed this on a odex rom i think that would happen since i think it's meant for dodexed roms
same problem. Does anyone have the original htcalbum.apk? So we can restore our galleries?
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