FORUMS
Remove All Ads from XDA

[MOD] Detach Market Links for Theme Ready Apps

2,733 posts
Thanks Meter: 2,357
 
By hinxnz, Senior Member on 25th August 2016, 10:47 AM
Post Reply Email Thread
26th August 2016, 03:13 AM |#11  
RED ZMAN's Avatar
Senior Member
Flag ABQ - Albuquerque Metro, NM
Thanks Meter: 1,111
 
Donate to Me
More
I don't think I've used terminal emulator except for twice since the G1, so I'm not sure if I did this right.

[email protected]:/ $
[email protected]:/ $ su
system/su.d/99-detach.sh <
sush: /system/su.d/99-detach.sh: not found127|[email protected]:/ #
 
 
26th August 2016, 03:59 AM |#12  
Surge1223's Avatar
Recognized Contributor
Flag Iowa
Thanks Meter: 7,360
 
Donate to Me
More
Quote:
Originally Posted by hinxnz

Could you call script in Terminal Emulator and post output too.
For example:

Code:
su
/system/su.d/99-detach.sh

Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.

oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading



Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix

Code:
mkdir sqlite3-static
cd sqlite3-static 

wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip

unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100

export PATH=$PATH:/opt/androideabi/bin

cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h . 
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .

arm-linux-androideabi-gcc -static -I./  -L./ -ldl *.c -o ../sqlite3

cd ../

file ./sqlite3
Attached Files
File Type: zip sqlite3-static.zip - [Click for QR Code] (3.03 MB, 74 views)
The Following 4 Users Say Thank You to Surge1223 For This Useful Post: [ View ] Gift Surge1223 Ad-Free
26th August 2016, 04:59 AM |#13  
davidwilson83's Avatar
Retired Forum Moderator / Recognized Themer
Flag Perth
Thanks Meter: 13,061
 
Donate to Me
More
Quote:
Originally Posted by Surge1223

Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.

oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading



Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix

Code:
mkdir sqlite3-static
cd sqlite3-static 

wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip

unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100

export PATH=$PATH:/opt/androideabi/bin

cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h . 
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .

arm-linux-androideabi-gcc -static -I./  -L./ -ldl *.c -o ../sqlite3

cd ../

file ./sqlite3

Thank you Surge!
The Following 2 Users Say Thank You to davidwilson83 For This Useful Post: [ View ] Gift davidwilson83 Ad-Free
26th August 2016, 05:14 AM |#14  
hinxnz's Avatar
OP Senior Member
Thanks Meter: 2,357
 
More
Quote:
Originally Posted by Surge1223

Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.

oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading



Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix

Code:
mkdir sqlite3-static
cd sqlite3-static 

wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip

unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100

export PATH=$PATH:/opt/androideabi/bin

cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h . 
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .

arm-linux-androideabi-gcc -static -I./  -L./ -ldl *.c -o ../sqlite3

cd ../

file ./sqlite3

Cheers, thanks and yeah that's definitely the reason
The Following User Says Thank You to hinxnz For This Useful Post: [ View ] Gift hinxnz Ad-Free
26th August 2016, 03:55 PM |#15  
robot_head's Avatar
Senior Member
Flag las vegas
Thanks Meter: 614
 
More
Super idea, this would of been good a few months ago when google pushed their framework update and it broke some apps that i kept from updating,,, @Shaftamle google keyboard is the main on one, thank you

3GotoM ym morf tneS
26th August 2016, 06:18 PM |#16  
Senior Member
Thanks Meter: 393
 
More
Version 1.4 works for me now on 7.0. Thanks everyone!
27th August 2016, 07:16 AM |#17  
RED ZMAN's Avatar
Senior Member
Flag ABQ - Albuquerque Metro, NM
Thanks Meter: 1,111
 
Donate to Me
More
Installed version 2.0 earlier today and seems to be working perfectly. Nothing showing needing updated.

Thanks!
27th August 2016, 08:20 AM |#18  
Senior Member
Flag Surabaya
Thanks Meter: 58
 
More
How to add Black Google Calendar and Black Keep in the list?
27th August 2016, 11:12 AM |#19  
hinxnz's Avatar
OP Senior Member
Thanks Meter: 2,357
 
More
Quote:
Originally Posted by sunanulh

How to add Black Google Calendar and Black Keep in the list?

Just remove the comments from those two as well as the other theme apps you flash.
Here's an example, theme ready apps, calendar and keep will be detached.
Code:
Contacts 
Gmail 
Google App 
Google Plus 
Hangouts 
Phone 
Photos 
YouTube 
#Inbox 
#Duo
#Dropbox 
#PushBullet 
Calendar 
Keep 
#Telegram 
#Swiftkey 
#Translate
The Following 2 Users Say Thank You to hinxnz For This Useful Post: [ View ] Gift hinxnz Ad-Free
29th August 2016, 12:02 PM |#20  
rignfool's Avatar
Senior Member
Flag The Poconos
Thanks Meter: 2,697
 
More
I have tried installing your script... And no matter how I go about... I cannot get the script to populate the su.d directory like it should...

And... Since I don't understand your flashable... I can't pull what I want out of it...

Could you explain how to install said script without recovery?

Thanks
29th August 2016, 01:22 PM |#21  
Senior Member
Flag Surabaya
Thanks Meter: 58
 
More
Quote:
Originally Posted by hinxnz

Just remove the comments from those two as well as the other theme apps you flash.
Here's an example, theme ready apps, calendar and keep will be detached.

Thanks, I did it before but the calendar is still in the update list. Then I went to the system/app/ and I saw that the name of my calendar is CalendarGooglePrebuilt, then I added a line and type Calendar Google Prebuilt and flash the zip again and it works!
May this will help someone
Post Reply Subscribe to Thread

Tags
apps, detach, market, playstore, tbo

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes