FORUMS
Remove All Ads from XDA

LineageOS for microG

112 posts
Thanks Meter: 362
 
By Simon94, Senior Member on 6th November 2017, 10:02 AM
Post Reply Email Thread
7th November 2017, 07:38 PM |#31  
OP Senior Member
Thanks Meter: 362
 
More
Quote:
Originally Posted by cvbrt

The LineageOS for microG OTA infrastructure is based on https://github.com/julianxhokaxhiu/LineageOTA?
I'm mounting my own infrastructure and I want to know how to build it. Thanks.

For now we stick to a small script doing the magic along with a rewrite rule.
PHP Code:
<?php
define
('ARCHIVE_PATH','/data/archive/full');
define('ARCHIVE_URL','https://download.lineage.microg.org/ota/full');

if(!isset(
$_GET['request']))
    die(
'Invalid request');

$parts=explode('/',$_GET['request']);
if(
count($parts) != 4)
    die(
'Invalid request');

$request=array(
    
'apiversion'=>$parts[0],
    
'device'=>$parts[1],
    
'romtype'=>$parts[2],
    
'revision'=>$parts[3]
);

if(
$request['apiversion'] != 'v1')
    die(
'Unsupported API version');

if(!
is_dir(ARCHIVE_PATH '/' $request['device']))
    die(
'Unknown device');

$files=glob(ARCHIVE_PATH '/' $request['device'] . '/*.zip');
$roms=array();

foreach(
$files as $file)
{
    
$filename=basename($file);
    
$version=explode('-',$filename)[1];
    
$rom=array(
        
'datetime'=>filemtime($file),
        
'filename'=>$filename,
        
'id'=>filemtime($file),
        
'romtype'=>$request['romtype'],
        
'url'=>ARCHIVE_URL '/' $request['device'] . '/' $filename,
        
'version'=>$version
    
);
    
$roms[]=$rom;
}

$output['response']=$roms;
echo 
json_encode($outputJSON_UNESCAPED_SLASHES);
?>
Code:
location /api {
	rewrite ^/api/(.*)$ /ota.php?request=$1 last;
}
The Following User Says Thank You to Simon94 For This Useful Post: [ View ] Gift Simon94 Ad-Free
7th November 2017, 07:40 PM |#32  
Junior Member
Thanks Meter: 0
 
More
Hello,

My device didn't pass the safetynet test. I had to install droidguard helper and make it a system app (move it from /data/app to /system/priv-app). Is it expected?
I don't remember having to do this with the previous versions of your rom (from like 2 weeks ago).

I had a second question, is it possible to upgrade system apps from Fdroid?

Thanks
7th November 2017, 07:50 PM |#33  
OP Senior Member
Thanks Meter: 362
 
More
Quote:
Originally Posted by elmaos

I had to install droidguard helper and make it a system app (move it from /data/app to /system/priv-app). Is it expected?

We'll discuss this whether we'll ship this with the ROM.

Quote:
Originally Posted by elmaos

I had a second question, is it possible to upgrade system apps from Fdroid?

Yes it should be possible as long the signature of that APP matches. Thats how GAPPS are upgrading.

Best
Simon
7th November 2017, 08:35 PM |#34  
Nebucatnetzer's Avatar
Senior Member
Thanks Meter: 6,789
 
More
@Simon94, I recommend that you add to the installation instruction that the users are wiping /system before flashing the ROM. A factory reset wasn't enough for me to fully remove the Gapps. Was really confused why I couldn't find the microG app and all the Google stuff was working even though the PlayStore was missing.

Other than that it's a really great project, thanks a ton to everyone involved.
7th November 2017, 09:18 PM |#35  
Senior Member
Thanks Meter: 75
 
More
Hello! And thank you for your work. Using H815 here..

Trying to make this all work, su addon is not working for me or I don't know how to use it. Tried root checker and root manager from F-Droid, but no root is detected, an no applications detect root (SuperSu says su ocuppied, maybe because de daemon thing you do in your init)

How to use it?

---------- Post added at 08:18 PM ---------- Previous post was at 08:03 PM ----------

Quote:
Originally Posted by Simon94

..

Sorry for repeat the question but......

Hey, I have and special case. My H815 has official support for LOS. Recently, LG released Nougat for our phone, and the mantainer of official LOS has made an unofficial LOS based on Nougat kernel sources, so we can now use the full camera, and other features that were not possible with MM base. So, could it be possible some kind of package to flash from TWRP?
7th November 2017, 09:38 PM |#36  
Fuzzypumper's Avatar
Junior Member
Flag Boston
Thanks Meter: 2
 
More
I would greatly appreciate if you added the LG G-Pad 7.0 (V410) to the device list!
https://download.lineageos.org/v410
Thank you!
GuestK00164
7th November 2017, 09:47 PM |#37  
Guest
Thanks Meter: 0
 
More
Will you add support to official lineage os 13 supported devices e.g. expressowifi or just 14.1?
7th November 2017, 10:18 PM |#38  
Senior Member
Flag Oporto
Thanks Meter: 54
 
More
You need to go to settings> about phone > and tap 7 times in Build Number to enable Developer Options


Then, you must enable root for ADB and Applications under Developer Options.

And you're done.

---------- Post added at 10:18 PM ---------- Previous post was at 10:14 PM ----------

[QUOTE=kinuris;74439954]Hello! And thank you for your work. Using H815 here..

Trying to make this all work, su addon is not working for me or I don't know how to use it. Tried root checker and root manager from F-Droid, but no root is detected, an no applications detect root (SuperSu says su ocuppied, maybe because de daemon thing you do in your init)

How to use it?



You need to go to settings> about phone > and tap 7 times in Build Number to enable Developer Options


Then, you must enable root for ADB and Applications under Developer Options.

And you're done.
The Following 2 Users Say Thank You to aurocha For This Useful Post: [ View ] Gift aurocha Ad-Free
7th November 2017, 11:55 PM |#39  
Senior Member
Thanks Meter: 87
 
More
Quote:
Originally Posted by aurocha

2. Copying @MOVZX microg pack, I create a folder, copy the latest playstore into it and then push it to /system/priv-app; I then give it the right permissions: 0755 for the folder and 0644 for the app.

Everything works fine but it doesn't survive the 1st reboot. After that, i get force closes all the time. Maybe I forgot to install something along with the playstore?

If you use the microG-LineageOS as base, that AFAIK comes with FakeStore – which uses the same package name as Playstore, so the two would collide.

Which connects exactly with what I just wanted to ask (as the question arises sooner or later): Is it possible to install the official Playstore on these builds somehow (or the patched version by Shadow53)? What are the required pre-processing steps (eg. to remove FakeStore first)?

Quote:
Originally Posted by aurocha

I only need the playstore to validate a few purchased apps.

Same here. But it looks like @Oblias managed that somehow – maybe he can shed some light on exactly how, as to my knowledge Yalpstore doesn't support license check.

Edit: Unfortunately Oblias doesn't remember anymore, and has moved on to a different ROM. So I depend on your input here …
8th November 2017, 01:57 AM |#40  
Member
Thanks Meter: 19
 
More
Already asked this in the old thread but nothing happened so far:

Would you please add Nexus 10 (manta)?
Unfortunately the official (weekly) LineageOS nightlies are LOS 13.0 for this device.
(I'd really like to have LOS 14.1 but the Lineage guys decided to keep LOS 13 on this tablet. :-/)
8th November 2017, 02:26 AM |#41  
Junior Member
Thanks Meter: 0
 
More
LeEco Le 2 support
Would it be possible to add LeEco Le 2 (s2)?

Thank you for your work.
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes