[-]
Who's Online
There are currently 1375 online users. [Complete List]
» 5 Member(s) | 1370 Guest(s)
AvatarAvatarAvatarAvatar
Avatar

[-]
Latest Threads
Need ROM for Q223_MB_V41
Last Post: aamm065065
2024-05-13 00:34
» Replies: 0
» Views: 942
K107-MB-V4.2
Last Post: Alby
2024-04-24 00:37
» Replies: 0
» Views: 535
[ROM] NEED ROM ZH960-MB-V5.0 MTK 6592
Last Post: sendycat2
2024-04-21 08:57
» Replies: 0
» Views: 627
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 14
» Views: 10343
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 1071
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 667
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 14302
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4566
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 74
» Views: 34710
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 456
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2573
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22649
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 6242
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 9476
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1657
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 5136
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 2
» Views: 1578
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 481
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 8192
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 645
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 5065
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12954
betools
Last Post: egdeim
2023-09-21 12:41
» Replies: 4
» Views: 5241





Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Leagoo Lead3 kitkat not working with link2sd
#11
when you get a chance here is the limit of my knowledge to try to get to a traditional fstab if you have a vold....pretending you have a mtk device

Code:
adb devices
adb shell
su
cd /dev/block/platform
ls  
# if you have internal and external you see 2 folders otherwise one
# pretend its both so
cd mtk-msdc.1

Ideally we want to see a folder called by-name but I only have by-number
Code:
my result
ls -al
drwxr-xr-x root     root              2014-09-10 15:44 by-num
lrwxrwxrwx root     root              2014-09-09 11:54 mmcblk1 -> /dev/block/mmcblk1
lrwxrwxrwx root     root              2014-09-10 15:44 mmcblk1p1 -> /dev/block/mmcblk1p1

ls -al by-num/                      
lrwxrwxrwx root     root              2014-09-10 15:44 p1 -> /dev/block/mmcblk1p1

Inference, the "p1" is partition one, so is traditional fstab entrant, plus my card is only one partition
cheers
Reply
#12
@aus9 yes that is the principle of block devices for each partition.
Link2sd uses the same principle to mount the second partition, basically it comes down to this sort of script

Code:
/system/xbin/busybox mount -o rw /dev/block/mmcblk0p2 /data/sdext2

That is part of the script I used on phones where the "create mounting script" of link2sd failed.
Most phones have a script called "install-recovery.sh" in /system/etc, which gets called from within init.rc to be precise here:

Code:
....
service installd /system/bin/installd
    class main
    socket installd stream 600 system system

service flash_recovery /system/etc/install-recovery.sh
    class main
    oneshot

service sbchk /system/bin/sbchk
    user nvram
    group system
    oneshot
...

This service flash_recovery is usually way down the list of initialization processes so it gets run when most services are up.
As you can see it's a oneshot which means it gets called only once.
Editing install-recovery.sh and adding the previous mount line will in fact mount the second partition at boot time. Since /system/etc/install-recovery.sh doesn't get overwritten at boot time, it is a good place to do this and requires little effort.
It effectively mounts the second partition under /data/sdext2 which is where link2sd expects it to find.

Alll of this works on kitkat, even though I used the "create mount script" which differs from the above, however the result is the same.
I can access the second partition through /data/sdext2 normally with root-explorer, I see all the linked files, libs and dex, but kitkat refuses to show the linked apps as normal apps.
Somehow I think this is related to the fuse daemon which is introduced in kitkat.
[Only registered and activated users can see links Click here to register] says this at some point:
Quote:Emulated primary, physical secondary (like Xoom)
This is a typical configuration for a device with multiple external storage devices, where the primary device is backed by internal storage on the device, and where the secondary device is a physical SD card.

The raw physical device must first be mounted under /mnt/media_rw where only the system and FUSE daemon can access it. vold will then manage the fuse_sdcard1 service when media is inserted/removed.

fstab.hardware

and that has everything to do with the "enhanced" security of kitkat involving the media_rw group.
I need to read-up a little more about this, but I'm pretty sure the clue lies there.

There's also mention of this:

Quote:Since external storage offers minimal protection for stored data, system code should not store sensitive data on external storage. Specifically, configuration and log files should only be stored on internal storage where they can be effectively protected.

Which to me is a whole load of horse-crap as from a technical view-point there is no difference between internal or external storage, both are media storage devices, be it flash-chips or mechanical storage (harddisks). What they are referring to is devices formatted under fat32 that do not offer the same level of security as ext2-4. I won't go further into this as that is treated in another [Only registered and activated users can see links Click here to register] and would make this O.T., I only mention it here because link2sd can in fact store the configurations files (typically called linked internal-data) on the second partition and link them.
The concept of link2sd is in fact based on a very old unix trick to expand a filesystem through hard/soft links, but absolutely non-invasive on security as all valid unix permission rules apply.
You like this post
Reply
#13
@Mirandam

Hello,

I take a look on the Spec. from your Phone. It has 4GB ROM - maybe avaiable about 3.7GB.

I don't know your Internal Storage. Most have about 1GB.

What you mean, you can increase the Internal Storage to 2.5 or 3.5GB.

I have posted the steps here:
[Only registered and activated users can see links Click here to register]

Then you can installed more Apps there.

I have tested it on about 10 different Phones and it works.

The important Step is, first a CWM Backup and Backup of your internal SDCard2.

On the other Side you can Test and try the Link2SD additional!

Greetings

Louis777 [Image: dankeschoen.gif]
You like this post
Reply
#14
(2014-09-10, 22:36)Louis777 Wrote: @Mirandam

Hello,

I take a look on the Spec. from your Phone. It has 4GB ROM - maybe avaiable about 3.7GB.

I don't know your Internal Storage. Most have about 1GB.

What you mean, you can increase the Internal Storage to 2.5 or 3.5GB.

I have posted the steps here:

Sorry, but the specs are one thing, reality another. As I said in my OP, the phone has 800MB of app storage space (/data) and only 1.3GB of internal SD-space, which leaves me with virtually no space to repartition.
Due to storage limitations kitkat imposes, it also changes the way the preffered storage location in setup works. If you select internal storage space, your apps go to the internal sd-space, in this case the 1.3 GB internal sd. The other option is phone-storage which is the 800MB app space. That is exactly the reason why I want to use link2sd, which could circumvent this problem.
Kitkat really sucks for small phones.
Reply
#15
@Mirandam,

Hi,

take a look at Terminal Emulator.

cat /proc/dumchar_info and
cat /proc/partitions show you the Size of FAT!
From here come the additional Storage.

You wrote, 1,3GB internal Space plus 800MB=2,1GB internal Storage - usrdata!

Greetings
Louis777
You like this post
Reply
#16
@Louis777

That is impossible, you cannot eliminate the internal sd-card entirely to have that space added to data.
Exactly because of what I said, kitkat expects to have internal sd space.
And to be honest, to me it doesn't pay off to go to all the trouble of repartitioning if data is not close to 3 or 4 GB.
Apart from that, I've yet to see a repartitioned kitkat phone and since this phone will not be used by me, I won't take the risk of being amongst the first to do repartitioning under kitkat.
Precisely because of these considerations I opted for a to me very know route: link2sd, which does not require any reflashing or otherwise risky operations.

To make things more clearly: on this phone I only want one solution: for link2sd to work.

This phone is to replace a dual-core phone with nearly the same specs, except for the fact that it has 4.2.1 and ubifs as filesystem. The ebr repartitioning method doesn't work under ubifs, and the internal data space (about 200MB) doesn't allow me to update dropbox or google maps, even with link2sd working.
Reply
#17
Quote:for link2sd to work.

Actually I think you may be a little unfair to Louis777 and myself at this point.

Yes I accept your subject says exactly what is in quote.

But your um stronger stance means it is now impossible for me to ask you to check out
[Only registered and activated users can see links Click here to register]
Quote:App uninstaller, apk manager and move-to-SD-card features allow you to install, backup, move between SD card and phone memory or uninstall at ease.

Also your stance now makes it impossilbe for me to mention that when I was using the product, it would make recommendations on whether to move certain system apps or leave them alone.

I shall sacrifice one aussie beer if Ihave offended thee. Big Grin
Reply
#18
@aus9
No I'm not offended in any way and I don't take things personally that easily.
I only restated what is my intention to narrow the suggestions to be more to the point. I have considered almost all other optios but as I said at this moment they do not weigh up to link2sd.

The link you provided is known to me, in fact it is an app that comes by default with many chinese phones, and uses the same generic app2sd method to move apps to the sd-card. Link2sd also has this method which also works but.... as I said, kitkat moves the apps to the internal sd, even if you have an external sd.

On 4.2.x installing an external sd card usually provoked the switch-over in terms of mounting to /storage/sdcard leading to having the external sd card as the first sd card storage inline whereas the internal sd card change to be second. On kitkat this is no longer true.
If we go to settings and change the preffered storage location to sd-card, it will go to the internal sd card, never to the external, meaning all media, like photos etc will go to the internal sd-card, which is why I responded to Louis777 that it is impossible to completely eliminate the internal sd-space, kitkat will always need that space.

One thing I haven't tried is [Only registered and activated users can see links Click here to register] which much like link2sd creates a link between the internal sd and the external sd. Even though that won't make link2sd work.
And yes, there's always the possibility to move a system app and create more space there, I already looked into that and there are very few, if any, but it doesn't free enough space, apart from the fact that updating a system app leads to the updated app being put in data/app (just like playstore) which is where just moved it away from.... The great thing about link2sd is that it automatically recreates the link and moves the app to the second partition when the app gets updated, which is exactly what I need, that is, to have this totally transparent and without the user knowing it (no need for user interaction, I mean).

Here's a screenshot of a 4.2.x with link2sd installed:
   
Take note of the fact that /storage/sdcard0 points to the EXTERNAL sd card, (which is 13gb having a 16gb installed and a second partition of 2gb and a leftover of 1gb)
while /storage/sdcard1 points to the INTERNAL sd card (2.5gb since data on this phone was repartitioned to 4gb, total is 8gb).
This is what I mentioned with the switch-over, because without an external sd card, the internal sd mounts to /storage/sdcard0

And here's the one of the kitkat phone:
   
As you can see the external sd-card has changed from /storage/sdcard0 to /mnt/media_rw/sdcard_0

Here's another one of what happens when we link an app with link2sd on the kitkat.
   
The app com.geeksoft.extcardpatch gets a size of 0 and has no icon. It also disappears from the app drawer meaning it can't be executed even if it has indeed moved to the second partition (as is the case here).


Now, ya keep that beer cold as ice.... Big Grin
You like this post
Reply
#19
OK so I will reply to your post 12....kind of

I have been kindly given a so called stock recovery image of Lenovo S850 that has a vold fstab

It has a file called init.fuse.rc and I hope you may be interested in this line
even if not, I shall offer my opinion

Quote:service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled

fact 1....as agreed....vold and KK set up default storage to internal
fact 2 ....lets say not yet mutually agreed,
that quote shows disabled and I suspect you may have line not dis-similar in some init*rc file.

I allege this is what is crippling you from access to external storage. I should mention that this init file has an entrant for storage/sdcard0

#############
Anyhow it looks like next week I am going to have a go at modding my current ROM which is CWM friendly as I can't use flashtools.....to see if I can make my system revert to traditional fstab

and yes I have a vold fstab but Android version only 4.2.2

if I succeed maybe you can feel the warmth of my beery breath.
giggles

cheers
You and mirandam like this post
Reply
#20
@aus9
Thanks, that is more to the point and into the direction I suspected, related to the fuse daemon.
I just checked and init.fuse.rc is not on the phone. I also have a mpai mp809t with kitkat which doesn't have it either. Both phones have the same kernel version (3.4.67). I haven't tried link2sd on the mpai as it has loads of internal space so I had no need for it, I will however just to see if the same thing happens.
And I will check fact 2.
I don't think the external storage is crippled as I can see and access the files perfectly in root-explorer.
Somehow it seems to like the fuse daemon (which handles the external I/O) doesn't permit the following of soft-links.
Another thing that I will try is to create a link to an app in a folder within /system (not /system/app of course) . Since that link would not be affected by fuse it could prove my hunch is right. It won't solve the problem as that would still depend on the available system space, but at least be a step in some direction.

Salud (as we say here in spain)
You like this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Question] Leagoo m9 pro - low incall volume Andy72 0 1,692 2018-10-15, 17:01
Last Post: Andy72
  MTK 6572 phone after wrong preloader not detect pc Bozolika 0 3,013 2017-10-31, 21:21
Last Post: Bozolika
  [Question] 10 Inch Tablet PC 3G 4G Lte Octa Core 4GB RAM 64GB ROM FAKE OR NOT? Antonio.uk 1 10,255 2017-04-03, 11:32
Last Post: omegapr
  [Question] Samsung s7582 clone (MTK6572) - Could not be recognized by PC aakr 0 1,885 2016-12-26, 03:44
Last Post: aakr
  com.android.phone has stopped working, factory reset not working GERIKA 0 1,835 2016-12-08, 00:00
Last Post: GERIKA

Forum Jump:


Users browsing this thread:
[-]
Tech & Science
[Sci-Am] What Makes the Eastern U.S. Drought Different from ...
Last Post: Scientific American
Yesterday 21:18
» Replies: 0
» Views: 22
[Sci-Am] Why We Probably Won’t Find Aliens Anytime Soon
Last Post: Scientific American
Yesterday 07:30
» Replies: 0
» Views: 47
[Sci-Am] Wildfire Smoke Linked to Increased Risk of Dementia
Last Post: Scientific American
2024-12-10 04:14
» Replies: 0
» Views: 78
[Sci-Am] How Magnet Fishers Catch Underwater Garbage, Guns a...
Last Post: Scientific American
2024-12-09 01:02
» Replies: 0
» Views: 118
[Sci-Am] Dr. Oz Invested in Businesses Regulated by Agency T...
Last Post: Scientific American
2024-12-08 11:11
» Replies: 0
» Views: 62
[Sci-Am] How Humor Can Help You Get through Hard Times
Last Post: Scientific American
2024-12-07 20:55
» Replies: 0
» Views: 74
[Sci-Am] When a Nation Embraces a False Reality
Last Post: Scientific American
2024-12-07 06:53
» Replies: 0
» Views: 55
[Sci-Am] Mathematicians’ Newest Assistants Are Artificially ...
Last Post: Scientific American
2024-12-06 17:32
» Replies: 0
» Views: 49
[Harvard] How mammals got their stride
Last Post: Harvard
2024-12-06 04:01
» Replies: 0
» Views: 79
[Sci-Am] Bird Flu Has Infected Two Young People. Here’s Why ...
Last Post: Scientific American
2024-12-05 14:34
» Replies: 0
» Views: 36
[Harvard] Grappling with how clearings may support rainfores...
Last Post: Harvard
2024-12-05 14:34
» Replies: 0
» Views: 20
[Sci-Am] First Rocks Returned from Moon’s Far Side Reveal An...
Last Post: Scientific American
2024-12-05 01:01
» Replies: 0
» Views: 48
[Sci-Am] Trump’s Anti-Climate Agenda Could Help China Domina...
Last Post: Scientific American
2024-12-04 11:30
» Replies: 0
» Views: 44
[Sci-Am] Trees Alone Can’t Stop Climate Change
Last Post: Scientific American
2024-12-02 19:06
» Replies: 0
» Views: 96
[Sci-Am] RFK, Jr., Is a Bad Prescription for U.S. Public Hea...
Last Post: Scientific American
2024-12-02 05:29
» Replies: 0
» Views: 70
[Sci-Am] Science Crossword: Equine Emergence
Last Post: Scientific American
2024-12-01 15:05
» Replies: 0
» Views: 59
[Sci-Am] Why Hypochondria Can Be Deadly, and How Newer Treat...
Last Post: Scientific American
2024-12-01 01:39
» Replies: 0
» Views: 101
[Sci-Am] Horse Domestication Story Gets a Surprising Rewrite
Last Post: Scientific American
2024-11-30 12:08
» Replies: 0
» Views: 48
[Sci-Am] Fossil Fuels Are Not Essential
Last Post: Scientific American
2024-11-29 22:32
» Replies: 0
» Views: 79
[Sci-Am] See How Close We Are to Gender Equality around the ...
Last Post: Scientific American
2024-11-29 09:02
» Replies: 0
» Views: 65
[Sci-Am] Mathematicians Discover a New Kind of Shape That’s ...
Last Post: Scientific American
2024-11-28 06:17
» Replies: 0
» Views: 140
[Sci-Am] Curiosity, Horses and Hypochondria
Last Post: Scientific American
2024-11-27 16:52
» Replies: 0
» Views: 84
[Harvard] Amid Hurricane Milton’s devastation, a sliver of g...
Last Post: Harvard
2024-11-27 16:52
» Replies: 0
» Views: 73
[Sci-Am] Contributors to Scientific American’s December 2024...
Last Post: Scientific American
2024-11-27 03:17
» Replies: 0
» Views: 54
[Sci-Am] Exotic Powder Pulls Carbon Dioxide from the Air at ...
Last Post: Scientific American
2024-11-26 13:56
» Replies: 0
» Views: 58
[Sci-Am] Enjoy Holiday Food without the Anxiety
Last Post: Scientific American
2024-11-25 11:05
» Replies: 0
» Views: 102
[Sci-Am] Climate Change Is Altering Animals’ Colors
Last Post: Scientific American
2024-11-24 21:08
» Replies: 0
» Views: 47
[Sci-Am] Drought across the U.S., H5N1 in Canada and Uranus ...
Last Post: Scientific American
2024-11-24 07:31
» Replies: 0
» Views: 58
[Sci-Am] Some Counties Voted for Trump and Approved Climate ...
Last Post: Scientific American
2024-11-23 17:36
» Replies: 0
» Views: 52
[Sci-Am] Fun Facts about Teeth across the Animal Kingdom
Last Post: Scientific American
2024-11-23 03:45
» Replies: 0
» Views: 72
[Sci-Am] The U.S. Must Lead the Global Fight against Superbu...
Last Post: Scientific American
2024-11-20 21:24
» Replies: 0
» Views: 141
[Sci-Am] Trump Administration Likely to Repeal Methane Leak ...
Last Post: Scientific American
2024-11-20 07:40
» Replies: 0
» Views: 64
[Harvard] Mars may have been habitable much more recently th...
Last Post: Harvard
2024-11-20 07:40
» Replies: 0
» Views: 50
[Sci-Am] Clean Energy Is Bringing Electricity to Many in the...
Last Post: Scientific American
2024-11-19 18:11
» Replies: 0
» Views: 57
[Sci-Am] The Law Must Respond When Science Changes
Last Post: Scientific American
2024-11-19 04:42
» Replies: 0
» Views: 48
[Harvard] What happened when a meteorite the size of four Mo...
Last Post: Harvard
2024-11-19 04:42
» Replies: 0
» Views: 30
[Sci-Am] Epic Gravity Lens Lines Up Seven-Galaxy View
Last Post: Scientific American
2024-11-18 01:54
» Replies: 0
» Views: 98