Well this Guide with all its spelling mistakes somehow made it to portal
Click to expand...
Click to collapse
For Developers: If you are planning to compile your ROM, and want to use this mod, then read This Post
Background Story:
I was missing the CyberShot Camera too much and found Google Camera has been ported to JB And I also wanted to try the Moded LifeLog app, which somehow was not working on my Pacman Rom.
These were the reasons I Decided to come back to JB Stock Base. I had a previous Nandroid Backup of Lovin's Z2 ROM for XV. I took all my Call-Log and SMS Backups and also took backup of some apps that I used. Then I restored the NAND Backup today.
after that I started restoring the apps+data. Everything was fine.
After few hours of using, As I always do, I took the periodic backup of my Call Logs again. That's when I noticed, the previous Logs were 700+ and now after making some calls, it came down to 500. after Some test, I found out, this is not problem of Backup software.
A little Google search revealed Android has a default call log limit set to 500 Calls.
I searched for Xposed Mod for this, found TrimNot. But it showed error. Most probably, it is only for KK. Then I thought why not MOD it myself?
That's how it all started...
The research & work procedure:
I first thought, OK, I need to find where the Calls are stored. After passing some time with Google, I found, the Logs are stored in a SQlite3 Database, in
Code:
/data/data/com.android.providers.contacts/databases/contacts2.db
There is no limit in this database storage. So, the limit must be in the code.
After another couple of hours, I found that Android checks if the contacts has reached 500 then removes the older. Searching with
Call Log Android
Click to expand...
Click to collapse
in android API reference, where I found some leads on my research.
"public class CallLog" which is under "android.provider.CallLog"
Something told me, to look for this class, in the actual source code. But that's almost 30 GB and I don't have time. from some prior Java knowledge I knew, all class have their own source file, with the same name, So the name would be "CallLog.java"
Now I searched Google, with it and found exactly what I was looking for. The search took me to a Git page android/platform_frameworks_base
And here I found this code.
Java:
private static void removeExpiredEntries(Context context) {
final ContentResolver resolver = context.getContentResolver();
resolver.delete(CONTENT_URI, "_id IN " +
"(SELECT _id FROM calls ORDER BY " + DEFAULT_SORT_ORDER
+ " LIMIT -1 OFFSET 500)", null);
}
The file is located in
Code:
platform_frameworks_base/core/java/android/provider/CallLog.java
and from the name I guessed, this should be inside framework files. Then I went into action. I first tried to de-compile the framework-res.apk file. I used Advanced APKTool by BDFreak
Using the windows search tool, I searched for "call log". I found nothing. Then I tried to de-compile "framework.jar". For this, I followed guide by Rizal Lovins - [Share Latest Apktool 4.2.2/Guide/Tutorial/] How to Decompile/Compile/Sign Apk/Jar
after the de-compiling was Done, I found there is a "android/provider" folder. Yes, it look similar to "platform_frameworks_base/core/java/android/provider/CallLog.java"
So, here should be the files. And I found Two files
Code:
CallLog$Calls.smali
CallLog.smali
I opened both with Notepad++,
CallLog.smali gave me noting.
But after a careful search, I found the exact query inside the ]CallLog$Calls.smali file.
I found this line -
Code:
const-string v2, "_id IN (SELECT _id FROM calls ORDER BY date DESC LIMIT -1 OFFSET 500)"
I just changed 500 to 100000 and I knew my task was done.
I then recompiled the framework.jar and took backup of my original framework.jar (took Nandroid backup ), replaced the original with my modified JAR file. Set the permission rw-r-r or 644. Then rebooted my phone.
Testing:
After the phone started, I made a call, then took backup of the Call Log with Call Log Backup Restore it showed 501.
This means my task is done.
Then I thought, why not share the whole experience today in XDA. So I started Writing this Guide.
F.A.Q.
Why I need more than 500 Call Log ?
- Well I work in Billing Department of a GSM Phone Exchange/Gateway. I periodically cross check my phone Call Logs with the Exchange SoftSwitch Data. Except for that, It's just fun to try something new.
Why this guide has no steps or required steps?
- Because, if anything I missed, those will be added later in the FAQ, from the comments.
Is this tested on any device?
-Yes,
My # Xperia V with LOVINS X™ Z2 ROM 9.2.A.2.5
# Xperia V NeoWave™ ROM
# Xperia TX OmniRom
# Xperia TX (unknown ROM )
# Xperia Z2 (unknown ROM )
# Xperia P Stock ROM
#Xperia P JB based Enigma v7.2 ROM
#CyanogenMod 11 M11 and M12
Can this work on my T/TX/TL/Z/Z1 etc. etc.
- Theoretically it should work on any Device and any ROM. But, practically, I don't know, why don't you try yourself and let me know
I'm newbie, can you provide me more simple guide?
- Well I'm a Newbie myself Just take a Nandroid Backup and start the process. What can go wrong? At most you'll have to restore the backup.
Go to every link and read those too. And Don't forget to Thank those people who provided the Tools and Guides.
Still If you don't understand my guide, read it twice, if it doesn't work read again.
Ha Ha Ha kidding. Here you go A Simple guide
Update:
If you are planning to compile your ROM, and want to use this mod, then read This Post
I switched to NeoWave™ ROM and just as usual applied my MOD. Restored 800+ Call Log from Backup. Now I find another limitation. It's in the Dialer. In the KitKat Call History, there is a Statistics option. Here it always shows
TOTAL: 500 Calls,....
Click to expand...
Click to collapse
So Now I'm digging the sources again to make the stats go higher.
Update: The issue was caused because, after sometimes (any call), the call history automatically turned to 500. Because the framework.jar was odexed and i guess, odex file had the old value set again. And for the NeoWave I used android MultiTool, it showed one error while compiling, Unsigned Short value exceeds, I didn't notice that. My bad. Now I have done the Mod again with Apktool (Lovins shared one) and removed the odex file and then Everything seems fine. Even the Statistics Shows, TOATAL: 1203 Calls, ....
Tested on OmniRom and works as expected. I've used an Xposed module before which does the same thing, but it's always nice to find new ways to implement things without having to use Xposed.
Antiga Prime said:
Tested on OmniRom and works as expected. I've used an Xposed module before which does the same thing, but it's always nice to find new ways to implement things without having to use Xposed.
Click to expand...
Click to collapse
Thanks for the Confirmation. I am updating the Tested Device & ROM. Your device is TX, Right? I guessed from the signeture
Antiga Prime said:
Tested on OmniRom and works as expected. I've used an Xposed module before which does the same thing, but it's always nice to find new ways to implement things without having to use Xposed.
Click to expand...
Click to collapse
Would you like to share the Xposed module you used before?
pollob666 said:
Thanks for the Confirmation. I am updating the Tasted Device & ROM. Your device is TX, Right? I guessed from the signeture
Click to expand...
Click to collapse
Yes, I have a TX.
tianzhisun said:
Would you like to share the Xposed module you used before?
Click to expand...
Click to collapse
It's the same one linked in the OP, except it's named TrimNot, not TimNot. I thought it might be a different one given that the one linked above didn't work for @pollob666, but I guess it's because I'm on a 4.4 ROM.
It's the same one linked in the OP, except it's named TrimNot, not TimNot. I thought it might be a different one given that the one linked above didn't work for @pollob666, but I guess it's because I'm on a 4.4 ROM.
Click to expand...
Click to collapse
Oops.. It was a Typo Yes, TrimNot works on KK but not on JB. that is why I needed to modify my Android Framework.
This is great and I will try it out.
But there is also another ridiculous limitation, that is the maximum of 20 alarms you can have in the clock
acb123 said:
This is great and I will try it out.
But there is also another ridiculous limitation, that is the maximum of 20 alarms you can have in the clock
Click to expand...
Click to collapse
for the clock there is this guide http://forum.xda-developers.com/showpost.php?p=53591001&postcount=6 give it a look
acb123 said:
This is great and I will try it out.
Click to expand...
Click to collapse
After trying, give us the update.
But there is also another ridiculous limitation, that is the maximum of 20 alarms you can have in the clock
Click to expand...
Click to collapse
I didn't notice that. Let's see what we can do about that
pollob666 said:
I didn't notice that. Let's see what we can do about that
Click to expand...
Click to collapse
give a look at the link in the post above yours... it's for z2 but it could work also for other version
Works fine on Xperia P running JB based Enigma v7.2
It works on stock based Xperia P. pollob666 small typo. How about renaming "tasted" to "tested"
usb2 said:
give a look at the link in the post above yours... it's for z2 but it could work also for other version
Click to expand...
Click to collapse
Yeah, saw that, going to try it tomorrow. Hopefully, here I can find some DB sources too.
prasadkumar013 said:
It works on stock based Xperia P. pollob666 small typo. How about renaming "tasted" to "tested"
Click to expand...
Click to collapse
Sorry about that, I guess I'll have to check the whole OP
Please make the steps simple for a newbie
Well, I was looking for this feature since Google invented Android!:good:
I was using MIUI because of they're giving unlimited Call log. Then some one invented TrimNot on Aug 15, 201, I came again to OzcanRom (My Fav). Trim not doesn't work at all.
My question is, Can you make this step more simple. I'm a new bie. :fingers-crossed:
pollob666 said:
Background Story:
I was missing the CyberShot Camera too much and found Google Camera has been ported to JB And I also wanted to try the Moded LifeLog app, which somehow was not working on my Pacman Rom.
These were the reasons I Decided to come back to JB Stock Base. I had a previous Nandroid Backup of Lovin's Z2 ROM for XV. I took all my Call-Log and SMS Backups and also took backup of some apps that I used. Then I restored the NAND Backup today.
after that I started restoring the apps+data. Everything was fine.
After few hours of using, As I always do, I took the periodic backup of my Call Logs again. That's when I noticed, the previous Logs were 700+ and now after making some calls, it came down to 500. after Some test, I found out, this is not problem of Backup software.
A little Google search revealed Android has a default call log limit set to 500 Calls.
I searched for Xposed Mod for this, found TrimNot. But it showed error. Most probably, it is only for KK. Then I thought why not MOD it myself?
That's how it all started...
The research :
I first thought, OK, I need to find where the Calls are stored. After passing some time with Google, I found, the Logs are stored in a SQlite3 Database, in
Code:
/data/data/com.android.providers.contacts/databases/contacts2.db
There is no limit in this database storage. So, the limit must be in the code.
After another couple of hours, I found that Android checks if the contacts has reached 500 then removes the older. Searching with
in android API reference, where I found some leads on my research.
"public class CallLog" which is under "android.provider.CallLog"
Something told me, to look for this class, in the actual source code. But that's almost 30 GB and I don't have time. from some prior Java knowledge I knew, all class have their own source file, with the same name, So the name would be "CallLog.java"
Now I searched Google, with it and found exactly what I was looking for. The search took me to a Git page android/platform_frameworks_base
And here I found this code.
Java:
private static void removeExpiredEntries(Context context) {
final ContentResolver resolver = context.getContentResolver();
resolver.delete(CONTENT_URI, "_id IN " +
"(SELECT _id FROM calls ORDER BY " + DEFAULT_SORT_ORDER
+ " LIMIT -1 OFFSET 500)", null);
}
The file is located in
Code:
platform_frameworks_base/core/java/android/provider/CallLog.java
and from the name I guessed, this should be inside framework files. Then I went into action. I first tried to de-compile the framework-res.apk file. I used Advanced APKTool by BDFreak
Using the windows search tool, I searched for "call log". I found nothing. Then I tried to de-compile "framework.jar". For this, I followed guide by Rizal Lovins - [Share Latest Apktool 4.2.2/Guide/Tutorial/] How to Decompile/Compile/Sign Apk/Jar
after the de-compiling was Done, I found there is a "android/provider" folder. Yes, it look similar to "platform_frameworks_base/core/java/android/provider/CallLog.java"
So, here should be the files. And I found Two files
Code:
CallLog$Calls.smali
CallLog.smali
I opened both with Notepad++,
CallLog.smali gave me noting.
But after a careful search, I found the exact query inside the ]CallLog$Calls.smali file.
I found this line -
Code:
const-string v2, "_id IN (SELECT _id FROM calls ORDER BY date DESC LIMIT -1 OFFSET 500)"
I just changed 500 to 100000 and I knew my task was done.
I then recompiled the framework.jar and took backup of my original framework.jar (took Nandroid backup ), replaced the original with my modified JAR file. Set the permission rw-r-r or 644. Then rebooted my phone.
Testing:
After the phone started, I made a call, then took backup of the Call Log with Call Log Backup Restore it showed 501.
This means my task is done.
Then I thought, why not share the whole experience today in XDA. So I started Writing this Guide.
F.A.Q.
Why I need more than 500 Call Log ?
- Well I work in Billing Department of a GSM Phone Exchange/Gateway. I periodically cross check my phone Call Logs with the Exchange SoftSwitch Data. Except for that, It's just fun to try something new.
Why this guide has no steps or required steps?
- Because, if anything I missed, those will be added later in the FAQ, from the comments.
Is this tested on any device?
-Yes,
My # Xperia V with LOVINS X™ Z2 ROM 9.2.A.2.5
# Xperia TX OmniRom
# Xperia TX (unknown ROM )
# Xperia Z2 (unknown ROM )
# Xperia P Stock ROM
Can this work on my T/TX/TL/Z/Z1 etc. etc.
- Theoretically it should work on any Device and any ROM. But, practically, I don't know, why don't you try yourself and let me know
Click to expand...
Click to collapse
---------- Post added at 11:08 AM ---------- Previous post was at 10:10 AM ----------
Can you please share the framework.jar file that edited and recompiled by you? If you can make a edited framework.jar for OzcanRom 4.2, I will be very thankful. I spent almost two nights on this and failed. Please help. :silly::fingers-crossed:
Antiga Prime said:
Tested on OmniRom and works as expected. I've used an Xposed module before which does the same thing, but
it's always nice to find new ways to implement things without having to use Xposed.
Click to expand...
Click to collapse
A Simpler guide
jamoen said:
My question is, Can you make this step more simple. I'm a new bie. :fingers-crossed:
Can you please share the framework.jar file that edited and recompiled by you? If you can make a edited framework.jar for OzcanRom 4.2, I will be very thankful. I spent almost two nights on this and failed. Please help. :silly::fingers-crossed:
Click to expand...
Click to collapse
No need to Quote the whole OP
My framework.jar won't work for you. We need to modify your ROM's framework.jar if you can provide me that file, I can MOD it for you.
But, I am giving the Simple steps. I would be very happy if you can do it yourself.
I am assuming you already have Notepad++ or Similar text editing tool and know how to pull files from /system
Step 1: Download APKTool of your choice. I used Advanced APKTool by BDFreak
Step 2: Decompile your framework.jar. For this, I followed guide by Rizal Lovins - [Share Latest Apktool 4.2.2/Guide/Tutorial/] How to Decompile/Compile/Sign Apk/Jar
Step 3: Open the CallLog.smali file and any other files that starts with CallLog ( like in my case CallLog$Calls.smali ) in Notepad++ or any other Text Editor.
Step 4: search for "SELECT _id FROM calls ORDER BY" or similar lines. You will find LIMIT -1 OFFSET 500 change 500 with any number you want.
Step 5: Save the modified file smali, and recompile the jar file.
Step 6: Just to be safe, take a NANDROID backup.
Step 7: Take a backup of the original framework.jar, delete it from system and push the modified framework.jar to System and change permission to rw-r-r or 644. Reboot.
Step 8: test
I couldn't find Provider folder. Please help.
I couldn't find Provider folder. Please help.
Failed! Please help
pollob666 said:
No need to Quote the whole OP
Click to expand...
Click to collapse
Thank you for the reply.
I could not find any folder called Provider. Searched all folders and failed to find a call entry.
I took the framework.jar from system folder. Any wrong?
Attached my framework.jar file. Please help me.
Found the string in framework2.jar and edited. Success!!
Please help me to push it again...
Can I use esfile explorer?
---------- Post added at 02:31 PM ---------- Previous post was at 02:09 PM ----------
jamoen said:
Found the string in framework2.jar and edited. Success!!
Please help me to push it again...
Can I use esfile explorer?
Click to expand...
Click to collapse
Unfortunately.. The method failed. Going back to MIUI in tears..
jamoen said:
Found the string in framework2.jar and edited. Success!!
Please help me to push it again...
Can I use esfile explorer?
---------- Post added at 02:31 PM ---------- Previous post was at 02:09 PM ----------
Unfortunately.. The method failed. Going back to MIUI in tears..
Click to expand...
Click to collapse
WOW, you really did it. Sorry I was in training my juniors at office, didn't reply earlier.
You can use es explorer, or if you have adb, then you can use some shell commands. I can give you the commands, if you haven't done it already.
It should work. Let me check and mod a it for you.
Edit: Sorry, I don't have the framework2.jar. ant the ROM is too big for downloading now at office. But for Samsung device, I guess the re-compile process needs a bit working. you need to recompile the file, then open it in 7zip or WinRAR replace the AndroidManifest file with the file of the original, (then sign it then zipalign it not sure for jar file though). Then push it to the system.
pollob666 said:
WOW, you really did it. Sorry I was in training my juniors at office, didn't reply earlier.
You can use es explorer, or if you have adb, then you can use some shell commands. I can give you the commands, if you haven't done it already.
It should work. Let me check and mod a it for you.
Edit: Sorry, I don't have the framework2.jar. ant the ROM is too big for downloading now at office. But for Samsung device, I guess the re-compile process needs a bit working. you need to recompile the file, then open it in 7zip or WinRAR replace the AndroidManifest file with the file of the original, (then sign it then zipalign it not sure for jar file though). Then push it to the system.
Click to expand...
Click to collapse
I double checked it. Again extracted the framework.jar and decompliled it.The string of 100000 is there. But this thing is not working. I don't know why.
Can I share you the framework2.jar with you?
jamoen said:
I double checked it. Again extracted the framework.jar and decompliled it.The string of 100000 is there. But this thing is not working. I don't know why.
Can I share you the framework2.jar with you?
Click to expand...
Click to collapse
I will modify it and upload it for you. But I guess I will need the framework-res.apk with it. if there is any. But, I'm going home now, I'll update you by 11pm.
Related
*UPDATE 4*:
Previews of existing themes are now viewable upon mouse over of the theme names.
*UPDATE 3*:
I have now turned this into a web based program hosted on my personal website. Things to know before trying it out:
-It will convert both old style themes (those with lockscreen directories instead of files) and new style themes (most themes).
-It will supply you with a download link to your converted theme and also a link to every theme that has been converted thus far. Check to see if your theme is already there before uploading it.
-Uploads and downloads from my server may be a bit slow, but considering how small most of these files are, this shouldn't be a major issue.
-The upload file size is limited to 8 MB. If you have a theme bigger than that, remove all non-lockscreen files from it and repack it before uploading it.
-The file name can not have any spaces or special characters. If it does, just rename it so that it doesn't before uploading it.
-The conversion is still not (any will never be) foolproof. There will be some cases where you'll have to go into the manifest.xml file and manually update the values that were overlooked. As it is though, it seems to fully convert ~90% of themes with no further work needed.
-If my website is not responding, send me a pm or post here.
-If you have any questions/issues, post here.
-Enjoy
Link: http://betelicious.dyndns.org/cgi-bin/converter
*UPDATE 2*:
v0.2 attached! It now takes care of all the extracting and repacking for you. You basically just feed it an mtz file and it will handle the rest. This will currently only work with *new* style themes, where the mtz contains an archive called "lockscreen". The logic is the same as before.
*UPDATE 1*
The Perl script is attached! READ THE INCLUDED README!! If you still have questions, feel free to post here or pm me.
All I ask is that you guys help each other out- If you're able to successfully use the script, help out those who can't by converting any requested themes from this thread. And please share here any themes you are able to successfully convert! Let this serve as the official qHD converted theme thread. As always, have fun and enjoy!
The easiest way to make this work properly is to follow these steps:
1.) Download cygwin from http://www.cygwin.com/setup.exe
2.) Run setup.exe.
3.) At the "Select packages" screen in the installer, search for "perl", click "Perl" to expand it, and then click on "Skip" for "perl: Larry Wall's Practical Extracting and Report Language" so that "Skip" changes to the version number, meaning it will be installed.
4.) Do the same for "perl-Image-Magick: image manipulation software suite (Perl bindings)", which should also be listed there under the expanded "Perl" section, so that it's version is displayed. Also ensure that the zip and unzip utilities are installed in the same way.
5.) Search for 'make' and select Devel->make (The GNU version of the 'make' utility) so that it too installs. You'll need this to install any modules in CPAN later.
5.) Click next and complete the cygwin installation.
6.) Open cygwin and, at the prompt type "cpan".
7.) At the cpan prompt, type "Install Image::Info"
8.) Once the Image::Info module is installed, you should be able to run the script without any errors.
Hey guys, I got tired of trying MIUI lockscreen themes only to find that they don't work with my Sensation (along with any other qHD phone). So I wrote a little Perl script to take care of most of the tedious stuff (resizing all of the images and calculating and replacing all of the x, y, w, h values within manifest.xml). This actually takes care of everything in some cases. For example I converted the Sense Ring lockscreen theme with this script and it was good to go in about 10 seconds of work.
But I want to make it clear that I will not be spending copious amounts of time fixing things that the script doesn't already fix. If it's something little, I'll try to fix it. Or if it's something big and I'm bored, I'll also try to fix it, but I'm making no guarantees!
I'm also looking into a way to automate the process by possibly hosting this script somewhere and allowing anyone to upload an mtz file and get the updated mtz back. If this is ever happens, it will not be foolproof, but it will be an enormous first step in any WVGA/HDPI -> qHD conversion. So bring on your requests!
*PLEASE INCLUDE A LINK TO THE THREAD OR WEBSITE WHERE THE THEME YOU'RE TALKING ABOUT IS LOCATED SO I DON'T HAVE TO SEARCH!!*
Can you do the boom lockscreen ?
Dano79 said:
Can you do the boom lockscreen ?
Click to expand...
Click to collapse
I'll give it a go, but can you link me to it? Thanks.
EDIT: nvm found it in MiUI theme app. Downloading slowly.
Hey can you convert darkmix? Its the 4th row on the hottest tab of themes
Really appreciate yiy doing requests
surronix said:
Hey can you convert darkmix? Its the 4th row on the hottest tab of themes
Really appreciate yiy doing requests
Click to expand...
Click to collapse
Sure, downloading now, but been stuck at 0% for a few minutes. Looks like their server is down/hit. If you want it fast, just grab it off your SD card at /MIUI/themes/ and upload it here (or at megaupload.com or something.) because I'm free now
please help
could you please convert TF3 theme? both of theme. you know...the transformers theme. I get it from online theme. I downloaded it from there
Circles: link to a downloadable file-http://minus.com/mhk6BAz8n
skadoosh said:
Circles: link to a downloadable file-http://minus.com/mhk6BAz8n
Click to expand...
Click to collapse
Attached. Thanks for the link
btw I briefly checked out the theme and it seems to look/work fine, but let me know if you find any issues.
VA sideLock V1.1-Changed :http://www.mediafire.com/?d89fu58qs5he3ci
You can help me . Thanks
http://db.tt/Pjo01MAK
Here you are good sir once again thanks
Circles_v3_ClockDate: http://minus.com/mhk6BAz8n#46
---------- Post added at 03:45 AM ---------- Previous post was at 03:43 AM ----------
shooger said:
Attached. Thanks for the link
btw I briefly checked out the theme and it seems to look/work fine, but let me know if you find any issues.
Click to expand...
Click to collapse
it works fine btw..thanks
could you please fix this :
http://forum.xda-developers.com/showpost.php?p=19395729&postcount=72
and this :
http://forum.xda-developers.com/showpost.php?p=19695936&postcount=77
and this :
http://forum.xda-developers.com/showpost.php?p=19886008&postcount=93
and
http://forum.xda-developers.com/showpost.php?p=19961533&postcount=99
those 're all great lock screen , some very complicate, maybe be good to test your script
moneyrain said:
could you please fix this :
http://forum.xda-developers.com/showpost.php?p=19395729&postcount=72
and this :
http://forum.xda-developers.com/showpost.php?p=19695936&postcount=77
and this :
http://forum.xda-developers.com/showpost.php?p=19886008&postcount=93
and
http://forum.xda-developers.com/showpost.php?p=19961533&postcount=99
those 're all great lock screen , some very complicate, maybe be good to test your script
Click to expand...
Click to collapse
+1 for the last one forsure
quan1984 said:
VA sideLock V1.1-Changed :http://www.mediafire.com/?d89fu58qs5he3ci
You can help me . Thanks
Click to expand...
Click to collapse
Here you go. The weather widget doesn't work for me, but I'm assuming that's only because I don't have the required app installed.
surronix said:
http://db.tt/Pjo01MAK
Here you are good sir once again thanks
Click to expand...
Click to collapse
Attached. I only attached the lockscreen theme since it's much smaller. To install it, you have to go to customize and then lockscreens and select it.
honeycomb lockscreen: http://androidspin.com/2011/10/05/miui-themes-honeycomb-lockscreen-for-your-android-phone-anyone/
sophisticated lockscreen: http://minus.com/mhk6BAz8n#65
skadoosh said:
Circles_v3_ClockDate: http://minus.com/mhk6BAz8n#46
---------- Post added at 03:45 AM ---------- Previous post was at 03:43 AM ----------
it works fine btw..thanks
Click to expand...
Click to collapse
np. clock date version attached.
moneyrain said:
could you please fix this :
http://forum.xda-developers.com/showpost.php?p=19395729&postcount=72
and this :
http://forum.xda-developers.com/showpost.php?p=19695936&postcount=77
and this :
http://forum.xda-developers.com/showpost.php?p=19886008&postcount=93
and
http://forum.xda-developers.com/showpost.php?p=19961533&postcount=99
those 're all great lock screen , some very complicate, maybe be good to test your script
Click to expand...
Click to collapse
Fixed the last one first because it was requested by someone else too. Everything was perfect after the conversion except for the music controls. Spent a long time trying to figure out why and eventually just manually fixed it. Otherwise these are going smooth! I'll get to the rest tomorrow hopefully.
Well you made script to resize and changing values of mainfest for your phone
it will be awesome if you make script for mdpi devices as can use miui lock on it but resizing manually really time consuming
moneyrain said:
could you please fix this :
http://forum.xda-developers.com/showpost.php?p=19395729&postcount=72
and this :
http://forum.xda-developers.com/showpost.php?p=19695936&postcount=77
and this :
http://forum.xda-developers.com/showpost.php?p=19886008&postcount=93
and
http://forum.xda-developers.com/showpost.php?p=19961533&postcount=99
those 're all great lock screen , some very complicate, maybe be good to test your script
Click to expand...
Click to collapse
First one (7mui) attached.
Use everything here on your own risk and hit THANKS BUTTON if you like my work!
General Information:
As you propably know, till now there is no CRT-off MOD out for the S3. This is because only changing the value of config_animateScreenLights from true to false in framework-res.apk is not working anymore!
Together with Tungstwenty and rovo89 we faced out, that the problem are some missing commands in the /system/framework/services.jar
After comparing files from S2 and S3 Tungstwenty could help me to find the right position to edit files and with a litte bit of testing we found the right commands to enable the CRT-off-effect!
Click to expand...
Click to collapse
Tungstwenty said:
Let me clarify what is required in order to have the CRT effects working:
A patched library that properly (i.e. no flicker, etc.) provides the effects --> see attached flashable zip's or use Tweakbox
Code changes on the ROM in order to properly trigger the effect(s), which the library will then respond to those triggers --> look at the how-to or use Tweakbox
Item no. 1 is the one that I worked on and for which a fully working library was now provided.
The 2nd part can be done in 2 different ways - either patching the S3's ROM to properly enable the CRT-On and/or CRT-Off effects, OR do some hooking on the existing methods in the ROM and without changing that code, override the flags (i.e., the way Tweakbox does it).
It's this 2nd aspect that you guys need to address somehow. I worked with rovo89 on Tweakbox and not only does it bundle with the library, it also does the code changes in memory to make it work (topic no. 2).
But sphinx02 had already provided that, initially, after some discussion on what needed to be patched on the S3 ROM.
So, in order to have it working you have 2 ways:
Either use Tweakbox and make use of its configuration options to enable only CRT-Off, only CRT-On, or whatever you fancy.
Ask for someone (such as sphinx02) that has an S3, to keep up with existing ROMs (it will need to be changed separately for every one), and provide patched apk's on top of the existing ones so that it enables the effect triggers I mentioned. This will also need to take into account whether you prefer both effects on, only CRT-Off, etc.
I hope this is a bit more clear now, if not just let me know.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
HOW-TO make the Code Changes:
This is what have to be done:
First of all decompile classes of services.jar (I won't provide any information to this, there are many tutorials out there how to use the smali tools!)
Than in com/android/server/PowerManagerService.smali we have to make the method nativeStartSurfaceFlingerAnimation(I)V callable from inner classes. To do that, we have to add the following after the last access$XXXX method:
Code:
.method static synthetic access$9000(Lcom/android/server/PowerManagerService;I)V
.registers 2
.parameter "x0"
.parameter "x1"
.prologue
.line 110
invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V
return-void
.end method
Than we have to add some commands to the file com/android/server/PowerManagerService$BrightnessState.smali to trigger the CRT-off-effect. For that add the red part between :cond_38 and iget-object v4, p0, Lcom/a.... like this (its around line 400 in code):
Code:
.line 2679
.restart local v3 #turningOff:Z
:cond_38
[COLOR="Red"] iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;
const/16 v3, 0x11 # CRT-On and CRT-Off
#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)
invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$9000(Lcom/android/server/PowerManagerService;I)V[/COLOR]
iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;
#getter for: Lcom/android/server/PowerManagerService;->mScreenBrightness:Lcom/android/server/PowerManagerService$BrightnessState;
invoke-static {v4}, Lcom/android/server/PowerManagerService;->access$6000(Lcom/android/server/PowerManagerService;)Lcom/android/server/PowerManagerService$BrightnessState;
move-result-object v4
If you want to have only CRT-OFF, you can replace
Code:
const/16 v3, 0x11 # CRT-On and CRT-Off
with this:
Code:
const/16 v3, 0x10 # CRT-Off only
Finally recompile the file, put it on your phone and you can see the CRT-Off effect on your S3!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Avoid flickers, enable CRT-ON in lib-file:
Tungstwenty said:
Hi,
I worked on the porting of the patch to S3 and despite not having one myself, I'm pretty confident that the binary rovo89 and myself included in the latest Tweakbox should work on an S3.
Could any of you guys try it out?
What to do:
Install the newest Xposed framework from here. Open the Installer app, press Install/Update and reboot.
Install the Tweakbox mod from here. Open it and enable the CRT effects in the appropriate section. You can also enable any other tweaks you like, to check if they also work for the S3 (most of them should)
Go back to the Xposed Installer app, activate the Tweakbox mod (2nd tab), then in the libraries section select "libsurfaceflinger.so" and use the I9300 version. Tick the "Replace in test-mode only" option and back in the 1st tab do a soft / test reboot.
If everything goes well and the effects work as expected, you can go back to the installer app and untick "test-mode only" so the lib is overridden on every boot.
Note that except for the app_process system file which is installed by the framework (creating a backup file, and which should have no practical effects until any mods are enabled later), all other replacements such as the surfaceflinger lib do not change anything in /system but are rather performed by loading the files from an alternate path.
I'd appreciate your feed back especially for the CRT effect, but also the other existing Tweakbox options.
Thanks!
Click to expand...
Click to collapse
Or use in addition to the changes in services.jar the attached flashable zip's to overwrite libsurfaceflinger.so with the corrected one by Tungstwenty or me, XXAL for (XXALE8,XXALF2,XXALF6) and XXBL for (XXBLFB,XXBLG1,...)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Notes:
- This is a development thread so please discuss only things that interest for further development
- First part of the development has been discussed in this Thread of S2-forums
- As on the S2 after the CRT-off-effect sometimes the screen flickers --> fixed by Tungstwenty
- For some reason, it works without setting config_animateScreenLights from true to false in framework-res.apk
- I hope Tungstwenty and rovo89 can help us again to edit the libsurfaceflinger.so to avoid that it flickers after the CRT-off-effect
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Testing the effect:
I have made the changes for ODEXED and DEODEXED XXALF2 ROM, if you want to test it have a look at my thread in the themeing/modding forums:
[MOD][ALF2/ALF6/BLFB][ODEX/DEODEX] 1% BatMod + ExtPowMen + CRT-OFF-ON or CRT-OFF-ONLY
Please post development-unrelated stuff there!!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Credits:
Credits are going out to Tungstwenty and rovo89 for their excellent work on the S2 and for their help/advice on the S3! Excellent developers!
I hope you guys will help us again to fix the libs and perhaps enabling CRT-on-effect aswell!!!
Thank you for helping us again!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
reserved for future use, just in case..
Nice one!
Sent from my GT-I9300 using xda premium
sphinx02 said:
- I hope Tungstwenty and rovo89 can help us again to edit the libsurfaceflinger.so to avoid that it flickers after the CRT-off-effect
Click to expand...
Click to collapse
The flicker issue and the lack of CRT-On effect are *exactly* the same issues that are present on the S2 lib as well.
It has been fixed there, but changing ARM code without the sources is a very tedious process and that requires a fair amount of testing till it eventually works.
Without having access to an S3 it's very hard to do this or even explain what needs to be done
On top of that, I have other pending stuff I need to work on so you shouldn't expect a fix very soon, sorry.
Tungstwenty said:
The flicker issue and the lack of CRT-On effect are *exactly* the same issues that are present on the S2 lib as well.
It has been fixed there, but changing ARM code without the sources is a very tedious process and that requires a fair amount of testing till it eventually works.
Without having access to an S3 it's very hard to do this or even explain what needs to be done
On top of that, I have other pending stuff I need to work on so you shouldn't expect a fix very soon, sorry.
Click to expand...
Click to collapse
Ok, I see the problematic.. But perhaps you can give me the original and the modified files from the s2 so I can compare the 2 files and perhaps see by myself what is changed! And as I never changed anything in .so files perhaps you can tell me additionally how you have edited them!
I'm willing to try around again and to play with bytecode or so on, but I think I need a little input from you!
You mentioned the tool objdump, so I think I have to become familiar with this tool, am I right?
sphinx02 said:
Ok, I see the problematic.. But perhaps you can give me the original and the modified files from the s2 so I can compare the 2 files and perhaps see by myself what is changed! And as I never changed anything in .so files perhaps you can tell me additionally how you have edited them!
I'm willing to try around again and to play with bytecode or so on, but I think I need a little input from you!
Click to expand...
Click to collapse
Ok then, I'll give you the starting pointers so you can have a look at what lies ahead
The S2 patched file with ON and OFF both working correctly, with no flickers, is in this post.
The S2 original file is attached here.
Do a binary compare to see the changed bytes and their offsets.
To have a look at the code, you need to have the NDK installed.
Run "objdump -x libsurfaceflinger.so" to see the decompiled ARM code.
And have fun trying to understand that
Tungstwenty said:
Ok then, I'll give you the starting pointers so you can have a look at what lies ahead
The S2 patched file with ON and OFF both working correctly, with no flickers, is in this post.
The S2 original file is attached here.
Do a binary compare to see the changed bytes and their offsets.
To have a look at the code, you need to have the NDK installed.
Run "objdump -x libsurfaceflinger.so" to see the decompiled ARM code.
And have fun trying to understand that
Click to expand...
Click to collapse
Ok, thank you for that.. I dont know at this point if I ever will have success with it but I will give it a try as I have the time to! Thank you very much again Tungstwenty for your tips/advice!
While trying around a little bit and thinking about the problem, I had the following idea:
Is it not possible to build an own, additional library file with the crt-off functions? Sources for that are out there! Just copy together and build an .so file. Than in the Java-Code we are including this new native code and simply calling the function from this new / additional lib-file? What do you think about that?
Looks like someone needs to do this again...
http://forum.xda-developers.com/showthread.php?t=1676378
The flicker bug is just a bit annoying
Edits
Lol sorry just seen the post a couple above mine. Hope you guys can fix it. Good luck.
Sent from my GT-I9300 using XDA Premium HD app
sphinx02 said:
While trying around a little bit and thinking about the problem, I had the following idea:
Is it not possible to build an own, additional library file with the crt-off functions? Sources for that are out there! Just copy together and build an .so file. Than in the Java-Code we are including this new native code and simply calling the function from this new / additional lib-file? What do you think about that?
Click to expand...
Click to collapse
I don't think that's a viable option. rovo already tried that with existing sources, I think, and the resulting library did not work on sammy's rom.
As for creating a separate library with only those functions, I also don't think that's possible as everything related with screen rendering (state, buffers, etc.) is on this lib and therefore a separate one would not have any of that info.
Hi,
I worked on the porting of the patch to S3 and despite not having one myself, I'm pretty confident that the binary rovo89 and myself included in the latest Tweakbox should work on an S3.
Could any of you guys try it out?
What to do:
Install the newest Xposed framework from here. Open the Installer app, press Install/Update and reboot.
Install the Tweakbox mod from here. Open it and enable the CRT effects in the appropriate section. You can also enable any other tweaks you like, to check if they also work for the S3 (most of them should)
Go back to the Xposed Installer app, activate the Tweakbox mod (2nd tab), then in the libraries section select "libsurfaceflinger.so" and use the I9300 version. Tick the "Replace in test-mode only" option and back in the 1st tab do a soft / test reboot.
If everything goes well and the effects work as expected, you can go back to the installer app and untick "test-mode only" so the lib is overridden on every boot.
Note that except for the app_process system file which is installed by the framework (creating a backup file, and which should have no practical effects until any mods are enabled later), all other replacements such as the surfaceflinger lib do not change anything in /system but are rather performed by loading the files from an alternate path.
I'd appreciate your feed back especially for the CRT effect, but also the other existing Tweakbox options.
Thanks!
Now I try, thank you..
And CRT on is possible?
failax said:
Now I try, thank you..
And CRT on is possible?
Click to expand...
Click to collapse
Yes. If everything is working as I expect, the new things vs your current situation are:
- No more flickering issues when CRT-Off
- Now also includes CRT-On
- Can detect device orientation and do a "vertical" CRT effect instead of horizontal
All these are optional and can be turned on/off in the Tweakbox preferences.
I tried.
CRT OFF has the same problem, CRT On is not visible, but I had to place also a jar file?
---------- Post added at 12:01 PM ---------- Previous post was at 11:50 AM ----------
I must add that I'm on checkromevo hd and I've already inserted a mod to see crt off, I don't know if this can help.
Other mods in tweakbox work.
failax said:
CRT OFF has the same problem, CRT On is not visible, but I had to place also a jar file?
Click to expand...
Click to collapse
Mmm, did you follow the steps I mentioned before, i.e. enabling the lib replacement in test mode and doing a soft reboot?
You should end up with a library on /vendor/lib (ramfs) and it should get loaded on startup instead of the one in /system/lib. Can you check with a file browser if the file under /vendor/lib does exist?
Also, could you open a terminal, run "set" and check if LD_LIBRARY_PATH is "/vendor/lib:/system/lib", as in S2?
Tungstwenty said:
Mmm, did you follow the steps I mentioned before, i.e. enabling the lib replacement in test mode and doing a soft reboot?
You should end up with a library on /vendor/lib (ramfs) and it should get loaded on startup instead of the one in /system/lib. Can you check with a file browser if the file under /vendor/lib does exist?
Also, could you open a terminal, run "set" and check if LD_LIBRARY_PATH is "/vendor/lib:/system/lib", as in S2?
Click to expand...
Click to collapse
I've rebooted totally, what do you mean for soft reboot?
Now I try to see those files..
EDIT:
under vendor/lib I see 2 things, I see a folder called DRM and inside libdrmwvplugin.so, and single file called libwvm.so.
Also, could you open a terminal, run "set" and check if LD_LIBRARY_PATH ?
Yes it's there.
failax said:
I've rebooted totally, what do you mean for soft reboot?
Now I try to see those files..
EDIT:
under vendor/lib I see 2 things, I see a folder called DRM and inside libdrmwvplugin.so, and single file called libwvm.so.
Click to expand...
Click to collapse
Can you open the Xposed Installer app and post a screenshot of each of the 3 tabs? "Framework", "Modules" and "Libraries" (in this last one, scroll to the bottom to display the "libsurfaceflinger.so" entry so it's visible in the picture)
Can you send me the modded libsurfaceflinger.so so I can test it directly?
Maybe a downloadlink via pm...
I have sphinx mod for CRT, so If I deselect CRT off on tweakbox, it is shown the same.
sphinx02 said:
Can you send me the modded libsurfaceflinger.so so I can test it directly?
Maybe a downloadlink via pm...
Click to expand...
Click to collapse
Would you mind just taking it from the Tweakbox package, and in the process also checking if the on-the-fly replacement is working for you?
---------- Post added at 12:03 PM ---------- Previous post was at 12:01 PM ----------
failax said:
I have sphinx mod for CRT, so If I deselect CRT off on tweakbox, it is shown the same.
Click to expand...
Click to collapse
Your lib settings are ok, so if you do a soft reboot (pressing the button on the app), it should come back with a libsurfaceflinger.so file in /vendor/lib. It's won't happen, though, if you do a "normal" reboot.
It isn't happening to you? Could it be that the soft reboot tries to load the new lib, fails, and immediately does a hard/normal reboot - did you notice anything that could point to this?
Hi all !
So, for you all, the user of SlimKat for L7 might encounter these signal bar bugs.
The bug is mostly (and most) noticeable bug in this ROM.
By following this guide, you agree to my conditions :
a. I won't respond to 'how to do it ?' and 'can you do it ?' or 'will you do it for me ?' question.
b. I also won't respond to 'how can I decompile .jars ?' and 'what is this ?' question, these questions can easily answered by searching Google.
c. No, I won't make a flashable zips for you, you've to do this alone. Because I want you to understand, 'what does happen if I do this ?'. So I want you to do this all by yourself.
d. Only use question for last resort (means, even by searching Google, you don't find answer to your problem)
After you read those conditions, here's the guide.
1. Decompile SlimKat framework.jar
2. Decompile other ROM (with working signal bar) framework.jar
3. Open smali/android/telephony/
4. Copy all file named CellSignalStrength and SignalStrenght from other ROM framework.jar. See CALIBAN's post for needed file to copy + screenshot.
5. Copy all of those file to SlimKat framework.jar (in the same directory, smali/android/telephony)
6. Compile SlimKat framework.jar
7. Copy modified classes.dex to original unmodified SlimKat framework.jar
8. Push the modified framework.jar to /system/framework (or add it to SlimKat zipfile)
9. Reboot (if you push it) or reflash SlimKAT, then wipe dalvik cache & cache (if you add it to SlimKat zipfile)
Thanks to -CALIBAN666- for fixing the guide !
Credits for this guide :
- SlimROMs Team : Providing a great ROM for us to use
- CM Team : No need to explain, they're a great developers. Without them, there won't be a proper working KitKat for our device.
- Optima Team : By always supporting me in every conditions
- -CALIBAN666- : Trying this tutorial, and becoming my best friend in XDA
- Google : My teacher
- Stackoverflow Members : Providing workaround for every eror
- brut.all & iBotPeaches : APKTool, the greatest tool to reverse-engineering in Android
bro its for l5 too,by the way,to make it work i must the 2 signalstrenght smalis at the bottom from telephony changing too,otherwise i have become issues with dialer and mms app.
i have attached two pics with needed smalis,created with windows screenshot.
-CALIBAN666- said:
bro its for l5 too,by the way,to make it work i must the 2 signalstrenght smalis at the bottom from telephony changing too,otherwise i have become issues with dialer and mms app.
i have attached two pics with needed smalis,created with windows screenshot.
Click to expand...
Click to collapse
Thanks bro !
Will post this to first post.
hey bro,i dont know you remember,because today i was looking in old android files on my pc and i found one of the first tweak i used which has realy worked for me,it was activo speeder,so we know us minimum 1/5 years on xda,lol.another question is,you are from the flowercity called bandung,so you know xda member evanlocked?he came from same city.
-CALIBAN666- said:
hey bro,i dont know you remember,because today i was looking in old android files on my pc and i found one of the first tweak i used which has realy worked for me,it was activo speeder,so we know us minimum 1/5 years on xda,lol.another question is,you are from the flowercity called bandung,so you know xda member evanlocked?he came from same city.
Click to expand...
Click to collapse
Activo Speeder... Yep, that was my first tweak ever made for XDA
evanlocked... I think I've seen him somewhere in XDA.
Sent from my Z4D-25232 using XDA Premium 4 mobile app
Thanks man for the guide. I used this guide on my LG Optimus G Pro.
However for me, copying the classes.dex file to the framework.jar did not make any changes. But flashing the modified framework.jar in the build>apk folder did the trick.
Thanks a million.
arifqur said:
Thanks man for the guide. I used this guide on my LG Optimus G Pro.
However for me, copying the classes.dex file to the framework.jar did not make any changes. But flashing the modified framework.jar in the build>apk folder did the trick.
Thanks a million.
Click to expand...
Click to collapse
Glad it worked well on your device, thanks for trying my guide too
Guide: Howto enable Native AT&T / Tmobile WiFi Hotspot
Locate stock/unmoddified TetheringProvision.apk
This apk is located in /system/app folder from almost any Stock Samsung ROM
Or pull from your device.
connect your device to your PC
Make sure you have the appropriate USB drivers installed
make sure Android SDK Tools are installed
cd to the platform-tools folder in the SDK location
start a command prompt in the Platform-Tools folder
adb pull /system/app/TetheringProvision.apk
Using available tools to decompile and recompile the apk
I recommend either Virtuous Ten Studio or APK-Multi-Tool for this task as
either provide an easy to use interface for working with apk edits.
I'm not placing download links here for either just do a google search and
you will easily find either one.
Decompile the TetheringProvision.apk
Once you have the apk decompiled browse to the folder containing
all of the decompiled code (You will need to be in the smali folder).
locate and edit "TetheringProvisionActivity$TetheringPlanCheckTask.smali" (com/sec/tetheringprovision)
For AT&T WiFi Hotspot
search for "entitlement.mobile.att.net" and replace with "stacra.byethost7.com"
search for all instances of "http://entitlement.mobile.att.net/mhs1" and replace with "http://stacra.byethost7.com/tether/"
search for all instances of "http://entitlement.mobile.att.net/teth" and replace with "http://stacra.byethost7.com/tether/"
For Tmobile WiFi Hotspot
search for all instances of "http://selfhelp.geo.t-mobile.com/myaccountservice/selfhelp/hastetheringoption"
and replace with "http://stacra.byethost7.com/tether/"
See code snippet below for example (not complete code)
The lines you will be looking for are highlighted in blue.
Code:
.prologue
.line 1116
iput-object p1, p0, Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->this$0:Lcom/sec/tetheringprovision/TetheringProvisionActivity;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
.line 1117
const-string v0, [COLOR="Blue"]"http://selfhelp.geo.t-mobile.com/myaccountservice/selfhelp/hastetheringoption"[/COLOR]
iput-object v0, p0, Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->TMobileTetheringPlanCheckURL:Ljava/lang/String;
.line 1118
const-string v0,[COLOR="Blue"] "http://entitlement.mobile.att.net/teth"[/COLOR]
iput-object v0, p0, Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->ATTTetheringPlanCheckURL:Ljava/lang/String;
.line 1119
const-string v0,[COLOR="Blue"] "http://entitlement.mobile.att.net/mhs1"[/COLOR]
iput-object v0, p0, Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->ATTMHSPlanCheckURL:Ljava
/lang/String;
...
...
...
Once you have located and replaced all the required lines in the smali save the file and recompile your apk following the instructions provided by whatever method you choose to work with
DO NOT SIGN THE APK LEAVE THE EXISTING SIGNATURE IN PLACE
Push the apk back to your device and reboot, test to verify working Hotspot.
Thanks
Thanks to @scrosler over at the LG forums for the original code of this patch
it has been changed and revised a few times since the original port by me over
in the HTC Forums.
reserved
Another Great Work Sir.... Awesome. Added Q16 on FAQ Thread. Thanks to my Favorite Dev @cstayton :good:
[SIZE=+1]Q16: How to Enable Native AT&T / T-Mobile WiFi Hotspot?[/SIZE]
Thanks to @cstayton [MOD][SMALI] Enable Native AT&T / Tmobile WiFi Hotspot[MOD][SMALI]
☆Swyped From SFive SS Edition☆
Thank you for this!!!! Sweet. Great work man
Can u upload the modded tetherprovision.apk for the att version AND3 please
Im.askimg cause i dont have a pc to do modding anymore
Sent from my SAMSUNG-SM-G900A using XDA Premium 4 mobile app
carlospr21 said:
Can u upload the modded tetherprovision.apk for the att version AND3 please
Im.askimg cause i dont have a pc to do modding anymore
Sent from my SAMSUNG-SM-G900A using XDA Premium 4 mobile app
Click to expand...
Click to collapse
check post #2 Here
Look, I think you should improve the guide only works for at&t and tmobile.
I modified "TetheringProvision" in this guide and nothing, the same error: "Mobile data is not avaible or invalid SIM". Does not work with another carrier other than att or tmobile.
The only way that works for me is to replace the apk dirty "TetheringProvision" method Galaxy S4.
Corroborate if someone worked with different operator, for example, movistar latin america or other provider other country.
jm2k7 said:
Look, I think you should improve the guide only works for at&t and tmobile.
I modified "TetheringProvision" in this guide and nothing, the same error: "Mobile data is not avaible or invalid SIM". Does not work with another carrier other than att or tmobile.
The only way that works for me is to replace the apk dirty "TetheringProvision" method Galaxy S4.
Corroborate if someone worked with different operator, for example, movistar latin america or other provider other country.
Click to expand...
Click to collapse
obviously your carrier uses different methods to provision tethering, if you can tell me what methods they use i might be able to adjust for it
and P.S. if you can read you would see it says AT&T or Tmobile, i only offered as a hope that maybe other carriers used the same methods, so if you want me to look into it might try asking nicely.
cstayton said:
obviously your carrier uses different methods to provision tethering, if you can tell me what methods they use i might be able to adjust for it
and P.S. if you can read you would see it says AT&T or Tmobile, i only offered as a hope that maybe other carriers used the same methods, so if you want me to look into it might try asking nicely.
Click to expand...
Click to collapse
no problem, however the effort is appreciated.
do not know how could fix the code so that it works for another operator.
It should be something generic to accept any carrier.
Well for now the problem is solved just replace the apk: http://forum.xda-developers.com/att-galaxy-s5/themes-apps/mobile-hotsoit-carrier-t2801876
hello again. :fingers-crossed:
jm2k7 said:
no problem, however the effort is appreciated.
do not know how could fix the code so that it works for another operator.
It should be something generic to accept any carrier.
Well for now the problem is solved just replace the apk: http://forum.xda-developers.com/att-galaxy-s5/themes-apps/mobile-hotsoit-carrier-t2801876
hello again. :fingers-crossed:
Click to expand...
Click to collapse
i compared that apk to ours and it is not even close in code, not sure what kind of effect this will have in our devices as far as att and tmobile go
there where to many differences to sort through to determine what was needed. sorry
jm2k7 said:
no problem, however the effort is appreciated.
do not know how could fix the code so that it works for another operator.
It should be something generic to accept any carrier.
Well for now the problem is solved just replace the apk: http://forum.xda-developers.com/att-galaxy-s5/themes-apps/mobile-hotsoit-carrier-t2801876
hello again. :fingers-crossed:
Click to expand...
Click to collapse
I PM'd you a test patch let me know if it works please
Modified successful solution
THIS THREAD:
-----------------------------------------------------------------------
http://forum.xda-developers.com/att...t/mod-enable-native-att-tmobile-wifi-t2801442
MY PHONE:
-----------------------------------------------------------------------
Samsung Galaxy S5 from AT&T
Model number: SAMSUNG-SM-G900A
Android version: 4.4.2
Using Grand Fathered unlimited data plan
PREREQUISITES:
-----------------------------------------------------------------------
* Root Samsung Galaxy S5 using Towelroot.
- see MY PHONE above
* Download/Install "Virtuous Ten Studio" (VTS): a free tool used to decompile, edit, and recompile apk files.
* Use adb to pull TetheringProvision.apk from phone to PC
* Patch TetheringProvision.apk pulled from the phone using using the VTS tool
-- edited apk files per instructions in THIS THREAD.
-- for VTS settings use advanced, use original signature of apk, ...
* USING Root Explorer create /sdcard/myPatch1/
INSTALLATION PROCEDURE:
-----------------------------------------------------------------------
adb push myPatch1/TetheringProvision.apk /sdcard/myPatch1/
adb shell
su
mount -o rw,remount /system
cd /system/app
mv TetheringProvision.apk TetheringProvision.apk.bk20140719_stock_442
mv TetheringProvision.odex TetheringProvision.odex.bk20140719_stock_442
cd /sdcard/myPatch1
cp TetheringProvision.apk /system/app/TetheringProvision.apk
cd /system/app
cp TetheringProvision.apk TetheringProvision.apk.bk20140719_myPatch1
chmod 644 TetheringProvision*
ls -la | grep TetheringProvision.apk
mount -o ro,remount /system
reboot
NOTES:
-----------------------------------------------------------------------
* To make the above work, I added line
"mv TetheringProvision.odex TetheringProvision.odex.bk20140719_stock_442"
* The above procedure also worked using using a ALTERNATE PRE BUILT TetheringProvision.apk
downloaded from "TetheringProvision_Patch_V2.zip" link found at
http://forum.xda-developers.com/showthread.php?t=2795885
FYI: 7 zip was used to extract TetheringProvision.apk from downloaded zip - see *myPatch2 below
* Size of patched APK is almost 2x size of original; however, 7 Zip shows same contents are the same
ARTIFACTS(adb shell):
-----------------------------------------------------------------------
[email protected]:/system/app # ls -la | grep TetheringProvision
ls -la | grep TetheringProvision
-rw-r--r-- root root 475499 2014-07-19 02:26 TetheringProvision.apk
-rw-r--r-- root root 475499 2014-07-19 02:34 TetheringProvision.apk.bk20140719_myPatch1
-rw-r--r-- root root 432539 2014-07-19 01:50 TetheringProvision.apk.bk20140719_myPatch2
-rw-r--r-- root root 253215 2014-07-19 02:32 TetheringProvision.apk.bk20140719_stock_442
-rw-r--r-- root root 79528 2014-07-06 23:41 TetheringProvision.odex.bk20140719_stock_442
NOTES(artifact suffix):
-----------------------------------------------------------------------
* Original artifact backups suffixed with stock_442
* TetheringProvision.apk.bk20140719_myPatch1 - patched using VTS tool
* TetheringProvision.apk.bk20140719_myPatch2 - ALTERNATE PRE BUILT download
Why can't you just post the modified .apk for att and T-Mobile?
No modifications to my code without roper recognition
I'm normally a pretty easy going kind of guy, but sometimes I get a little testy when certain things happen, so I'm only going to say this once.
IF YOU USE MY WORK OR MODIFY IT IN ANY FASHION YOU MUST ASK MY PERMISSION FIRST, AND IN NO WAY OR FASHION ARE YOU ALLOWED TO REPOST YOUR MODIFICATIONS IN MY THREAD.
This includes creating patches for other systems, patches for same systems at request of other members etc.
If this happens again I will give proper warning and then I will close and delete the thread and that will be that.
This is an awesome community way beyond expectations however, I am a stickler for protocol, if you ask I'll will give permission 100% of the time as long as it is mine to give.
What is the vts tool? Thanks
Sent from my SM-G900T using XDA Free mobile app
xda23 said:
What is the vts tool? Thanks
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
Virtuous Ten Studio you can find it HERE
WhiteWidows said:
Why can't you just post the modified .apk for att and T-Mobile?
Click to expand...
Click to collapse
lol i learned how to build roms before decompiling apks as i find it easier.. i guess youre suppose to be smart enough to pull the apk, decompile the apk, edit the apk, recompile the apk and possibly sign it afterwards in order to use this MOD! Good Luck! Without a pre modded apk I will hafta wait until the weekend to ask for permission to include in my ATT ROM
Sent from my SM-G900V using XDA Premium HD app
elliwigy said:
lol i learned how to build roms before decompiling apks as i find it easier.. i guess youre suppose to be smart enough to pull the apk, decompile the apk, edit the apk, recompile the apk and possibly sign it afterwards in order to use this MOD! Good Luck! Without a pre modded apk I will hafta wait until the weekend to ask for permission to include in my ATT ROM
Sent from my SM-G900V using XDA Premium HD app
Click to expand...
Click to collapse
really? Seriously? This is probably one of the easiest mods EVER, and since this mod can be adopted accross carriers posting a "premodded apk" would be time consuming as i would have to have the specific apk from every carrier.
THIS IS a thread on HowTo not a thread on Here you go have it...
P.S. if your building a ROM to post in the forums might be a good idea not to ruffle the feathers of the DEVS whose work you want to include.
cstayton said:
really? Seriously? This is probably one of the easiest mods EVER, and since this mod can be adopted accross carriers posting a "premodded apk" would be time consuming as i would have to have the specific apk from every carrier.
THIS IS a thread on HowTo not a thread on Here you go have it...
P.S. if your building a ROM to post in the forums might be a good idea not to ruffle the feathers of the DEVS whose work you want to include.
Click to expand...
Click to collapse
I do not own an ATT s5.. I have a vzw s5.. searching online you can find similar MOD for tethering that has been around for some time with the same exact edits as your MOD. Either way I am sorry if I offended you. I just feel it would be easier for ATT owners to have a modded apk that they can use for their ATT roms considering this is the ATT thread.. What youre implying is no one can take your mod edit (most likely found from someone else) and make an apk for others to use who do not have the ability to do it themselves. Android is about being open source and sharing with the community not providing a mod that is easily found throughout these forums and saying no one else can use it or post an apk without your permission or knowledge of how to make the edits in the first place.
Again, i am glad for what you do but a mod that has been around for some time isnt something one can claim as theres just because theyre first to post in a certain thread.
And all i was saying is why not post a modded apk or let someone else just with the att apk for att users in this thread? Not to go and make one for every device.. but hey, i will not add your mod to any rom I work on.. I will find one of the other devs MOD and give them the cred.
edit: here is the same mod from over a year ago:
http://forum.xda-developers.com/showthread.php?t=2278259
Of course you used a different server address but the mod is the same. You only need to direct the mod to a server that enables the hotspot to be turned on.
Sent from my SM-G900V using XDA Premium HD app
elliwigy said:
I do not own an ATT s5.. I have a vzw s5.. searching online you can find similar MOD for tethering that has been around for some time with the same exact edits as your MOD. Either way I am sorry if I offended you. I just feel it would be easier for ATT owners to have a modded apk that they can use for their ATT roms considering this is the ATT thread.. What youre implying is no one can take your mod edit (most likely found from someone else) and make an apk for others to use who do not have the ability to do it themselves. Android is about being open source and sharing with the community not providing a mod that is easily found throughout these forums and saying no one else can use it or post an apk without your permission or knowledge of how to make the edits in the first place.
Again, i am glad for what you do but a mod that has been around for some time isnt something one can claim as theres just because theyre first to post in a certain thread.
And all i was saying is why not post a modded apk or let someone else just with the att apk for att users in this thread? Not to go and make one for every device.. but hey, i will not add your mod to any rom I work on.. I will find one of the other devs MOD and give them the cred.
edit: here is the same mod from over a year ago:
http://forum.xda-developers.com/showthread.php?t=2278259
Of course you used a different server address but the mod is the same. You only need to direct the mod to a server that enables the hotspot to be turned on.
Sent from my SM-G900V using XDA Premium HD app
Click to expand...
Click to collapse
read the OP, it says where the mod came from scrossler over in the LG forums,(which by the way is the original mod this is based on) the design of this mod is different than his and has more edits. so yes this is based on his mod but is my work. i highly doubt you found lots of mods with the exact same edits as the edits in my mod point to my specific servers and are handled differently than others.
I am not posting a modded apk nor will I this thread is a guide on how to do it yourself.
nuff said thread closed.
AND P.S. THIS MOD IS ONLY FOR AT&T AND TMOBILE, NOT FOR VERIZON.
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Thank you!!!
bdorr1105 said:
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Click to expand...
Click to collapse
Excellent!!!
---------- Post added at 03:57 AM ---------- Previous post was at 03:45 AM ----------
bdorr1105 said:
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Click to expand...
Click to collapse
a while back, about a week or so ago, someone had a file which was supposed to include the 4 (or 5) way re-boot menu in the de-odexed rom. I think the file was android.policy.jar. Problem was, it did not work, as it was de-odexed. I am running the odexed (normal) version. Is there a way to get a flashable 5 way reboot menu that works in the confines of a stock (odexed) version???
---------- Post added at 04:04 AM ---------- Previous post was at 03:57 AM ----------
bdorr1105 said:
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Click to expand...
Click to collapse
Do you realize - you just fixed a bug in another product with this flashable native tether "hotfix"? - there is an application, called power toggles, you may be familiar with it. Ever since Lollipop, the hotspot toggle was not working - it gets stuck on stupid, and hangs, won't turn on the hotspot - or off for that matter. flashing your native hotspot provision hotfix now allows the Power Toggle hotspot toggle to work, like it did in KK. Excellent -
I am sending the developer the link to this thread... nice...
anticloud said:
Excellent!!!
---------- Post added at 03:57 AM ---------- Previous post was at 03:45 AM ----------
a while back, about a week or so ago, someone had a file which was supposed to include the 4 (or 5) way re-boot menu in the de-odexed rom. I think the file was android.policy.jar. Problem was, it did not work, as it was de-odexed. I am running the odexed (normal) version. Is there a way to get a flashable 5 way reboot menu that works in the confines of a stock (odexed) version???
---------- Post added at 04:04 AM ---------- Previous post was at 03:57 AM ----------
Do you realize - you just fixed a bug in another product with this flashable native tether "hotfix"? - there is an application, called power toggles, you may be familiar with it. Ever since Lollipop, the hotspot toggle was not working - it gets stuck on stupid, and hangs, won't turn on the hotspot - or off for that matter. flashing your native hotspot provision hotfix now allows the Power Toggle hotspot toggle to work, like it did in KK. Excellent -
I am sending the developer the link to this thread... nice...
Click to expand...
Click to collapse
The toggle probably was not working because of the tether provision and native tethering will not work on unlimited plans. Plus it bypasses any provision check probably why the toggle works now
anticloud said:
Excellent!!!
---------- Post added at 03:57 AM ---------- Previous post was at 03:45 AM ----------
a while back, about a week or so ago, someone had a file which was supposed to include the 4 (or 5) way re-boot menu in the de-odexed rom. I think the file was android.policy.jar. Problem was, it did not work, as it was de-odexed. I am running the odexed (normal) version. Is there a way to get a flashable 5 way reboot menu that works in the confines of a stock (odexed) version???
---------- Post added at 04:04 AM ---------- Previous post was at 03:57 AM ----------
Do you realize - you just fixed a bug in another product with this flashable native tether "hotfix"? - there is an application, called power toggles, you may be familiar with it. Ever since Lollipop, the hotspot toggle was not working - it gets stuck on stupid, and hangs, won't turn on the hotspot - or off for that matter. flashing your native hotspot provision hotfix now allows the Power Toggle hotspot toggle to work, like it did in KK. Excellent -
I am sending the developer the link to this thread... nice...
Click to expand...
Click to collapse
I can try and tinker with it and implement it if you are willing to test it out
more than willing...
anticloud said:
more than willing...
Click to expand...
Click to collapse
Sorry, I have to deodex it to be able to get the smali files, can't really figure out how to odex it again, I am looking up a way to reodex a deodexed jar file
yup...
bdorr1105 said:
Sorry, I have to deodex it to be able to get the smali files, can't really figure out how to odex it again, I am looking up a way to reodex a deodexed jar file
Click to expand...
Click to collapse
that seems to be the challenge... it's ok, unimportant.. nice to have, but unimportant... someone suggested I move to the deodexed version anyway...
Stupid question
I have the Verizon Note 4 and I am wondering how I can install this mod. Since there is no root, is it possible for me to apply this mod?
Thank You
Never mind. I Just noticed it is only for developer edition.
imrutledge said:
I have the Verizon Note 4 and I am wondering how I can install this mod. Since there is no root, is it possible for me to apply this mod?
Thank You
Never mind. I Just noticed it is only for developer edition.
Click to expand...
Click to collapse
It would work for the retail note but you Def need root it's impossible any other way
Worked Great
Worked great flashing the Odexed version from TWRP on my natively BOAF Dev Edition. Thanks.
ajh16 said:
Worked great flashing the Odexed version from TWRP on my natively BOAF Dev Edition. Thanks.
Click to expand...
Click to collapse
Good glad yw
How would I go about using this mod on the Verizon note 4 retail after using kingroot to get root?
Also is there a mod I can use to open control of the sdcard for write, delete, etc on kitkat after using kingroot for rooting retail?
There is a SD card fix in the marketplace... You can manually push the files in the zip file to your phone and set permissions to the file.
Rolled the dice and installed this on the new OF1 update. Works like a charm.
Not sure if I will run into any issues down the road from changes that may have been made in the framework? Any way someone can post up a flashable OF1 version of this just to be safe?
blubyu87gt said:
Rolled the dice and installed this on the new OF1 update. Works like a charm.
Not sure if I will run into any issues down the road from changes that may have been made in the framework? Any way someone can post up a flashable OF1 version of this just to be safe?
Click to expand...
Click to collapse
Sure can, I prefer the booting into TWRP and pushing via ADB but for those that prefer a flashable ZIP I've put one together. Didn't test it but shouldn't be an issue, also have originals for going back.
adb pull /system/framework/framework-res.apk
adb shell
su
mount -o remount rw /system
adb push framework-res.apk /system/framework/
Click to expand...
Click to collapse
Is there an updated version of this for BOG5 yet (or plans for one)? If not, I may attempt one myself a bit later. Process doesn't look too hard.
Download links not working, Can I get a copy?
bdorr1105 said:
Enable Native Tether for Verizon DE on [N910VVRU1BOAF]
Found it here from ----> @scrosler
Originally came from here -----> @jovy23
Instructions:
Decompile framework-res
Open /res/values/arrays.xml
Find this:
Code:
<string-array name="config_mobile_hotspot_provision_app">
<item>com.sec.tetheringprovision</item>
<item>com.sec.tetheringprovision.TetheringProvisionActivity</item>
</string-array>
Change it to this:
Code:
<array name="config_mobile_hotspot_provision_app" />
That unlocks tether by telling framework to not look for a check.
Now recompile and pat yourself on the back because it literally is that easy. I will post a flashable zip if you are not feeling adventurous enough to do it yourself. Please hit thanks if I helped in anyway.
Download:
Tether MOD
Tether MOD DEODEXED
Thanks to:
@jovy23 - Orginal author of the MOD
@scrosler - Making a clear OP and pointing at Original Thread - Sharing
@Misterxtc - For letting me use his ROM and pulling the framework to deodex
Click to expand...
Click to collapse
Also got any tips on how to use on the retail Note 2 with temporary Root on Demand..... Kingroot?
doctor-cool said:
Also got any tips on how to use on the retail Note 2 with temporary Root on Demand..... Kingroot?
Click to expand...
Click to collapse
I get home in a couple days I will try and help you then... I am in the middle east
I tried making a BOG5 version but ended up in a bootloop and had to revert. I used apktool to decode the file with apktool d framework-res.apk. Went in, modified the arrays.xml to remove the items from the list and self-terminate it (they were some samsung apps), then I did an apktool b framework-res and copied the apk from the dist folder over to my phone and installed it using TWRP.
Restarted, let my phone try to boot for about three times the normal boot time, was running hot and seemed to be looping, so I rebooted in to TWRP and restored the original and everything worked fine on reboot.
Any ideas what I might have done wrong on the replacement? I did get a couple of warnings about no default translation for some settings and I noticed my APK was unexpectedly smaller (by about 250k), which seems a bit odd, but when I decompiled it, the only differences were the arrays.xml and the manifest.
Update: It appears that when it rebuilt in apktool, it changed the string-array to an array. That seems like it has a decent chance of being the cause of the issue, but I'm not sure how to prevent that from occurring since the build did it on its own.
---------- Post added at 12:28 PM ---------- Previous post was at 12:00 PM ----------
Never mind, I was able to figure out what I was doing wrong. Apparently for the build I needed to do "apktool build -c framework-res". It appears the -c keeps the signature from the original for the unaltered binary portion while updating the resource.
I now have a working BOG5 modified framework-res.apk. I'd love to share it with people, but I'm not sure what to use as a file host. I have a request in with android file host but not sure how long it takes to get upload access with them. Any other platforms that work well for it? Also, am I correct in my assumption that I can simply take the previous recovery zip installer and replace the framework-res.apk in it with the new version and use that as a recovery zip? I just did the install completely manually when I was doing it as I'm not particularly familiar with the zip update format.
ajh16 said:
I tried making a BOG5 version but ended up in a bootloop and had to revert. I used apktool to decode the file with apktool d framework-res.apk. Went in, modified the arrays.xml to remove the items from the list and self-terminate it (they were some samsung apps), then I did an apktool b framework-res and copied the apk from the dist folder over to my phone and installed it using TWRP.
Restarted, let my phone try to boot for about three times the normal boot time, was running hot and seemed to be looping, so I rebooted in to TWRP and restored the original and everything worked fine on reboot.
Any ideas what I might have done wrong on the replacement? I did get a couple of warnings about no default translation for some settings and I noticed my APK was unexpectedly smaller (by about 250k), which seems a bit odd, but when I decompiled it, the only differences were the arrays.xml and the manifest.
Update: It appears that when it rebuilt in apktool, it changed the string-array to an array. That seems like it has a decent chance of being the cause of the issue, but I'm not sure how to prevent that from occurring since the build did it on its own.
---------- Post added at 12:28 PM ---------- Previous post was at 12:00 PM ----------
Never mind, I was able to figure out what I was doing wrong. Apparently for the build I needed to do "apktool build -c framework-res". It appears the -c keeps the signature from the original for the unaltered binary portion while updating the resource.
I now have a working BOG5 modified framework-res.apk. I'd love to share it with people, but I'm not sure what to use as a file host. I have a request in with android file host but not sure how long it takes to get upload access with them. Any other platforms that work well for it? Also, am I correct in my assumption that I can simply take the previous recovery zip installer and replace the framework-res.apk in it with the new version and use that as a recovery zip? I just did the install completely manually when I was doing it as I'm not particularly familiar with the zip update format.
Click to expand...
Click to collapse
I usually use Dropbox, I use android file host but that requires a little effort because you need to request developer status basically and explain why you need to be able to file host... There is a great tool called Tickle My Android that you could use for decompiling... Apk tool works great as well, but takes longer in my opinion...
I am glad you figured it out.. You seem like a good reverse engineerer....
You can use the zips in this post and just replace the files inside the zip and post them as updated
Sent from my Nexus 6 using Tapatalk